Test Failed
Push — master ( d99c6b...fb4ca3 )
by Stiofan
15:44
created

Google_Service_Directory_User   F

Complexity

Total Complexity 70

Size/Duplication

Total Lines 324
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 324
rs 2.7272
c 0
b 0
f 0
wmc 70
lcom 0
cbo 1

70 Methods

Rating   Name   Duplication   Size   Complexity  
A setAddresses() 0 4 1
A getAddresses() 0 4 1
A setAgreedToTerms() 0 4 1
A getAgreedToTerms() 0 4 1
A setAliases() 0 4 1
A getAliases() 0 4 1
A setChangePasswordAtNextLogin() 0 4 1
A getChangePasswordAtNextLogin() 0 4 1
A setCreationTime() 0 4 1
A getCreationTime() 0 4 1
A setCustomSchemas() 0 4 1
A getCustomSchemas() 0 4 1
A setCustomerId() 0 4 1
A getCustomerId() 0 4 1
A setDeletionTime() 0 4 1
A getDeletionTime() 0 4 1
A setEmails() 0 4 1
A getEmails() 0 4 1
A setEtag() 0 4 1
A getEtag() 0 4 1
A setExternalIds() 0 4 1
A getExternalIds() 0 4 1
A setHashFunction() 0 4 1
A getHashFunction() 0 4 1
A setId() 0 4 1
A getId() 0 4 1
A setIms() 0 4 1
A getIms() 0 4 1
A setIncludeInGlobalAddressList() 0 4 1
A getIncludeInGlobalAddressList() 0 4 1
A setIpWhitelisted() 0 4 1
A getIpWhitelisted() 0 4 1
A setIsAdmin() 0 4 1
A getIsAdmin() 0 4 1
A setIsDelegatedAdmin() 0 4 1
A getIsDelegatedAdmin() 0 4 1
A setIsMailboxSetup() 0 4 1
A getIsMailboxSetup() 0 4 1
A setKind() 0 4 1
A getKind() 0 4 1
A setLastLoginTime() 0 4 1
A getLastLoginTime() 0 4 1
A setName() 0 4 1
A getName() 0 4 1
A setNonEditableAliases() 0 4 1
A getNonEditableAliases() 0 4 1
A setNotes() 0 4 1
A getNotes() 0 4 1
A setOrgUnitPath() 0 4 1
A getOrgUnitPath() 0 4 1
A setOrganizations() 0 4 1
A getOrganizations() 0 4 1
A setPassword() 0 4 1
A getPassword() 0 4 1
A setPhones() 0 4 1
A getPhones() 0 4 1
A setPrimaryEmail() 0 4 1
A getPrimaryEmail() 0 4 1
A setRelations() 0 4 1
A getRelations() 0 4 1
A setSuspended() 0 4 1
A getSuspended() 0 4 1
A setSuspensionReason() 0 4 1
A getSuspensionReason() 0 4 1
A setThumbnailPhotoEtag() 0 4 1
A getThumbnailPhotoEtag() 0 4 1
A setThumbnailPhotoUrl() 0 4 1
A getThumbnailPhotoUrl() 0 4 1
A setWebsites() 0 4 1
A getWebsites() 0 4 1

How to fix   Complexity   

Complex Class

Complex classes like Google_Service_Directory_User often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use Google_Service_Directory_User, and based on these observations, apply Extract Interface, too.

1
<?php
2
/*
3
 * Copyright 2010 Google Inc.
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
 * use this file except in compliance with the License. You may obtain a copy of
7
 * the License at
8
 *
9
 * http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
 * License for the specific language governing permissions and limitations under
15
 * the License.
16
 */
17
18
/**
19
 * Service definition for Directory (directory_v1).
20
 *
21
 * <p>
22
 * The Admin SDK Directory API lets you view and manage enterprise resources
23
 * such as users and groups, administrative notifications, security features,
24
 * and more.</p>
25
 *
26
 * <p>
27
 * For more information about this service, see the API
28
 * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
29
 * </p>
30
 *
31
 * @author Google, Inc.
32
 */
