@maxim_mazurok/gapi.client.admin-directory_v1 0.0.20231127 → 0.0.20231219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tests.ts DELETED
@@ -1,1822 +0,0 @@
1
- /* This is stub file for gapi.client.admin-directory_v1 definition tests */
2
- // IMPORTANT
3
- // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
- // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
-
6
- // Revision: 20231127
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://admin.googleapis.com/$discovery/rest?version=directory_v1');
12
- /** now we can use gapi.client.admin, gapi.client.directory */
13
-
14
- /** don't forget to authenticate your client before sending any request to resources: */
15
- /** declare client_id registered in Google Developers Console */
16
- const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
- const scope = [
18
- /** See, add, edit, and permanently delete the printers that your organization can use with Chrome */
19
- 'https://www.googleapis.com/auth/admin.chrome.printers',
20
- /** See the printers that your organization can use with Chrome */
21
- 'https://www.googleapis.com/auth/admin.chrome.printers.readonly',
22
- /** View and manage customer related information */
23
- 'https://www.googleapis.com/auth/admin.directory.customer',
24
- /** View customer related information */
25
- 'https://www.googleapis.com/auth/admin.directory.customer.readonly',
26
- /** View and manage your Chrome OS devices' metadata */
27
- 'https://www.googleapis.com/auth/admin.directory.device.chromeos',
28
- /** View your Chrome OS devices' metadata */
29
- 'https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly',
30
- /** View and manage your mobile devices' metadata */
31
- 'https://www.googleapis.com/auth/admin.directory.device.mobile',
32
- /** Manage your mobile devices by performing administrative tasks */
33
- 'https://www.googleapis.com/auth/admin.directory.device.mobile.action',
34
- /** View your mobile devices' metadata */
35
- 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly',
36
- /** View and manage the provisioning of domains for your customers */
37
- 'https://www.googleapis.com/auth/admin.directory.domain',
38
- /** View domains related to your customers */
39
- 'https://www.googleapis.com/auth/admin.directory.domain.readonly',
40
- /** View and manage the provisioning of groups on your domain */
41
- 'https://www.googleapis.com/auth/admin.directory.group',
42
- /** View and manage group subscriptions on your domain */
43
- 'https://www.googleapis.com/auth/admin.directory.group.member',
44
- /** View group subscriptions on your domain */
45
- 'https://www.googleapis.com/auth/admin.directory.group.member.readonly',
46
- /** View groups on your domain */
47
- 'https://www.googleapis.com/auth/admin.directory.group.readonly',
48
- /** View and manage organization units on your domain */
49
- 'https://www.googleapis.com/auth/admin.directory.orgunit',
50
- /** View organization units on your domain */
51
- 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly',
52
- /** View and manage the provisioning of calendar resources on your domain */
53
- 'https://www.googleapis.com/auth/admin.directory.resource.calendar',
54
- /** View calendar resources on your domain */
55
- 'https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly',
56
- /** Manage delegated admin roles for your domain */
57
- 'https://www.googleapis.com/auth/admin.directory.rolemanagement',
58
- /** View delegated admin roles for your domain */
59
- 'https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly',
60
- /** View and manage the provisioning of users on your domain */
61
- 'https://www.googleapis.com/auth/admin.directory.user',
62
- /** View and manage user aliases on your domain */
63
- 'https://www.googleapis.com/auth/admin.directory.user.alias',
64
- /** View user aliases on your domain */
65
- 'https://www.googleapis.com/auth/admin.directory.user.alias.readonly',
66
- /** See info about users on your domain */
67
- 'https://www.googleapis.com/auth/admin.directory.user.readonly',
68
- /** Manage data access permissions for users on your domain */
69
- 'https://www.googleapis.com/auth/admin.directory.user.security',
70
- /** View and manage the provisioning of user schemas on your domain */
71
- 'https://www.googleapis.com/auth/admin.directory.userschema',
72
- /** View user schemas on your domain */
73
- 'https://www.googleapis.com/auth/admin.directory.userschema.readonly',
74
- /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
75
- 'https://www.googleapis.com/auth/cloud-platform',
76
- ];
77
- const immediate = false;
78
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
79
- if (authResult && !authResult.error) {
80
- /** handle successful authorization */
81
- run();
82
- } else {
83
- /** handle authorization error */
84
- }
85
- });
86
-
87
- async function run() {
88
- /** Stops watching resources through this channel. */
89
- await gapi.client.admin.channels.stop({
90
- }, {
91
- address: "Test string",
92
- expiration: "Test string",
93
- id: "Test string",
94
- kind: "Test string",
95
- params: {
96
- A: "Test string"
97
- },
98
- payload: true,
99
- resourceId: "Test string",
100
- resourceUri: "Test string",
101
- token: "Test string",
102
- type: "Test string",
103
- });
104
- /** Issues a command for the device to execute. */
105
- await gapi.client.admin.customer.devices.chromeos.issueCommand({
106
- customerId: "Test string",
107
- deviceId: "Test string",
108
- }, {
109
- commandType: "Test string",
110
- payload: "Test string",
111
- });
112
- /** Gets command data a specific command issued to the device. */
113
- await gapi.client.admin.customer.devices.chromeos.commands.get({
114
- commandId: "Test string",
115
- customerId: "Test string",
116
- deviceId: "Test string",
117
- });
118
- /** Creates printers under given Organization Unit. */
119
- await gapi.client.admin.customers.chrome.printers.batchCreatePrinters({
120
- parent: "Test string",
121
- }, {
122
- requests: [
123
- {
124
- parent: "Test string",
125
- printer: {
126
- auxiliaryMessages: [
127
- {
128
- auxiliaryMessage: "Test string",
129
- fieldMask: "Test string",
130
- severity: "Test string",
131
- }
132
- ],
133
- createTime: "Test string",
134
- description: "Test string",
135
- displayName: "Test string",
136
- id: "Test string",
137
- makeAndModel: "Test string",
138
- name: "Test string",
139
- orgUnitId: "Test string",
140
- uri: "Test string",
141
- useDriverlessConfig: true,
142
- },
143
- }
144
- ],
145
- });
146
- /** Deletes printers in batch. */
147
- await gapi.client.admin.customers.chrome.printers.batchDeletePrinters({
148
- parent: "Test string",
149
- }, {
150
- printerIds: [
151
- "Test string"
152
- ],
153
- });
154
- /** Creates a printer under given Organization Unit. */
155
- await gapi.client.admin.customers.chrome.printers.create({
156
- parent: "Test string",
157
- }, {
158
- auxiliaryMessages: [
159
- {
160
- auxiliaryMessage: "Test string",
161
- fieldMask: "Test string",
162
- severity: "Test string",
163
- }
164
- ],
165
- createTime: "Test string",
166
- description: "Test string",
167
- displayName: "Test string",
168
- id: "Test string",
169
- makeAndModel: "Test string",
170
- name: "Test string",
171
- orgUnitId: "Test string",
172
- uri: "Test string",
173
- useDriverlessConfig: true,
174
- });
175
- /** Deletes a `Printer`. */
176
- await gapi.client.admin.customers.chrome.printers.delete({
177
- name: "Test string",
178
- });
179
- /** Returns a `Printer` resource (printer's config). */
180
- await gapi.client.admin.customers.chrome.printers.get({
181
- name: "Test string",
182
- });
183
- /** List printers configs. */
184
- await gapi.client.admin.customers.chrome.printers.list({
185
- filter: "Test string",
186
- orderBy: "Test string",
187
- orgUnitId: "Test string",
188
- pageSize: 42,
189
- pageToken: "Test string",
190
- parent: "Test string",
191
- });
192
- /** Lists the supported printer models. */
193
- await gapi.client.admin.customers.chrome.printers.listPrinterModels({
194
- filter: "Test string",
195
- pageSize: 42,
196
- pageToken: "Test string",
197
- parent: "Test string",
198
- });
199
- /** Updates a `Printer` resource. */
200
- await gapi.client.admin.customers.chrome.printers.patch({
201
- clearMask: "Test string",
202
- name: "Test string",
203
- updateMask: "Test string",
204
- }, {
205
- auxiliaryMessages: [
206
- {
207
- auxiliaryMessage: "Test string",
208
- fieldMask: "Test string",
209
- severity: "Test string",
210
- }
211
- ],
212
- createTime: "Test string",
213
- description: "Test string",
214
- displayName: "Test string",
215
- id: "Test string",
216
- makeAndModel: "Test string",
217
- name: "Test string",
218
- orgUnitId: "Test string",
219
- uri: "Test string",
220
- useDriverlessConfig: true,
221
- });
222
- /** Creates multiple print servers. */
223
- await gapi.client.admin.customers.chrome.printServers.batchCreatePrintServers({
224
- parent: "Test string",
225
- }, {
226
- requests: [
227
- {
228
- parent: "Test string",
229
- printServer: {
230
- createTime: "Test string",
231
- description: "Test string",
232
- displayName: "Test string",
233
- id: "Test string",
234
- name: "Test string",
235
- orgUnitId: "Test string",
236
- uri: "Test string",
237
- },
238
- }
239
- ],
240
- });
241
- /** Deletes multiple print servers. */
242
- await gapi.client.admin.customers.chrome.printServers.batchDeletePrintServers({
243
- parent: "Test string",
244
- }, {
245
- printServerIds: [
246
- "Test string"
247
- ],
248
- });
249
- /** Creates a print server. */
250
- await gapi.client.admin.customers.chrome.printServers.create({
251
- parent: "Test string",
252
- }, {
253
- createTime: "Test string",
254
- description: "Test string",
255
- displayName: "Test string",
256
- id: "Test string",
257
- name: "Test string",
258
- orgUnitId: "Test string",
259
- uri: "Test string",
260
- });
261
- /** Deletes a print server. */
262
- await gapi.client.admin.customers.chrome.printServers.delete({
263
- name: "Test string",
264
- });
265
- /** Returns a print server's configuration. */
266
- await gapi.client.admin.customers.chrome.printServers.get({
267
- name: "Test string",
268
- });
269
- /** Lists print server configurations. */
270
- await gapi.client.admin.customers.chrome.printServers.list({
271
- filter: "Test string",
272
- orderBy: "Test string",
273
- orgUnitId: "Test string",
274
- pageSize: 42,
275
- pageToken: "Test string",
276
- parent: "Test string",
277
- });
278
- /** Updates a print server's configuration. */
279
- await gapi.client.admin.customers.chrome.printServers.patch({
280
- name: "Test string",
281
- updateMask: "Test string",
282
- }, {
283
- createTime: "Test string",
284
- description: "Test string",
285
- displayName: "Test string",
286
- id: "Test string",
287
- name: "Test string",
288
- orgUnitId: "Test string",
289
- uri: "Test string",
290
- });
291
- /** Deletes an ASP issued by a user. */
292
- await gapi.client.directory.asps.delete({
293
- codeId: 42,
294
- userKey: "Test string",
295
- });
296
- /** Gets information about an ASP issued by a user. */
297
- await gapi.client.directory.asps.get({
298
- codeId: 42,
299
- userKey: "Test string",
300
- });
301
- /** Lists the ASPs issued by a user. */
302
- await gapi.client.directory.asps.list({
303
- userKey: "Test string",
304
- });
305
- /**
306
- * Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing
307
- * and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a
308
- * disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information
309
- * about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633).
310
- */
311
- await gapi.client.directory.chromeosdevices.action({
312
- customerId: "Test string",
313
- resourceId: "Test string",
314
- }, {
315
- action: "Test string",
316
- deprovisionReason: "Test string",
317
- });
318
- /** Retrieves a Chrome OS device's properties. */
319
- await gapi.client.directory.chromeosdevices.get({
320
- customerId: "Test string",
321
- deviceId: "Test string",
322
- projection: "Test string",
323
- });
324
- /** Retrieves a paginated list of Chrome OS devices within an account. */
325
- await gapi.client.directory.chromeosdevices.list({
326
- customerId: "Test string",
327
- includeChildOrgunits: true,
328
- maxResults: 42,
329
- orderBy: "Test string",
330
- orgUnitPath: "Test string",
331
- pageToken: "Test string",
332
- projection: "Test string",
333
- query: "Test string",
334
- sortOrder: "Test string",
335
- });
336
- /** Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once. */
337
- await gapi.client.directory.chromeosdevices.moveDevicesToOu({
338
- customerId: "Test string",
339
- orgUnitPath: "Test string",
340
- }, {
341
- deviceIds: [
342
- "Test string"
343
- ],
344
- });
345
- /**
346
- * Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This method supports [patch
347
- * semantics](/admin-sdk/directory/v1/guides/performance#patch).
348
- */
349
- await gapi.client.directory.chromeosdevices.patch({
350
- customerId: "Test string",
351
- deviceId: "Test string",
352
- projection: "Test string",
353
- }, {
354
- activeTimeRanges: [
355
- {
356
- activeTime: 42,
357
- date: "Test string",
358
- }
359
- ],
360
- annotatedAssetId: "Test string",
361
- annotatedLocation: "Test string",
362
- annotatedUser: "Test string",
363
- autoUpdateExpiration: "Test string",
364
- bootMode: "Test string",
365
- cpuInfo: [
366
- {
367
- architecture: "Test string",
368
- logicalCpus: [
369
- {
370
- cStates: [
371
- {
372
- displayName: "Test string",
373
- sessionDuration: "Test string",
374
- }
375
- ],
376
- currentScalingFrequencyKhz: 42,
377
- idleDuration: "Test string",
378
- maxScalingFrequencyKhz: 42,
379
- }
380
- ],
381
- maxClockSpeedKhz: 42,
382
- model: "Test string",
383
- }
384
- ],
385
- cpuStatusReports: [
386
- {
387
- cpuTemperatureInfo: [
388
- {
389
- label: "Test string",
390
- temperature: 42,
391
- }
392
- ],
393
- cpuUtilizationPercentageInfo: [
394
- 42
395
- ],
396
- reportTime: "Test string",
397
- }
398
- ],
399
- deprovisionReason: "Test string",
400
- deviceFiles: [
401
- {
402
- createTime: "Test string",
403
- downloadUrl: "Test string",
404
- name: "Test string",
405
- type: "Test string",
406
- }
407
- ],
408
- deviceId: "Test string",
409
- deviceLicenseType: "Test string",
410
- diskVolumeReports: [
411
- {
412
- volumeInfo: [
413
- {
414
- storageFree: "Test string",
415
- storageTotal: "Test string",
416
- volumeId: "Test string",
417
- }
418
- ],
419
- }
420
- ],
421
- dockMacAddress: "Test string",
422
- etag: "Test string",
423
- ethernetMacAddress: "Test string",
424
- ethernetMacAddress0: "Test string",
425
- firmwareVersion: "Test string",
426
- firstEnrollmentTime: "Test string",
427
- kind: "Test string",
428
- lastDeprovisionTimestamp: "Test string",
429
- lastEnrollmentTime: "Test string",
430
- lastKnownNetwork: [
431
- {
432
- ipAddress: "Test string",
433
- wanIpAddress: "Test string",
434
- }
435
- ],
436
- lastSync: "Test string",
437
- macAddress: "Test string",
438
- manufactureDate: "Test string",
439
- meid: "Test string",
440
- model: "Test string",
441
- notes: "Test string",
442
- orderNumber: "Test string",
443
- orgUnitId: "Test string",
444
- orgUnitPath: "Test string",
445
- osUpdateStatus: {
446
- rebootTime: "Test string",
447
- state: "Test string",
448
- targetKioskAppVersion: "Test string",
449
- targetOsVersion: "Test string",
450
- updateCheckTime: "Test string",
451
- updateTime: "Test string",
452
- },
453
- osVersion: "Test string",
454
- platformVersion: "Test string",
455
- recentUsers: [
456
- {
457
- email: "Test string",
458
- type: "Test string",
459
- }
460
- ],
461
- screenshotFiles: [
462
- {
463
- createTime: "Test string",
464
- downloadUrl: "Test string",
465
- name: "Test string",
466
- type: "Test string",
467
- }
468
- ],
469
- serialNumber: "Test string",
470
- status: "Test string",
471
- supportEndDate: "Test string",
472
- systemRamFreeReports: [
473
- {
474
- reportTime: "Test string",
475
- systemRamFreeInfo: [
476
- "Test string"
477
- ],
478
- }
479
- ],
480
- systemRamTotal: "Test string",
481
- tpmVersionInfo: {
482
- family: "Test string",
483
- firmwareVersion: "Test string",
484
- manufacturer: "Test string",
485
- specLevel: "Test string",
486
- tpmModel: "Test string",
487
- vendorSpecific: "Test string",
488
- },
489
- willAutoRenew: true,
490
- });
491
- /** Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. */
492
- await gapi.client.directory.chromeosdevices.update({
493
- customerId: "Test string",
494
- deviceId: "Test string",
495
- projection: "Test string",
496
- }, {
497
- activeTimeRanges: [
498
- {
499
- activeTime: 42,
500
- date: "Test string",
501
- }
502
- ],
503
- annotatedAssetId: "Test string",
504
- annotatedLocation: "Test string",
505
- annotatedUser: "Test string",
506
- autoUpdateExpiration: "Test string",
507
- bootMode: "Test string",
508
- cpuInfo: [
509
- {
510
- architecture: "Test string",
511
- logicalCpus: [
512
- {
513
- cStates: [
514
- {
515
- displayName: "Test string",
516
- sessionDuration: "Test string",
517
- }
518
- ],
519
- currentScalingFrequencyKhz: 42,
520
- idleDuration: "Test string",
521
- maxScalingFrequencyKhz: 42,
522
- }
523
- ],
524
- maxClockSpeedKhz: 42,
525
- model: "Test string",
526
- }
527
- ],
528
- cpuStatusReports: [
529
- {
530
- cpuTemperatureInfo: [
531
- {
532
- label: "Test string",
533
- temperature: 42,
534
- }
535
- ],
536
- cpuUtilizationPercentageInfo: [
537
- 42
538
- ],
539
- reportTime: "Test string",
540
- }
541
- ],
542
- deprovisionReason: "Test string",
543
- deviceFiles: [
544
- {
545
- createTime: "Test string",
546
- downloadUrl: "Test string",
547
- name: "Test string",
548
- type: "Test string",
549
- }
550
- ],
551
- deviceId: "Test string",
552
- deviceLicenseType: "Test string",
553
- diskVolumeReports: [
554
- {
555
- volumeInfo: [
556
- {
557
- storageFree: "Test string",
558
- storageTotal: "Test string",
559
- volumeId: "Test string",
560
- }
561
- ],
562
- }
563
- ],
564
- dockMacAddress: "Test string",
565
- etag: "Test string",
566
- ethernetMacAddress: "Test string",
567
- ethernetMacAddress0: "Test string",
568
- firmwareVersion: "Test string",
569
- firstEnrollmentTime: "Test string",
570
- kind: "Test string",
571
- lastDeprovisionTimestamp: "Test string",
572
- lastEnrollmentTime: "Test string",
573
- lastKnownNetwork: [
574
- {
575
- ipAddress: "Test string",
576
- wanIpAddress: "Test string",
577
- }
578
- ],
579
- lastSync: "Test string",
580
- macAddress: "Test string",
581
- manufactureDate: "Test string",
582
- meid: "Test string",
583
- model: "Test string",
584
- notes: "Test string",
585
- orderNumber: "Test string",
586
- orgUnitId: "Test string",
587
- orgUnitPath: "Test string",
588
- osUpdateStatus: {
589
- rebootTime: "Test string",
590
- state: "Test string",
591
- targetKioskAppVersion: "Test string",
592
- targetOsVersion: "Test string",
593
- updateCheckTime: "Test string",
594
- updateTime: "Test string",
595
- },
596
- osVersion: "Test string",
597
- platformVersion: "Test string",
598
- recentUsers: [
599
- {
600
- email: "Test string",
601
- type: "Test string",
602
- }
603
- ],
604
- screenshotFiles: [
605
- {
606
- createTime: "Test string",
607
- downloadUrl: "Test string",
608
- name: "Test string",
609
- type: "Test string",
610
- }
611
- ],
612
- serialNumber: "Test string",
613
- status: "Test string",
614
- supportEndDate: "Test string",
615
- systemRamFreeReports: [
616
- {
617
- reportTime: "Test string",
618
- systemRamFreeInfo: [
619
- "Test string"
620
- ],
621
- }
622
- ],
623
- systemRamTotal: "Test string",
624
- tpmVersionInfo: {
625
- family: "Test string",
626
- firmwareVersion: "Test string",
627
- manufacturer: "Test string",
628
- specLevel: "Test string",
629
- tpmModel: "Test string",
630
- vendorSpecific: "Test string",
631
- },
632
- willAutoRenew: true,
633
- });
634
- /** Retrieves a customer. */
635
- await gapi.client.directory.customers.get({
636
- customerKey: "Test string",
637
- });
638
- /** Patches a customer. */
639
- await gapi.client.directory.customers.patch({
640
- customerKey: "Test string",
641
- }, {
642
- alternateEmail: "Test string",
643
- customerCreationTime: "Test string",
644
- customerDomain: "Test string",
645
- etag: "Test string",
646
- id: "Test string",
647
- kind: "Test string",
648
- language: "Test string",
649
- phoneNumber: "Test string",
650
- postalAddress: {
651
- addressLine1: "Test string",
652
- addressLine2: "Test string",
653
- addressLine3: "Test string",
654
- contactName: "Test string",
655
- countryCode: "Test string",
656
- locality: "Test string",
657
- organizationName: "Test string",
658
- postalCode: "Test string",
659
- region: "Test string",
660
- },
661
- });
662
- /** Updates a customer. */
663
- await gapi.client.directory.customers.update({
664
- customerKey: "Test string",
665
- }, {
666
- alternateEmail: "Test string",
667
- customerCreationTime: "Test string",
668
- customerDomain: "Test string",
669
- etag: "Test string",
670
- id: "Test string",
671
- kind: "Test string",
672
- language: "Test string",
673
- phoneNumber: "Test string",
674
- postalAddress: {
675
- addressLine1: "Test string",
676
- addressLine2: "Test string",
677
- addressLine3: "Test string",
678
- contactName: "Test string",
679
- countryCode: "Test string",
680
- locality: "Test string",
681
- organizationName: "Test string",
682
- postalCode: "Test string",
683
- region: "Test string",
684
- },
685
- });
686
- /** Deletes a domain Alias of the customer. */
687
- await gapi.client.directory.domainAliases.delete({
688
- customer: "Test string",
689
- domainAliasName: "Test string",
690
- });
691
- /** Retrieves a domain alias of the customer. */
692
- await gapi.client.directory.domainAliases.get({
693
- customer: "Test string",
694
- domainAliasName: "Test string",
695
- });
696
- /** Inserts a domain alias of the customer. */
697
- await gapi.client.directory.domainAliases.insert({
698
- customer: "Test string",
699
- }, {
700
- creationTime: "Test string",
701
- domainAliasName: "Test string",
702
- etag: "Test string",
703
- kind: "Test string",
704
- parentDomainName: "Test string",
705
- verified: true,
706
- });
707
- /** Lists the domain aliases of the customer. */
708
- await gapi.client.directory.domainAliases.list({
709
- customer: "Test string",
710
- parentDomainName: "Test string",
711
- });
712
- /** Deletes a domain of the customer. */
713
- await gapi.client.directory.domains.delete({
714
- customer: "Test string",
715
- domainName: "Test string",
716
- });
717
- /** Retrieves a domain of the customer. */
718
- await gapi.client.directory.domains.get({
719
- customer: "Test string",
720
- domainName: "Test string",
721
- });
722
- /** Inserts a domain of the customer. */
723
- await gapi.client.directory.domains.insert({
724
- customer: "Test string",
725
- }, {
726
- creationTime: "Test string",
727
- domainAliases: [
728
- {
729
- creationTime: "Test string",
730
- domainAliasName: "Test string",
731
- etag: "Test string",
732
- kind: "Test string",
733
- parentDomainName: "Test string",
734
- verified: true,
735
- }
736
- ],
737
- domainName: "Test string",
738
- etag: "Test string",
739
- isPrimary: true,
740
- kind: "Test string",
741
- verified: true,
742
- });
743
- /** Lists the domains of the customer. */
744
- await gapi.client.directory.domains.list({
745
- customer: "Test string",
746
- });
747
- /** Deletes a group. */
748
- await gapi.client.directory.groups.delete({
749
- groupKey: "Test string",
750
- });
751
- /** Retrieves a group's properties. */
752
- await gapi.client.directory.groups.get({
753
- groupKey: "Test string",
754
- });
755
- /** Creates a group. */
756
- await gapi.client.directory.groups.insert({
757
- }, {
758
- adminCreated: true,
759
- aliases: [
760
- "Test string"
761
- ],
762
- description: "Test string",
763
- directMembersCount: "Test string",
764
- email: "Test string",
765
- etag: "Test string",
766
- id: "Test string",
767
- kind: "Test string",
768
- name: "Test string",
769
- nonEditableAliases: [
770
- "Test string"
771
- ],
772
- });
773
- /** Retrieves all groups of a domain or of a user given a userKey (paginated). */
774
- await gapi.client.directory.groups.list({
775
- customer: "Test string",
776
- domain: "Test string",
777
- maxResults: 42,
778
- orderBy: "Test string",
779
- pageToken: "Test string",
780
- query: "Test string",
781
- sortOrder: "Test string",
782
- userKey: "Test string",
783
- });
784
- /** Updates a group's properties. This method supports [patch semantics](/admin-sdk/directory/v1/guides/performance#patch). */
785
- await gapi.client.directory.groups.patch({
786
- groupKey: "Test string",
787
- }, {
788
- adminCreated: true,
789
- aliases: [
790
- "Test string"
791
- ],
792
- description: "Test string",
793
- directMembersCount: "Test string",
794
- email: "Test string",
795
- etag: "Test string",
796
- id: "Test string",
797
- kind: "Test string",
798
- name: "Test string",
799
- nonEditableAliases: [
800
- "Test string"
801
- ],
802
- });
803
- /** Updates a group's properties. */
804
- await gapi.client.directory.groups.update({
805
- groupKey: "Test string",
806
- }, {
807
- adminCreated: true,
808
- aliases: [
809
- "Test string"
810
- ],
811
- description: "Test string",
812
- directMembersCount: "Test string",
813
- email: "Test string",
814
- etag: "Test string",
815
- id: "Test string",
816
- kind: "Test string",
817
- name: "Test string",
818
- nonEditableAliases: [
819
- "Test string"
820
- ],
821
- });
822
- /** Removes an alias. */
823
- await gapi.client.directory.groups.aliases.delete({
824
- alias: "Test string",
825
- groupKey: "Test string",
826
- });
827
- /** Adds an alias for the group. */
828
- await gapi.client.directory.groups.aliases.insert({
829
- groupKey: "Test string",
830
- }, {
831
- alias: "Test string",
832
- etag: "Test string",
833
- id: "Test string",
834
- kind: "Test string",
835
- primaryEmail: "Test string",
836
- });
837
- /** Lists all aliases for a group. */
838
- await gapi.client.directory.groups.aliases.list({
839
- groupKey: "Test string",
840
- });
841
- /** Removes a member from a group. */
842
- await gapi.client.directory.members.delete({
843
- groupKey: "Test string",
844
- memberKey: "Test string",
845
- });
846
- /** Retrieves a group member's properties. */
847
- await gapi.client.directory.members.get({
848
- groupKey: "Test string",
849
- memberKey: "Test string",
850
- });
851
- /**
852
- * Checks whether the given user is a member of the group. Membership can be direct or nested, but if nested, the `memberKey` and `groupKey` must be entities in the same domain or an
853
- * `Invalid input` error is returned. To check for nested memberships that include entities outside of the group's domain, use the
854
- * [`checkTransitiveMembership()`](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships/checkTransitiveMembership) method in the Cloud Identity Groups API.
855
- */
856
- await gapi.client.directory.members.hasMember({
857
- groupKey: "Test string",
858
- memberKey: "Test string",
859
- });
860
- /** Adds a user to the specified group. */
861
- await gapi.client.directory.members.insert({
862
- groupKey: "Test string",
863
- }, {
864
- delivery_settings: "Test string",
865
- email: "Test string",
866
- etag: "Test string",
867
- id: "Test string",
868
- kind: "Test string",
869
- role: "Test string",
870
- status: "Test string",
871
- type: "Test string",
872
- });
873
- /**
874
- * Retrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see [Troubleshoot error
875
- * codes](https://developers.google.com/admin-sdk/directory/v1/guides/troubleshoot-error-codes).
876
- */
877
- await gapi.client.directory.members.list({
878
- groupKey: "Test string",
879
- includeDerivedMembership: true,
880
- maxResults: 42,
881
- pageToken: "Test string",
882
- roles: "Test string",
883
- });
884
- /** Updates the membership properties of a user in the specified group. This method supports [patch semantics](/admin-sdk/directory/v1/guides/performance#patch). */
885
- await gapi.client.directory.members.patch({
886
- groupKey: "Test string",
887
- memberKey: "Test string",
888
- }, {
889
- delivery_settings: "Test string",
890
- email: "Test string",
891
- etag: "Test string",
892
- id: "Test string",
893
- kind: "Test string",
894
- role: "Test string",
895
- status: "Test string",
896
- type: "Test string",
897
- });
898
- /** Updates the membership of a user in the specified group. */
899
- await gapi.client.directory.members.update({
900
- groupKey: "Test string",
901
- memberKey: "Test string",
902
- }, {
903
- delivery_settings: "Test string",
904
- email: "Test string",
905
- etag: "Test string",
906
- id: "Test string",
907
- kind: "Test string",
908
- role: "Test string",
909
- status: "Test string",
910
- type: "Test string",
911
- });
912
- /** Takes an action that affects a mobile device. For example, remotely wiping a device. */
913
- await gapi.client.directory.mobiledevices.action({
914
- customerId: "Test string",
915
- resourceId: "Test string",
916
- }, {
917
- action: "Test string",
918
- });
919
- /** Removes a mobile device. */
920
- await gapi.client.directory.mobiledevices.delete({
921
- customerId: "Test string",
922
- resourceId: "Test string",
923
- });
924
- /** Retrieves a mobile device's properties. */
925
- await gapi.client.directory.mobiledevices.get({
926
- customerId: "Test string",
927
- projection: "Test string",
928
- resourceId: "Test string",
929
- });
930
- /**
931
- * Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devices
932
- * API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead. This method times out after 60 minutes. For more information, see [Troubleshoot error
933
- * codes](https://developers.google.com/admin-sdk/directory/v1/guides/troubleshoot-error-codes).
934
- */
935
- await gapi.client.directory.mobiledevices.list({
936
- customerId: "Test string",
937
- maxResults: 42,
938
- orderBy: "Test string",
939
- pageToken: "Test string",
940
- projection: "Test string",
941
- query: "Test string",
942
- sortOrder: "Test string",
943
- });
944
- /** Removes an organizational unit. */
945
- await gapi.client.directory.orgunits.delete({
946
- customerId: "Test string",
947
- orgUnitPath: "Test string",
948
- });
949
- /** Retrieves an organizational unit. */
950
- await gapi.client.directory.orgunits.get({
951
- customerId: "Test string",
952
- orgUnitPath: "Test string",
953
- });
954
- /** Adds an organizational unit. */
955
- await gapi.client.directory.orgunits.insert({
956
- customerId: "Test string",
957
- }, {
958
- blockInheritance: true,
959
- description: "Test string",
960
- etag: "Test string",
961
- kind: "Test string",
962
- name: "Test string",
963
- orgUnitId: "Test string",
964
- orgUnitPath: "Test string",
965
- parentOrgUnitId: "Test string",
966
- parentOrgUnitPath: "Test string",
967
- });
968
- /** Retrieves a list of all organizational units for an account. */
969
- await gapi.client.directory.orgunits.list({
970
- customerId: "Test string",
971
- orgUnitPath: "Test string",
972
- type: "Test string",
973
- });
974
- /** Updates an organizational unit. This method supports [patch semantics](/admin-sdk/directory/v1/guides/performance#patch) */
975
- await gapi.client.directory.orgunits.patch({
976
- customerId: "Test string",
977
- orgUnitPath: "Test string",
978
- }, {
979
- blockInheritance: true,
980
- description: "Test string",
981
- etag: "Test string",
982
- kind: "Test string",
983
- name: "Test string",
984
- orgUnitId: "Test string",
985
- orgUnitPath: "Test string",
986
- parentOrgUnitId: "Test string",
987
- parentOrgUnitPath: "Test string",
988
- });
989
- /** Updates an organizational unit. */
990
- await gapi.client.directory.orgunits.update({
991
- customerId: "Test string",
992
- orgUnitPath: "Test string",
993
- }, {
994
- blockInheritance: true,
995
- description: "Test string",
996
- etag: "Test string",
997
- kind: "Test string",
998
- name: "Test string",
999
- orgUnitId: "Test string",
1000
- orgUnitPath: "Test string",
1001
- parentOrgUnitId: "Test string",
1002
- parentOrgUnitPath: "Test string",
1003
- });
1004
- /** Retrieves a paginated list of all privileges for a customer. */
1005
- await gapi.client.directory.privileges.list({
1006
- customer: "Test string",
1007
- });
1008
- /** Deletes a building. */
1009
- await gapi.client.directory.resources.buildings.delete({
1010
- buildingId: "Test string",
1011
- customer: "Test string",
1012
- });
1013
- /** Retrieves a building. */
1014
- await gapi.client.directory.resources.buildings.get({
1015
- buildingId: "Test string",
1016
- customer: "Test string",
1017
- });
1018
- /** Inserts a building. */
1019
- await gapi.client.directory.resources.buildings.insert({
1020
- coordinatesSource: "Test string",
1021
- customer: "Test string",
1022
- }, {
1023
- address: {
1024
- addressLines: [
1025
- "Test string"
1026
- ],
1027
- administrativeArea: "Test string",
1028
- languageCode: "Test string",
1029
- locality: "Test string",
1030
- postalCode: "Test string",
1031
- regionCode: "Test string",
1032
- sublocality: "Test string",
1033
- },
1034
- buildingId: "Test string",
1035
- buildingName: "Test string",
1036
- coordinates: {
1037
- latitude: 42,
1038
- longitude: 42,
1039
- },
1040
- description: "Test string",
1041
- etags: "Test string",
1042
- floorNames: [
1043
- "Test string"
1044
- ],
1045
- kind: "Test string",
1046
- });
1047
- /** Retrieves a list of buildings for an account. */
1048
- await gapi.client.directory.resources.buildings.list({
1049
- customer: "Test string",
1050
- maxResults: 42,
1051
- pageToken: "Test string",
1052
- });
1053
- /** Patches a building. */
1054
- await gapi.client.directory.resources.buildings.patch({
1055
- buildingId: "Test string",
1056
- coordinatesSource: "Test string",
1057
- customer: "Test string",
1058
- }, {
1059
- address: {
1060
- addressLines: [
1061
- "Test string"
1062
- ],
1063
- administrativeArea: "Test string",
1064
- languageCode: "Test string",
1065
- locality: "Test string",
1066
- postalCode: "Test string",
1067
- regionCode: "Test string",
1068
- sublocality: "Test string",
1069
- },
1070
- buildingId: "Test string",
1071
- buildingName: "Test string",
1072
- coordinates: {
1073
- latitude: 42,
1074
- longitude: 42,
1075
- },
1076
- description: "Test string",
1077
- etags: "Test string",
1078
- floorNames: [
1079
- "Test string"
1080
- ],
1081
- kind: "Test string",
1082
- });
1083
- /** Updates a building. */
1084
- await gapi.client.directory.resources.buildings.update({
1085
- buildingId: "Test string",
1086
- coordinatesSource: "Test string",
1087
- customer: "Test string",
1088
- }, {
1089
- address: {
1090
- addressLines: [
1091
- "Test string"
1092
- ],
1093
- administrativeArea: "Test string",
1094
- languageCode: "Test string",
1095
- locality: "Test string",
1096
- postalCode: "Test string",
1097
- regionCode: "Test string",
1098
- sublocality: "Test string",
1099
- },
1100
- buildingId: "Test string",
1101
- buildingName: "Test string",
1102
- coordinates: {
1103
- latitude: 42,
1104
- longitude: 42,
1105
- },
1106
- description: "Test string",
1107
- etags: "Test string",
1108
- floorNames: [
1109
- "Test string"
1110
- ],
1111
- kind: "Test string",
1112
- });
1113
- /** Deletes a calendar resource. */
1114
- await gapi.client.directory.resources.calendars.delete({
1115
- calendarResourceId: "Test string",
1116
- customer: "Test string",
1117
- });
1118
- /** Retrieves a calendar resource. */
1119
- await gapi.client.directory.resources.calendars.get({
1120
- calendarResourceId: "Test string",
1121
- customer: "Test string",
1122
- });
1123
- /** Inserts a calendar resource. */
1124
- await gapi.client.directory.resources.calendars.insert({
1125
- customer: "Test string",
1126
- }, {
1127
- buildingId: "Test string",
1128
- capacity: 42,
1129
- etags: "Test string",
1130
- featureInstances: 42,
1131
- floorName: "Test string",
1132
- floorSection: "Test string",
1133
- generatedResourceName: "Test string",
1134
- kind: "Test string",
1135
- resourceCategory: "Test string",
1136
- resourceDescription: "Test string",
1137
- resourceEmail: "Test string",
1138
- resourceId: "Test string",
1139
- resourceName: "Test string",
1140
- resourceType: "Test string",
1141
- userVisibleDescription: "Test string",
1142
- });
1143
- /** Retrieves a list of calendar resources for an account. */
1144
- await gapi.client.directory.resources.calendars.list({
1145
- customer: "Test string",
1146
- maxResults: 42,
1147
- orderBy: "Test string",
1148
- pageToken: "Test string",
1149
- query: "Test string",
1150
- });
1151
- /** Patches a calendar resource. */
1152
- await gapi.client.directory.resources.calendars.patch({
1153
- calendarResourceId: "Test string",
1154
- customer: "Test string",
1155
- }, {
1156
- buildingId: "Test string",
1157
- capacity: 42,
1158
- etags: "Test string",
1159
- featureInstances: 42,
1160
- floorName: "Test string",
1161
- floorSection: "Test string",
1162
- generatedResourceName: "Test string",
1163
- kind: "Test string",
1164
- resourceCategory: "Test string",
1165
- resourceDescription: "Test string",
1166
- resourceEmail: "Test string",
1167
- resourceId: "Test string",
1168
- resourceName: "Test string",
1169
- resourceType: "Test string",
1170
- userVisibleDescription: "Test string",
1171
- });
1172
- /**
1173
- * Updates a calendar resource. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be
1174
- * preserved.
1175
- */
1176
- await gapi.client.directory.resources.calendars.update({
1177
- calendarResourceId: "Test string",
1178
- customer: "Test string",
1179
- }, {
1180
- buildingId: "Test string",
1181
- capacity: 42,
1182
- etags: "Test string",
1183
- featureInstances: 42,
1184
- floorName: "Test string",
1185
- floorSection: "Test string",
1186
- generatedResourceName: "Test string",
1187
- kind: "Test string",
1188
- resourceCategory: "Test string",
1189
- resourceDescription: "Test string",
1190
- resourceEmail: "Test string",
1191
- resourceId: "Test string",
1192
- resourceName: "Test string",
1193
- resourceType: "Test string",
1194
- userVisibleDescription: "Test string",
1195
- });
1196
- /** Deletes a feature. */
1197
- await gapi.client.directory.resources.features.delete({
1198
- customer: "Test string",
1199
- featureKey: "Test string",
1200
- });
1201
- /** Retrieves a feature. */
1202
- await gapi.client.directory.resources.features.get({
1203
- customer: "Test string",
1204
- featureKey: "Test string",
1205
- });
1206
- /** Inserts a feature. */
1207
- await gapi.client.directory.resources.features.insert({
1208
- customer: "Test string",
1209
- }, {
1210
- etags: "Test string",
1211
- kind: "Test string",
1212
- name: "Test string",
1213
- });
1214
- /** Retrieves a list of features for an account. */
1215
- await gapi.client.directory.resources.features.list({
1216
- customer: "Test string",
1217
- maxResults: 42,
1218
- pageToken: "Test string",
1219
- });
1220
- /** Patches a feature. */
1221
- await gapi.client.directory.resources.features.patch({
1222
- customer: "Test string",
1223
- featureKey: "Test string",
1224
- }, {
1225
- etags: "Test string",
1226
- kind: "Test string",
1227
- name: "Test string",
1228
- });
1229
- /** Renames a feature. */
1230
- await gapi.client.directory.resources.features.rename({
1231
- customer: "Test string",
1232
- oldName: "Test string",
1233
- }, {
1234
- newName: "Test string",
1235
- });
1236
- /** Updates a feature. */
1237
- await gapi.client.directory.resources.features.update({
1238
- customer: "Test string",
1239
- featureKey: "Test string",
1240
- }, {
1241
- etags: "Test string",
1242
- kind: "Test string",
1243
- name: "Test string",
1244
- });
1245
- /** Deletes a role assignment. */
1246
- await gapi.client.directory.roleAssignments.delete({
1247
- customer: "Test string",
1248
- roleAssignmentId: "Test string",
1249
- });
1250
- /** Retrieves a role assignment. */
1251
- await gapi.client.directory.roleAssignments.get({
1252
- customer: "Test string",
1253
- roleAssignmentId: "Test string",
1254
- });
1255
- /** Creates a role assignment. */
1256
- await gapi.client.directory.roleAssignments.insert({
1257
- customer: "Test string",
1258
- }, {
1259
- assignedTo: "Test string",
1260
- assigneeType: "Test string",
1261
- etag: "Test string",
1262
- kind: "Test string",
1263
- orgUnitId: "Test string",
1264
- roleAssignmentId: "Test string",
1265
- roleId: "Test string",
1266
- scopeType: "Test string",
1267
- });
1268
- /** Retrieves a paginated list of all roleAssignments. */
1269
- await gapi.client.directory.roleAssignments.list({
1270
- customer: "Test string",
1271
- includeIndirectRoleAssignments: true,
1272
- maxResults: 42,
1273
- pageToken: "Test string",
1274
- roleId: "Test string",
1275
- userKey: "Test string",
1276
- });
1277
- /** Deletes a role. */
1278
- await gapi.client.directory.roles.delete({
1279
- customer: "Test string",
1280
- roleId: "Test string",
1281
- });
1282
- /** Retrieves a role. */
1283
- await gapi.client.directory.roles.get({
1284
- customer: "Test string",
1285
- roleId: "Test string",
1286
- });
1287
- /** Creates a role. */
1288
- await gapi.client.directory.roles.insert({
1289
- customer: "Test string",
1290
- }, {
1291
- etag: "Test string",
1292
- isSuperAdminRole: true,
1293
- isSystemRole: true,
1294
- kind: "Test string",
1295
- roleDescription: "Test string",
1296
- roleId: "Test string",
1297
- roleName: "Test string",
1298
- rolePrivileges: [
1299
- {
1300
- privilegeName: "Test string",
1301
- serviceId: "Test string",
1302
- }
1303
- ],
1304
- });
1305
- /** Retrieves a paginated list of all the roles in a domain. */
1306
- await gapi.client.directory.roles.list({
1307
- customer: "Test string",
1308
- maxResults: 42,
1309
- pageToken: "Test string",
1310
- });
1311
- /** Patches a role. */
1312
- await gapi.client.directory.roles.patch({
1313
- customer: "Test string",
1314
- roleId: "Test string",
1315
- }, {
1316
- etag: "Test string",
1317
- isSuperAdminRole: true,
1318
- isSystemRole: true,
1319
- kind: "Test string",
1320
- roleDescription: "Test string",
1321
- roleId: "Test string",
1322
- roleName: "Test string",
1323
- rolePrivileges: [
1324
- {
1325
- privilegeName: "Test string",
1326
- serviceId: "Test string",
1327
- }
1328
- ],
1329
- });
1330
- /** Updates a role. */
1331
- await gapi.client.directory.roles.update({
1332
- customer: "Test string",
1333
- roleId: "Test string",
1334
- }, {
1335
- etag: "Test string",
1336
- isSuperAdminRole: true,
1337
- isSystemRole: true,
1338
- kind: "Test string",
1339
- roleDescription: "Test string",
1340
- roleId: "Test string",
1341
- roleName: "Test string",
1342
- rolePrivileges: [
1343
- {
1344
- privilegeName: "Test string",
1345
- serviceId: "Test string",
1346
- }
1347
- ],
1348
- });
1349
- /** Deletes a schema. */
1350
- await gapi.client.directory.schemas.delete({
1351
- customerId: "Test string",
1352
- schemaKey: "Test string",
1353
- });
1354
- /** Retrieves a schema. */
1355
- await gapi.client.directory.schemas.get({
1356
- customerId: "Test string",
1357
- schemaKey: "Test string",
1358
- });
1359
- /** Creates a schema. */
1360
- await gapi.client.directory.schemas.insert({
1361
- customerId: "Test string",
1362
- }, {
1363
- displayName: "Test string",
1364
- etag: "Test string",
1365
- fields: [
1366
- {
1367
- displayName: "Test string",
1368
- etag: "Test string",
1369
- fieldId: "Test string",
1370
- fieldName: "Test string",
1371
- fieldType: "Test string",
1372
- indexed: true,
1373
- kind: "Test string",
1374
- multiValued: true,
1375
- numericIndexingSpec: {
1376
- maxValue: 42,
1377
- minValue: 42,
1378
- },
1379
- readAccessType: "Test string",
1380
- }
1381
- ],
1382
- kind: "Test string",
1383
- schemaId: "Test string",
1384
- schemaName: "Test string",
1385
- });
1386
- /** Retrieves all schemas for a customer. */
1387
- await gapi.client.directory.schemas.list({
1388
- customerId: "Test string",
1389
- });
1390
- /** Patches a schema. */
1391
- await gapi.client.directory.schemas.patch({
1392
- customerId: "Test string",
1393
- schemaKey: "Test string",
1394
- }, {
1395
- displayName: "Test string",
1396
- etag: "Test string",
1397
- fields: [
1398
- {
1399
- displayName: "Test string",
1400
- etag: "Test string",
1401
- fieldId: "Test string",
1402
- fieldName: "Test string",
1403
- fieldType: "Test string",
1404
- indexed: true,
1405
- kind: "Test string",
1406
- multiValued: true,
1407
- numericIndexingSpec: {
1408
- maxValue: 42,
1409
- minValue: 42,
1410
- },
1411
- readAccessType: "Test string",
1412
- }
1413
- ],
1414
- kind: "Test string",
1415
- schemaId: "Test string",
1416
- schemaName: "Test string",
1417
- });
1418
- /** Updates a schema. */
1419
- await gapi.client.directory.schemas.update({
1420
- customerId: "Test string",
1421
- schemaKey: "Test string",
1422
- }, {
1423
- displayName: "Test string",
1424
- etag: "Test string",
1425
- fields: [
1426
- {
1427
- displayName: "Test string",
1428
- etag: "Test string",
1429
- fieldId: "Test string",
1430
- fieldName: "Test string",
1431
- fieldType: "Test string",
1432
- indexed: true,
1433
- kind: "Test string",
1434
- multiValued: true,
1435
- numericIndexingSpec: {
1436
- maxValue: 42,
1437
- minValue: 42,
1438
- },
1439
- readAccessType: "Test string",
1440
- }
1441
- ],
1442
- kind: "Test string",
1443
- schemaId: "Test string",
1444
- schemaName: "Test string",
1445
- });
1446
- /** Deletes all access tokens issued by a user for an application. */
1447
- await gapi.client.directory.tokens.delete({
1448
- clientId: "Test string",
1449
- userKey: "Test string",
1450
- });
1451
- /** Gets information about an access token issued by a user. */
1452
- await gapi.client.directory.tokens.get({
1453
- clientId: "Test string",
1454
- userKey: "Test string",
1455
- });
1456
- /** Returns the set of tokens specified user has issued to 3rd party applications. */
1457
- await gapi.client.directory.tokens.list({
1458
- userKey: "Test string",
1459
- });
1460
- /** Turns off 2-Step Verification for user. */
1461
- await gapi.client.directory.twoStepVerification.turnOff({
1462
- userKey: "Test string",
1463
- });
1464
- /** Deletes a user. */
1465
- await gapi.client.directory.users.delete({
1466
- userKey: "Test string",
1467
- });
1468
- /** Retrieves a user. */
1469
- await gapi.client.directory.users.get({
1470
- customFieldMask: "Test string",
1471
- projection: "Test string",
1472
- userKey: "Test string",
1473
- viewType: "Test string",
1474
- });
1475
- /**
1476
- * Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details
1477
- * for the "User creation is not complete" message to see if this is the case. Retrying the calls after some time can help in this case.
1478
- */
1479
- await gapi.client.directory.users.insert({
1480
- resolveConflictAccount: true,
1481
- }, {
1482
- addresses: 42,
1483
- agreedToTerms: true,
1484
- aliases: [
1485
- "Test string"
1486
- ],
1487
- archived: true,
1488
- changePasswordAtNextLogin: true,
1489
- creationTime: "Test string",
1490
- customerId: "Test string",
1491
- customSchemas: {
1492
- A: {
1493
- A: 42
1494
- }
1495
- },
1496
- deletionTime: "Test string",
1497
- emails: 42,
1498
- etag: "Test string",
1499
- externalIds: 42,
1500
- gender: 42,
1501
- hashFunction: "Test string",
1502
- id: "Test string",
1503
- ims: 42,
1504
- includeInGlobalAddressList: true,
1505
- ipWhitelisted: true,
1506
- isAdmin: true,
1507
- isDelegatedAdmin: true,
1508
- isEnforcedIn2Sv: true,
1509
- isEnrolledIn2Sv: true,
1510
- isMailboxSetup: true,
1511
- keywords: 42,
1512
- kind: "Test string",
1513
- languages: 42,
1514
- lastLoginTime: "Test string",
1515
- locations: 42,
1516
- name: {
1517
- displayName: "Test string",
1518
- familyName: "Test string",
1519
- fullName: "Test string",
1520
- givenName: "Test string",
1521
- },
1522
- nonEditableAliases: [
1523
- "Test string"
1524
- ],
1525
- notes: 42,
1526
- organizations: 42,
1527
- orgUnitPath: "Test string",
1528
- password: "Test string",
1529
- phones: 42,
1530
- posixAccounts: 42,
1531
- primaryEmail: "Test string",
1532
- recoveryEmail: "Test string",
1533
- recoveryPhone: "Test string",
1534
- relations: 42,
1535
- sshPublicKeys: 42,
1536
- suspended: true,
1537
- suspensionReason: "Test string",
1538
- thumbnailPhotoEtag: "Test string",
1539
- thumbnailPhotoUrl: "Test string",
1540
- websites: 42,
1541
- });
1542
- /** Retrieves a paginated list of either deleted users or all users in a domain. */
1543
- await gapi.client.directory.users.list({
1544
- customer: "Test string",
1545
- customFieldMask: "Test string",
1546
- domain: "Test string",
1547
- event: "Test string",
1548
- maxResults: 42,
1549
- orderBy: "Test string",
1550
- pageToken: "Test string",
1551
- projection: "Test string",
1552
- query: "Test string",
1553
- showDeleted: "Test string",
1554
- sortOrder: "Test string",
1555
- viewType: "Test string",
1556
- });
1557
- /** Makes a user a super administrator. */
1558
- await gapi.client.directory.users.makeAdmin({
1559
- userKey: "Test string",
1560
- }, {
1561
- status: true,
1562
- });
1563
- /**
1564
- * Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external
1565
- * identity to a Google identity, use the [`update`](https://developers.google.com/admin-sdk/directory/v1/reference/users/update) method instead of the `patch` method. This method is
1566
- * unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
1567
- */
1568
- await gapi.client.directory.users.patch({
1569
- userKey: "Test string",
1570
- }, {
1571
- addresses: 42,
1572
- agreedToTerms: true,
1573
- aliases: [
1574
- "Test string"
1575
- ],
1576
- archived: true,
1577
- changePasswordAtNextLogin: true,
1578
- creationTime: "Test string",
1579
- customerId: "Test string",
1580
- customSchemas: {
1581
- A: {
1582
- A: 42
1583
- }
1584
- },
1585
- deletionTime: "Test string",
1586
- emails: 42,
1587
- etag: "Test string",
1588
- externalIds: 42,
1589
- gender: 42,
1590
- hashFunction: "Test string",
1591
- id: "Test string",
1592
- ims: 42,
1593
- includeInGlobalAddressList: true,
1594
- ipWhitelisted: true,
1595
- isAdmin: true,
1596
- isDelegatedAdmin: true,
1597
- isEnforcedIn2Sv: true,
1598
- isEnrolledIn2Sv: true,
1599
- isMailboxSetup: true,
1600
- keywords: 42,
1601
- kind: "Test string",
1602
- languages: 42,
1603
- lastLoginTime: "Test string",
1604
- locations: 42,
1605
- name: {
1606
- displayName: "Test string",
1607
- familyName: "Test string",
1608
- fullName: "Test string",
1609
- givenName: "Test string",
1610
- },
1611
- nonEditableAliases: [
1612
- "Test string"
1613
- ],
1614
- notes: 42,
1615
- organizations: 42,
1616
- orgUnitPath: "Test string",
1617
- password: "Test string",
1618
- phones: 42,
1619
- posixAccounts: 42,
1620
- primaryEmail: "Test string",
1621
- recoveryEmail: "Test string",
1622
- recoveryPhone: "Test string",
1623
- relations: 42,
1624
- sshPublicKeys: 42,
1625
- suspended: true,
1626
- suspensionReason: "Test string",
1627
- thumbnailPhotoEtag: "Test string",
1628
- thumbnailPhotoUrl: "Test string",
1629
- websites: 42,
1630
- });
1631
- /** Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again. */
1632
- await gapi.client.directory.users.signOut({
1633
- userKey: "Test string",
1634
- });
1635
- /** Undeletes a deleted user. */
1636
- await gapi.client.directory.users.undelete({
1637
- userKey: "Test string",
1638
- }, {
1639
- orgUnitPath: "Test string",
1640
- });
1641
- /**
1642
- * Updates a user. This method supports patch semantics, meaning that you only need to include the fields you wish to update. Fields that are not present in the request will be preserved,
1643
- * and fields set to `null` will be cleared. For repeating fields that contain arrays, individual items in the array can't be patched piecemeal; they must be supplied in the request body
1644
- * with the desired values for all items. See the [user accounts guide](https://developers.google.com/admin-sdk/directory/v1/guides/manage-users#update_user) for more information.
1645
- */
1646
- await gapi.client.directory.users.update({
1647
- userKey: "Test string",
1648
- }, {
1649
- addresses: 42,
1650
- agreedToTerms: true,
1651
- aliases: [
1652
- "Test string"
1653
- ],
1654
- archived: true,
1655
- changePasswordAtNextLogin: true,
1656
- creationTime: "Test string",
1657
- customerId: "Test string",
1658
- customSchemas: {
1659
- A: {
1660
- A: 42
1661
- }
1662
- },
1663
- deletionTime: "Test string",
1664
- emails: 42,
1665
- etag: "Test string",
1666
- externalIds: 42,
1667
- gender: 42,
1668
- hashFunction: "Test string",
1669
- id: "Test string",
1670
- ims: 42,
1671
- includeInGlobalAddressList: true,
1672
- ipWhitelisted: true,
1673
- isAdmin: true,
1674
- isDelegatedAdmin: true,
1675
- isEnforcedIn2Sv: true,
1676
- isEnrolledIn2Sv: true,
1677
- isMailboxSetup: true,
1678
- keywords: 42,
1679
- kind: "Test string",
1680
- languages: 42,
1681
- lastLoginTime: "Test string",
1682
- locations: 42,
1683
- name: {
1684
- displayName: "Test string",
1685
- familyName: "Test string",
1686
- fullName: "Test string",
1687
- givenName: "Test string",
1688
- },
1689
- nonEditableAliases: [
1690
- "Test string"
1691
- ],
1692
- notes: 42,
1693
- organizations: 42,
1694
- orgUnitPath: "Test string",
1695
- password: "Test string",
1696
- phones: 42,
1697
- posixAccounts: 42,
1698
- primaryEmail: "Test string",
1699
- recoveryEmail: "Test string",
1700
- recoveryPhone: "Test string",
1701
- relations: 42,
1702
- sshPublicKeys: 42,
1703
- suspended: true,
1704
- suspensionReason: "Test string",
1705
- thumbnailPhotoEtag: "Test string",
1706
- thumbnailPhotoUrl: "Test string",
1707
- websites: 42,
1708
- });
1709
- /** Watches for changes in users list. */
1710
- await gapi.client.directory.users.watch({
1711
- customer: "Test string",
1712
- customFieldMask: "Test string",
1713
- domain: "Test string",
1714
- event: "Test string",
1715
- maxResults: 42,
1716
- orderBy: "Test string",
1717
- pageToken: "Test string",
1718
- projection: "Test string",
1719
- query: "Test string",
1720
- showDeleted: "Test string",
1721
- sortOrder: "Test string",
1722
- viewType: "Test string",
1723
- }, {
1724
- address: "Test string",
1725
- expiration: "Test string",
1726
- id: "Test string",
1727
- kind: "Test string",
1728
- params: {
1729
- A: "Test string"
1730
- },
1731
- payload: true,
1732
- resourceId: "Test string",
1733
- resourceUri: "Test string",
1734
- token: "Test string",
1735
- type: "Test string",
1736
- });
1737
- /** Removes an alias. */
1738
- await gapi.client.directory.users.aliases.delete({
1739
- alias: "Test string",
1740
- userKey: "Test string",
1741
- });
1742
- /** Adds an alias. */
1743
- await gapi.client.directory.users.aliases.insert({
1744
- userKey: "Test string",
1745
- }, {
1746
- alias: "Test string",
1747
- etag: "Test string",
1748
- id: "Test string",
1749
- kind: "Test string",
1750
- primaryEmail: "Test string",
1751
- });
1752
- /** Lists all aliases for a user. */
1753
- await gapi.client.directory.users.aliases.list({
1754
- event: "Test string",
1755
- userKey: "Test string",
1756
- });
1757
- /** Watches for changes in users list. */
1758
- await gapi.client.directory.users.aliases.watch({
1759
- event: "Test string",
1760
- userKey: "Test string",
1761
- }, {
1762
- address: "Test string",
1763
- expiration: "Test string",
1764
- id: "Test string",
1765
- kind: "Test string",
1766
- params: {
1767
- A: "Test string"
1768
- },
1769
- payload: true,
1770
- resourceId: "Test string",
1771
- resourceUri: "Test string",
1772
- token: "Test string",
1773
- type: "Test string",
1774
- });
1775
- /** Removes the user's photo. */
1776
- await gapi.client.directory.users.photos.delete({
1777
- userKey: "Test string",
1778
- });
1779
- /** Retrieves the user's photo. */
1780
- await gapi.client.directory.users.photos.get({
1781
- userKey: "Test string",
1782
- });
1783
- /** Adds a photo for the user. This method supports [patch semantics](/admin-sdk/directory/v1/guides/performance#patch). */
1784
- await gapi.client.directory.users.photos.patch({
1785
- userKey: "Test string",
1786
- }, {
1787
- etag: "Test string",
1788
- height: 42,
1789
- id: "Test string",
1790
- kind: "Test string",
1791
- mimeType: "Test string",
1792
- photoData: "Test string",
1793
- primaryEmail: "Test string",
1794
- width: 42,
1795
- });
1796
- /** Adds a photo for the user. */
1797
- await gapi.client.directory.users.photos.update({
1798
- userKey: "Test string",
1799
- }, {
1800
- etag: "Test string",
1801
- height: 42,
1802
- id: "Test string",
1803
- kind: "Test string",
1804
- mimeType: "Test string",
1805
- photoData: "Test string",
1806
- primaryEmail: "Test string",
1807
- width: 42,
1808
- });
1809
- /** Generates new backup verification codes for the user. */
1810
- await gapi.client.directory.verificationCodes.generate({
1811
- userKey: "Test string",
1812
- });
1813
- /** Invalidates the current backup verification codes for the user. */
1814
- await gapi.client.directory.verificationCodes.invalidate({
1815
- userKey: "Test string",
1816
- });
1817
- /** Returns the current set of valid backup verification codes for the specified user. */
1818
- await gapi.client.directory.verificationCodes.list({
1819
- userKey: "Test string",
1820
- });
1821
- }
1822
- });