33
class Google_Service_Directory extends Google_Service
34
{
35
  /** View and manage your Chrome OS devices' metadata. */
36
  const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
37
      "https://www.googleapis.com/auth/admin.directory.device.chromeos";
38
  /** View your Chrome OS devices' metadata. */
39
  const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
40
      "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
41
  /** View and manage your mobile devices' metadata. */
42
  const ADMIN_DIRECTORY_DEVICE_MOBILE =
43
      "https://www.googleapis.com/auth/admin.directory.device.mobile";
44
  /** Manage your mobile devices by performing administrative tasks. */
45
  const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
46
      "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
47
  /** View your mobile devices' metadata. */
48
  const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
49
      "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
50
  /** View and manage the provisioning of groups on your domain. */
51
  const ADMIN_DIRECTORY_GROUP =
52
      "https://www.googleapis.com/auth/admin.directory.group";
53
  /** View and manage group subscriptions on your domain. */
54
  const ADMIN_DIRECTORY_GROUP_MEMBER =
55
      "https://www.googleapis.com/auth/admin.directory.group.member";
56
  /** View group subscriptions on your domain. */
57
  const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
58
      "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
59
  /** View groups on your domain. */
60
  const ADMIN_DIRECTORY_GROUP_READONLY =
61
      "https://www.googleapis.com/auth/admin.directory.group.readonly";
62
  /** View and manage notifications received on your domain. */
63
  const ADMIN_DIRECTORY_NOTIFICATIONS =
64
      "https://www.googleapis.com/auth/admin.directory.notifications";
65
  /** View and manage organization units on your domain. */
66
  const ADMIN_DIRECTORY_ORGUNIT =
67
      "https://www.googleapis.com/auth/admin.directory.orgunit";
68
  /** View organization units on your domain. */
69
  const ADMIN_DIRECTORY_ORGUNIT_READONLY =
70
      "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
71
  /** View and manage the provisioning of users on your domain. */
72
  const ADMIN_DIRECTORY_USER =
73
      "https://www.googleapis.com/auth/admin.directory.user";
74
  /** View and manage user aliases on your domain. */
75
  const ADMIN_DIRECTORY_USER_ALIAS =
76
      "https://www.googleapis.com/auth/admin.directory.user.alias";
77
  /** View user aliases on your domain. */
78
  const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
79
      "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
80
  /** View users on your domain. */
81
  const ADMIN_DIRECTORY_USER_READONLY =
82
      "https://www.googleapis.com/auth/admin.directory.user.readonly";
83
  /** Manage data access permissions for users on your domain. */
84
  const ADMIN_DIRECTORY_USER_SECURITY =
85
      "https://www.googleapis.com/auth/admin.directory.user.security";
86
  /** View and manage the provisioning of user schemas on your domain. */
87
  const ADMIN_DIRECTORY_USERSCHEMA =
88
      "https://www.googleapis.com/auth/admin.directory.userschema";
89
  /** View user schemas on your domain. */
90
  const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
91
      "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
92
93
  public $asps;
94
  public $channels;
95
  public $chromeosdevices;
96
  public $groups;
97
  public $groups_aliases;
98
  public $members;
99
  public $mobiledevices;
100
  public $notifications;
101
  public $orgunits;
102
  public $schemas;
103
  public $tokens;
104
  public $users;
105
  public $users_aliases;
106
  public $users_photos;
107
  public $verificationCodes;
108
  
109
110
  /**
111
   * Constructs the internal representation of the Directory service.
112
   *
113
   * @param Google_Client $client
114
   */
115
  public function __construct(Google_Client $client)
116
  {
117
    parent::__construct($client);
118
    $this->rootUrl = 'https://www.googleapis.com/';
119
    $this->servicePath = 'admin/directory/v1/';
120
    $this->version = 'directory_v1';
121
    $this->serviceName = 'admin';
0 ignored issues
show
Bug introduced by
The property serviceName does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
122
123
    $this->asps = new Google_Service_Directory_Asps_Resource(
124
        $this,
125
        $this->serviceName,
126
        'asps',
127
        array(
128
          'methods' => array(
129
            'delete' => array(
130
              'path' => 'users/{userKey}/asps/{codeId}',
131
              'httpMethod' => 'DELETE',
132
              'parameters' => array(
133
                'userKey' => array(
134
                  'location' => 'path',
135
                  'type' => 'string',
136
                  'required' => true,
137
                ),
138
                'codeId' => array(
139
                  'location' => 'path',
140
                  'type' => 'integer',
141
                  'required' => true,
142
                ),
143
              ),
144
            ),'get' => array(
145
              'path' => 'users/{userKey}/asps/{codeId}',
146
              'httpMethod' => 'GET',
147
              'parameters' => array(
148
                'userKey' => array(
149
                  'location' => 'path',
150
                  'type' => 'string',
151
                  'required' => true,
152
                ),
153
                'codeId' => array(
154
                  'location' => 'path',
155
                  'type' => 'integer',
156
                  'required' => true,
157
                ),
158
              ),
159
            ),'list' => array(
160
              'path' => 'users/{userKey}/asps',
161
              'httpMethod' => 'GET',
162
              'parameters' => array(
163
                'userKey' => array(
164
                  'location' => 'path',
165
                  'type' => 'string',
166
                  'required' => true,
167
                ),
168
              ),
169
            ),
170
          )
171
        )
172
    );
173
    $this->channels = new Google_Service_Directory_Channels_Resource(
174
        $this,
175
        $this->serviceName,
176
        'channels',
177
        array(
178
          'methods' => array(
179
            'stop' => array(
180
              'path' => '/admin/directory_v1/channels/stop',
181
              'httpMethod' => 'POST',
182
              'parameters' => array(),
183
            ),
184
          )
185
        )
186
    );
187
    $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
188
        $this,
189
        $this->serviceName,
190
        'chromeosdevices',
191
        array(
192
          'methods' => array(
193
            'get' => array(
194
              'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
195
              'httpMethod' => 'GET',
196
              'parameters' => array(
197
                'customerId' => array(
198
                  'location' => 'path',
199
                  'type' => 'string',
200
                  'required' => true,
201
                ),
202
                'deviceId' => array(
203
                  'location' => 'path',
204
                  'type' => 'string',
205
                  'required' => true,
206
                ),
207
                'projection' => array(
208
                  'location' => 'query',
209
                  'type' => 'string',
210
                ),
211
              ),
212
            ),'list' => array(
213
              'path' => 'customer/{customerId}/devices/chromeos',
214
              'httpMethod' => 'GET',
215
              'parameters' => array(
216
                'customerId' => array(
217
                  'location' => 'path',
218
                  'type' => 'string',
219
                  'required' => true,
220
                ),
221
                'orderBy' => array(
222
                  'location' => 'query',
223
                  'type' => 'string',
224
                ),
225
                'projection' => array(
226
                  'location' => 'query',
227
                  'type' => 'string',
228
                ),
229
                'maxResults' => array(
230
                  'location' => 'query',
231
                  'type' => 'integer',
232
                ),
233
                'pageToken' => array(
234
                  'location' => 'query',
235
                  'type' => 'string',
236
                ),
237
                'sortOrder' => array(
238
                  'location' => 'query',
239
                  'type' => 'string',
240
                ),
241
                'query' => array(
242
                  'location' => 'query',
243
                  'type' => 'string',
244
                ),
245
              ),
246
            ),'patch' => array(
247
              'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
248
              'httpMethod' => 'PATCH',
249
              'parameters' => array(
250
                'customerId' => array(
251
                  'location' => 'path',
252
                  'type' => 'string',
253
                  'required' => true,
254
                ),
255
                'deviceId' => array(
256
                  'location' => 'path',
257
                  'type' => 'string',
258
                  'required' => true,
259
                ),
260
                'projection' => array(
261
                  'location' => 'query',
262
                  'type' => 'string',
263
                ),
264
              ),
265
            ),'update' => array(
266
              'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
267
              'httpMethod' => 'PUT',
268
              'parameters' => array(
269
                'customerId' => array(
270
                  'location' => 'path',
271
                  'type' => 'string',
272
                  'required' => true,
273
                ),
274
                'deviceId' => array(
275
                  'location' => 'path',
276
                  'type' => 'string',
277
                  'required' => true,
278
                ),
279
                'projection' => array(
280
                  'location' => 'query',
281
                  'type' => 'string',
282
                ),
283
              ),
284
            ),
285
          )
286
        )
287
    );
288
    $this->groups = new Google_Service_Directory_Groups_Resource(
289
        $this,
290
        $this->serviceName,
291
        'groups',
292
        array(
293
          'methods' => array(
294
            'delete' => array(
295
              'path' => 'groups/{groupKey}',
296
              'httpMethod' => 'DELETE',
297
              'parameters' => array(
298
                'groupKey' => array(
299
                  'location' => 'path',
300
                  'type' => 'string',
301
                  'required' => true,
302
                ),
303
              ),
304
            ),'get' => array(
305
              'path' => 'groups/{groupKey}',
306
              'httpMethod' => 'GET',
307
              'parameters' => array(
308
                'groupKey' => array(
309
                  'location' => 'path',
310
                  'type' => 'string',
311
                  'required' => true,
312
                ),
313
              ),
314
            ),'insert' => array(
315
              'path' => 'groups',
316
              'httpMethod' => 'POST',
317
              'parameters' => array(),
318
            ),'list' => array(
319
              'path' => 'groups',
320
              'httpMethod' => 'GET',
321
              'parameters' => array(
322
                'customer' => array(
323
                  'location' => 'query',
324
                  'type' => 'string',
325
                ),
326
                'pageToken' => array(
327
                  'location' => 'query',
328
                  'type' => 'string',
329
                ),
330
                'domain' => array(
331
                  'location' => 'query',
332
                  'type' => 'string',
333
                ),
334
                'maxResults' => array(
335
                  'location' => 'query',
336
                  'type' => 'integer',
337
                ),
338
                'userKey' => array(
339
                  'location' => 'query',
340
                  'type' => 'string',
341
                ),
342
              ),
343
            ),'patch' => array(
344
              'path' => 'groups/{groupKey}',
345
              'httpMethod' => 'PATCH',
346
              'parameters' => array(
347
                'groupKey' => array(
348
                  'location' => 'path',
349
                  'type' => 'string',
350
                  'required' => true,
351
                ),
352
              ),
353
            ),'update' => array(
354
              'path' => 'groups/{groupKey}',
355
              'httpMethod' => 'PUT',
356
              'parameters' => array(
357
                'groupKey' => array(
358
                  'location' => 'path',
359
                  'type' => 'string',
360
                  'required' => true,
361
                ),
362
              ),
363
            ),
364
          )
365
        )
366
    );
367
    $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource(
368
        $this,
369
        $this->serviceName,
370
        'aliases',
371
        array(
372
          'methods' => array(
373
            'delete' => array(
374
              'path' => 'groups/{groupKey}/aliases/{alias}',
375
              'httpMethod' => 'DELETE',
376
              'parameters' => array(
377
                'groupKey' => array(
378
                  'location' => 'path',
379
                  'type' => 'string',
380
                  'required' => true,
381
                ),
382
                'alias' => array(
383
                  'location' => 'path',
384
                  'type' => 'string',
385
                  'required' => true,
386
                ),
387
              ),
388
            ),'insert' => array(
389
              'path' => 'groups/{groupKey}/aliases',
390
              'httpMethod' => 'POST',
391
              'parameters' => array(
392
                'groupKey' => array(
393
                  'location' => 'path',
394
                  'type' => 'string',
395
                  'required' => true,
396
                ),
397
              ),
398
            ),'list' => array(
399
              'path' => 'groups/{groupKey}/aliases',
400
              'httpMethod' => 'GET',
401
              'parameters' => array(
402
                'groupKey' => array(
403
                  'location' => 'path',
404
                  'type' => 'string',
405
                  'required' => true,
406
                ),
407
              ),
408
            ),
409
          )
410
        )
411
    );
412
    $this->members = new Google_Service_Directory_Members_Resource(
413
        $this,
414
        $this->serviceName,
415
        'members',
416
        array(
417
          'methods' => array(
418
            'delete' => array(
419
              'path' => 'groups/{groupKey}/members/{memberKey}',
420
              'httpMethod' => 'DELETE',
421
              'parameters' => array(
422
                'groupKey' => array(
423
                  'location' => 'path',
424
                  'type' => 'string',
425
                  'required' => true,
426
                ),
427
                'memberKey' => array(
428
                  'location' => 'path',
429
                  'type' => 'string',
430
                  'required' => true,
431
                ),
432
              ),
433
            ),'get' => array(
434
              'path' => 'groups/{groupKey}/members/{memberKey}',
435
              'httpMethod' => 'GET',
436
              'parameters' => array(
437
                'groupKey' => array(
438
                  'location' => 'path',
439
                  'type' => 'string',
440
                  'required' => true,
441
                ),
442
                'memberKey' => array(
443
                  'location' => 'path',
444
                  'type' => 'string',
445
                  'required' => true,
446
                ),
447
              ),
448
            ),'insert' => array(
449
              'path' => 'groups/{groupKey}/members',
450
              'httpMethod' => 'POST',
451
              'parameters' => array(
452
                'groupKey' => array(
453
                  'location' => 'path',
454
                  'type' => 'string',
455
                  'required' => true,
456
                ),
457
              ),
458
            ),'list' => array(
459
              'path' => 'groups/{groupKey}/members',
460
              'httpMethod' => 'GET',
461
              'parameters' => array(
462
                'groupKey' => array(
463
                  'location' => 'path',
464
                  'type' => 'string',
465
                  'required' => true,
466
                ),
467
                'pageToken' => array(
468
                  'location' => 'query',
469
                  'type' => 'string',
470
                ),
471
                'roles' => array(
472
                  'location' => 'query',
473
                  'type' => 'string',
474
                ),
475
                'maxResults' => array(
476
                  'location' => 'query',
477
                  'type' => 'integer',
478
                ),
479
              ),
480
            ),'patch' => array(
481
              'path' => 'groups/{groupKey}/members/{memberKey}',
482
              'httpMethod' => 'PATCH',
483
              'parameters' => array(
484
                'groupKey' => array(
485
                  'location' => 'path',
486
                  'type' => 'string',
487
                  'required' => true,
488
                ),
489
                'memberKey' => array(
490
                  'location' => 'path',
491
                  'type' => 'string',
492
                  'required' => true,
493
                ),
494
              ),
495
            ),'update' => array(
496
              'path' => 'groups/{groupKey}/members/{memberKey}',
497
              'httpMethod' => 'PUT',
498
              'parameters' => array(
499
                'groupKey' => array(
500
                  'location' => 'path',
501
                  'type' => 'string',
502
                  'required' => true,
503
                ),
504
                'memberKey' => array(
505
                  'location' => 'path',
506
                  'type' => 'string',
507
                  'required' => true,
508
                ),
509
              ),
510
            ),
511
          )
512
        )
513
    );
514
    $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource(
515
        $this,
516
        $this->serviceName,
517
        'mobiledevices',
518
        array(
519
          'methods' => array(
520
            'action' => array(
521
              'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
522
              'httpMethod' => 'POST',
523
              'parameters' => array(
524
                'customerId' => array(
525
                  'location' => 'path',
526
                  'type' => 'string',
527
                  'required' => true,
528
                ),
529
                'resourceId' => array(
530
                  'location' => 'path',
531
                  'type' => 'string',
532
                  'required' => true,
533
                ),
534
              ),
535
            ),'delete' => array(
536
              'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
537
              'httpMethod' => 'DELETE',
538
              'parameters' => array(
539
                'customerId' => array(
540
                  'location' => 'path',
541
                  'type' => 'string',
542
                  'required' => true,
543
                ),
544
                'resourceId' => array(
545
                  'location' => 'path',
546
                  'type' => 'string',
547
                  'required' => true,
548
                ),
549
              ),
550
            ),'get' => array(
551
              'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
552
              'httpMethod' => 'GET',
553
              'parameters' => array(
554
                'customerId' => array(
555
                  'location' => 'path',
556
                  'type' => 'string',
557
                  'required' => true,
558
                ),
559
                'resourceId' => array(
560
                  'location' => 'path',
561
                  'type' => 'string',
562
                  'required' => true,
563
                ),
564
                'projection' => array(
565
                  'location' => 'query',
566
                  'type' => 'string',
567
                ),
568
              ),
569
            ),'list' => array(
570
              'path' => 'customer/{customerId}/devices/mobile',
571
              'httpMethod' => 'GET',
572
              'parameters' => array(
573
                'customerId' => array(
574
                  'location' => 'path',
575
                  'type' => 'string',
576
                  'required' => true,
577
                ),
578
                'orderBy' => array(
579
                  'location' => 'query',
580
                  'type' => 'string',
581
                ),
582
                'projection' => array(
583
                  'location' => 'query',
584
                  'type' => 'string',
585
                ),
586
                'maxResults' => array(
587
                  'location' => 'query',
588
                  'type' => 'integer',
589
                ),
590
                'pageToken' => array(
591
                  'location' => 'query',
592
                  'type' => 'string',
593
                ),
594
                'sortOrder' => array(
595
                  'location' => 'query',
596
                  'type' => 'string',
597
                ),
598
                'query' => array(
599
                  'location' => 'query',
600
                  'type' => 'string',
601
                ),
602
              ),
603
            ),
604
          )
605
        )
606
    );
607
    $this->notifications = new Google_Service_Directory_Notifications_Resource(
608
        $this,
609
        $this->serviceName,
610
        'notifications',
611
        array(
612
          'methods' => array(
613
            'delete' => array(
614
              'path' => 'customer/{customer}/notifications/{notificationId}',
615
              'httpMethod' => 'DELETE',
616
              'parameters' => array(
617
                'customer' => array(
618
                  'location' => 'path',
619
                  'type' => 'string',
620
                  'required' => true,
621
                ),
622
                'notificationId' => array(
623
                  'location' => 'path',
624
                  'type' => 'string',
625
                  'required' => true,
626
                ),
627
              ),
628
            ),'get' => array(
629
              'path' => 'customer/{customer}/notifications/{notificationId}',
630
              'httpMethod' => 'GET',
631
              'parameters' => array(
632
                'customer' => array(
633
                  'location' => 'path',
634
                  'type' => 'string',
635
                  'required' => true,
636
                ),
637
                'notificationId' => array(
638
                  'location' => 'path',
639
                  'type' => 'string',
640
                  'required' => true,
641
                ),
642
              ),
643
            ),'list' => array(
644
              'path' => 'customer/{customer}/notifications',
645
              'httpMethod' => 'GET',
646
              'parameters' => array(
647
                'customer' => array(
648
                  'location' => 'path',
649
                  'type' => 'string',
650
                  'required' => true,
651
                ),
652
                'pageToken' => array(
653
                  'location' => 'query',
654
                  'type' => 'string',
655
                ),
656
                'maxResults' => array(
657
                  'location' => 'query',
658
                  'type' => 'integer',
659
                ),
660
                'language' => array(
661
                  'location' => 'query',
662
                  'type' => 'string',
663
                ),
664
              ),
665
            ),'patch' => array(
666
              'path' => 'customer/{customer}/notifications/{notificationId}',
667
              'httpMethod' => 'PATCH',
668
              'parameters' => array(
669
                'customer' => array(
670
                  'location' => 'path',
671
                  'type' => 'string',
672
                  'required' => true,
673
                ),
674
                'notificationId' => array(
675
                  'location' => 'path',
676
                  'type' => 'string',
677
                  'required' => true,
678
                ),
679
              ),
680
            ),'update' => array(
681
              'path' => 'customer/{customer}/notifications/{notificationId}',
682
              'httpMethod' => 'PUT',
683
              'parameters' => array(
684
                'customer' => array(
685
                  'location' => 'path',
686
                  'type' => 'string',
687
                  'required' => true,
688
                ),
689
                'notificationId' => array(
690
                  'location' => 'path',
691
                  'type' => 'string',
692
                  'required' => true,
693
                ),
694
              ),
695
            ),
696
          )
697
        )
698
    );
699
    $this->orgunits = new Google_Service_Directory_Orgunits_Resource(
700
        $this,
701
        $this->serviceName,
702
        'orgunits',
703
        array(
704
          'methods' => array(
705
            'delete' => array(
706
              'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
707
              'httpMethod' => 'DELETE',
708
              'parameters' => array(
709
                'customerId' => array(
710
                  'location' => 'path',
711
                  'type' => 'string',
712
                  'required' => true,
713
                ),
714
                'orgUnitPath' => array(
715
                  'location' => 'path',
716
                  'type' => 'string',
717
                  'repeated' => true,
718
                  'required' => true,
719
                ),
720
              ),
721
            ),'get' => array(
722
              'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
723
              'httpMethod' => 'GET',
724
              'parameters' => array(
725
                'customerId' => array(
726
                  'location' => 'path',
727
                  'type' => 'string',
728
                  'required' => true,
729
                ),
730
                'orgUnitPath' => array(
731
                  'location' => 'path',
732
                  'type' => 'string',
733
                  'repeated' => true,
734
                  'required' => true,
735
                ),
736
              ),
737
            ),'insert' => array(
738
              'path' => 'customer/{customerId}/orgunits',
739
              'httpMethod' => 'POST',
740
              'parameters' => array(
741
                'customerId' => array(
742
                  'location' => 'path',
743
                  'type' => 'string',
744
                  'required' => true,
745
                ),
746
              ),
747
            ),'list' => array(
748
              'path' => 'customer/{customerId}/orgunits',
749
              'httpMethod' => 'GET',
750
              'parameters' => array(
751
                'customerId' => array(
752
                  'location' => 'path',
753
                  'type' => 'string',
754
                  'required' => true,
755
                ),
756
                'type' => array(
757
                  'location' => 'query',
758
                  'type' => 'string',
759
                ),
760
                'orgUnitPath' => array(
761
                  'location' => 'query',
762
                  'type' => 'string',
763
                ),
764
              ),
765
            ),'patch' => array(
766
              'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
767
              'httpMethod' => 'PATCH',
768
              'parameters' => array(
769
                'customerId' => array(
770
                  'location' => 'path',
771
                  'type' => 'string',
772
                  'required' => true,
773
                ),
774
                'orgUnitPath' => array(
775
                  'location' => 'path',
776
                  'type' => 'string',
777
                  'repeated' => true,
778
                  'required' => true,
779
                ),
780
              ),
781
            ),'update' => array(
782
              'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
783
              'httpMethod' => 'PUT',
784
              'parameters' => array(
785
                'customerId' => array(
786
                  'location' => 'path',
787
                  'type' => 'string',
788
                  'required' => true,
789
                ),
790
                'orgUnitPath' => array(
791
                  'location' => 'path',
792
                  'type' => 'string',
793
                  'repeated' => true,
794
                  'required' => true,
795
                ),
796
              ),
797
            ),
798
          )
799
        )
800
    );
801
    $this->schemas = new Google_Service_Directory_Schemas_Resource(
802
        $this,
803
        $this->serviceName,
804
        'schemas',
805
        array(
806
          'methods' => array(
807
            'delete' => array(
808
              'path' => 'customer/{customerId}/schemas/{schemaKey}',
809
              'httpMethod' => 'DELETE',
810
              'parameters' => array(
811
                'customerId' => array(
812
                  'location' => 'path',
813
                  'type' => 'string',
814
                  'required' => true,
815
                ),
816
                'schemaKey' => array(
817
                  'location' => 'path',
818
                  'type' => 'string',
819
                  'required' => true,
820
                ),
821
              ),
822
            ),'get' => array(
823
              'path' => 'customer/{customerId}/schemas/{schemaKey}',
824
              'httpMethod' => 'GET',
825
              'parameters' => array(
826
                'customerId' => array(
827
                  'location' => 'path',
828
                  'type' => 'string',
829
                  'required' => true,
830
                ),
831
                'schemaKey' => array(
832
                  'location' => 'path',
833
                  'type' => 'string',
834
                  'required' => true,
835
                ),
836
              ),
837
            ),'insert' => array(
838
              'path' => 'customer/{customerId}/schemas',
839
              'httpMethod' => 'POST',
840
              'parameters' => array(
841
                'customerId' => array(
842
                  'location' => 'path',
843
                  'type' => 'string',
844
                  'required' => true,
845
                ),
846
              ),
847
            ),'list' => array(
848
              'path' => 'customer/{customerId}/schemas',
849
              'httpMethod' => 'GET',
850
              'parameters' => array(
851
                'customerId' => array(
852
                  'location' => 'path',
853
                  'type' => 'string',
854
                  'required' => true,
855
                ),
856
              ),
857
            ),'patch' => array(
858
              'path' => 'customer/{customerId}/schemas/{schemaKey}',
859
              'httpMethod' => 'PATCH',
860
              'parameters' => array(
861
                'customerId' => array(
862
                  'location' => 'path',
863
                  'type' => 'string',
864
                  'required' => true,
865
                ),
866
                'schemaKey' => array(
867
                  'location' => 'path',
868
                  'type' => 'string',
869
                  'required' => true,
870
                ),
871
              ),
872
            ),'update' => array(
873
              'path' => 'customer/{customerId}/schemas/{schemaKey}',
874
              'httpMethod' => 'PUT',
875
              'parameters' => array(
876
                'customerId' => array(
877
                  'location' => 'path',
878
                  'type' => 'string',
879
                  'required' => true,
880
                ),
881
                'schemaKey' => array(
882
                  'location' => 'path',
883
                  'type' => 'string',
884
                  'required' => true,
885
                ),
886
              ),
887
            ),
888
          )
889
        )
890
    );
891
    $this->tokens = new Google_Service_Directory_Tokens_Resource(
892
        $this,
893
        $this->serviceName,
894
        'tokens',
895
        array(
896
          'methods' => array(
897
            'delete' => array(
898
              'path' => 'users/{userKey}/tokens/{clientId}',
899
              'httpMethod' => 'DELETE',
900
              'parameters' => array(
901
                'userKey' => array(
902
                  'location' => 'path',
903
                  'type' => 'string',
904
                  'required' => true,
905
                ),
906
                'clientId' => array(
907
                  'location' => 'path',
908
                  'type' => 'string',
909
                  'required' => true,
910
                ),
911
              ),
912
            ),'get' => array(
913
              'path' => 'users/{userKey}/tokens/{clientId}',
914
              'httpMethod' => 'GET',
915
              'parameters' => array(
916
                'userKey' => array(
917
                  'location' => 'path',
918
                  'type' => 'string',
919
                  'required' => true,
920
                ),
921
                'clientId' => array(
922
                  'location' => 'path',
923
                  'type' => 'string',
924
                  'required' => true,
925
                ),
926
              ),
927
            ),'list' => array(
928
              'path' => 'users/{userKey}/tokens',
929
              'httpMethod' => 'GET',
930
              'parameters' => array(
931
                'userKey' => array(
932
                  'location' => 'path',
933
                  'type' => 'string',
934
                  'required' => true,
935
                ),
936
              ),
937
            ),
938
          )
939
        )
940
    );
941
    $this->users = new Google_Service_Directory_Users_Resource(
942
        $this,
943
        $this->serviceName,
944
        'users',
945
        array(
946
          'methods' => array(
947
            'delete' => array(
948
              'path' => 'users/{userKey}',
949
              'httpMethod' => 'DELETE',
950
              'parameters' => array(
951
                'userKey' => array(
952
                  'location' => 'path',
953
                  'type' => 'string',
954
                  'required' => true,
955
                ),
956
              ),
957
            ),'get' => array(
958
              'path' => 'users/{userKey}',
959
              'httpMethod' => 'GET',
960
              'parameters' => array(
961
                'userKey' => array(
962
                  'location' => 'path',
963
                  'type' => 'string',
964
                  'required' => true,
965
                ),
966
                'viewType' => array(
967
                  'location' => 'query',
968
                  'type' => 'string',
969
                ),
970
                'customFieldMask' => array(
971
                  'location' => 'query',
972
                  'type' => 'string',
973
                ),
974
                'projection' => array(
975
                  'location' => 'query',
976
                  'type' => 'string',
977
                ),
978
              ),
979
            ),'insert' => array(
980
              'path' => 'users',
981
              'httpMethod' => 'POST',
982
              'parameters' => array(),
983
            ),'list' => array(
984
              'path' => 'users',
985
              'httpMethod' => 'GET',
986
              'parameters' => array(
987
                'customer' => array(
988
                  'location' => 'query',
989
                  'type' => 'string',
990
                ),
991
                'orderBy' => array(
992
                  'location' => 'query',
993
                  'type' => 'string',
994
                ),
995
                'domain' => array(
996
                  'location' => 'query',
997
                  'type' => 'string',
998
                ),
999
                'projection' => array(
1000
                  'location' => 'query',
1001
                  'type' => 'string',
1002
                ),
1003
                'showDeleted' => array(
1004
                  'location' => 'query',
1005
                  'type' => 'string',
1006
                ),
1007
                'customFieldMask' => array(
1008
                  'location' => 'query',
1009
                  'type' => 'string',
1010
                ),
1011
                'maxResults' => array(
1012
                  'location' => 'query',
1013
                  'type' => 'integer',
1014
                ),
1015
                'pageToken' => array(
1016
                  'location' => 'query',
1017
                  'type' => 'string',
1018
                ),
1019
                'sortOrder' => array(
1020
                  'location' => 'query',
1021
                  'type' => 'string',
1022
                ),
1023
                'query' => array(
1024
                  'location' => 'query',
1025
                  'type' => 'string',
1026
                ),
1027
                'viewType' => array(
1028
                  'location' => 'query',
1029
                  'type' => 'string',
1030
                ),
1031
                'event' => array(
1032
                  'location' => 'query',
1033
                  'type' => 'string',
1034
                ),
1035
              ),
1036
            ),'makeAdmin' => array(
1037
              'path' => 'users/{userKey}/makeAdmin',
1038
              'httpMethod' => 'POST',
1039
              'parameters' => array(
1040
                'userKey' => array(
1041
                  'location' => 'path',
1042
                  'type' => 'string',
1043
                  'required' => true,
1044
                ),
1045
              ),
1046
            ),'patch' => array(
1047
              'path' => 'users/{userKey}',
1048
              'httpMethod' => 'PATCH',
1049
              'parameters' => array(
1050
                'userKey' => array(
1051
                  'location' => 'path',
1052
                  'type' => 'string',
1053
                  'required' => true,
1054
                ),
1055
              ),
1056
            ),'undelete' => array(
1057
              'path' => 'users/{userKey}/undelete',
1058
              'httpMethod' => 'POST',
1059
              'parameters' => array(
1060
                'userKey' => array(
1061
                  'location' => 'path',
1062
                  'type' => 'string',
1063
                  'required' => true,
1064
                ),
1065
              ),
1066
            ),'update' => array(
1067
              'path' => 'users/{userKey}',
1068
              'httpMethod' => 'PUT',
1069
              'parameters' => array(
1070
                'userKey' => array(
1071
                  'location' => 'path',
1072
                  'type' => 'string',
1073
                  'required' => true,
1074
                ),
1075
              ),
1076
            ),'watch' => array(
1077
              'path' => 'users/watch',
1078
              'httpMethod' => 'POST',
1079
              'parameters' => array(
1080
                'customer' => array(
1081
                  'location' => 'query',
1082
                  'type' => 'string',
1083
                ),
1084
                'orderBy' => array(
1085
                  'location' => 'query',
1086
                  'type' => 'string',
1087
                ),
1088
                'domain' => array(
1089
                  'location' => 'query',
1090
                  'type' => 'string',
1091
                ),
1092
                'projection' => array(
1093
                  'location' => 'query',
1094
                  'type' => 'string',
1095
                ),
1096
                'showDeleted' => array(
1097
                  'location' => 'query',
1098
                  'type' => 'string',
1099
                ),
1100
                'customFieldMask' => array(
1101
                  'location' => 'query',
1102
                  'type' => 'string',
1103
                ),
1104
                'maxResults' => array(
1105
                  'location' => 'query',
1106
                  'type' => 'integer',
1107
                ),
1108
                'pageToken' => array(
1109
                  'location' => 'query',
1110
                  'type' => 'string',
1111
                ),
1112
                'sortOrder' => array(
1113
                  'location' => 'query',
1114
                  'type' => 'string',
1115
                ),
1116
                'query' => array(
1117
                  'location' => 'query',
1118
                  'type' => 'string',
1119
                ),
1120
                'viewType' => array(
1121
                  'location' => 'query',
1122
                  'type' => 'string',
1123
                ),
1124
                'event' => array(
1125
                  'location' => 'query',
1126
                  'type' => 'string',
1127
                ),
1128
              ),
1129
            ),
1130
          )
1131
        )
1132
    );
1133
    $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource(
1134
        $this,
1135
        $this->serviceName,
1136
        'aliases',
1137
        array(
1138
          'methods' => array(
1139
            'delete' => array(
1140
              'path' => 'users/{userKey}/aliases/{alias}',
1141
              'httpMethod' => 'DELETE',
1142
              'parameters' => array(
1143
                'userKey' => array(
1144
                  'location' => 'path',
1145
                  'type' => 'string',
1146
                  'required' => true,
1147
                ),
1148
                'alias' => array(
1149
                  'location' => 'path',
1150
                  'type' => 'string',
1151
                  'required' => true,
1152
                ),
1153
              ),
1154
            ),'insert' => array(
1155
              'path' => 'users/{userKey}/aliases',
1156
              'httpMethod' => 'POST',
1157
              'parameters' => array(
1158
                'userKey' => array(
1159
                  'location' => 'path',
1160
                  'type' => 'string',
1161
                  'required' => true,
1162
                ),
1163
              ),
1164
            ),'list' => array(
1165
              'path' => 'users/{userKey}/aliases',
1166
              'httpMethod' => 'GET',
1167
              'parameters' => array(
1168
                'userKey' => array(
1169
                  'location' => 'path',
1170
                  'type' => 'string',
1171
                  'required' => true,
1172
                ),
1173
                'event' => array(
1174
                  'location' => 'query',
1175
                  'type' => 'string',
1176
                ),
1177
              ),
1178
            ),'watch' => array(
1179
              'path' => 'users/{userKey}/aliases/watch',
1180
              'httpMethod' => 'POST',
1181
              'parameters' => array(
1182
                'userKey' => array(
1183
                  'location' => 'path',
1184
                  'type' => 'string',
1185
                  'required' => true,
1186
                ),
1187
                'event' => array(
1188
                  'location' => 'query',
1189
                  'type' => 'string',
1190
                ),
1191
              ),
1192
            ),
1193
          )
1194
        )
1195
    );
1196
    $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource(
1197
        $this,
1198
        $this->serviceName,
1199
        'photos',
1200
        array(
1201
          'methods' => array(
1202
            'delete' => array(
1203
              'path' => 'users/{userKey}/photos/thumbnail',
1204
              'httpMethod' => 'DELETE',
1205
              'parameters' => array(
1206
                'userKey' => array(
1207
                  'location' => 'path',
1208
                  'type' => 'string',
1209
                  'required' => true,
1210
                ),
1211
              ),
1212
            ),'get' => array(
1213
              'path' => 'users/{userKey}/photos/thumbnail',
1214
              'httpMethod' => 'GET',
1215
              'parameters' => array(
1216
                'userKey' => array(
1217
                  'location' => 'path',
1218
                  'type' => 'string',
1219
                  'required' => true,
1220
                ),
1221
              ),
1222
            ),'patch' => array(
1223
              'path' => 'users/{userKey}/photos/thumbnail',
1224
              'httpMethod' => 'PATCH',
1225
              'parameters' => array(
1226
                'userKey' => array(
1227
                  'location' => 'path',
1228
                  'type' => 'string',
1229
                  'required' => true,
1230
                ),
1231
              ),
1232
            ),'update' => array(
1233
              'path' => 'users/{userKey}/photos/thumbnail',
1234
              'httpMethod' => 'PUT',
1235
              'parameters' => array(
1236
                'userKey' => array(
1237
                  'location' => 'path',
1238
                  'type' => 'string',
1239
                  'required' => true,
1240
                ),
1241
              ),
1242
            ),
1243
          )
1244
        )
1245
    );
1246
    $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource(
1247
        $this,
1248
        $this->serviceName,
1249
        'verificationCodes',
1250
        array(
1251
          'methods' => array(
1252
            'generate' => array(
1253
              'path' => 'users/{userKey}/verificationCodes/generate',
1254
              'httpMethod' => 'POST',
1255
              'parameters' => array(
1256
                'userKey' => array(
1257
                  'location' => 'path',
1258
                  'type' => 'string',
1259
                  'required' => true,
1260
                ),
1261
              ),
1262
            ),'invalidate' => array(
1263
              'path' => 'users/{userKey}/verificationCodes/invalidate',
1264
              'httpMethod' => 'POST',
1265
              'parameters' => array(
1266
                'userKey' => array(
1267
                  'location' => 'path',
1268
                  'type' => 'string',
1269
                  'required' => true,
1270
                ),
1271
              ),
1272
            ),'list' => array(
1273
              'path' => 'users/{userKey}/verificationCodes',
1274
              'httpMethod' => 'GET',
1275
              'parameters' => array(
1276
                'userKey' => array(
1277
                  'location' => 'path',
1278
                  'type' => 'string',
1279
                  'required' => true,
1280
                ),
1281
              ),
1282
            ),
1283
          )
1284
        )
1285
    );
1286
  }
1287
}
1288
1289
1290
/**
1291
 * The "asps" collection of methods.
1292
 * Typical usage is:
1293
 *  <code>
1294
 *   $adminService = new Google_Service_Directory(...);
1295
 *   $asps = $adminService->asps;
1296
 *  </code>
1297
 */
1298 View Code Duplication
class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1299
{
1300
1301
  /**
1302
   * Delete an ASP issued by a user. (asps.delete)
1303
   *
1304
   * @param string $userKey Identifies the user in the API request. The value can
1305
   * be the user's primary email address, alias email address, or unique user ID.
1306
   * @param int $codeId The unique ID of the ASP to be deleted.
1307
   * @param array $optParams Optional parameters.
1308
   */
1309
  public function delete($userKey, $codeId, $optParams = array())
1310
  {
1311
    $params = array('userKey' => $userKey, 'codeId' => $codeId);
1312
    $params = array_merge($params, $optParams);
1313
    return $this->call('delete', array($params));
1314
  }
1315
1316
  /**
1317
   * Get information about an ASP issued by a user. (asps.get)
1318
   *
1319
   * @param string $userKey Identifies the user in the API request. The value can
1320
   * be the user's primary email address, alias email address, or unique user ID.
1321
   * @param int $codeId The unique ID of the ASP.
1322
   * @param array $optParams Optional parameters.
1323
   * @return Google_Service_Directory_Asp
1324
   */
1325
  public function get($userKey, $codeId, $optParams = array())
1326
  {
1327
    $params = array('userKey' => $userKey, 'codeId' => $codeId);
1328
    $params = array_merge($params, $optParams);
1329
    return $this->call('get', array($params), "Google_Service_Directory_Asp");
1330
  }
1331
1332
  /**
1333
   * List the ASPs issued by a user. (asps.listAsps)
1334
   *
1335
   * @param string $userKey Identifies the user in the API request. The value can
1336
   * be the user's primary email address, alias email address, or unique user ID.
1337
   * @param array $optParams Optional parameters.
1338
   * @return Google_Service_Directory_Asps
1339
   */
1340
  public function listAsps($userKey, $optParams = array())
1341
  {
1342
    $params = array('userKey' => $userKey);
1343
    $params = array_merge($params, $optParams);
1344
    return $this->call('list', array($params), "Google_Service_Directory_Asps");
1345
  }
1346
}
1347
1348
/**
1349
 * The "channels" collection of methods.
1350
 * Typical usage is:
1351
 *  <code>
1352
 *   $adminService = new Google_Service_Directory(...);
1353
 *   $channels = $adminService->channels;
1354
 *  </code>
1355
 */
1356 View Code Duplication
class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1357
{
1358
1359
  /**
1360
   * Stop watching resources through this channel (channels.stop)
1361
   *
1362
   * @param Google_Channel $postBody
1363
   * @param array $optParams Optional parameters.
1364
   */
1365
  public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
1366
  {
1367
    $params = array('postBody' => $postBody);
1368
    $params = array_merge($params, $optParams);
1369
    return $this->call('stop', array($params));
1370
  }
1371
}
1372
1373
/**
1374
 * The "chromeosdevices" collection of methods.
1375
 * Typical usage is:
1376
 *  <code>
1377
 *   $adminService = new Google_Service_Directory(...);
1378
 *   $chromeosdevices = $adminService->chromeosdevices;
1379
 *  </code>
1380
 */
1381
class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource
1382
{
1383
1384
  /**
1385
   * Retrieve Chrome OS Device (chromeosdevices.get)
1386
   *
1387
   * @param string $customerId Immutable id of the Google Apps account
1388
   * @param string $deviceId Immutable id of Chrome OS Device
1389
   * @param array $optParams Optional parameters.
1390
   *
1391
   * @opt_param string projection Restrict information returned to a set of
1392
   * selected fields.
1393
   * @return Google_Service_Directory_ChromeOsDevice
1394
   */
1395
  public function get($customerId, $deviceId, $optParams = array())
1396
  {
1397
    $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
1398
    $params = array_merge($params, $optParams);
1399
    return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice");
1400
  }
1401
1402
  /**
1403
   * Retrieve all Chrome OS Devices of a customer (paginated)
1404
   * (chromeosdevices.listChromeosdevices)
1405
   *
1406
   * @param string $customerId Immutable id of the Google Apps account
1407
   * @param array $optParams Optional parameters.
1408
   *
1409
   * @opt_param string orderBy Column to use for sorting results
1410
   * @opt_param string projection Restrict information returned to a set of
1411
   * selected fields.
1412
   * @opt_param int maxResults Maximum number of results to return. Default is 100
1413
   * @opt_param string pageToken Token to specify next page in the list
1414
   * @opt_param string sortOrder Whether to return results in ascending or
1415
   * descending order. Only of use when orderBy is also used
1416
   * @opt_param string query Search string in the format given at
1417
   * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
1418
   * @return Google_Service_Directory_ChromeOsDevices
1419
   */
1420
  public function listChromeosdevices($customerId, $optParams = array())
1421
  {
1422
    $params = array('customerId' => $customerId);
1423
    $params = array_merge($params, $optParams);
1424
    return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices");
1425
  }
1426
1427
  /**
1428
   * Update Chrome OS Device. This method supports patch semantics.
1429
   * (chromeosdevices.patch)
1430
   *
1431
   * @param string $customerId Immutable id of the Google Apps account
1432
   * @param string $deviceId Immutable id of Chrome OS Device
1433
   * @param Google_ChromeOsDevice $postBody
1434
   * @param array $optParams Optional parameters.
1435
   *
1436
   * @opt_param string projection Restrict information returned to a set of
1437
   * selected fields.
1438
   * @return Google_Service_Directory_ChromeOsDevice
1439
   */
1440
  public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1441
  {
1442
    $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1443
    $params = array_merge($params, $optParams);
1444
    return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice");
1445
  }
1446
1447
  /**
1448
   * Update Chrome OS Device (chromeosdevices.update)
1449
   *
1450
   * @param string $customerId Immutable id of the Google Apps account
1451
   * @param string $deviceId Immutable id of Chrome OS Device
1452
   * @param Google_ChromeOsDevice $postBody
1453
   * @param array $optParams Optional parameters.
1454
   *
1455
   * @opt_param string projection Restrict information returned to a set of
1456
   * selected fields.
1457
   * @return Google_Service_Directory_ChromeOsDevice
1458
   */
1459
  public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1460
  {
1461
    $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1462
    $params = array_merge($params, $optParams);
1463
    return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");
1464
  }
1465
}
1466
1467
/**
1468
 * The "groups" collection of methods.
1469
 * Typical usage is:
1470
 *  <code>
1471
 *   $adminService = new Google_Service_Directory(...);
1472
 *   $groups = $adminService->groups;
1473
 *  </code>
1474
 */
1475 View Code Duplication
class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1476
{
1477
1478
  /**
1479
   * Delete Group (groups.delete)
1480
   *
1481
   * @param string $groupKey Email or immutable Id of the group
1482
   * @param array $optParams Optional parameters.
1483
   */
1484
  public function delete($groupKey, $optParams = array())
1485
  {
1486
    $params = array('groupKey' => $groupKey);
1487
    $params = array_merge($params, $optParams);
1488
    return $this->call('delete', array($params));
1489
  }
1490
1491
  /**
1492
   * Retrieve Group (groups.get)
1493
   *
1494
   * @param string $groupKey Email or immutable Id of the group
1495
   * @param array $optParams Optional parameters.
1496
   * @return Google_Service_Directory_Group
1497
   */
1498
  public function get($groupKey, $optParams = array())
1499
  {
1500
    $params = array('groupKey' => $groupKey);
1501
    $params = array_merge($params, $optParams);
1502
    return $this->call('get', array($params), "Google_Service_Directory_Group");
1503
  }
1504
1505
  /**
1506
   * Create Group (groups.insert)
1507
   *
1508
   * @param Google_Group $postBody
1509
   * @param array $optParams Optional parameters.
1510
   * @return Google_Service_Directory_Group
1511
   */
1512
  public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
1513
  {
1514
    $params = array('postBody' => $postBody);
1515
    $params = array_merge($params, $optParams);
1516
    return $this->call('insert', array($params), "Google_Service_Directory_Group");
1517
  }
1518
1519
  /**
1520
   * Retrieve all groups in a domain (paginated) (groups.listGroups)
1521
   *
1522
   * @param array $optParams Optional parameters.
1523
   *
1524
   * @opt_param string customer Immutable id of the Google Apps account. In case
1525
   * of multi-domain, to fetch all groups for a customer, fill this field instead
1526
   * of domain.
1527
   * @opt_param string pageToken Token to specify next page in the list
1528
   * @opt_param string domain Name of the domain. Fill this field to get groups
1529
   * from only this domain. To return all groups in a multi-domain fill customer
1530
   * field instead.
1531
   * @opt_param int maxResults Maximum number of results to return. Default is 200
1532
   * @opt_param string userKey Email or immutable Id of the user if only those
1533
   * groups are to be listed, the given user is a member of. If Id, it should
1534
   * match with id of user object
1535
   * @return Google_Service_Directory_Groups
1536
   */
1537
  public function listGroups($optParams = array())
1538
  {
1539
    $params = array();
1540
    $params = array_merge($params, $optParams);
1541
    return $this->call('list', array($params), "Google_Service_Directory_Groups");
1542
  }
1543
1544
  /**
1545
   * Update Group. This method supports patch semantics. (groups.patch)
1546
   *
1547
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1548
   * match with id of group object
1549
   * @param Google_Group $postBody
1550
   * @param array $optParams Optional parameters.
1551
   * @return Google_Service_Directory_Group
1552
   */
1553
  public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1554
  {
1555
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1556
    $params = array_merge($params, $optParams);
1557
    return $this->call('patch', array($params), "Google_Service_Directory_Group");
1558
  }
1559
1560
  /**
1561
   * Update Group (groups.update)
1562
   *
1563
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1564
   * match with id of group object
1565
   * @param Google_Group $postBody
1566
   * @param array $optParams Optional parameters.
1567
   * @return Google_Service_Directory_Group
1568
   */
1569
  public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1570
  {
1571
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1572
    $params = array_merge($params, $optParams);
1573
    return $this->call('update', array($params), "Google_Service_Directory_Group");
1574
  }
1575
}
1576
1577
/**
1578
 * The "aliases" collection of methods.
1579
 * Typical usage is:
1580
 *  <code>
1581
 *   $adminService = new Google_Service_Directory(...);
1582
 *   $aliases = $adminService->aliases;
1583
 *  </code>
1584
 */
1585
class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource
1586
{
1587
1588
  /**
1589
   * Remove a alias for the group (aliases.delete)
1590
   *
1591
   * @param string $groupKey Email or immutable Id of the group
1592
   * @param string $alias The alias to be removed
1593
   * @param array $optParams Optional parameters.
1594
   */
1595
  public function delete($groupKey, $alias, $optParams = array())
1596
  {
1597
    $params = array('groupKey' => $groupKey, 'alias' => $alias);
1598
    $params = array_merge($params, $optParams);
1599
    return $this->call('delete', array($params));
1600
  }
1601
1602
  /**
1603
   * Add a alias for the group (aliases.insert)
1604
   *
1605
   * @param string $groupKey Email or immutable Id of the group
1606
   * @param Google_Alias $postBody
1607
   * @param array $optParams Optional parameters.
1608
   * @return Google_Service_Directory_Alias
1609
   */
1610
  public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array())
1611
  {
1612
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1613
    $params = array_merge($params, $optParams);
1614
    return $this->call('insert', array($params), "Google_Service_Directory_Alias");
1615
  }
1616
1617
  /**
1618
   * List all aliases for a group (aliases.listGroupsAliases)
1619
   *
1620
   * @param string $groupKey Email or immutable Id of the group
1621
   * @param array $optParams Optional parameters.
1622
   * @return Google_Service_Directory_Aliases
1623
   */
1624
  public function listGroupsAliases($groupKey, $optParams = array())
1625
  {
1626
    $params = array('groupKey' => $groupKey);
1627
    $params = array_merge($params, $optParams);
1628
    return $this->call('list', array($params), "Google_Service_Directory_Aliases");
1629
  }
1630
}
1631
1632
/**
1633
 * The "members" collection of methods.
1634
 * Typical usage is:
1635
 *  <code>
1636
 *   $adminService = new Google_Service_Directory(...);
1637
 *   $members = $adminService->members;
1638
 *  </code>
1639
 */
1640
class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1641
{
1642
1643
  /**
1644
   * Remove membership. (members.delete)
1645
   *
1646
   * @param string $groupKey Email or immutable Id of the group
1647
   * @param string $memberKey Email or immutable Id of the member
1648
   * @param array $optParams Optional parameters.
1649
   */
1650
  public function delete($groupKey, $memberKey, $optParams = array())
1651
  {
1652
    $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
1653
    $params = array_merge($params, $optParams);
1654
    return $this->call('delete', array($params));
1655
  }
1656
1657
  /**
1658
   * Retrieve Group Member (members.get)
1659
   *
1660
   * @param string $groupKey Email or immutable Id of the group
1661
   * @param string $memberKey Email or immutable Id of the member
1662
   * @param array $optParams Optional parameters.
1663
   * @return Google_Service_Directory_Member
1664
   */
1665
  public function get($groupKey, $memberKey, $optParams = array())
1666
  {
1667
    $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
1668
    $params = array_merge($params, $optParams);
1669
    return $this->call('get', array($params), "Google_Service_Directory_Member");
1670
  }
1671
1672
  /**
1673
   * Add user to the specified group. (members.insert)
1674
   *
1675
   * @param string $groupKey Email or immutable Id of the group
1676
   * @param Google_Member $postBody
1677
   * @param array $optParams Optional parameters.
1678
   * @return Google_Service_Directory_Member
1679
   */
1680
  public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array())
1681
  {
1682
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1683
    $params = array_merge($params, $optParams);
1684
    return $this->call('insert', array($params), "Google_Service_Directory_Member");
1685
  }
1686
1687
  /**
1688
   * Retrieve all members in a group (paginated) (members.listMembers)
1689
   *
1690
   * @param string $groupKey Email or immutable Id of the group
1691
   * @param array $optParams Optional parameters.
1692
   *
1693
   * @opt_param string pageToken Token to specify next page in the list
1694
   * @opt_param string roles Comma separated role values to filter list results
1695
   * on.
1696
   * @opt_param int maxResults Maximum number of results to return. Default is 200
1697
   * @return Google_Service_Directory_Members
1698
   */
1699
  public function listMembers($groupKey, $optParams = array())
1700
  {
1701
    $params = array('groupKey' => $groupKey);
1702
    $params = array_merge($params, $optParams);
1703
    return $this->call('list', array($params), "Google_Service_Directory_Members");
1704
  }
1705
1706
  /**
1707
   * Update membership of a user in the specified group. This method supports
1708
   * patch semantics. (members.patch)
1709
   *
1710
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1711
   * match with id of group object
1712
   * @param string $memberKey Email or immutable Id of the user. If Id, it should
1713
   * match with id of member object
1714
   * @param Google_Member $postBody
1715
   * @param array $optParams Optional parameters.
1716
   * @return Google_Service_Directory_Member
1717
   */
1718
  public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
1719
  {
1720
    $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1721
    $params = array_merge($params, $optParams);
1722
    return $this->call('patch', array($params), "Google_Service_Directory_Member");
1723
  }
1724
1725
  /**
1726
   * Update membership of a user in the specified group. (members.update)
1727
   *
1728
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1729
   * match with id of group object
1730
   * @param string $memberKey Email or immutable Id of the user. If Id, it should
1731
   * match with id of member object
1732
   * @param Google_Member $postBody
1733
   * @param array $optParams Optional parameters.
1734
   * @return Google_Service_Directory_Member
1735
   */
1736
  public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
1737
  {
1738
    $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1739
    $params = array_merge($params, $optParams);
1740
    return $this->call('update', array($params), "Google_Service_Directory_Member");
1741
  }
1742
}
1743
1744
/**
1745
 * The "mobiledevices" collection of methods.
1746
 * Typical usage is:
1747
 *  <code>
1748
 *   $adminService = new Google_Service_Directory(...);
1749
 *   $mobiledevices = $adminService->mobiledevices;
1750
 *  </code>
1751
 */
1752
class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource
1753
{
1754
1755
  /**
1756
   * Take action on Mobile Device (mobiledevices.action)
1757
   *
1758
   * @param string $customerId Immutable id of the Google Apps account
1759
   * @param string $resourceId Immutable id of Mobile Device
1760
   * @param Google_MobileDeviceAction $postBody
1761
   * @param array $optParams Optional parameters.
1762
   */
1763
  public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
1764
  {
1765
    $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
1766
    $params = array_merge($params, $optParams);
1767
    return $this->call('action', array($params));
1768
  }
1769
1770
  /**
1771
   * Delete Mobile Device (mobiledevices.delete)
1772
   *
1773
   * @param string $customerId Immutable id of the Google Apps account
1774
   * @param string $resourceId Immutable id of Mobile Device
1775
   * @param array $optParams Optional parameters.
1776
   */
1777
  public function delete($customerId, $resourceId, $optParams = array())
1778
  {
1779
    $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
1780
    $params = array_merge($params, $optParams);
1781
    return $this->call('delete', array($params));
1782
  }
1783
1784
  /**
1785
   * Retrieve Mobile Device (mobiledevices.get)
1786
   *
1787
   * @param string $customerId Immutable id of the Google Apps account
1788
   * @param string $resourceId Immutable id of Mobile Device
1789
   * @param array $optParams Optional parameters.
1790
   *
1791
   * @opt_param string projection Restrict information returned to a set of
1792
   * selected fields.
1793
   * @return Google_Service_Directory_MobileDevice
1794
   */
1795
  public function get($customerId, $resourceId, $optParams = array())
1796
  {
1797
    $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
1798
    $params = array_merge($params, $optParams);
1799
    return $this->call('get', array($params), "Google_Service_Directory_MobileDevice");
1800
  }
1801
1802
  /**
1803
   * Retrieve all Mobile Devices of a customer (paginated)
1804
   * (mobiledevices.listMobiledevices)
1805
   *
1806
   * @param string $customerId Immutable id of the Google Apps account
1807
   * @param array $optParams Optional parameters.
1808
   *
1809
   * @opt_param string orderBy Column to use for sorting results
1810
   * @opt_param string projection Restrict information returned to a set of
1811
   * selected fields.
1812
   * @opt_param int maxResults Maximum number of results to return. Default is 100
1813
   * @opt_param string pageToken Token to specify next page in the list
1814
   * @opt_param string sortOrder Whether to return results in ascending or
1815
   * descending order. Only of use when orderBy is also used
1816
   * @opt_param string query Search string in the format given at
1817
   * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
1818
   * @return Google_Service_Directory_MobileDevices
1819
   */
1820
  public function listMobiledevices($customerId, $optParams = array())
1821
  {
1822
    $params = array('customerId' => $customerId);
1823
    $params = array_merge($params, $optParams);
1824
    return $this->call('list', array($params), "Google_Service_Directory_MobileDevices");
1825
  }
1826
}
1827
1828
/**
1829
 * The "notifications" collection of methods.
1830
 * Typical usage is:
1831
 *  <code>
1832
 *   $adminService = new Google_Service_Directory(...);
1833
 *   $notifications = $adminService->notifications;
1834
 *  </code>
1835
 */
1836
class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource
1837
{
1838
1839
  /**
1840
   * Deletes a notification (notifications.delete)
1841
   *
1842
   * @param string $customer The unique ID for the customer's Google account. The
1843
   * customerId is also returned as part of the Users resource.
1844
   * @param string $notificationId The unique ID of the notification.
1845
   * @param array $optParams Optional parameters.
1846
   */
1847
  public function delete($customer, $notificationId, $optParams = array())
1848
  {
1849
    $params = array('customer' => $customer, 'notificationId' => $notificationId);
1850
    $params = array_merge($params, $optParams);
1851
    return $this->call('delete', array($params));
1852
  }
1853
1854
  /**
1855
   * Retrieves a notification. (notifications.get)
1856
   *
1857
   * @param string $customer The unique ID for the customer's Google account. The
1858
   * customerId is also returned as part of the Users resource.
1859
   * @param string $notificationId The unique ID of the notification.
1860
   * @param array $optParams Optional parameters.
1861
   * @return Google_Service_Directory_Notification
1862
   */
1863
  public function get($customer, $notificationId, $optParams = array())
1864
  {
1865
    $params = array('customer' => $customer, 'notificationId' => $notificationId);
1866
    $params = array_merge($params, $optParams);
1867
    return $this->call('get', array($params), "Google_Service_Directory_Notification");
1868
  }
1869
1870
  /**
1871
   * Retrieves a list of notifications. (notifications.listNotifications)
1872
   *
1873
   * @param string $customer The unique ID for the customer's Google account.
1874
   * @param array $optParams Optional parameters.
1875
   *
1876
   * @opt_param string pageToken The token to specify the page of results to
1877
   * retrieve.
1878
   * @opt_param string maxResults Maximum number of notifications to return per
1879
   * page. The default is 100.
1880
   * @opt_param string language The ISO 639-1 code of the language notifications
1881
   * are returned in. The default is English (en).
1882
   * @return Google_Service_Directory_Notifications
1883
   */
1884
  public function listNotifications($customer, $optParams = array())
1885
  {
1886
    $params = array('customer' => $customer);
1887
    $params = array_merge($params, $optParams);
1888
    return $this->call('list', array($params), "Google_Service_Directory_Notifications");
1889
  }
1890
1891
  /**
1892
   * Updates a notification. This method supports patch semantics.
1893
   * (notifications.patch)
1894
   *
1895
   * @param string $customer The unique ID for the customer's Google account.
1896
   * @param string $notificationId The unique ID of the notification.
1897
   * @param Google_Notification $postBody
1898
   * @param array $optParams Optional parameters.
1899
   * @return Google_Service_Directory_Notification
1900
   */
1901
  public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
1902
  {
1903
    $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1904
    $params = array_merge($params, $optParams);
1905
    return $this->call('patch', array($params), "Google_Service_Directory_Notification");
1906
  }
1907
1908
  /**
1909
   * Updates a notification. (notifications.update)
1910
   *
1911
   * @param string $customer The unique ID for the customer's Google account.
1912
   * @param string $notificationId The unique ID of the notification.
1913
   * @param Google_Notification $postBody
1914
   * @param array $optParams Optional parameters.
1915
   * @return Google_Service_Directory_Notification
1916
   */
1917
  public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
1918
  {
1919
    $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1920
    $params = array_merge($params, $optParams);
1921
    return $this->call('update', array($params), "Google_Service_Directory_Notification");
1922
  }
1923
}
1924
1925
/**
1926
 * The "orgunits" collection of methods.
1927
 * Typical usage is:
1928
 *  <code>
1929
 *   $adminService = new Google_Service_Directory(...);
1930
 *   $orgunits = $adminService->orgunits;
1931
 *  </code>
1932
 */
1933
class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1934
{
1935
1936
  /**
1937
   * Remove Organization Unit (orgunits.delete)
1938
   *
1939
   * @param string $customerId Immutable id of the Google Apps account
1940
   * @param string $orgUnitPath Full path of the organization unit or its Id
1941
   * @param array $optParams Optional parameters.
1942
   */
1943
  public function delete($customerId, $orgUnitPath, $optParams = array())
1944
  {
1945
    $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
1946
    $params = array_merge($params, $optParams);
1947
    return $this->call('delete', array($params));
1948
  }
1949
1950
  /**
1951
   * Retrieve Organization Unit (orgunits.get)
1952
   *
1953
   * @param string $customerId Immutable id of the Google Apps account
1954
   * @param string $orgUnitPath Full path of the organization unit or its Id
1955
   * @param array $optParams Optional parameters.
1956
   * @return Google_Service_Directory_OrgUnit
1957
   */
1958
  public function get($customerId, $orgUnitPath, $optParams = array())
1959
  {
1960
    $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
1961
    $params = array_merge($params, $optParams);
1962
    return $this->call('get', array($params), "Google_Service_Directory_OrgUnit");
1963
  }
1964
1965
  /**
1966
   * Add Organization Unit (orgunits.insert)
1967
   *
1968
   * @param string $customerId Immutable id of the Google Apps account
1969
   * @param Google_OrgUnit $postBody
1970
   * @param array $optParams Optional parameters.
1971
   * @return Google_Service_Directory_OrgUnit
1972
   */
1973
  public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
1974
  {
1975
    $params = array('customerId' => $customerId, 'postBody' => $postBody);
1976
    $params = array_merge($params, $optParams);
1977
    return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit");
1978
  }
1979
1980
  /**
1981
   * Retrieve all Organization Units (orgunits.listOrgunits)
1982
   *
1983
   * @param string $customerId Immutable id of the Google Apps account
1984
   * @param array $optParams Optional parameters.
1985
   *
1986
   * @opt_param string type Whether to return all sub-organizations or just
1987
   * immediate children
1988
   * @opt_param string orgUnitPath the URL-encoded organization unit's path or its
1989
   * Id
1990
   * @return Google_Service_Directory_OrgUnits
1991
   */
1992
  public function listOrgunits($customerId, $optParams = array())
1993
  {
1994
    $params = array('customerId' => $customerId);
1995
    $params = array_merge($params, $optParams);
1996
    return $this->call('list', array($params), "Google_Service_Directory_OrgUnits");
1997
  }
1998
1999
  /**
2000
   * Update Organization Unit. This method supports patch semantics.
2001
   * (orgunits.patch)
2002
   *
2003
   * @param string $customerId Immutable id of the Google Apps account
2004
   * @param string $orgUnitPath Full path of the organization unit or its Id
2005
   * @param Google_OrgUnit $postBody
2006
   * @param array $optParams Optional parameters.
2007
   * @return Google_Service_Directory_OrgUnit
2008
   */
2009
  public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
2010
  {
2011
    $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
2012
    $params = array_merge($params, $optParams);
2013
    return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit");
2014
  }
2015
2016
  /**
2017
   * Update Organization Unit (orgunits.update)
2018
   *
2019
   * @param string $customerId Immutable id of the Google Apps account
2020
   * @param string $orgUnitPath Full path of the organization unit or its Id
2021
   * @param Google_OrgUnit $postBody
2022
   * @param array $optParams Optional parameters.
2023
   * @return Google_Service_Directory_OrgUnit
2024
   */
2025
  public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
2026
  {
2027
    $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
2028
    $params = array_merge($params, $optParams);
2029
    return $this->call('update', array($params), "Google_Service_Directory_OrgUnit");
2030
  }
2031
}
2032
2033
/**
2034
 * The "schemas" collection of methods.
2035
 * Typical usage is:
2036
 *  <code>
2037
 *   $adminService = new Google_Service_Directory(...);
2038
 *   $schemas = $adminService->schemas;
2039
 *  </code>
2040
 */
2041
class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource
2042
{
2043
2044
  /**
2045
   * Delete schema (schemas.delete)
2046
   *
2047
   * @param string $customerId Immutable id of the Google Apps account
2048
   * @param string $schemaKey Name or immutable Id of the schema
2049
   * @param array $optParams Optional parameters.
2050
   */
2051
  public function delete($customerId, $schemaKey, $optParams = array())
2052
  {
2053
    $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
2054
    $params = array_merge($params, $optParams);
2055
    return $this->call('delete', array($params));
2056
  }
2057
2058
  /**
2059
   * Retrieve schema (schemas.get)
2060
   *
2061
   * @param string $customerId Immutable id of the Google Apps account
2062
   * @param string $schemaKey Name or immutable Id of the schema
2063
   * @param array $optParams Optional parameters.
2064
   * @return Google_Service_Directory_Schema
2065
   */
2066
  public function get($customerId, $schemaKey, $optParams = array())
2067
  {
2068
    $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
2069
    $params = array_merge($params, $optParams);
2070
    return $this->call('get', array($params), "Google_Service_Directory_Schema");
2071
  }
2072
2073
  /**
2074
   * Create schema. (schemas.insert)
2075
   *
2076
   * @param string $customerId Immutable id of the Google Apps account
2077
   * @param Google_Schema $postBody
2078
   * @param array $optParams Optional parameters.
2079
   * @return Google_Service_Directory_Schema
2080
   */
2081
  public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array())
2082
  {
2083
    $params = array('customerId' => $customerId, 'postBody' => $postBody);
2084
    $params = array_merge($params, $optParams);
2085
    return $this->call('insert', array($params), "Google_Service_Directory_Schema");
2086
  }
2087
2088
  /**
2089
   * Retrieve all schemas for a customer (schemas.listSchemas)
2090
   *
2091
   * @param string $customerId Immutable id of the Google Apps account
2092
   * @param array $optParams Optional parameters.
2093
   * @return Google_Service_Directory_Schemas
2094
   */
2095
  public function listSchemas($customerId, $optParams = array())
2096
  {
2097
    $params = array('customerId' => $customerId);
2098
    $params = array_merge($params, $optParams);
2099
    return $this->call('list', array($params), "Google_Service_Directory_Schemas");
2100
  }
2101
2102
  /**
2103
   * Update schema. This method supports patch semantics. (schemas.patch)
2104
   *
2105
   * @param string $customerId Immutable id of the Google Apps account
2106
   * @param string $schemaKey Name or immutable Id of the schema.
2107
   * @param Google_Schema $postBody
2108
   * @param array $optParams Optional parameters.
2109
   * @return Google_Service_Directory_Schema
2110
   */
2111
  public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
2112
  {
2113
    $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
2114
    $params = array_merge($params, $optParams);
2115
    return $this->call('patch', array($params), "Google_Service_Directory_Schema");
2116
  }
2117
2118
  /**
2119
   * Update schema (schemas.update)
2120
   *
2121
   * @param string $customerId Immutable id of the Google Apps account
2122
   * @param string $schemaKey Name or immutable Id of the schema.
2123
   * @param Google_Schema $postBody
2124
   * @param array $optParams Optional parameters.
2125
   * @return Google_Service_Directory_Schema
2126
   */
2127
  public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
2128
  {
2129
    $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
2130
    $params = array_merge($params, $optParams);
2131
    return $this->call('update', array($params), "Google_Service_Directory_Schema");
2132
  }
2133
}
2134
2135
/**
2136
 * The "tokens" collection of methods.
2137
 * Typical usage is:
2138
 *  <code>
2139
 *   $adminService = new Google_Service_Directory(...);
2140
 *   $tokens = $adminService->tokens;
2141
 *  </code>
2142
 */
2143 View Code Duplication
class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
2144
{
2145
2146
  /**
2147
   * Delete all access tokens issued by a user for an application. (tokens.delete)
2148
   *
2149
   * @param string $userKey Identifies the user in the API request. The value can
2150
   * be the user's primary email address, alias email address, or unique user ID.
2151
   * @param string $clientId The Client ID of the application the token is issued
2152
   * to.
2153
   * @param array $optParams Optional parameters.
2154
   */
2155
  public function delete($userKey, $clientId, $optParams = array())
2156
  {
2157
    $params = array('userKey' => $userKey, 'clientId' => $clientId);
2158
    $params = array_merge($params, $optParams);
2159
    return $this->call('delete', array($params));
2160
  }
2161
2162
  /**
2163
   * Get information about an access token issued by a user. (tokens.get)
2164
   *
2165
   * @param string $userKey Identifies the user in the API request. The value can
2166
   * be the user's primary email address, alias email address, or unique user ID.
2167
   * @param string $clientId The Client ID of the application the token is issued
2168
   * to.
2169
   * @param array $optParams Optional parameters.
2170
   * @return Google_Service_Directory_Token
2171
   */
2172
  public function get($userKey, $clientId, $optParams = array())
2173
  {
2174
    $params = array('userKey' => $userKey, 'clientId' => $clientId);
2175
    $params = array_merge($params, $optParams);
2176
    return $this->call('get', array($params), "Google_Service_Directory_Token");
2177
  }
2178
2179
  /**
2180
   * Returns the set of tokens specified user has issued to 3rd party
2181
   * applications. (tokens.listTokens)
2182
   *
2183
   * @param string $userKey Identifies the user in the API request. The value can
2184
   * be the user's primary email address, alias email address, or unique user ID.
2185
   * @param array $optParams Optional parameters.
2186
   * @return Google_Service_Directory_Tokens
2187
   */
2188
  public function listTokens($userKey, $optParams = array())
2189
  {
2190
    $params = array('userKey' => $userKey);
2191
    $params = array_merge($params, $optParams);
2192
    return $this->call('list', array($params), "Google_Service_Directory_Tokens");
2193
  }
2194
}
2195
2196
/**
2197
 * The "users" collection of methods.
2198
 * Typical usage is:
2199
 *  <code>
2200
 *   $adminService = new Google_Service_Directory(...);
2201
 *   $users = $adminService->users;
2202
 *  </code>
2203
 */
2204
class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2205
{
2206
2207
  /**
2208
   * Delete user (users.delete)
2209
   *
2210
   * @param string $userKey Email or immutable Id of the user
2211
   * @param array $optParams Optional parameters.
2212
   */
2213
  public function delete($userKey, $optParams = array())
2214
  {
2215
    $params = array('userKey' => $userKey);
2216
    $params = array_merge($params, $optParams);
2217
    return $this->call('delete', array($params));
2218
  }
2219
2220
  /**
2221
   * retrieve user (users.get)
2222
   *
2223
   * @param string $userKey Email or immutable Id of the user
2224
   * @param array $optParams Optional parameters.
2225
   *
2226
   * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
2227
   * view of the user.
2228
   * @opt_param string customFieldMask Comma-separated list of schema names. All
2229
   * fields from these schemas are fetched. This should only be set when
2230
   * projection=custom.
2231
   * @opt_param string projection What subset of fields to fetch for this user.
2232
   * @return Google_Service_Directory_User
2233
   */
2234
  public function get($userKey, $optParams = array())
2235
  {
2236
    $params = array('userKey' => $userKey);
2237
    $params = array_merge($params, $optParams);
2238
    return $this->call('get', array($params), "Google_Service_Directory_User");
2239
  }
2240
2241
  /**
2242
   * create user. (users.insert)
2243
   *
2244
   * @param Google_User $postBody
2245
   * @param array $optParams Optional parameters.
2246
   * @return Google_Service_Directory_User
2247
   */
2248
  public function insert(Google_Service_Directory_User $postBody, $optParams = array())
2249
  {
2250
    $params = array('postBody' => $postBody);
2251
    $params = array_merge($params, $optParams);
2252
    return $this->call('insert', array($params), "Google_Service_Directory_User");
2253
  }
2254
2255
  /**
2256
   * Retrieve either deleted users or all users in a domain (paginated)
2257
   * (users.listUsers)
2258
   *
2259
   * @param array $optParams Optional parameters.
2260
   *
2261
   * @opt_param string customer Immutable id of the Google Apps account. In case
2262
   * of multi-domain, to fetch all users for a customer, fill this field instead
2263
   * of domain.
2264
   * @opt_param string orderBy Column to use for sorting results
2265
   * @opt_param string domain Name of the domain. Fill this field to get users
2266
   * from only this domain. To return all users in a multi-domain fill customer
2267
   * field instead.
2268
   * @opt_param string projection What subset of fields to fetch for this user.
2269
   * @opt_param string showDeleted If set to true retrieves the list of deleted
2270
   * users. Default is false
2271
   * @opt_param string customFieldMask Comma-separated list of schema names. All
2272
   * fields from these schemas are fetched. This should only be set when
2273
   * projection=custom.
2274
   * @opt_param int maxResults Maximum number of results to return. Default is
2275
   * 100. Max allowed is 500
2276
   * @opt_param string pageToken Token to specify next page in the list
2277
   * @opt_param string sortOrder Whether to return results in ascending or
2278
   * descending order.
2279
   * @opt_param string query Query string search. Should be of the form "".
2280
   * Complete documentation is at https://developers.google.com/admin-
2281
   * sdk/directory/v1/guides/search-users
2282
   * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
2283
   * view of the user.
2284
   * @opt_param string event Event on which subscription is intended (if
2285
   * subscribing)
2286
   * @return Google_Service_Directory_Users
2287
   */
2288
  public function listUsers($optParams = array())
2289
  {
2290
    $params = array();
2291
    $params = array_merge($params, $optParams);
2292
    return $this->call('list', array($params), "Google_Service_Directory_Users");
2293
  }
2294
2295
  /**
2296
   * change admin status of a user (users.makeAdmin)
2297
   *
2298
   * @param string $userKey Email or immutable Id of the user as admin
2299
   * @param Google_UserMakeAdmin $postBody
2300
   * @param array $optParams Optional parameters.
2301
   */
2302
  public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
2303
  {
2304
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2305
    $params = array_merge($params, $optParams);
2306
    return $this->call('makeAdmin', array($params));
2307
  }
2308
2309
  /**
2310
   * update user. This method supports patch semantics. (users.patch)
2311
   *
2312
   * @param string $userKey Email or immutable Id of the user. If Id, it should
2313
   * match with id of user object
2314
   * @param Google_User $postBody
2315
   * @param array $optParams Optional parameters.
2316
   * @return Google_Service_Directory_User
2317
   */
2318
  public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array())
2319
  {
2320
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2321
    $params = array_merge($params, $optParams);
2322
    return $this->call('patch', array($params), "Google_Service_Directory_User");
2323
  }
2324
2325
  /**
2326
   * Undelete a deleted user (users.undelete)
2327
   *
2328
   * @param string $userKey The immutable id of the user
2329
   * @param Google_UserUndelete $postBody
2330
   * @param array $optParams Optional parameters.
2331
   */
2332
  public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array())
2333
  {
2334
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2335
    $params = array_merge($params, $optParams);
2336
    return $this->call('undelete', array($params));
2337
  }
2338
2339
  /**
2340
   * update user (users.update)
2341
   *
2342
   * @param string $userKey Email or immutable Id of the user. If Id, it should
2343
   * match with id of user object
2344
   * @param Google_User $postBody
2345
   * @param array $optParams Optional parameters.
2346
   * @return Google_Service_Directory_User
2347
   */
2348
  public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array())
2349
  {
2350
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2351
    $params = array_merge($params, $optParams);
2352
    return $this->call('update', array($params), "Google_Service_Directory_User");
2353
  }
2354
2355
  /**
2356
   * Watch for changes in users list (users.watch)
2357
   *
2358
   * @param Google_Channel $postBody
2359
   * @param array $optParams Optional parameters.
2360
   *
2361
   * @opt_param string customer Immutable id of the Google Apps account. In case
2362
   * of multi-domain, to fetch all users for a customer, fill this field instead
2363
   * of domain.
2364
   * @opt_param string orderBy Column to use for sorting results
2365
   * @opt_param string domain Name of the domain. Fill this field to get users
2366
   * from only this domain. To return all users in a multi-domain fill customer
2367
   * field instead.
2368
   * @opt_param string projection What subset of fields to fetch for this user.
2369
   * @opt_param string showDeleted If set to true retrieves the list of deleted
2370
   * users. Default is false
2371
   * @opt_param string customFieldMask Comma-separated list of schema names. All
2372
   * fields from these schemas are fetched. This should only be set when
2373
   * projection=custom.
2374
   * @opt_param int maxResults Maximum number of results to return. Default is
2375
   * 100. Max allowed is 500
2376
   * @opt_param string pageToken Token to specify next page in the list
2377
   * @opt_param string sortOrder Whether to return results in ascending or
2378
   * descending order.
2379
   * @opt_param string query Query string search. Should be of the form "".
2380
   * Complete documentation is at https://developers.google.com/admin-
2381
   * sdk/directory/v1/guides/search-users
2382
   * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
2383
   * view of the user.
2384
   * @opt_param string event Event on which subscription is intended (if
2385
   * subscribing)
2386
   * @return Google_Service_Directory_Channel
2387
   */
2388
  public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
2389
  {
2390
    $params = array('postBody' => $postBody);
2391
    $params = array_merge($params, $optParams);
2392
    return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2393
  }
2394
}
2395
2396
/**
2397
 * The "aliases" collection of methods.
2398
 * Typical usage is:
2399
 *  <code>
2400
 *   $adminService = new Google_Service_Directory(...);
2401
 *   $aliases = $adminService->aliases;
2402
 *  </code>
2403
 */
2404
class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource
2405
{
2406
2407
  /**
2408
   * Remove a alias for the user (aliases.delete)
2409
   *
2410
   * @param string $userKey Email or immutable Id of the user
2411
   * @param string $alias The alias to be removed
2412
   * @param array $optParams Optional parameters.
2413
   */
2414
  public function delete($userKey, $alias, $optParams = array())
2415
  {
2416
    $params = array('userKey' => $userKey, 'alias' => $alias);
2417
    $params = array_merge($params, $optParams);
2418
    return $this->call('delete', array($params));
2419
  }
2420
2421
  /**
2422
   * Add a alias for the user (aliases.insert)
2423
   *
2424
   * @param string $userKey Email or immutable Id of the user
2425
   * @param Google_Alias $postBody
2426
   * @param array $optParams Optional parameters.
2427
   * @return Google_Service_Directory_Alias
2428
   */
2429
  public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array())
2430
  {
2431
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2432
    $params = array_merge($params, $optParams);
2433
    return $this->call('insert', array($params), "Google_Service_Directory_Alias");
2434
  }
2435
2436
  /**
2437
   * List all aliases for a user (aliases.listUsersAliases)
2438
   *
2439
   * @param string $userKey Email or immutable Id of the user
2440
   * @param array $optParams Optional parameters.
2441
   *
2442
   * @opt_param string event Event on which subscription is intended (if
2443
   * subscribing)
2444
   * @return Google_Service_Directory_Aliases
2445
   */
2446
  public function listUsersAliases($userKey, $optParams = array())
2447
  {
2448
    $params = array('userKey' => $userKey);
2449
    $params = array_merge($params, $optParams);
2450
    return $this->call('list', array($params), "Google_Service_Directory_Aliases");
2451
  }
2452
2453
  /**
2454
   * Watch for changes in user aliases list (aliases.watch)
2455
   *
2456
   * @param string $userKey Email or immutable Id of the user
2457
   * @param Google_Channel $postBody
2458
   * @param array $optParams Optional parameters.
2459
   *
2460
   * @opt_param string event Event on which subscription is intended (if
2461
   * subscribing)
2462
   * @return Google_Service_Directory_Channel
2463
   */
2464
  public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
2465
  {
2466
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2467
    $params = array_merge($params, $optParams);
2468
    return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2469
  }
2470
}
2471
/**
2472
 * The "photos" collection of methods.
2473
 * Typical usage is:
2474
 *  <code>
2475
 *   $adminService = new Google_Service_Directory(...);
2476
 *   $photos = $adminService->photos;
2477
 *  </code>
2478
 */
2479
class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource
2480
{
2481
2482
  /**
2483
   * Remove photos for the user (photos.delete)
2484
   *
2485
   * @param string $userKey Email or immutable Id of the user
2486
   * @param array $optParams Optional parameters.
2487
   */
2488
  public function delete($userKey, $optParams = array())
2489
  {
2490
    $params = array('userKey' => $userKey);
2491
    $params = array_merge($params, $optParams);
2492
    return $this->call('delete', array($params));
2493
  }
2494
2495
  /**
2496
   * Retrieve photo of a user (photos.get)
2497
   *
2498
   * @param string $userKey Email or immutable Id of the user
2499
   * @param array $optParams Optional parameters.
2500
   * @return Google_Service_Directory_UserPhoto
2501
   */
2502
  public function get($userKey, $optParams = array())
2503
  {
2504
    $params = array('userKey' => $userKey);
2505
    $params = array_merge($params, $optParams);
2506
    return $this->call('get', array($params), "Google_Service_Directory_UserPhoto");
2507
  }
2508
2509
  /**
2510
   * Add a photo for the user. This method supports patch semantics.
2511
   * (photos.patch)
2512
   *
2513
   * @param string $userKey Email or immutable Id of the user
2514
   * @param Google_UserPhoto $postBody
2515
   * @param array $optParams Optional parameters.
2516
   * @return Google_Service_Directory_UserPhoto
2517
   */
2518
  public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
2519
  {
2520
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2521
    $params = array_merge($params, $optParams);
2522
    return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto");
2523
  }
2524
2525
  /**
2526
   * Add a photo for the user (photos.update)
2527
   *
2528
   * @param string $userKey Email or immutable Id of the user
2529
   * @param Google_UserPhoto $postBody
2530
   * @param array $optParams Optional parameters.
2531
   * @return Google_Service_Directory_UserPhoto
2532
   */
2533
  public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
2534
  {
2535
    $params = array('userKey' => $userKey, 'postBody' => $postBody);
2536
    $params = array_merge($params, $optParams);
2537
    return $this->call('update', array($params), "Google_Service_Directory_UserPhoto");
2538
  }
2539
}
2540
2541
/**
2542
 * The "verificationCodes" collection of methods.
2543
 * Typical usage is:
2544
 *  <code>
2545
 *   $adminService = new Google_Service_Directory(...);
2546
 *   $verificationCodes = $adminService->verificationCodes;
2547
 *  </code>
2548
 */
2549
class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource
2550
{
2551
2552
  /**
2553
   * Generate new backup verification codes for the user.
2554
   * (verificationCodes.generate)
2555
   *
2556
   * @param string $userKey Email or immutable Id of the user
2557
   * @param array $optParams Optional parameters.
2558
   */
2559
  public function generate($userKey, $optParams = array())
2560
  {
2561
    $params = array('userKey' => $userKey);
2562
    $params = array_merge($params, $optParams);
2563
    return $this->call('generate', array($params));
2564
  }
2565
2566
  /**
2567
   * Invalidate the current backup verification codes for the user.
2568
   * (verificationCodes.invalidate)
2569
   *
2570
   * @param string $userKey Email or immutable Id of the user
2571
   * @param array $optParams Optional parameters.
2572
   */
2573
  public function invalidate($userKey, $optParams = array())
2574
  {
2575
    $params = array('userKey' => $userKey);
2576
    $params = array_merge($params, $optParams);
2577
    return $this->call('invalidate', array($params));
2578
  }
2579
2580
  /**
2581
   * Returns the current set of valid backup verification codes for the specified
2582
   * user. (verificationCodes.listVerificationCodes)
2583
   *
2584
   * @param string $userKey Identifies the user in the API request. The value can
2585
   * be the user's primary email address, alias email address, or unique user ID.
2586
   * @param array $optParams Optional parameters.
2587
   * @return Google_Service_Directory_VerificationCodes
2588
   */
2589
  public function listVerificationCodes($userKey, $optParams = array())
2590
  {
2591
    $params = array('userKey' => $userKey);
2592
    $params = array_merge($params, $optParams);
2593
    return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes");
2594
  }
2595
}
2596
2597
2598
2599
2600
class Google_Service_Directory_Alias extends Google_Model
2601
{
2602
  protected $internal_gapi_mappings = array(
2603
  );
2604
  public $alias;
2605
  public $etag;
2606
  public $id;
2607
  public $kind;
2608
  public $primaryEmail;
2609
2610
2611
  public function setAlias($alias)
2612
  {
2613
    $this->alias = $alias;
2614
  }
2615
  public function getAlias()
2616
  {
2617
    return $this->alias;
2618
  }
2619
  public function setEtag($etag)
2620
  {
2621
    $this->etag = $etag;
2622
  }
2623
  public function getEtag()
2624
  {
2625
    return $this->etag;
2626
  }
2627
  public function setId($id)
2628
  {
2629
    $this->id = $id;
2630
  }
2631
  public function getId()
2632
  {
2633
    return $this->id;
2634
  }
2635
  public function setKind($kind)
2636
  {
2637
    $this->kind = $kind;
2638
  }
2639
  public function getKind()
2640
  {
2641
    return $this->kind;
2642
  }
2643
  public function setPrimaryEmail($primaryEmail)
2644
  {
2645
    $this->primaryEmail = $primaryEmail;
2646
  }
2647
  public function getPrimaryEmail()
2648
  {
2649
    return $this->primaryEmail;
2650
  }
2651
}
2652
2653 View Code Duplication
class Google_Service_Directory_Aliases extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
2654
{
2655
  protected $collection_key = 'aliases';
2656
  protected $internal_gapi_mappings = array(
2657
  );
2658
  protected $aliasesType = 'Google_Service_Directory_Alias';
2659
  protected $aliasesDataType = 'array';
2660
  public $etag;
2661
  public $kind;
2662
2663
2664
  public function setAliases($aliases)
2665
  {
2666
    $this->aliases = $aliases;
2667
  }
2668
  public function getAliases()
2669
  {
2670
    return $this->aliases;
2671
  }
2672
  public function setEtag($etag)
2673
  {
2674
    $this->etag = $etag;
2675
  }
2676
  public function getEtag()
2677
  {
2678
    return $this->etag;
2679
  }
2680
  public function setKind($kind)
2681
  {
2682
    $this->kind = $kind;
2683
  }
2684
  public function getKind()
2685
  {
2686
    return $this->kind;
2687
  }
2688
}
2689
2690
class Google_Service_Directory_Asp extends Google_Model
2691
{
2692
  protected $internal_gapi_mappings = array(
2693
  );
2694
  public $codeId;
2695
  public $creationTime;
2696
  public $etag;
2697
  public $kind;
2698
  public $lastTimeUsed;
2699
  public $name;
2700
  public $userKey;
2701
2702
2703
  public function setCodeId($codeId)
2704
  {
2705
    $this->codeId = $codeId;
2706
  }
2707
  public function getCodeId()
2708
  {
2709
    return $this->codeId;
2710
  }
2711
  public function setCreationTime($creationTime)
2712
  {
2713
    $this->creationTime = $creationTime;
2714
  }
2715
  public function getCreationTime()
2716
  {
2717
    return $this->creationTime;
2718
  }
2719
  public function setEtag($etag)
2720
  {
2721
    $this->etag = $etag;
2722
  }
2723
  public function getEtag()
2724
  {
2725
    return $this->etag;
2726
  }
2727
  public function setKind($kind)
2728
  {
2729
    $this->kind = $kind;
2730
  }
2731
  public function getKind()
2732
  {
2733
    return $this->kind;
2734
  }
2735
  public function setLastTimeUsed($lastTimeUsed)
2736
  {
2737
    $this->lastTimeUsed = $lastTimeUsed;
2738
  }
2739
  public function getLastTimeUsed()
2740
  {
2741
    return $this->lastTimeUsed;
2742
  }
2743
  public function setName($name)
2744
  {
2745
    $this->name = $name;
2746
  }
2747
  public function getName()
2748
  {
2749
    return $this->name;
2750
  }
2751
  public function setUserKey($userKey)
2752
  {
2753
    $this->userKey = $userKey;
2754
  }
2755
  public function getUserKey()
2756
  {
2757
    return $this->userKey;
2758
  }
2759
}
2760
2761
class Google_Service_Directory_Asps extends Google_Collection
2762
{
2763
  protected $collection_key = 'items';
2764
  protected $internal_gapi_mappings = array(
2765
  );
2766
  public $etag;
2767
  protected $itemsType = 'Google_Service_Directory_Asp';
2768
  protected $itemsDataType = 'array';
2769
  public $kind;
2770
2771
2772
  public function setEtag($etag)
2773
  {
2774
    $this->etag = $etag;
2775
  }
2776
  public function getEtag()
2777
  {
2778
    return $this->etag;
2779
  }
2780
  public function setItems($items)
2781
  {
2782
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
2783
  }
2784
  public function getItems()
2785
  {
2786
    return $this->items;
2787
  }
2788
  public function setKind($kind)
2789
  {
2790
    $this->kind = $kind;
2791
  }
2792
  public function getKind()
2793
  {
2794
    return $this->kind;
2795
  }
2796
}
2797
2798 View Code Duplication
class Google_Service_Directory_Channel extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
2799
{
2800
  protected $internal_gapi_mappings = array(
2801
  );
2802
  public $address;
2803
  public $expiration;
2804
  public $id;
2805
  public $kind;
2806
  public $params;
2807
  public $payload;
2808
  public $resourceId;
2809
  public $resourceUri;
2810
  public $token;
2811
  public $type;
2812
2813
2814
  public function setAddress($address)
2815
  {
2816
    $this->address = $address;
2817
  }
2818
  public function getAddress()
2819
  {
2820
    return $this->address;
2821
  }
2822
  public function setExpiration($expiration)
2823
  {
2824
    $this->expiration = $expiration;
2825
  }
2826
  public function getExpiration()
2827
  {
2828
    return $this->expiration;
2829
  }
2830
  public function setId($id)
2831
  {
2832
    $this->id = $id;
2833
  }
2834
  public function getId()
2835
  {
2836
    return $this->id;
2837
  }
2838
  public function setKind($kind)
2839
  {
2840
    $this->kind = $kind;
2841
  }
2842
  public function getKind()
2843
  {
2844
    return $this->kind;
2845
  }
2846
  public function setParams($params)
2847
  {
2848
    $this->params = $params;
2849
  }
2850
  public function getParams()
2851
  {
2852
    return $this->params;
2853
  }
2854
  public function setPayload($payload)
2855
  {
2856
    $this->payload = $payload;
2857
  }
2858
  public function getPayload()
2859
  {
2860
    return $this->payload;
2861
  }
2862
  public function setResourceId($resourceId)
2863
  {
2864
    $this->resourceId = $resourceId;
2865
  }
2866
  public function getResourceId()
2867
  {
2868
    return $this->resourceId;
2869
  }
2870
  public function setResourceUri($resourceUri)
2871
  {
2872
    $this->resourceUri = $resourceUri;
2873
  }
2874
  public function getResourceUri()
2875
  {
2876
    return $this->resourceUri;
2877
  }
2878
  public function setToken($token)
2879
  {
2880
    $this->token = $token;
2881
  }
2882
  public function getToken()
2883
  {
2884
    return $this->token;
2885
  }
2886
  public function setType($type)
2887
  {
2888
    $this->type = $type;
2889
  }
2890
  public function getType()
2891
  {
2892
    return $this->type;
2893
  }
2894
}
2895
2896
class Google_Service_Directory_ChannelParams extends Google_Model
2897
{
2898
}
2899
2900
class Google_Service_Directory_ChromeOsDevice extends Google_Collection
2901
{
2902
  protected $collection_key = 'recentUsers';
2903
  protected $internal_gapi_mappings = array(
2904
  );
2905
  protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges';
2906
  protected $activeTimeRangesDataType = 'array';
2907
  public $annotatedAssetId;
2908
  public $annotatedLocation;
2909
  public $annotatedUser;
2910
  public $bootMode;
2911
  public $deviceId;
2912
  public $etag;
2913
  public $ethernetMacAddress;
2914
  public $firmwareVersion;
2915
  public $kind;
2916
  public $lastEnrollmentTime;
2917
  public $lastSync;
2918
  public $macAddress;
2919
  public $meid;
2920
  public $model;
2921
  public $notes;
2922
  public $orderNumber;
2923
  public $orgUnitPath;
2924
  public $osVersion;
2925
  public $platformVersion;
2926
  protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers';
2927
  protected $recentUsersDataType = 'array';
2928
  public $serialNumber;
2929
  public $status;
2930
  public $supportEndDate;
2931
  public $willAutoRenew;
2932
2933
2934
  public function setActiveTimeRanges($activeTimeRanges)
2935
  {
2936
    $this->activeTimeRanges = $activeTimeRanges;
2937
  }
2938
  public function getActiveTimeRanges()
2939
  {
2940
    return $this->activeTimeRanges;
2941
  }
2942
  public function setAnnotatedAssetId($annotatedAssetId)
2943
  {
2944
    $this->annotatedAssetId = $annotatedAssetId;
2945
  }
2946
  public function getAnnotatedAssetId()
2947
  {
2948
    return $this->annotatedAssetId;
2949
  }
2950
  public function setAnnotatedLocation($annotatedLocation)
2951
  {
2952
    $this->annotatedLocation = $annotatedLocation;
2953
  }
2954
  public function getAnnotatedLocation()
2955
  {
2956
    return $this->annotatedLocation;
2957
  }
2958
  public function setAnnotatedUser($annotatedUser)
2959
  {
2960
    $this->annotatedUser = $annotatedUser;
2961
  }
2962
  public function getAnnotatedUser()
2963
  {
2964
    return $this->annotatedUser;
2965
  }
2966
  public function setBootMode($bootMode)
2967
  {
2968
    $this->bootMode = $bootMode;
2969
  }
2970
  public function getBootMode()
2971
  {
2972
    return $this->bootMode;
2973
  }
2974
  public function setDeviceId($deviceId)
2975
  {
2976
    $this->deviceId = $deviceId;
2977
  }
2978
  public function getDeviceId()
2979
  {
2980
    return $this->deviceId;
2981
  }
2982
  public function setEtag($etag)
2983
  {
2984
    $this->etag = $etag;
2985
  }
2986
  public function getEtag()
2987
  {
2988
    return $this->etag;
2989
  }
2990
  public function setEthernetMacAddress($ethernetMacAddress)
2991
  {
2992
    $this->ethernetMacAddress = $ethernetMacAddress;
2993
  }
2994
  public function getEthernetMacAddress()
2995
  {
2996
    return $this->ethernetMacAddress;
2997
  }
2998
  public function setFirmwareVersion($firmwareVersion)
2999
  {
3000
    $this->firmwareVersion = $firmwareVersion;
3001
  }
3002
  public function getFirmwareVersion()
3003
  {
3004
    return $this->firmwareVersion;
3005
  }
3006
  public function setKind($kind)
3007
  {
3008
    $this->kind = $kind;
3009
  }
3010
  public function getKind()
3011
  {
3012
    return $this->kind;
3013
  }
3014
  public function setLastEnrollmentTime($lastEnrollmentTime)
3015
  {
3016
    $this->lastEnrollmentTime = $lastEnrollmentTime;
3017
  }
3018
  public function getLastEnrollmentTime()
3019
  {
3020
    return $this->lastEnrollmentTime;
3021
  }
3022
  public function setLastSync($lastSync)
3023
  {
3024
    $this->lastSync = $lastSync;
3025
  }
3026
  public function getLastSync()
3027
  {
3028
    return $this->lastSync;
3029
  }
3030
  public function setMacAddress($macAddress)
3031
  {
3032
    $this->macAddress = $macAddress;
3033
  }
3034
  public function getMacAddress()
3035
  {
3036
    return $this->macAddress;
3037
  }
3038
  public function setMeid($meid)
3039
  {
3040
    $this->meid = $meid;
3041
  }
3042
  public function getMeid()
3043
  {
3044
    return $this->meid;
3045
  }
3046
  public function setModel($model)
3047
  {
3048
    $this->model = $model;
3049
  }
3050
  public function getModel()
3051
  {
3052
    return $this->model;
3053
  }
3054
  public function setNotes($notes)
3055
  {
3056
    $this->notes = $notes;
3057
  }
3058
  public function getNotes()
3059
  {
3060
    return $this->notes;
3061
  }
3062
  public function setOrderNumber($orderNumber)
3063
  {
3064
    $this->orderNumber = $orderNumber;
3065
  }
3066
  public function getOrderNumber()
3067
  {
3068
    return $this->orderNumber;
3069
  }
3070
  public function setOrgUnitPath($orgUnitPath)
3071
  {
3072
    $this->orgUnitPath = $orgUnitPath;
3073
  }
3074
  public function getOrgUnitPath()
3075
  {
3076
    return $this->orgUnitPath;
3077
  }
3078
  public function setOsVersion($osVersion)
3079
  {
3080
    $this->osVersion = $osVersion;
3081
  }
3082
  public function getOsVersion()
3083
  {
3084
    return $this->osVersion;
3085
  }
3086
  public function setPlatformVersion($platformVersion)
3087
  {
3088
    $this->platformVersion = $platformVersion;
3089
  }
3090
  public function getPlatformVersion()
3091
  {
3092
    return $this->platformVersion;
3093
  }
3094
  public function setRecentUsers($recentUsers)
3095
  {
3096
    $this->recentUsers = $recentUsers;
3097
  }
3098
  public function getRecentUsers()
3099
  {
3100
    return $this->recentUsers;
3101
  }
3102
  public function setSerialNumber($serialNumber)
3103
  {
3104
    $this->serialNumber = $serialNumber;
3105
  }
3106
  public function getSerialNumber()
3107
  {
3108
    return $this->serialNumber;
3109
  }
3110
  public function setStatus($status)
3111
  {
3112
    $this->status = $status;
3113
  }
3114
  public function getStatus()
3115
  {
3116
    return $this->status;
3117
  }
3118
  public function setSupportEndDate($supportEndDate)
3119
  {
3120
    $this->supportEndDate = $supportEndDate;
3121
  }
3122
  public function getSupportEndDate()
3123
  {
3124
    return $this->supportEndDate;
3125
  }
3126
  public function setWillAutoRenew($willAutoRenew)
3127
  {
3128
    $this->willAutoRenew = $willAutoRenew;
3129
  }
3130
  public function getWillAutoRenew()
3131
  {
3132
    return $this->willAutoRenew;
3133
  }
3134
}
3135
3136
class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model
3137
{
3138
  protected $internal_gapi_mappings = array(
3139
  );
3140
  public $activeTime;
3141
  public $date;
3142
3143
3144
  public function setActiveTime($activeTime)
3145
  {
3146
    $this->activeTime = $activeTime;
3147
  }
3148
  public function getActiveTime()
3149
  {
3150
    return $this->activeTime;
3151
  }
3152
  public function setDate($date)
3153
  {
3154
    $this->date = $date;
3155
  }
3156
  public function getDate()
3157
  {
3158
    return $this->date;
3159
  }
3160
}
3161
3162 View Code Duplication
class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3163
{
3164
  protected $internal_gapi_mappings = array(
3165
  );
3166
  public $email;
3167
  public $type;
3168
3169
3170
  public function setEmail($email)
3171
  {
3172
    $this->email = $email;
3173
  }
3174
  public function getEmail()
3175
  {
3176
    return $this->email;
3177
  }
3178
  public function setType($type)
3179
  {
3180
    $this->type = $type;
3181
  }
3182
  public function getType()
3183
  {
3184
    return $this->type;
3185
  }
3186
}
3187
3188
class Google_Service_Directory_ChromeOsDevices extends Google_Collection
3189
{
3190
  protected $collection_key = 'chromeosdevices';
3191
  protected $internal_gapi_mappings = array(
3192
  );
3193
  protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
3194
  protected $chromeosdevicesDataType = 'array';
3195
  public $etag;
3196
  public $kind;
3197
  public $nextPageToken;
3198
3199
3200
  public function setChromeosdevices($chromeosdevices)
3201
  {
3202
    $this->chromeosdevices = $chromeosdevices;
3203
  }
3204
  public function getChromeosdevices()
3205
  {
3206
    return $this->chromeosdevices;
3207
  }
3208
  public function setEtag($etag)
3209
  {
3210
    $this->etag = $etag;
3211
  }
3212
  public function getEtag()
3213
  {
3214
    return $this->etag;
3215
  }
3216
  public function setKind($kind)
3217
  {
3218
    $this->kind = $kind;
3219
  }
3220
  public function getKind()
3221
  {
3222
    return $this->kind;
3223
  }
3224
  public function setNextPageToken($nextPageToken)
3225
  {
3226
    $this->nextPageToken = $nextPageToken;
3227
  }
3228
  public function getNextPageToken()
3229
  {
3230
    return $this->nextPageToken;
3231
  }
3232
}
3233
3234
class Google_Service_Directory_Group extends Google_Collection
3235
{
3236
  protected $collection_key = 'nonEditableAliases';
3237
  protected $internal_gapi_mappings = array(
3238
  );
3239
  public $adminCreated;
3240
  public $aliases;
3241
  public $description;
3242
  public $directMembersCount;
3243
  public $email;
3244
  public $etag;
3245
  public $id;
3246
  public $kind;
3247
  public $name;
3248
  public $nonEditableAliases;
3249
3250
3251
  public function setAdminCreated($adminCreated)
3252
  {
3253
    $this->adminCreated = $adminCreated;
3254
  }
3255
  public function getAdminCreated()
3256
  {
3257
    return $this->adminCreated;
3258
  }
3259
  public function setAliases($aliases)
3260
  {
3261
    $this->aliases = $aliases;
3262
  }
3263
  public function getAliases()
3264
  {
3265
    return $this->aliases;
3266
  }
3267
  public function setDescription($description)
3268
  {
3269
    $this->description = $description;
3270
  }
3271
  public function getDescription()
3272
  {
3273
    return $this->description;
3274
  }
3275
  public function setDirectMembersCount($directMembersCount)
3276
  {
3277
    $this->directMembersCount = $directMembersCount;
3278
  }
3279
  public function getDirectMembersCount()
3280
  {
3281
    return $this->directMembersCount;
3282
  }
3283
  public function setEmail($email)
3284
  {
3285
    $this->email = $email;
3286
  }
3287
  public function getEmail()
3288
  {
3289
    return $this->email;
3290
  }
3291
  public function setEtag($etag)
3292
  {
3293
    $this->etag = $etag;
3294
  }
3295
  public function getEtag()
3296
  {
3297
    return $this->etag;
3298
  }
3299
  public function setId($id)
3300
  {
3301
    $this->id = $id;
3302
  }
3303
  public function getId()
3304
  {
3305
    return $this->id;
3306
  }
3307
  public function setKind($kind)
3308
  {
3309
    $this->kind = $kind;
3310
  }
3311
  public function getKind()
3312
  {
3313
    return $this->kind;
3314
  }
3315
  public function setName($name)
3316
  {
3317
    $this->name = $name;
3318
  }
3319
  public function getName()
3320
  {
3321
    return $this->name;
3322
  }
3323
  public function setNonEditableAliases($nonEditableAliases)
3324
  {
3325
    $this->nonEditableAliases = $nonEditableAliases;
3326
  }
3327
  public function getNonEditableAliases()
3328
  {
3329
    return $this->nonEditableAliases;
3330
  }
3331
}
3332
3333
class Google_Service_Directory_Groups extends Google_Collection
3334
{
3335
  protected $collection_key = 'groups';
3336
  protected $internal_gapi_mappings = array(
3337
  );
3338
  public $etag;
3339
  protected $groupsType = 'Google_Service_Directory_Group';
3340
  protected $groupsDataType = 'array';
3341
  public $kind;
3342
  public $nextPageToken;
3343
3344
3345
  public function setEtag($etag)
3346
  {
3347
    $this->etag = $etag;
3348
  }
3349
  public function getEtag()
3350
  {
3351
    return $this->etag;
3352
  }
3353
  public function setGroups($groups)
3354
  {
3355
    $this->groups = $groups;
3356
  }
3357
  public function getGroups()
3358
  {
3359
    return $this->groups;
3360
  }
3361
  public function setKind($kind)
3362
  {
3363
    $this->kind = $kind;
3364
  }
3365
  public function getKind()
3366
  {
3367
    return $this->kind;
3368
  }
3369
  public function setNextPageToken($nextPageToken)
3370
  {
3371
    $this->nextPageToken = $nextPageToken;
3372
  }
3373
  public function getNextPageToken()
3374
  {
3375
    return $this->nextPageToken;
3376
  }
3377
}
3378
3379
class Google_Service_Directory_Member extends Google_Model
3380
{
3381
  protected $internal_gapi_mappings = array(
3382
  );
3383
  public $email;
3384
  public $etag;
3385
  public $id;
3386
  public $kind;
3387
  public $role;
3388
  public $type;
3389
3390
3391
  public function setEmail($email)
3392
  {
3393
    $this->email = $email;
3394
  }
3395
  public function getEmail()
3396
  {
3397
    return $this->email;
3398
  }
3399
  public function setEtag($etag)
3400
  {
3401
    $this->etag = $etag;
3402
  }
3403
  public function getEtag()
3404
  {
3405
    return $this->etag;
3406
  }
3407
  public function setId($id)
3408
  {
3409
    $this->id = $id;
3410
  }
3411
  public function getId()
3412
  {
3413
    return $this->id;
3414
  }
3415
  public function setKind($kind)
3416
  {
3417
    $this->kind = $kind;
3418
  }
3419
  public function getKind()
3420
  {
3421
    return $this->kind;
3422
  }
3423
  public function setRole($role)
3424
  {
3425
    $this->role = $role;
3426
  }
3427
  public function getRole()
3428
  {
3429
    return $this->role;
3430
  }
3431
  public function setType($type)
3432
  {
3433
    $this->type = $type;
3434
  }
3435
  public function getType()
3436
  {
3437
    return $this->type;
3438
  }
3439
}
3440
3441
class Google_Service_Directory_Members extends Google_Collection
3442
{
3443
  protected $collection_key = 'members';
3444
  protected $internal_gapi_mappings = array(
3445
  );
3446
  public $etag;
3447
  public $kind;
3448
  protected $membersType = 'Google_Service_Directory_Member';
3449
  protected $membersDataType = 'array';
3450
  public $nextPageToken;
3451
3452
3453
  public function setEtag($etag)
3454
  {
3455
    $this->etag = $etag;
3456
  }
3457
  public function getEtag()
3458
  {
3459
    return $this->etag;
3460
  }
3461
  public function setKind($kind)
3462
  {
3463
    $this->kind = $kind;
3464
  }
3465
  public function getKind()
3466
  {
3467
    return $this->kind;
3468
  }
3469
  public function setMembers($members)
3470
  {
3471
    $this->members = $members;
3472
  }
3473
  public function getMembers()
3474
  {
3475
    return $this->members;
3476
  }
3477
  public function setNextPageToken($nextPageToken)
3478
  {
3479
    $this->nextPageToken = $nextPageToken;
3480
  }
3481
  public function getNextPageToken()
3482
  {
3483
    return $this->nextPageToken;
3484
  }
3485
}
3486
3487
class Google_Service_Directory_MobileDevice extends Google_Collection
3488
{
3489
  protected $collection_key = 'name';
3490
  protected $internal_gapi_mappings = array(
3491
  );
3492
  protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
3493
  protected $applicationsDataType = 'array';
3494
  public $basebandVersion;
3495
  public $buildNumber;
3496
  public $defaultLanguage;
3497
  public $deviceCompromisedStatus;
3498
  public $deviceId;
3499
  public $email;
3500
  public $etag;
3501
  public $firstSync;
3502
  public $hardwareId;
3503
  public $imei;
3504
  public $kernelVersion;
3505
  public $kind;
3506
  public $lastSync;
3507
  public $managedAccountIsOnOwnerProfile;
3508
  public $meid;
3509
  public $model;
3510
  public $name;
3511
  public $networkOperator;
3512
  public $os;
3513
  public $resourceId;
3514
  public $serialNumber;
3515
  public $status;
3516
  public $type;
3517
  public $userAgent;
3518
  public $wifiMacAddress;
3519
3520
3521
  public function setApplications($applications)
3522
  {
3523
    $this->applications = $applications;
3524
  }
3525
  public function getApplications()
3526
  {
3527
    return $this->applications;
3528
  }
3529
  public function setBasebandVersion($basebandVersion)
3530
  {
3531
    $this->basebandVersion = $basebandVersion;
3532
  }
3533
  public function getBasebandVersion()
3534
  {
3535
    return $this->basebandVersion;
3536
  }
3537
  public function setBuildNumber($buildNumber)
3538
  {
3539
    $this->buildNumber = $buildNumber;
3540
  }
3541
  public function getBuildNumber()
3542
  {
3543
    return $this->buildNumber;
3544
  }
3545
  public function setDefaultLanguage($defaultLanguage)
3546
  {
3547
    $this->defaultLanguage = $defaultLanguage;
3548
  }
3549
  public function getDefaultLanguage()
3550
  {
3551
    return $this->defaultLanguage;
3552
  }
3553
  public function setDeviceCompromisedStatus($deviceCompromisedStatus)
3554
  {
3555
    $this->deviceCompromisedStatus = $deviceCompromisedStatus;
3556
  }
3557
  public function getDeviceCompromisedStatus()
3558
  {
3559
    return $this->deviceCompromisedStatus;
3560
  }
3561
  public function setDeviceId($deviceId)
3562
  {
3563
    $this->deviceId = $deviceId;
3564
  }
3565
  public function getDeviceId()
3566
  {
3567
    return $this->deviceId;
3568
  }
3569
  public function setEmail($email)
3570
  {
3571
    $this->email = $email;
3572
  }
3573
  public function getEmail()
3574
  {
3575
    return $this->email;
3576
  }
3577
  public function setEtag($etag)
3578
  {
3579
    $this->etag = $etag;
3580
  }
3581
  public function getEtag()
3582
  {
3583
    return $this->etag;
3584
  }
3585
  public function setFirstSync($firstSync)
3586
  {
3587
    $this->firstSync = $firstSync;
3588
  }
3589
  public function getFirstSync()
3590
  {
3591
    return $this->firstSync;
3592
  }
3593
  public function setHardwareId($hardwareId)
3594
  {
3595
    $this->hardwareId = $hardwareId;
3596
  }
3597
  public function getHardwareId()
3598
  {
3599
    return $this->hardwareId;
3600
  }
3601
  public function setImei($imei)
3602
  {
3603
    $this->imei = $imei;
3604
  }
3605
  public function getImei()
3606
  {
3607
    return $this->imei;
3608
  }
3609
  public function setKernelVersion($kernelVersion)
3610
  {
3611
    $this->kernelVersion = $kernelVersion;
3612
  }
3613
  public function getKernelVersion()
3614
  {
3615
    return $this->kernelVersion;
3616
  }
3617
  public function setKind($kind)
3618
  {
3619
    $this->kind = $kind;
3620
  }
3621
  public function getKind()
3622
  {
3623
    return $this->kind;
3624
  }
3625
  public function setLastSync($lastSync)
3626
  {
3627
    $this->lastSync = $lastSync;
3628
  }
3629
  public function getLastSync()
3630
  {
3631
    return $this->lastSync;
3632
  }
3633
  public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
3634
  {
3635
    $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
3636
  }
3637
  public function getManagedAccountIsOnOwnerProfile()
3638
  {
3639
    return $this->managedAccountIsOnOwnerProfile;
3640
  }
3641
  public function setMeid($meid)
3642
  {
3643
    $this->meid = $meid;
3644
  }
3645
  public function getMeid()
3646
  {
3647
    return $this->meid;
3648
  }
3649
  public function setModel($model)
3650
  {
3651
    $this->model = $model;
3652
  }
3653
  public function getModel()
3654
  {
3655
    return $this->model;
3656
  }
3657
  public function setName($name)
3658
  {
3659
    $this->name = $name;
3660
  }
3661
  public function getName()
3662
  {
3663
    return $this->name;
3664
  }
3665
  public function setNetworkOperator($networkOperator)
3666
  {
3667
    $this->networkOperator = $networkOperator;
3668
  }
3669
  public function getNetworkOperator()
3670
  {
3671
    return $this->networkOperator;
3672
  }
3673
  public function setOs($os)
3674
  {
3675
    $this->os = $os;
3676
  }
3677
  public function getOs()
3678
  {
3679
    return $this->os;
3680
  }
3681
  public function setResourceId($resourceId)
3682
  {
3683
    $this->resourceId = $resourceId;
3684
  }
3685
  public function getResourceId()
3686
  {
3687
    return $this->resourceId;
3688
  }
3689
  public function setSerialNumber($serialNumber)
3690
  {
3691
    $this->serialNumber = $serialNumber;
3692
  }
3693
  public function getSerialNumber()
3694
  {
3695
    return $this->serialNumber;
3696
  }
3697
  public function setStatus($status)
3698
  {
3699
    $this->status = $status;
3700
  }
3701
  public function getStatus()
3702
  {
3703
    return $this->status;
3704
  }
3705
  public function setType($type)
3706
  {
3707
    $this->type = $type;
3708
  }
3709
  public function getType()
3710
  {
3711
    return $this->type;
3712
  }
3713
  public function setUserAgent($userAgent)
3714
  {
3715
    $this->userAgent = $userAgent;
3716
  }
3717
  public function getUserAgent()
3718
  {
3719
    return $this->userAgent;
3720
  }
3721
  public function setWifiMacAddress($wifiMacAddress)
3722
  {
3723
    $this->wifiMacAddress = $wifiMacAddress;
3724
  }
3725
  public function getWifiMacAddress()
3726
  {
3727
    return $this->wifiMacAddress;
3728
  }
3729
}
3730
3731
class Google_Service_Directory_MobileDeviceAction extends Google_Model
3732
{
3733
  protected $internal_gapi_mappings = array(
3734
  );
3735
  public $action;
3736
3737
3738
  public function setAction($action)
3739
  {
3740
    $this->action = $action;
3741
  }
3742
  public function getAction()
3743
  {
3744
    return $this->action;
3745
  }
3746
}
3747
3748
class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
3749
{
3750
  protected $collection_key = 'permission';
3751
  protected $internal_gapi_mappings = array(
3752
  );
3753
  public $displayName;
3754
  public $packageName;
3755
  public $permission;
3756
  public $versionCode;
3757
  public $versionName;
3758
3759
3760
  public function setDisplayName($displayName)
3761
  {
3762
    $this->displayName = $displayName;
3763
  }
3764
  public function getDisplayName()
3765
  {
3766
    return $this->displayName;
3767
  }
3768
  public function setPackageName($packageName)
3769
  {
3770
    $this->packageName = $packageName;
3771
  }
3772
  public function getPackageName()
3773
  {
3774
    return $this->packageName;
3775
  }
3776
  public function setPermission($permission)
3777
  {
3778
    $this->permission = $permission;
3779
  }
3780
  public function getPermission()
3781
  {
3782
    return $this->permission;
3783
  }
3784
  public function setVersionCode($versionCode)
3785
  {
3786
    $this->versionCode = $versionCode;
3787
  }
3788
  public function getVersionCode()
3789
  {
3790
    return $this->versionCode;
3791
  }
3792
  public function setVersionName($versionName)
3793
  {
3794
    $this->versionName = $versionName;
3795
  }
3796
  public function getVersionName()
3797
  {
3798
    return $this->versionName;
3799
  }
3800
}
3801
3802
class Google_Service_Directory_MobileDevices extends Google_Collection
3803
{
3804
  protected $collection_key = 'mobiledevices';
3805
  protected $internal_gapi_mappings = array(
3806
  );
3807
  public $etag;
3808
  public $kind;
3809
  protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
3810
  protected $mobiledevicesDataType = 'array';
3811
  public $nextPageToken;
3812
3813
3814
  public function setEtag($etag)
3815
  {
3816
    $this->etag = $etag;
3817
  }
3818
  public function getEtag()
3819
  {
3820
    return $this->etag;
3821
  }
3822
  public function setKind($kind)
3823
  {
3824
    $this->kind = $kind;
3825
  }
3826
  public function getKind()
3827
  {
3828
    return $this->kind;
3829
  }
3830
  public function setMobiledevices($mobiledevices)
3831
  {
3832
    $this->mobiledevices = $mobiledevices;
3833
  }
3834
  public function getMobiledevices()
3835
  {
3836
    return $this->mobiledevices;
3837
  }
3838
  public function setNextPageToken($nextPageToken)
3839
  {
3840
    $this->nextPageToken = $nextPageToken;
3841
  }
3842
  public function getNextPageToken()
3843
  {
3844
    return $this->nextPageToken;
3845
  }
3846
}
3847
3848
class Google_Service_Directory_Notification extends Google_Model
3849
{
3850
  protected $internal_gapi_mappings = array(
3851
  );
3852
  public $body;
3853
  public $etag;
3854
  public $fromAddress;
3855
  public $isUnread;
3856
  public $kind;
3857
  public $notificationId;
3858
  public $sendTime;
3859
  public $subject;
3860
3861
3862
  public function setBody($body)
3863
  {
3864
    $this->body = $body;
3865
  }
3866
  public function getBody()
3867
  {
3868
    return $this->body;
3869
  }
3870
  public function setEtag($etag)
3871
  {
3872
    $this->etag = $etag;
3873
  }
3874
  public function getEtag()
3875
  {
3876
    return $this->etag;
3877
  }
3878
  public function setFromAddress($fromAddress)
3879
  {
3880
    $this->fromAddress = $fromAddress;
3881
  }
3882
  public function getFromAddress()
3883
  {
3884
    return $this->fromAddress;
3885
  }
3886
  public function setIsUnread($isUnread)
3887
  {
3888
    $this->isUnread = $isUnread;
3889
  }
3890
  public function getIsUnread()
3891
  {
3892
    return $this->isUnread;
3893
  }
3894
  public function setKind($kind)
3895
  {
3896
    $this->kind = $kind;
3897
  }
3898
  public function getKind()
3899
  {
3900
    return $this->kind;
3901
  }
3902
  public function setNotificationId($notificationId)
3903
  {
3904
    $this->notificationId = $notificationId;
3905
  }
3906
  public function getNotificationId()
3907
  {
3908
    return $this->notificationId;
3909
  }
3910
  public function setSendTime($sendTime)
3911
  {
3912
    $this->sendTime = $sendTime;
3913
  }
3914
  public function getSendTime()
3915
  {
3916
    return $this->sendTime;
3917
  }
3918
  public function setSubject($subject)
3919
  {
3920
    $this->subject = $subject;
3921
  }
3922
  public function getSubject()
3923
  {
3924
    return $this->subject;
3925
  }
3926
}
3927
3928 View Code Duplication
class Google_Service_Directory_Notifications extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3929
{
3930
  protected $collection_key = 'items';
3931
  protected $internal_gapi_mappings = array(
3932
  );
3933
  public $etag;
3934
  protected $itemsType = 'Google_Service_Directory_Notification';
3935
  protected $itemsDataType = 'array';
3936
  public $kind;
3937
  public $nextPageToken;
3938
  public $unreadNotificationsCount;
3939
3940
3941
  public function setEtag($etag)
3942
  {
3943
    $this->etag = $etag;
3944
  }
3945
  public function getEtag()
3946
  {
3947
    return $this->etag;
3948
  }
3949
  public function setItems($items)
3950
  {
3951
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
3952
  }
3953
  public function getItems()
3954
  {
3955
    return $this->items;
3956
  }
3957
  public function setKind($kind)
3958
  {
3959
    $this->kind = $kind;
3960
  }
3961
  public function getKind()
3962
  {
3963
    return $this->kind;
3964
  }
3965
  public function setNextPageToken($nextPageToken)
3966
  {
3967
    $this->nextPageToken = $nextPageToken;
3968
  }
3969
  public function getNextPageToken()
3970
  {
3971
    return $this->nextPageToken;
3972
  }
3973
  public function setUnreadNotificationsCount($unreadNotificationsCount)
3974
  {
3975
    $this->unreadNotificationsCount = $unreadNotificationsCount;
3976
  }
3977
  public function getUnreadNotificationsCount()
3978
  {
3979
    return $this->unreadNotificationsCount;
3980
  }
3981
}
3982
3983
class Google_Service_Directory_OrgUnit extends Google_Model
3984
{
3985
  protected $internal_gapi_mappings = array(
3986
  );
3987
  public $blockInheritance;
3988
  public $description;
3989
  public $etag;
3990
  public $kind;
3991
  public $name;
3992
  public $orgUnitId;
3993
  public $orgUnitPath;
3994
  public $parentOrgUnitId;
3995
  public $parentOrgUnitPath;
3996
3997
3998
  public function setBlockInheritance($blockInheritance)
3999
  {
4000
    $this->blockInheritance = $blockInheritance;
4001
  }
4002
  public function getBlockInheritance()
4003
  {
4004
    return $this->blockInheritance;
4005
  }
4006
  public function setDescription($description)
4007
  {
4008
    $this->description = $description;
4009
  }
4010
  public function getDescription()
4011
  {
4012
    return $this->description;
4013
  }
4014
  public function setEtag($etag)
4015
  {
4016
    $this->etag = $etag;
4017
  }
4018
  public function getEtag()
4019
  {
4020
    return $this->etag;
4021
  }
4022
  public function setKind($kind)
4023
  {
4024
    $this->kind = $kind;
4025
  }
4026
  public function getKind()
4027
  {
4028
    return $this->kind;
4029
  }
4030
  public function setName($name)
4031
  {
4032
    $this->name = $name;
4033
  }
4034
  public function getName()
4035
  {
4036
    return $this->name;
4037
  }
4038
  public function setOrgUnitId($orgUnitId)
4039
  {
4040
    $this->orgUnitId = $orgUnitId;
4041
  }
4042
  public function getOrgUnitId()
4043
  {
4044
    return $this->orgUnitId;
4045
  }
4046
  public function setOrgUnitPath($orgUnitPath)
4047
  {
4048
    $this->orgUnitPath = $orgUnitPath;
4049
  }
4050
  public function getOrgUnitPath()
4051
  {
4052
    return $this->orgUnitPath;
4053
  }
4054
  public function setParentOrgUnitId($parentOrgUnitId)
4055
  {
4056
    $this->parentOrgUnitId = $parentOrgUnitId;
4057
  }
4058
  public function getParentOrgUnitId()
4059
  {
4060
    return $this->parentOrgUnitId;
4061
  }
4062
  public function setParentOrgUnitPath($parentOrgUnitPath)
4063
  {
4064
    $this->parentOrgUnitPath = $parentOrgUnitPath;
4065
  }
4066
  public function getParentOrgUnitPath()
4067
  {
4068
    return $this->parentOrgUnitPath;
4069
  }
4070
}
4071
4072
class Google_Service_Directory_OrgUnits extends Google_Collection
4073
{
4074
  protected $collection_key = 'organizationUnits';
4075
  protected $internal_gapi_mappings = array(
4076
  );
4077
  public $etag;
4078
  public $kind;
4079
  protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
4080
  protected $organizationUnitsDataType = 'array';
4081
4082
4083
  public function setEtag($etag)
4084
  {
4085
    $this->etag = $etag;
4086
  }
4087
  public function getEtag()
4088
  {
4089
    return $this->etag;
4090
  }
4091
  public function setKind($kind)
4092
  {
4093
    $this->kind = $kind;
4094
  }
4095
  public function getKind()
4096
  {
4097
    return $this->kind;
4098
  }
4099
  public function setOrganizationUnits($organizationUnits)
4100
  {
4101
    $this->organizationUnits = $organizationUnits;
4102
  }
4103
  public function getOrganizationUnits()
4104
  {
4105
    return $this->organizationUnits;
4106
  }
4107
}
4108
4109
class Google_Service_Directory_Schema extends Google_Collection
4110
{
4111
  protected $collection_key = 'fields';
4112
  protected $internal_gapi_mappings = array(
4113
  );
4114
  public $etag;
4115
  protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec';
4116
  protected $fieldsDataType = 'array';
4117
  public $kind;
4118
  public $schemaId;
4119
  public $schemaName;
4120
4121
4122
  public function setEtag($etag)
4123
  {
4124
    $this->etag = $etag;
4125
  }
4126
  public function getEtag()
4127
  {
4128
    return $this->etag;
4129
  }
4130
  public function setFields($fields)
4131
  {
4132
    $this->fields = $fields;
4133
  }
4134
  public function getFields()
4135
  {
4136
    return $this->fields;
4137
  }
4138
  public function setKind($kind)
4139
  {
4140
    $this->kind = $kind;
4141
  }
4142
  public function getKind()
4143
  {
4144
    return $this->kind;
4145
  }
4146
  public function setSchemaId($schemaId)
4147
  {
4148
    $this->schemaId = $schemaId;
4149
  }
4150
  public function getSchemaId()
4151
  {
4152
    return $this->schemaId;
4153
  }
4154
  public function setSchemaName($schemaName)
4155
  {
4156
    $this->schemaName = $schemaName;
4157
  }
4158
  public function getSchemaName()
4159
  {
4160
    return $this->schemaName;
4161
  }
4162
}
4163
4164
class Google_Service_Directory_SchemaFieldSpec extends Google_Model
4165
{
4166
  protected $internal_gapi_mappings = array(
4167
  );
4168
  public $etag;
4169
  public $fieldId;
4170
  public $fieldName;
4171
  public $fieldType;
4172
  public $indexed;
4173
  public $kind;
4174
  public $multiValued;
4175
  protected $numericIndexingSpecType = 'Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec';
4176
  protected $numericIndexingSpecDataType = '';
4177
  public $readAccessType;
4178
4179
4180
  public function setEtag($etag)
4181
  {
4182
    $this->etag = $etag;
4183
  }
4184
  public function getEtag()
4185
  {
4186
    return $this->etag;
4187
  }
4188
  public function setFieldId($fieldId)
4189
  {
4190
    $this->fieldId = $fieldId;
4191
  }
4192
  public function getFieldId()
4193
  {
4194
    return $this->fieldId;
4195
  }
4196
  public function setFieldName($fieldName)
4197
  {
4198
    $this->fieldName = $fieldName;
4199
  }
4200
  public function getFieldName()
4201
  {
4202
    return $this->fieldName;
4203
  }
4204
  public function setFieldType($fieldType)
4205
  {
4206
    $this->fieldType = $fieldType;
4207
  }
4208
  public function getFieldType()
4209
  {
4210
    return $this->fieldType;
4211
  }
4212
  public function setIndexed($indexed)
4213
  {
4214
    $this->indexed = $indexed;
4215
  }
4216
  public function getIndexed()
4217
  {
4218
    return $this->indexed;
4219
  }
4220
  public function setKind($kind)
4221
  {
4222
    $this->kind = $kind;
4223
  }
4224
  public function getKind()
4225
  {
4226
    return $this->kind;
4227
  }
4228
  public function setMultiValued($multiValued)
4229
  {
4230
    $this->multiValued = $multiValued;
4231
  }
4232
  public function getMultiValued()
4233
  {
4234
    return $this->multiValued;
4235
  }
4236
  public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec)
4237
  {
4238
    $this->numericIndexingSpec = $numericIndexingSpec;
4239
  }
4240
  public function getNumericIndexingSpec()
4241
  {
4242
    return $this->numericIndexingSpec;
4243
  }
4244
  public function setReadAccessType($readAccessType)
4245
  {
4246
    $this->readAccessType = $readAccessType;
4247
  }
4248
  public function getReadAccessType()
4249
  {
4250
    return $this->readAccessType;
4251
  }
4252
}
4253
4254
class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model
4255
{
4256
  protected $internal_gapi_mappings = array(
4257
  );
4258
  public $maxValue;
4259
  public $minValue;
4260
4261
4262
  public function setMaxValue($maxValue)
4263
  {
4264
    $this->maxValue = $maxValue;
4265
  }
4266
  public function getMaxValue()
4267
  {
4268
    return $this->maxValue;
4269
  }
4270
  public function setMinValue($minValue)
4271
  {
4272
    $this->minValue = $minValue;
4273
  }
4274
  public function getMinValue()
4275
  {
4276
    return $this->minValue;
4277
  }
4278
}
4279
4280
class Google_Service_Directory_Schemas extends Google_Collection
4281
{
4282
  protected $collection_key = 'schemas';
4283
  protected $internal_gapi_mappings = array(
4284
  );
4285
  public $etag;
4286
  public $kind;
4287
  protected $schemasType = 'Google_Service_Directory_Schema';
4288
  protected $schemasDataType = 'array';
4289
4290
4291
  public function setEtag($etag)
4292
  {
4293
    $this->etag = $etag;
4294
  }
4295
  public function getEtag()
4296
  {
4297
    return $this->etag;
4298
  }
4299
  public function setKind($kind)
4300
  {
4301
    $this->kind = $kind;
4302
  }
4303
  public function getKind()
4304
  {
4305
    return $this->kind;
4306
  }
4307
  public function setSchemas($schemas)
4308
  {
4309
    $this->schemas = $schemas;
4310
  }
4311
  public function getSchemas()
4312
  {
4313
    return $this->schemas;
4314
  }
4315
}
4316
4317
class Google_Service_Directory_Token extends Google_Collection
4318
{
4319
  protected $collection_key = 'scopes';
4320
  protected $internal_gapi_mappings = array(
4321
  );
4322
  public $anonymous;
4323
  public $clientId;
4324
  public $displayText;
4325
  public $etag;
4326
  public $kind;
4327
  public $nativeApp;
4328
  public $scopes;
4329
  public $userKey;
4330
4331
4332
  public function setAnonymous($anonymous)
4333
  {
4334
    $this->anonymous = $anonymous;
4335
  }
4336
  public function getAnonymous()
4337
  {
4338
    return $this->anonymous;
4339
  }
4340
  public function setClientId($clientId)
4341
  {
4342
    $this->clientId = $clientId;
4343
  }
4344
  public function getClientId()
4345
  {
4346
    return $this->clientId;
4347
  }
4348
  public function setDisplayText($displayText)
4349
  {
4350
    $this->displayText = $displayText;
4351
  }
4352
  public function getDisplayText()
4353
  {
4354
    return $this->displayText;
4355
  }
4356
  public function setEtag($etag)
4357
  {
4358
    $this->etag = $etag;
4359
  }
4360
  public function getEtag()
4361
  {
4362
    return $this->etag;
4363
  }
4364
  public function setKind($kind)
4365
  {
4366
    $this->kind = $kind;
4367
  }
4368
  public function getKind()
4369
  {
4370
    return $this->kind;
4371
  }
4372
  public function setNativeApp($nativeApp)
4373
  {
4374
    $this->nativeApp = $nativeApp;
4375
  }
4376
  public function getNativeApp()
4377
  {
4378
    return $this->nativeApp;
4379
  }
4380
  public function setScopes($scopes)
4381
  {
4382
    $this->scopes = $scopes;
4383
  }
4384
  public function getScopes()
4385
  {
4386
    return $this->scopes;
4387
  }
4388
  public function setUserKey($userKey)
4389
  {
4390
    $this->userKey = $userKey;
4391
  }
4392
  public function getUserKey()
4393
  {
4394
    return $this->userKey;
4395
  }
4396
}
4397
4398
class Google_Service_Directory_Tokens extends Google_Collection
4399
{
4400
  protected $collection_key = 'items';
4401
  protected $internal_gapi_mappings = array(
4402
  );
4403
  public $etag;
4404
  protected $itemsType = 'Google_Service_Directory_Token';
4405
  protected $itemsDataType = 'array';
4406
  public $kind;
4407
4408
4409
  public function setEtag($etag)
4410
  {
4411
    $this->etag = $etag;
4412
  }
4413
  public function getEtag()
4414
  {
4415
    return $this->etag;
4416
  }
4417
  public function setItems($items)
4418
  {
4419
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
4420
  }
4421
  public function getItems()
4422
  {
4423
    return $this->items;
4424
  }
4425
  public function setKind($kind)
4426
  {
4427
    $this->kind = $kind;
4428
  }
4429
  public function getKind()
4430
  {
4431
    return $this->kind;
4432
  }
4433
}
4434
4435
class Google_Service_Directory_User extends Google_Collection
4436
{
4437
  protected $collection_key = 'nonEditableAliases';
4438
  protected $internal_gapi_mappings = array(
4439
  );
4440
  public $addresses;
4441
  public $agreedToTerms;
4442
  public $aliases;
4443
  public $changePasswordAtNextLogin;
4444
  public $creationTime;
4445
  public $customSchemas;
4446
  public $customerId;
4447
  public $deletionTime;
4448
  public $emails;
4449
  public $etag;
4450
  public $externalIds;
4451
  public $hashFunction;
4452
  public $id;
4453
  public $ims;
4454
  public $includeInGlobalAddressList;
4455
  public $ipWhitelisted;
4456
  public $isAdmin;
4457
  public $isDelegatedAdmin;
4458
  public $isMailboxSetup;
4459
  public $kind;
4460
  public $lastLoginTime;
4461
  protected $nameType = 'Google_Service_Directory_UserName';
4462
  protected $nameDataType = '';
4463
  public $nonEditableAliases;
4464
  public $notes;
4465
  public $orgUnitPath;
4466
  public $organizations;
4467
  public $password;
4468
  public $phones;
4469
  public $primaryEmail;
4470
  public $relations;
4471
  public $suspended;
4472
  public $suspensionReason;
4473
  public $thumbnailPhotoEtag;
4474
  public $thumbnailPhotoUrl;
4475
  public $websites;
4476
4477
4478
  public function setAddresses($addresses)
4479
  {
4480
    $this->addresses = $addresses;
4481
  }
4482
  public function getAddresses()
4483
  {
4484
    return $this->addresses;
4485
  }
4486
  public function setAgreedToTerms($agreedToTerms)
4487
  {
4488
    $this->agreedToTerms = $agreedToTerms;
4489
  }
4490
  public function getAgreedToTerms()
4491
  {
4492
    return $this->agreedToTerms;
4493
  }
4494
  public function setAliases($aliases)
4495
  {
4496
    $this->aliases = $aliases;
4497
  }
4498
  public function getAliases()
4499
  {
4500
    return $this->aliases;
4501
  }
4502
  public function setChangePasswordAtNextLogin($changePasswordAtNextLogin)
4503
  {
4504
    $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
4505
  }
4506
  public function getChangePasswordAtNextLogin()
4507
  {
4508
    return $this->changePasswordAtNextLogin;
4509
  }
4510
  public function setCreationTime($creationTime)
4511
  {
4512
    $this->creationTime = $creationTime;
4513
  }
4514
  public function getCreationTime()
4515
  {
4516
    return $this->creationTime;
4517
  }
4518
  public function setCustomSchemas($customSchemas)
4519
  {
4520
    $this->customSchemas = $customSchemas;
4521
  }
4522
  public function getCustomSchemas()
4523
  {
4524
    return $this->customSchemas;
4525
  }
4526
  public function setCustomerId($customerId)
4527
  {
4528
    $this->customerId = $customerId;
4529
  }
4530
  public function getCustomerId()
4531
  {
4532
    return $this->customerId;
4533
  }
4534
  public function setDeletionTime($deletionTime)
4535
  {
4536
    $this->deletionTime = $deletionTime;
4537
  }
4538
  public function getDeletionTime()
4539
  {
4540
    return $this->deletionTime;
4541
  }
4542
  public function setEmails($emails)
4543
  {
4544
    $this->emails = $emails;
4545
  }
4546
  public function getEmails()
4547
  {
4548
    return $this->emails;
4549
  }
4550
  public function setEtag($etag)
4551
  {
4552
    $this->etag = $etag;
4553
  }
4554
  public function getEtag()
4555
  {
4556
    return $this->etag;
4557
  }
4558
  public function setExternalIds($externalIds)
4559
  {
4560
    $this->externalIds = $externalIds;
4561
  }
4562
  public function getExternalIds()
4563
  {
4564
    return $this->externalIds;
4565
  }
4566
  public function setHashFunction($hashFunction)
4567
  {
4568
    $this->hashFunction = $hashFunction;
4569
  }
4570
  public function getHashFunction()
4571
  {
4572
    return $this->hashFunction;
4573
  }
4574
  public function setId($id)
4575
  {
4576
    $this->id = $id;
4577
  }
4578
  public function getId()
4579
  {
4580
    return $this->id;
4581
  }
4582
  public function setIms($ims)
4583
  {
4584
    $this->ims = $ims;
4585
  }
4586
  public function getIms()
4587
  {
4588
    return $this->ims;
4589
  }
4590
  public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
4591
  {
4592
    $this->includeInGlobalAddressList = $includeInGlobalAddressList;
4593
  }
4594
  public function getIncludeInGlobalAddressList()
4595
  {
4596
    return $this->includeInGlobalAddressList;
4597
  }
4598
  public function setIpWhitelisted($ipWhitelisted)
4599
  {
4600
    $this->ipWhitelisted = $ipWhitelisted;
4601
  }
4602
  public function getIpWhitelisted()
4603
  {
4604
    return $this->ipWhitelisted;
4605
  }
4606
  public function setIsAdmin($isAdmin)
4607
  {
4608
    $this->isAdmin = $isAdmin;
4609
  }
4610
  public function getIsAdmin()
4611
  {
4612
    return $this->isAdmin;
4613
  }
4614
  public function setIsDelegatedAdmin($isDelegatedAdmin)
4615
  {
4616
    $this->isDelegatedAdmin = $isDelegatedAdmin;
4617
  }
4618
  public function getIsDelegatedAdmin()
4619
  {
4620
    return $this->isDelegatedAdmin;
4621
  }
4622
  public function setIsMailboxSetup($isMailboxSetup)
4623
  {
4624
    $this->isMailboxSetup = $isMailboxSetup;
4625
  }
4626
  public function getIsMailboxSetup()
4627
  {
4628
    return $this->isMailboxSetup;
4629
  }
4630
  public function setKind($kind)
4631
  {
4632
    $this->kind = $kind;
4633
  }
4634
  public function getKind()
4635
  {
4636
    return $this->kind;
4637
  }
4638
  public function setLastLoginTime($lastLoginTime)
4639
  {
4640
    $this->lastLoginTime = $lastLoginTime;
4641
  }
4642
  public function getLastLoginTime()
4643
  {
4644
    return $this->lastLoginTime;
4645
  }
4646
  public function setName(Google_Service_Directory_UserName $name)
4647
  {
4648
    $this->name = $name;
0 ignored issues
show
Bug introduced by
The property name does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
4649
  }
4650
  public function getName()
4651
  {
4652
    return $this->name;
4653
  }
4654
  public function setNonEditableAliases($nonEditableAliases)
4655
  {
4656
    $this->nonEditableAliases = $nonEditableAliases;
4657
  }
4658
  public function getNonEditableAliases()
4659
  {
4660
    return $this->nonEditableAliases;
4661
  }
4662
  public function setNotes($notes)
4663
  {
4664
    $this->notes = $notes;
4665
  }
4666
  public function getNotes()
4667
  {
4668
    return $this->notes;
4669
  }
4670
  public function setOrgUnitPath($orgUnitPath)
4671
  {
4672
    $this->orgUnitPath = $orgUnitPath;
4673
  }
4674
  public function getOrgUnitPath()
4675
  {
4676
    return $this->orgUnitPath;
4677
  }
4678
  public function setOrganizations($organizations)
4679
  {
4680
    $this->organizations = $organizations;
4681
  }
4682
  public function getOrganizations()
4683
  {
4684
    return $this->organizations;
4685
  }
4686
  public function setPassword($password)
4687
  {
4688
    $this->password = $password;
4689
  }
4690
  public function getPassword()
4691
  {
4692
    return $this->password;
4693
  }
4694
  public function setPhones($phones)
4695
  {
4696
    $this->phones = $phones;
4697
  }
4698
  public function getPhones()
4699
  {
4700
    return $this->phones;
4701
  }
4702
  public function setPrimaryEmail($primaryEmail)
4703
  {
4704
    $this->primaryEmail = $primaryEmail;
4705
  }
4706
  public function getPrimaryEmail()
4707
  {
4708
    return $this->primaryEmail;
4709
  }
4710
  public function setRelations($relations)
4711
  {
4712
    $this->relations = $relations;
4713
  }
4714
  public function getRelations()
4715
  {
4716
    return $this->relations;
4717
  }
4718
  public function setSuspended($suspended)
4719
  {
4720
    $this->suspended = $suspended;
4721
  }
4722
  public function getSuspended()
4723
  {
4724
    return $this->suspended;
4725
  }
4726
  public function setSuspensionReason($suspensionReason)
4727
  {
4728
    $this->suspensionReason = $suspensionReason;
4729
  }
4730
  public function getSuspensionReason()
4731
  {
4732
    return $this->suspensionReason;
4733
  }
4734
  public function setThumbnailPhotoEtag($thumbnailPhotoEtag)
4735
  {
4736
    $this->thumbnailPhotoEtag = $thumbnailPhotoEtag;
4737
  }
4738
  public function getThumbnailPhotoEtag()
4739
  {
4740
    return $this->thumbnailPhotoEtag;
4741
  }
4742
  public function setThumbnailPhotoUrl($thumbnailPhotoUrl)
4743
  {
4744
    $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
4745
  }
4746
  public function getThumbnailPhotoUrl()
4747
  {
4748
    return $this->thumbnailPhotoUrl;
4749
  }
4750
  public function setWebsites($websites)
4751
  {
4752
    $this->websites = $websites;
4753
  }
4754
  public function getWebsites()
4755
  {
4756
    return $this->websites;
4757
  }
4758
}
4759
4760
class Google_Service_Directory_UserAbout extends Google_Model
4761
{
4762
  protected $internal_gapi_mappings = array(
4763
  );
4764
  public $contentType;
4765
  public $value;
4766
4767
4768
  public function setContentType($contentType)
4769
  {
4770
    $this->contentType = $contentType;
4771
  }
4772
  public function getContentType()
4773
  {
4774
    return $this->contentType;
4775
  }
4776
  public function setValue($value)
4777
  {
4778
    $this->value = $value;
4779
  }
4780
  public function getValue()
4781
  {
4782
    return $this->value;
4783
  }
4784
}
4785
4786
class Google_Service_Directory_UserAddress extends Google_Model
4787
{
4788
  protected $internal_gapi_mappings = array(
4789
  );
4790
  public $country;
4791
  public $countryCode;
4792
  public $customType;
4793
  public $extendedAddress;
4794
  public $formatted;
4795
  public $locality;
4796
  public $poBox;
4797
  public $postalCode;
4798
  public $primary;
4799
  public $region;
4800
  public $sourceIsStructured;
4801
  public $streetAddress;
4802
  public $type;
4803
4804
4805
  public function setCountry($country)
4806
  {
4807
    $this->country = $country;
4808
  }
4809
  public function getCountry()
4810
  {
4811
    return $this->country;
4812
  }
4813
  public function setCountryCode($countryCode)
4814
  {
4815
    $this->countryCode = $countryCode;
4816
  }
4817
  public function getCountryCode()
4818
  {
4819
    return $this->countryCode;
4820
  }
4821
  public function setCustomType($customType)
4822
  {
4823
    $this->customType = $customType;
4824
  }
4825
  public function getCustomType()
4826
  {
4827
    return $this->customType;
4828
  }
4829
  public function setExtendedAddress($extendedAddress)
4830
  {
4831
    $this->extendedAddress = $extendedAddress;
4832
  }
4833
  public function getExtendedAddress()
4834
  {
4835
    return $this->extendedAddress;
4836
  }
4837
  public function setFormatted($formatted)
4838
  {
4839
    $this->formatted = $formatted;
4840
  }
4841
  public function getFormatted()
4842
  {
4843
    return $this->formatted;
4844
  }
4845
  public function setLocality($locality)
4846
  {
4847
    $this->locality = $locality;
4848
  }
4849
  public function getLocality()
4850
  {
4851
    return $this->locality;
4852
  }
4853
  public function setPoBox($poBox)
4854
  {
4855
    $this->poBox = $poBox;
4856
  }
4857
  public function getPoBox()
4858
  {
4859
    return $this->poBox;
4860
  }
4861
  public function setPostalCode($postalCode)
4862
  {
4863
    $this->postalCode = $postalCode;
4864
  }
4865
  public function getPostalCode()
4866
  {
4867
    return $this->postalCode;
4868
  }
4869
  public function setPrimary($primary)
4870
  {
4871
    $this->primary = $primary;
4872
  }
4873
  public function getPrimary()
4874
  {
4875
    return $this->primary;
4876
  }
4877
  public function setRegion($region)
4878
  {
4879
    $this->region = $region;
4880
  }
4881
  public function getRegion()
4882
  {
4883
    return $this->region;
4884
  }
4885
  public function setSourceIsStructured($sourceIsStructured)
4886
  {
4887
    $this->sourceIsStructured = $sourceIsStructured;
4888
  }
4889
  public function getSourceIsStructured()
4890
  {
4891
    return $this->sourceIsStructured;
4892
  }
4893
  public function setStreetAddress($streetAddress)
4894
  {
4895
    $this->streetAddress = $streetAddress;
4896
  }
4897
  public function getStreetAddress()
4898
  {
4899
    return $this->streetAddress;
4900
  }
4901
  public function setType($type)
4902
  {
4903
    $this->type = $type;
4904
  }
4905
  public function getType()
4906
  {
4907
    return $this->type;
4908
  }
4909
}
4910
4911
class Google_Service_Directory_UserCustomProperties extends Google_Model
4912
{
4913
}
4914
4915
class Google_Service_Directory_UserCustomSchemas extends Google_Model
4916
{
4917
}
4918
4919 View Code Duplication
class Google_Service_Directory_UserEmail extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
4920
{
4921
  protected $internal_gapi_mappings = array(
4922
  );
4923
  public $address;
4924
  public $customType;
4925
  public $primary;
4926
  public $type;
4927
4928
4929
  public function setAddress($address)
4930
  {
4931
    $this->address = $address;
4932
  }
4933
  public function getAddress()
4934
  {
4935
    return $this->address;
4936
  }
4937
  public function setCustomType($customType)
4938
  {
4939
    $this->customType = $customType;
4940
  }
4941
  public function getCustomType()
4942
  {
4943
    return $this->customType;
4944
  }
4945
  public function setPrimary($primary)
4946
  {
4947
    $this->primary = $primary;
4948
  }
4949
  public function getPrimary()
4950
  {
4951
    return $this->primary;
4952
  }
4953
  public function setType($type)
4954
  {
4955
    $this->type = $type;
4956
  }
4957
  public function getType()
4958
  {
4959
    return $this->type;
4960
  }
4961
}
4962
4963 View Code Duplication
class Google_Service_Directory_UserExternalId extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
4964
{
4965
  protected $internal_gapi_mappings = array(
4966
  );
4967
  public $customType;
4968
  public $type;
4969
  public $value;
4970
4971
4972
  public function setCustomType($customType)
4973
  {
4974
    $this->customType = $customType;
4975
  }
4976
  public function getCustomType()
4977
  {
4978
    return $this->customType;
4979
  }
4980
  public function setType($type)
4981
  {
4982
    $this->type = $type;
4983
  }
4984
  public function getType()
4985
  {
4986
    return $this->type;
4987
  }
4988
  public function setValue($value)
4989
  {
4990
    $this->value = $value;
4991
  }
4992
  public function getValue()
4993
  {
4994
    return $this->value;
4995
  }
4996
}
4997
4998
class Google_Service_Directory_UserIm extends Google_Model
4999
{
5000
  protected $internal_gapi_mappings = array(
5001
  );
5002
  public $customProtocol;
5003
  public $customType;
5004
  public $im;
5005
  public $primary;
5006
  public $protocol;
5007
  public $type;
5008
5009
5010
  public function setCustomProtocol($customProtocol)
5011
  {
5012
    $this->customProtocol = $customProtocol;
5013
  }
5014
  public function getCustomProtocol()
5015
  {
5016
    return $this->customProtocol;
5017
  }
5018
  public function setCustomType($customType)
5019
  {
5020
    $this->customType = $customType;
5021
  }
5022
  public function getCustomType()
5023
  {
5024
    return $this->customType;
5025
  }
5026
  public function setIm($im)
5027
  {
5028
    $this->im = $im;
5029
  }
5030
  public function getIm()
5031
  {
5032
    return $this->im;
5033
  }
5034
  public function setPrimary($primary)
5035
  {
5036
    $this->primary = $primary;
5037
  }
5038
  public function getPrimary()
5039
  {
5040
    return $this->primary;
5041
  }
5042
  public function setProtocol($protocol)
5043
  {
5044
    $this->protocol = $protocol;
5045
  }
5046
  public function getProtocol()
5047
  {
5048
    return $this->protocol;
5049
  }
5050
  public function setType($type)
5051
  {
5052
    $this->type = $type;
5053
  }
5054
  public function getType()
5055
  {
5056
    return $this->type;
5057
  }
5058
}
5059
5060
class Google_Service_Directory_UserMakeAdmin extends Google_Model
5061
{
5062
  protected $internal_gapi_mappings = array(
5063
  );
5064
  public $status;
5065
5066
5067
  public function setStatus($status)
5068
  {
5069
    $this->status = $status;
5070
  }
5071
  public function getStatus()
5072
  {
5073
    return $this->status;
5074
  }
5075
}
5076
5077 View Code Duplication
class Google_Service_Directory_UserName extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5078
{
5079
  protected $internal_gapi_mappings = array(
5080
  );
5081
  public $familyName;
5082
  public $fullName;
5083
  public $givenName;
5084
5085
5086
  public function setFamilyName($familyName)
5087
  {
5088
    $this->familyName = $familyName;
5089
  }
5090
  public function getFamilyName()
5091
  {
5092
    return $this->familyName;
5093
  }
5094
  public function setFullName($fullName)
5095
  {
5096
    $this->fullName = $fullName;
5097
  }
5098
  public function getFullName()
5099
  {
5100
    return $this->fullName;
5101
  }
5102
  public function setGivenName($givenName)
5103
  {
5104
    $this->givenName = $givenName;
5105
  }
5106
  public function getGivenName()
5107
  {
5108
    return $this->givenName;
5109
  }
5110
}
5111
5112
class Google_Service_Directory_UserOrganization extends Google_Model
5113
{
5114
  protected $internal_gapi_mappings = array(
5115
  );
5116
  public $costCenter;
5117
  public $customType;
5118
  public $department;
5119
  public $description;
5120
  public $domain;
5121
  public $location;
5122
  public $name;
5123
  public $primary;
5124
  public $symbol;
5125
  public $title;
5126
  public $type;
5127
5128
5129
  public function setCostCenter($costCenter)
5130
  {
5131
    $this->costCenter = $costCenter;
5132
  }
5133
  public function getCostCenter()
5134
  {
5135
    return $this->costCenter;
5136
  }
5137
  public function setCustomType($customType)
5138
  {
5139
    $this->customType = $customType;
5140
  }
5141
  public function getCustomType()
5142
  {
5143
    return $this->customType;
5144
  }
5145
  public function setDepartment($department)
5146
  {
5147
    $this->department = $department;
5148
  }
5149
  public function getDepartment()
5150
  {
5151
    return $this->department;
5152
  }
5153
  public function setDescription($description)
5154
  {
5155
    $this->description = $description;
5156
  }
5157
  public function getDescription()
5158
  {
5159
    return $this->description;
5160
  }
5161
  public function setDomain($domain)
5162
  {
5163
    $this->domain = $domain;
5164
  }
5165
  public function getDomain()
5166
  {
5167
    return $this->domain;
5168
  }
5169
  public function setLocation($location)
5170
  {
5171
    $this->location = $location;
5172
  }
5173
  public function getLocation()
5174
  {
5175
    return $this->location;
5176
  }
5177
  public function setName($name)
5178
  {
5179
    $this->name = $name;
5180
  }
5181
  public function getName()
5182
  {
5183
    return $this->name;
5184
  }
5185
  public function setPrimary($primary)
5186
  {
5187
    $this->primary = $primary;
5188
  }
5189
  public function getPrimary()
5190
  {
5191
    return $this->primary;
5192
  }
5193
  public function setSymbol($symbol)
5194
  {
5195
    $this->symbol = $symbol;
5196
  }
5197
  public function getSymbol()
5198
  {
5199
    return $this->symbol;
5200
  }
5201
  public function setTitle($title)
5202
  {
5203
    $this->title = $title;
5204
  }
5205
  public function getTitle()
5206
  {
5207
    return $this->title;
5208
  }
5209
  public function setType($type)
5210
  {
5211
    $this->type = $type;
5212
  }
5213
  public function getType()
5214
  {
5215
    return $this->type;
5216
  }
5217
}
5218
5219 View Code Duplication
class Google_Service_Directory_UserPhone extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5220
{
5221
  protected $internal_gapi_mappings = array(
5222
  );
5223
  public $customType;
5224
  public $primary;
5225
  public $type;
5226
  public $value;
5227
5228
5229
  public function setCustomType($customType)
5230
  {
5231
    $this->customType = $customType;
5232
  }
5233
  public function getCustomType()
5234
  {
5235
    return $this->customType;
5236
  }
5237
  public function setPrimary($primary)
5238
  {
5239
    $this->primary = $primary;
5240
  }
5241
  public function getPrimary()
5242
  {
5243
    return $this->primary;
5244
  }
5245
  public function setType($type)
5246
  {
5247
    $this->type = $type;
5248
  }
5249
  public function getType()
5250
  {
5251
    return $this->type;
5252
  }
5253
  public function setValue($value)
5254
  {
5255
    $this->value = $value;
5256
  }
5257
  public function getValue()
5258
  {
5259
    return $this->value;
5260
  }
5261
}
5262
5263 View Code Duplication
class Google_Service_Directory_UserPhoto extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5264
{
5265
  protected $internal_gapi_mappings = array(
5266
  );
5267
  public $etag;
5268
  public $height;
5269
  public $id;
5270
  public $kind;
5271
  public $mimeType;
5272
  public $photoData;
5273
  public $primaryEmail;
5274
  public $width;
5275
5276
5277
  public function setEtag($etag)
5278
  {
5279
    $this->etag = $etag;
5280
  }
5281
  public function getEtag()
5282
  {
5283
    return $this->etag;
5284
  }
5285
  public function setHeight($height)
5286
  {
5287
    $this->height = $height;
5288
  }
5289
  public function getHeight()
5290
  {
5291
    return $this->height;
5292
  }
5293
  public function setId($id)
5294
  {
5295
    $this->id = $id;
5296
  }
5297
  public function getId()
5298
  {
5299
    return $this->id;
5300
  }
5301
  public function setKind($kind)
5302
  {
5303
    $this->kind = $kind;
5304
  }
5305
  public function getKind()
5306
  {
5307
    return $this->kind;
5308
  }
5309
  public function setMimeType($mimeType)
5310
  {
5311
    $this->mimeType = $mimeType;
5312
  }
5313
  public function getMimeType()
5314
  {
5315
    return $this->mimeType;
5316
  }
5317
  public function setPhotoData($photoData)
5318
  {
5319
    $this->photoData = $photoData;
5320
  }
5321
  public function getPhotoData()
5322
  {
5323
    return $this->photoData;
5324
  }
5325
  public function setPrimaryEmail($primaryEmail)
5326
  {
5327
    $this->primaryEmail = $primaryEmail;
5328
  }
5329
  public function getPrimaryEmail()
5330
  {
5331
    return $this->primaryEmail;
5332
  }
5333
  public function setWidth($width)
5334
  {
5335
    $this->width = $width;
5336
  }
5337
  public function getWidth()
5338
  {
5339
    return $this->width;
5340
  }
5341
}
5342
5343 View Code Duplication
class Google_Service_Directory_UserRelation extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5344
{
5345
  protected $internal_gapi_mappings = array(
5346
  );
5347
  public $customType;
5348
  public $type;
5349
  public $value;
5350
5351
5352
  public function setCustomType($customType)
5353
  {
5354
    $this->customType = $customType;
5355
  }
5356
  public function getCustomType()
5357
  {
5358
    return $this->customType;
5359
  }
5360
  public function setType($type)
5361
  {
5362
    $this->type = $type;
5363
  }
5364
  public function getType()
5365
  {
5366
    return $this->type;
5367
  }
5368
  public function setValue($value)
5369
  {
5370
    $this->value = $value;
5371
  }
5372
  public function getValue()
5373
  {
5374
    return $this->value;
5375
  }
5376
}
5377
5378
class Google_Service_Directory_UserUndelete extends Google_Model
5379
{
5380
  protected $internal_gapi_mappings = array(
5381
  );
5382
  public $orgUnitPath;
5383
5384
5385
  public function setOrgUnitPath($orgUnitPath)
5386
  {
5387
    $this->orgUnitPath = $orgUnitPath;
5388
  }
5389
  public function getOrgUnitPath()
5390
  {
5391
    return $this->orgUnitPath;
5392
  }
5393
}
5394
5395 View Code Duplication
class Google_Service_Directory_UserWebsite extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5396
{
5397
  protected $internal_gapi_mappings = array(
5398
  );
5399
  public $customType;
5400
  public $primary;
5401
  public $type;
5402
  public $value;
5403
5404
5405
  public function setCustomType($customType)
5406
  {
5407
    $this->customType = $customType;
5408
  }
5409
  public function getCustomType()
5410
  {
5411
    return $this->customType;
5412
  }
5413
  public function setPrimary($primary)
5414
  {
5415
    $this->primary = $primary;
5416
  }
5417
  public function getPrimary()
5418
  {
5419
    return $this->primary;
5420
  }
5421
  public function setType($type)
5422
  {
5423
    $this->type = $type;
5424
  }
5425
  public function getType()
5426
  {
5427
    return $this->type;
5428
  }
5429
  public function setValue($value)
5430
  {
5431
    $this->value = $value;
5432
  }
5433
  public function getValue()
5434
  {
5435
    return $this->value;
5436
  }
5437
}
5438
5439
class Google_Service_Directory_Users extends Google_Collection
5440
{
5441
  protected $collection_key = 'users';
5442
  protected $internal_gapi_mappings = array(
5443
        "triggerEvent" => "trigger_event",
5444
  );
5445
  public $etag;
5446
  public $kind;
5447
  public $nextPageToken;
5448
  public $triggerEvent;
5449
  protected $usersType = 'Google_Service_Directory_User';
5450
  protected $usersDataType = 'array';
5451
5452
5453
  public function setEtag($etag)
5454
  {
5455
    $this->etag = $etag;
5456
  }
5457
  public function getEtag()
5458
  {
5459
    return $this->etag;
5460
  }
5461
  public function setKind($kind)
5462
  {
5463
    $this->kind = $kind;
5464
  }
5465
  public function getKind()
5466
  {
5467
    return $this->kind;
5468
  }
5469
  public function setNextPageToken($nextPageToken)
5470
  {
5471
    $this->nextPageToken = $nextPageToken;
5472
  }
5473
  public function getNextPageToken()
5474
  {
5475
    return $this->nextPageToken;
5476
  }
5477
  public function setTriggerEvent($triggerEvent)
5478
  {
5479
    $this->triggerEvent = $triggerEvent;
5480
  }
5481
  public function getTriggerEvent()
5482
  {
5483
    return $this->triggerEvent;
5484
  }
5485
  public function setUsers($users)
5486
  {
5487
    $this->users = $users;
0 ignored issues
show
Bug introduced by
The property users does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
5488
  }
5489
  public function getUsers()
5490
  {
5491
    return $this->users;
5492
  }
5493
}
5494
5495 View Code Duplication
class Google_Service_Directory_VerificationCode extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5496
{
5497
  protected $internal_gapi_mappings = array(
5498
  );
5499
  public $etag;
5500
  public $kind;
5501
  public $userId;
5502
  public $verificationCode;
5503
5504
5505
  public function setEtag($etag)
5506
  {
5507
    $this->etag = $etag;
5508
  }
5509
  public function getEtag()
5510
  {
5511
    return $this->etag;
5512
  }
5513
  public function setKind($kind)
5514
  {
5515
    $this->kind = $kind;
5516
  }
5517
  public function getKind()
5518
  {
5519
    return $this->kind;
5520
  }
5521
  public function setUserId($userId)
5522
  {
5523
    $this->userId = $userId;
5524
  }
5525
  public function getUserId()
5526
  {
5527
    return $this->userId;
5528
  }
5529
  public function setVerificationCode($verificationCode)
5530
  {
5531
    $this->verificationCode = $verificationCode;
5532
  }
5533
  public function getVerificationCode()
5534
  {
5535
    return $this->verificationCode;
5536
  }
5537
}
5538
5539
class Google_Service_Directory_VerificationCodes extends Google_Collection
5540
{
5541
  protected $collection_key = 'items';
5542
  protected $internal_gapi_mappings = array(
5543
  );
5544
  public $etag;
5545
  protected $itemsType = 'Google_Service_Directory_VerificationCode';
5546
  protected $itemsDataType = 'array';
5547
  public $kind;
5548
5549
5550
  public function setEtag($etag)
5551
  {
5552
    $this->etag = $etag;
5553
  }
5554
  public function getEtag()
5555
  {
5556
    return $this->etag;
5557
  }
5558
  public function setItems($items)
5559
  {
5560
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
5561
  }
5562
  public function getItems()
5563
  {
5564
    return $this->items;
5565
  }
5566
  public function setKind($kind)
5567
  {
5568
    $this->kind = $kind;
5569
  }
5570
  public function getKind()
5571
  {
5572
    return $this->kind;
5573
  }
5574
}
5575