@maxim_mazurok/gapi.client.admin-directory_v1 0.1.20260316 → 0.2.20260317

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.
Files changed (2) hide show
  1. package/index.d.ts +702 -444
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://admin.googleapis.com/$discovery/rest?version=directory_v1
12
- // Revision: 20260316
12
+ // Revision: 20260317
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -70,7 +70,11 @@ declare namespace gapi.client {
70
70
  /** Field that this message concerns. */
71
71
  fieldMask?: string;
72
72
  /** Message severity */
73
- severity?: string;
73
+ severity?:
74
+ | 'SEVERITY_UNSPECIFIED'
75
+ | 'SEVERITY_INFO'
76
+ | 'SEVERITY_WARNING'
77
+ | 'SEVERITY_ERROR';
74
78
  }
75
79
  interface BacklightInfo {
76
80
  /** Output only. Current brightness of the backlight, between 0 and max_brightness. */
@@ -82,9 +86,24 @@ declare namespace gapi.client {
82
86
  }
83
87
  interface BatchChangeChromeOsDeviceStatusRequest {
84
88
  /** Required. The action to take on the ChromeOS device in order to change its status. */
85
- changeChromeOsDeviceStatusAction?: string;
89
+ changeChromeOsDeviceStatusAction?:
90
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED'
91
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'
92
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE'
93
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE';
86
94
  /** Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field. */
87
- deprovisionReason?: string;
95
+ deprovisionReason?:
96
+ | 'DEPROVISION_REASON_UNSPECIFIED'
97
+ | 'DEPROVISION_REASON_SAME_MODEL_REPLACEMENT'
98
+ | 'DEPROVISION_REASON_UPGRADE'
99
+ | 'DEPROVISION_REASON_DOMAIN_MOVE'
100
+ | 'DEPROVISION_REASON_SERVICE_EXPIRATION'
101
+ | 'DEPROVISION_REASON_OTHER'
102
+ | 'DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT'
103
+ | 'DEPROVISION_REASON_RETIRING_DEVICE'
104
+ | 'DEPROVISION_REASON_UPGRADE_TRANSFER'
105
+ | 'DEPROVISION_REASON_NOT_REQUIRED'
106
+ | 'DEPROVISION_REASON_REPAIR_CENTER';
88
107
  /** Required. List of the IDs of the ChromeOS devices to change. Maximum 50. */
89
108
  deviceIds?: string[];
90
109
  }
@@ -292,7 +311,7 @@ declare namespace gapi.client {
292
311
  /** The boot mode for the device. The possible values are: * `Verified`: The device is running a valid version of the Chrome OS. * `Dev`: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the [Chromebook developer information](https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch). */
293
312
  bootMode?: string;
294
313
  /** Output only. Chrome OS type of the device. */
295
- chromeOsType?: string;
314
+ chromeOsType?: 'chromeOsTypeUnspecified' | 'chromeOsFlex' | 'chromeOs';
296
315
  /** Information regarding CPU specs in the device. */
297
316
  cpuInfo?: Array<{
298
317
  /** The CPU architecture. */
@@ -332,7 +351,18 @@ declare namespace gapi.client {
332
351
  reportTime?: string;
333
352
  }>;
334
353
  /** (Read-only) Deprovision reason. */
335
- deprovisionReason?: string;
354
+ deprovisionReason?:
355
+ | 'DEPROVISION_REASON_UNSPECIFIED'
356
+ | 'DEPROVISION_REASON_SAME_MODEL_REPLACEMENT'
357
+ | 'DEPROVISION_REASON_UPGRADE'
358
+ | 'DEPROVISION_REASON_DOMAIN_MOVE'
359
+ | 'DEPROVISION_REASON_SERVICE_EXPIRATION'
360
+ | 'DEPROVISION_REASON_OTHER'
361
+ | 'DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT'
362
+ | 'DEPROVISION_REASON_RETIRING_DEVICE'
363
+ | 'DEPROVISION_REASON_UPGRADE_TRANSFER'
364
+ | 'DEPROVISION_REASON_NOT_REQUIRED'
365
+ | 'DEPROVISION_REASON_REPAIR_CENTER';
336
366
  /** A list of device files to download (Read-only) */
337
367
  deviceFiles?: Array<{
338
368
  /** Date and time the file was created */
@@ -347,7 +377,17 @@ declare namespace gapi.client {
347
377
  /** The unique ID of the Chrome device. */
348
378
  deviceId?: string;
349
379
  /** Output only. Device license type. */
350
- deviceLicenseType?: string;
380
+ deviceLicenseType?:
381
+ | 'deviceLicenseTypeUnspecified'
382
+ | 'enterprise'
383
+ | 'enterpriseUpgrade'
384
+ | 'educationUpgrade'
385
+ | 'education'
386
+ | 'kioskUpgrade'
387
+ | 'enterpriseUpgradePerpetual'
388
+ | 'enterpriseUpgradeFixedTerm'
389
+ | 'educationUpgradePerpetual'
390
+ | 'educationUpgradeFixedTerm';
351
391
  /** Output only. How much disk space the device has available and is currently using. */
352
392
  diskSpaceUsage?: ByteUsage;
353
393
  /** Reports of disk space and other info about mounted/connected volumes. */
@@ -418,7 +458,11 @@ declare namespace gapi.client {
418
458
  /** The Chrome device's operating system version. */
419
459
  osVersion?: string;
420
460
  /** Output only. Device policy compliance status of the OS version. */
421
- osVersionCompliance?: string;
461
+ osVersionCompliance?:
462
+ | 'complianceUnspecified'
463
+ | 'compliant'
464
+ | 'pending'
465
+ | 'notCompliant';
422
466
  /** The Chrome device's platform version. */
423
467
  platformVersion?: string;
424
468
  /** A list of recent device users, in descending order, by last login time. */
@@ -559,9 +603,26 @@ declare namespace gapi.client {
559
603
  /** The payload that the command specified, if any. */
560
604
  payload?: string;
561
605
  /** Indicates the command state. */
562
- state?: string;
606
+ state?:
607
+ | 'STATE_UNSPECIFIED'
608
+ | 'PENDING'
609
+ | 'EXPIRED'
610
+ | 'CANCELLED'
611
+ | 'SENT_TO_CLIENT'
612
+ | 'ACKED_BY_CLIENT'
613
+ | 'EXECUTED_BY_CLIENT';
563
614
  /** The type of the command. */
564
- type?: string;
615
+ type?:
616
+ | 'COMMAND_TYPE_UNSPECIFIED'
617
+ | 'REBOOT'
618
+ | 'TAKE_A_SCREENSHOT'
619
+ | 'SET_VOLUME'
620
+ | 'WIPE_USERS'
621
+ | 'REMOTE_POWERWASH'
622
+ | 'DEVICE_START_CRD_SESSION'
623
+ | 'CAPTURE_LOGS'
624
+ | 'FETCH_CRD_AVAILABILITY_INFO'
625
+ | 'FETCH_SUPPORT_PACKET';
565
626
  }
566
627
  interface DirectoryChromeosdevicesCommandResult {
567
628
  /** The payload for the command result. The following commands respond with a payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object in the form: { "url": url }. The provided URL links to the Chrome Remote Desktop session and requires authentication using only the `email` associated with the command's issuance. * `FETCH_CRD_AVAILABILITY_INFO`: Payload is a stringified JSON object in the form: { "deviceIdleTimeInSeconds": number, "userSessionType": string, "remoteSupportAvailability": string, "remoteAccessAvailability": string }. The "remoteSupportAvailability" field is set to "AVAILABLE" if `shared` CRD session to the device is available. The "remoteAccessAvailability" field is set to "AVAILABLE" if `private` CRD session to the device is available. */
@@ -571,11 +632,25 @@ declare namespace gapi.client {
571
632
  /** The time at which the command was executed or failed to execute. */
572
633
  executeTime?: string;
573
634
  /** The result of the command. */
574
- result?: string;
635
+ result?:
636
+ | 'COMMAND_RESULT_TYPE_UNSPECIFIED'
637
+ | 'IGNORED'
638
+ | 'FAILURE'
639
+ | 'SUCCESS';
575
640
  }
576
641
  interface DirectoryChromeosdevicesIssueCommandRequest {
577
642
  /** The type of command. */
578
- commandType?: string;
643
+ commandType?:
644
+ | 'COMMAND_TYPE_UNSPECIFIED'
645
+ | 'REBOOT'
646
+ | 'TAKE_A_SCREENSHOT'
647
+ | 'SET_VOLUME'
648
+ | 'WIPE_USERS'
649
+ | 'REMOTE_POWERWASH'
650
+ | 'DEVICE_START_CRD_SESSION'
651
+ | 'CAPTURE_LOGS'
652
+ | 'FETCH_CRD_AVAILABILITY_INFO'
653
+ | 'FETCH_SUPPORT_PACKET';
579
654
  /** The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form: { "volume": 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: { "ackedUserPresence": true, "crdSessionType": string }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set `ackedUserPresence` to `true`. `crdSessionType` can only select from values `private` (which grants the remote admin exclusive control of the ChromeOS device) or `shared` (which allows the admin and the local user to share control of the ChromeOS device). If not set, `crdSessionType` defaults to `shared`. The `FETCH_CRD_AVAILABILITY_INFO` command can be used to determine available session types on the device. * `REBOOT`: Payload is a stringified JSON object in the form: { "user_session_delay_seconds": 300 }. The `user_session_delay_seconds` is the amount of seconds to wait before rebooting the device if a user is logged in. It has to be an integer in the range [0,300]. When payload is not present for reboot, 0 delay is the default. Note: This only applies if an actual user is logged in, including a Guest. If the device is in the login screen or in Kiosk mode the value is not respected and the device immediately reboots. * `FETCH_SUPPORT_PACKET`: Payload is optionally a stringified JSON object in the form: {"supportPacketDetails":{ "issueCaseId": optional_support_case_id_string, "issueDescription": optional_issue_description_string, "requestedDataCollectors": []}} The list of available `data_collector_enums` are as following: Chrome System Information (1), Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill (Connection Manager) Logs (14), Policies (15), ChromeOS System State and Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18), ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network Health (23). See more details in [help article](https://support.google.com/chrome/a?p=remote-log). */
580
655
  payload?: string;
581
656
  }
@@ -638,7 +713,24 @@ declare namespace gapi.client {
638
713
  interface Empty {}
639
714
  interface FailureInfo {
640
715
  /** Canonical code for why the update failed to apply. */
641
- errorCode?: string;
716
+ errorCode?:
717
+ | 'OK'
718
+ | 'CANCELLED'
719
+ | 'UNKNOWN'
720
+ | 'INVALID_ARGUMENT'
721
+ | 'DEADLINE_EXCEEDED'
722
+ | 'NOT_FOUND'
723
+ | 'ALREADY_EXISTS'
724
+ | 'PERMISSION_DENIED'
725
+ | 'UNAUTHENTICATED'
726
+ | 'RESOURCE_EXHAUSTED'
727
+ | 'FAILED_PRECONDITION'
728
+ | 'ABORTED'
729
+ | 'OUT_OF_RANGE'
730
+ | 'UNIMPLEMENTED'
731
+ | 'INTERNAL'
732
+ | 'UNAVAILABLE'
733
+ | 'DATA_LOSS';
642
734
  /** Failure reason message. */
643
735
  errorMessage?: string;
644
736
  /** Failed printer. */
@@ -913,7 +1005,11 @@ declare namespace gapi.client {
913
1005
  /** Date and time of the last reboot. */
914
1006
  rebootTime?: string;
915
1007
  /** The update state of an OS update. */
916
- state?: string;
1008
+ state?:
1009
+ | 'updateStateUnspecified'
1010
+ | 'updateStateNotStarted'
1011
+ | 'updateStateDownloadInProgress'
1012
+ | 'updateStateNeedReboot';
917
1013
  /** New required platform version from the pending updated kiosk app. */
918
1014
  targetKioskAppVersion?: string;
919
1015
  /** New platform version of the OS image being downloaded and applied. It is only set when update status is UPDATE_STATUS_DOWNLOAD_IN_PROGRESS or UPDATE_STATUS_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for UPDATE_STATUS_NEED_REBOOT for some edge cases, e.g. update engine is restarted without a reboot. */
@@ -971,7 +1067,24 @@ declare namespace gapi.client {
971
1067
  }
972
1068
  interface PrintServerFailureInfo {
973
1069
  /** Canonical code for why the update failed to apply. */
974
- errorCode?: string;
1070
+ errorCode?:
1071
+ | 'OK'
1072
+ | 'CANCELLED'
1073
+ | 'UNKNOWN'
1074
+ | 'INVALID_ARGUMENT'
1075
+ | 'DEADLINE_EXCEEDED'
1076
+ | 'NOT_FOUND'
1077
+ | 'ALREADY_EXISTS'
1078
+ | 'PERMISSION_DENIED'
1079
+ | 'UNAUTHENTICATED'
1080
+ | 'RESOURCE_EXHAUSTED'
1081
+ | 'FAILED_PRECONDITION'
1082
+ | 'ABORTED'
1083
+ | 'OUT_OF_RANGE'
1084
+ | 'UNIMPLEMENTED'
1085
+ | 'INTERNAL'
1086
+ | 'UNAVAILABLE'
1087
+ | 'DATA_LOSS';
975
1088
  /** Failure reason message. */
976
1089
  errorMessage?: string;
977
1090
  /** Failed print server. */
@@ -1030,7 +1143,7 @@ declare namespace gapi.client {
1030
1143
  /** The unique ID of the entity this role is assigned to—either the `user_id` of a user, the `group_id` of a group, or the `uniqueId` of a service account as defined in [Identity and Access Management (IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). */
1031
1144
  assignedTo?: string;
1032
1145
  /** Output only. The type of the assignee (`USER` or `GROUP`). */
1033
- assigneeType?: string;
1146
+ assigneeType?: 'user' | 'group';
1034
1147
  /** Optional. The condition associated with this role assignment. Note: Feature is available to Enterprise Standard, Enterprise Plus, Google Workspace for Education Plus and Cloud Identity Premium customers. A `RoleAssignment` with the `condition` field set will only take effect when the resource being accessed meets the condition. If `condition` is empty, the role (`role_id`) is applied to the actor (`assigned_to`) at the scope (`scope_type`) unconditionally. Currently, the following conditions are supported: - To make the `RoleAssignment` only applicable to [Security Groups](https://cloud.google.com/identity/docs/groups#group_types): `api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.security']) && resource.type == 'cloudidentity.googleapis.com/Group'` - To make the `RoleAssignment` not applicable to [Security Groups](https://cloud.google.com/identity/docs/groups#group_types): `!api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.security']) && resource.type == 'cloudidentity.googleapis.com/Group'` Currently, the condition strings have to be verbatim and they only work with the following [pre-built administrator roles](https://support.google.com/a/answer/2405986): - Groups Editor - Groups Reader The condition follows [Cloud IAM condition syntax](https://cloud.google.com/iam/docs/conditions-overview). - To make the `RoleAssignment` not applicable to [Locked Groups](https://cloud.google.com/identity/docs/groups#group_types): `!api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.locked']) && resource.type == 'cloudidentity.googleapis.com/Group'` This condition can also be used in conjunction with a Security-related condition. */
1035
1148
  condition?: string;
1036
1149
  /** ETag of the resource. */
@@ -1528,11 +1641,11 @@ declare namespace gapi.client {
1528
1641
  /** Stops watching resources through this channel. */
1529
1642
  stop(request: {
1530
1643
  /** V1 error format. */
1531
- '$.xgafv'?: string;
1644
+ '$.xgafv'?: '1' | '2';
1532
1645
  /** OAuth access token. */
1533
1646
  access_token?: string;
1534
1647
  /** Data format for response. */
1535
- alt?: string;
1648
+ alt?: 'json' | 'media' | 'proto';
1536
1649
  /** JSONP */
1537
1650
  callback?: string;
1538
1651
  /** Selector specifying which fields to include in a partial response. */
@@ -1555,11 +1668,11 @@ declare namespace gapi.client {
1555
1668
  stop(
1556
1669
  request: {
1557
1670
  /** V1 error format. */
1558
- '$.xgafv'?: string;
1671
+ '$.xgafv'?: '1' | '2';
1559
1672
  /** OAuth access token. */
1560
1673
  access_token?: string;
1561
1674
  /** Data format for response. */
1562
- alt?: string;
1675
+ alt?: 'json' | 'media' | 'proto';
1563
1676
  /** JSONP */
1564
1677
  callback?: string;
1565
1678
  /** Selector specifying which fields to include in a partial response. */
@@ -1584,11 +1697,11 @@ declare namespace gapi.client {
1584
1697
  /** Gets command data a specific command issued to the device. */
1585
1698
  get(request?: {
1586
1699
  /** V1 error format. */
1587
- '$.xgafv'?: string;
1700
+ '$.xgafv'?: '1' | '2';
1588
1701
  /** OAuth access token. */
1589
1702
  access_token?: string;
1590
1703
  /** Data format for response. */
1591
- alt?: string;
1704
+ alt?: 'json' | 'media' | 'proto';
1592
1705
  /** JSONP */
1593
1706
  callback?: string;
1594
1707
  /** Immutable. ID of Chrome OS Device Command. */
@@ -1617,11 +1730,11 @@ declare namespace gapi.client {
1617
1730
  /** Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633). */
1618
1731
  batchChangeStatus(request: {
1619
1732
  /** V1 error format. */
1620
- '$.xgafv'?: string;
1733
+ '$.xgafv'?: '1' | '2';
1621
1734
  /** OAuth access token. */
1622
1735
  access_token?: string;
1623
1736
  /** Data format for response. */
1624
- alt?: string;
1737
+ alt?: 'json' | 'media' | 'proto';
1625
1738
  /** JSONP */
1626
1739
  callback?: string;
1627
1740
  /** Required. Immutable ID of the Google Workspace account. */
@@ -1646,11 +1759,11 @@ declare namespace gapi.client {
1646
1759
  batchChangeStatus(
1647
1760
  request: {
1648
1761
  /** V1 error format. */
1649
- '$.xgafv'?: string;
1762
+ '$.xgafv'?: '1' | '2';
1650
1763
  /** OAuth access token. */
1651
1764
  access_token?: string;
1652
1765
  /** Data format for response. */
1653
- alt?: string;
1766
+ alt?: 'json' | 'media' | 'proto';
1654
1767
  /** JSONP */
1655
1768
  callback?: string;
1656
1769
  /** Required. Immutable ID of the Google Workspace account. */
@@ -1675,11 +1788,11 @@ declare namespace gapi.client {
1675
1788
  /** Counts ChromeOS devices matching the request. */
1676
1789
  countChromeOsDevices(request?: {
1677
1790
  /** V1 error format. */
1678
- '$.xgafv'?: string;
1791
+ '$.xgafv'?: '1' | '2';
1679
1792
  /** OAuth access token. */
1680
1793
  access_token?: string;
1681
1794
  /** Data format for response. */
1682
- alt?: string;
1795
+ alt?: 'json' | 'media' | 'proto';
1683
1796
  /** JSONP */
1684
1797
  callback?: string;
1685
1798
  /** Required. Immutable ID of the Google Workspace account. */
@@ -1708,11 +1821,11 @@ declare namespace gapi.client {
1708
1821
  /** Issues a command for the device to execute. */
1709
1822
  issueCommand(request: {
1710
1823
  /** V1 error format. */
1711
- '$.xgafv'?: string;
1824
+ '$.xgafv'?: '1' | '2';
1712
1825
  /** OAuth access token. */
1713
1826
  access_token?: string;
1714
1827
  /** Data format for response. */
1715
- alt?: string;
1828
+ alt?: 'json' | 'media' | 'proto';
1716
1829
  /** JSONP */
1717
1830
  callback?: string;
1718
1831
  /** Immutable. ID of the Google Workspace account. */
@@ -1739,11 +1852,11 @@ declare namespace gapi.client {
1739
1852
  issueCommand(
1740
1853
  request: {
1741
1854
  /** V1 error format. */
1742
- '$.xgafv'?: string;
1855
+ '$.xgafv'?: '1' | '2';
1743
1856
  /** OAuth access token. */
1744
1857
  access_token?: string;
1745
1858
  /** Data format for response. */
1746
- alt?: string;
1859
+ alt?: 'json' | 'media' | 'proto';
1747
1860
  /** JSONP */
1748
1861
  callback?: string;
1749
1862
  /** Immutable. ID of the Google Workspace account. */
@@ -1779,11 +1892,11 @@ declare namespace gapi.client {
1779
1892
  /** Creates printers under given Organization Unit. */
1780
1893
  batchCreatePrinters(request: {
1781
1894
  /** V1 error format. */
1782
- '$.xgafv'?: string;
1895
+ '$.xgafv'?: '1' | '2';
1783
1896
  /** OAuth access token. */
1784
1897
  access_token?: string;
1785
1898
  /** Data format for response. */
1786
- alt?: string;
1899
+ alt?: 'json' | 'media' | 'proto';
1787
1900
  /** JSONP */
1788
1901
  callback?: string;
1789
1902
  /** Selector specifying which fields to include in a partial response. */
@@ -1808,11 +1921,11 @@ declare namespace gapi.client {
1808
1921
  batchCreatePrinters(
1809
1922
  request: {
1810
1923
  /** V1 error format. */
1811
- '$.xgafv'?: string;
1924
+ '$.xgafv'?: '1' | '2';
1812
1925
  /** OAuth access token. */
1813
1926
  access_token?: string;
1814
1927
  /** Data format for response. */
1815
- alt?: string;
1928
+ alt?: 'json' | 'media' | 'proto';
1816
1929
  /** JSONP */
1817
1930
  callback?: string;
1818
1931
  /** Selector specifying which fields to include in a partial response. */
@@ -1837,11 +1950,11 @@ declare namespace gapi.client {
1837
1950
  /** Deletes printers in batch. */
1838
1951
  batchDeletePrinters(request: {
1839
1952
  /** V1 error format. */
1840
- '$.xgafv'?: string;
1953
+ '$.xgafv'?: '1' | '2';
1841
1954
  /** OAuth access token. */
1842
1955
  access_token?: string;
1843
1956
  /** Data format for response. */
1844
- alt?: string;
1957
+ alt?: 'json' | 'media' | 'proto';
1845
1958
  /** JSONP */
1846
1959
  callback?: string;
1847
1960
  /** Selector specifying which fields to include in a partial response. */
@@ -1866,11 +1979,11 @@ declare namespace gapi.client {
1866
1979
  batchDeletePrinters(
1867
1980
  request: {
1868
1981
  /** V1 error format. */
1869
- '$.xgafv'?: string;
1982
+ '$.xgafv'?: '1' | '2';
1870
1983
  /** OAuth access token. */
1871
1984
  access_token?: string;
1872
1985
  /** Data format for response. */
1873
- alt?: string;
1986
+ alt?: 'json' | 'media' | 'proto';
1874
1987
  /** JSONP */
1875
1988
  callback?: string;
1876
1989
  /** Selector specifying which fields to include in a partial response. */
@@ -1895,11 +2008,11 @@ declare namespace gapi.client {
1895
2008
  /** Creates a printer under given Organization Unit. */
1896
2009
  create(request: {
1897
2010
  /** V1 error format. */
1898
- '$.xgafv'?: string;
2011
+ '$.xgafv'?: '1' | '2';
1899
2012
  /** OAuth access token. */
1900
2013
  access_token?: string;
1901
2014
  /** Data format for response. */
1902
- alt?: string;
2015
+ alt?: 'json' | 'media' | 'proto';
1903
2016
  /** JSONP */
1904
2017
  callback?: string;
1905
2018
  /** Selector specifying which fields to include in a partial response. */
@@ -1924,11 +2037,11 @@ declare namespace gapi.client {
1924
2037
  create(
1925
2038
  request: {
1926
2039
  /** V1 error format. */
1927
- '$.xgafv'?: string;
2040
+ '$.xgafv'?: '1' | '2';
1928
2041
  /** OAuth access token. */
1929
2042
  access_token?: string;
1930
2043
  /** Data format for response. */
1931
- alt?: string;
2044
+ alt?: 'json' | 'media' | 'proto';
1932
2045
  /** JSONP */
1933
2046
  callback?: string;
1934
2047
  /** Selector specifying which fields to include in a partial response. */
@@ -1953,11 +2066,11 @@ declare namespace gapi.client {
1953
2066
  /** Deletes a `Printer`. */
1954
2067
  delete(request?: {
1955
2068
  /** V1 error format. */
1956
- '$.xgafv'?: string;
2069
+ '$.xgafv'?: '1' | '2';
1957
2070
  /** OAuth access token. */
1958
2071
  access_token?: string;
1959
2072
  /** Data format for response. */
1960
- alt?: string;
2073
+ alt?: 'json' | 'media' | 'proto';
1961
2074
  /** JSONP */
1962
2075
  callback?: string;
1963
2076
  /** Selector specifying which fields to include in a partial response. */
@@ -1980,11 +2093,11 @@ declare namespace gapi.client {
1980
2093
  /** Returns a `Printer` resource (printer's config). */
1981
2094
  get(request?: {
1982
2095
  /** V1 error format. */
1983
- '$.xgafv'?: string;
2096
+ '$.xgafv'?: '1' | '2';
1984
2097
  /** OAuth access token. */
1985
2098
  access_token?: string;
1986
2099
  /** Data format for response. */
1987
- alt?: string;
2100
+ alt?: 'json' | 'media' | 'proto';
1988
2101
  /** JSONP */
1989
2102
  callback?: string;
1990
2103
  /** Selector specifying which fields to include in a partial response. */
@@ -2007,11 +2120,11 @@ declare namespace gapi.client {
2007
2120
  /** List printers configs. */
2008
2121
  list(request?: {
2009
2122
  /** V1 error format. */
2010
- '$.xgafv'?: string;
2123
+ '$.xgafv'?: '1' | '2';
2011
2124
  /** OAuth access token. */
2012
2125
  access_token?: string;
2013
2126
  /** Data format for response. */
2014
- alt?: string;
2127
+ alt?: 'json' | 'media' | 'proto';
2015
2128
  /** JSONP */
2016
2129
  callback?: string;
2017
2130
  /** Selector specifying which fields to include in a partial response. */
@@ -2044,11 +2157,11 @@ declare namespace gapi.client {
2044
2157
  /** Lists the supported printer models. */
2045
2158
  listPrinterModels(request?: {
2046
2159
  /** V1 error format. */
2047
- '$.xgafv'?: string;
2160
+ '$.xgafv'?: '1' | '2';
2048
2161
  /** OAuth access token. */
2049
2162
  access_token?: string;
2050
2163
  /** Data format for response. */
2051
- alt?: string;
2164
+ alt?: 'json' | 'media' | 'proto';
2052
2165
  /** JSONP */
2053
2166
  callback?: string;
2054
2167
  /** Selector specifying which fields to include in a partial response. */
@@ -2077,11 +2190,11 @@ declare namespace gapi.client {
2077
2190
  /** Updates a `Printer` resource. */
2078
2191
  patch(request: {
2079
2192
  /** V1 error format. */
2080
- '$.xgafv'?: string;
2193
+ '$.xgafv'?: '1' | '2';
2081
2194
  /** OAuth access token. */
2082
2195
  access_token?: string;
2083
2196
  /** Data format for response. */
2084
- alt?: string;
2197
+ alt?: 'json' | 'media' | 'proto';
2085
2198
  /** JSONP */
2086
2199
  callback?: string;
2087
2200
  /** The list of fields to be cleared. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched. */
@@ -2110,11 +2223,11 @@ declare namespace gapi.client {
2110
2223
  patch(
2111
2224
  request: {
2112
2225
  /** V1 error format. */
2113
- '$.xgafv'?: string;
2226
+ '$.xgafv'?: '1' | '2';
2114
2227
  /** OAuth access token. */
2115
2228
  access_token?: string;
2116
2229
  /** Data format for response. */
2117
- alt?: string;
2230
+ alt?: 'json' | 'media' | 'proto';
2118
2231
  /** JSONP */
2119
2232
  callback?: string;
2120
2233
  /** The list of fields to be cleared. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched. */
@@ -2145,11 +2258,11 @@ declare namespace gapi.client {
2145
2258
  /** Creates multiple print servers. */
2146
2259
  batchCreatePrintServers(request: {
2147
2260
  /** V1 error format. */
2148
- '$.xgafv'?: string;
2261
+ '$.xgafv'?: '1' | '2';
2149
2262
  /** OAuth access token. */
2150
2263
  access_token?: string;
2151
2264
  /** Data format for response. */
2152
- alt?: string;
2265
+ alt?: 'json' | 'media' | 'proto';
2153
2266
  /** JSONP */
2154
2267
  callback?: string;
2155
2268
  /** Selector specifying which fields to include in a partial response. */
@@ -2174,11 +2287,11 @@ declare namespace gapi.client {
2174
2287
  batchCreatePrintServers(
2175
2288
  request: {
2176
2289
  /** V1 error format. */
2177
- '$.xgafv'?: string;
2290
+ '$.xgafv'?: '1' | '2';
2178
2291
  /** OAuth access token. */
2179
2292
  access_token?: string;
2180
2293
  /** Data format for response. */
2181
- alt?: string;
2294
+ alt?: 'json' | 'media' | 'proto';
2182
2295
  /** JSONP */
2183
2296
  callback?: string;
2184
2297
  /** Selector specifying which fields to include in a partial response. */
@@ -2203,11 +2316,11 @@ declare namespace gapi.client {
2203
2316
  /** Deletes multiple print servers. */
2204
2317
  batchDeletePrintServers(request: {
2205
2318
  /** V1 error format. */
2206
- '$.xgafv'?: string;
2319
+ '$.xgafv'?: '1' | '2';
2207
2320
  /** OAuth access token. */
2208
2321
  access_token?: string;
2209
2322
  /** Data format for response. */
2210
- alt?: string;
2323
+ alt?: 'json' | 'media' | 'proto';
2211
2324
  /** JSONP */
2212
2325
  callback?: string;
2213
2326
  /** Selector specifying which fields to include in a partial response. */
@@ -2232,11 +2345,11 @@ declare namespace gapi.client {
2232
2345
  batchDeletePrintServers(
2233
2346
  request: {
2234
2347
  /** V1 error format. */
2235
- '$.xgafv'?: string;
2348
+ '$.xgafv'?: '1' | '2';
2236
2349
  /** OAuth access token. */
2237
2350
  access_token?: string;
2238
2351
  /** Data format for response. */
2239
- alt?: string;
2352
+ alt?: 'json' | 'media' | 'proto';
2240
2353
  /** JSONP */
2241
2354
  callback?: string;
2242
2355
  /** Selector specifying which fields to include in a partial response. */
@@ -2261,11 +2374,11 @@ declare namespace gapi.client {
2261
2374
  /** Creates a print server. */
2262
2375
  create(request: {
2263
2376
  /** V1 error format. */
2264
- '$.xgafv'?: string;
2377
+ '$.xgafv'?: '1' | '2';
2265
2378
  /** OAuth access token. */
2266
2379
  access_token?: string;
2267
2380
  /** Data format for response. */
2268
- alt?: string;
2381
+ alt?: 'json' | 'media' | 'proto';
2269
2382
  /** JSONP */
2270
2383
  callback?: string;
2271
2384
  /** Selector specifying which fields to include in a partial response. */
@@ -2290,11 +2403,11 @@ declare namespace gapi.client {
2290
2403
  create(
2291
2404
  request: {
2292
2405
  /** V1 error format. */
2293
- '$.xgafv'?: string;
2406
+ '$.xgafv'?: '1' | '2';
2294
2407
  /** OAuth access token. */
2295
2408
  access_token?: string;
2296
2409
  /** Data format for response. */
2297
- alt?: string;
2410
+ alt?: 'json' | 'media' | 'proto';
2298
2411
  /** JSONP */
2299
2412
  callback?: string;
2300
2413
  /** Selector specifying which fields to include in a partial response. */
@@ -2319,11 +2432,11 @@ declare namespace gapi.client {
2319
2432
  /** Deletes a print server. */
2320
2433
  delete(request?: {
2321
2434
  /** V1 error format. */
2322
- '$.xgafv'?: string;
2435
+ '$.xgafv'?: '1' | '2';
2323
2436
  /** OAuth access token. */
2324
2437
  access_token?: string;
2325
2438
  /** Data format for response. */
2326
- alt?: string;
2439
+ alt?: 'json' | 'media' | 'proto';
2327
2440
  /** JSONP */
2328
2441
  callback?: string;
2329
2442
  /** Selector specifying which fields to include in a partial response. */
@@ -2346,11 +2459,11 @@ declare namespace gapi.client {
2346
2459
  /** Returns a print server's configuration. */
2347
2460
  get(request?: {
2348
2461
  /** V1 error format. */
2349
- '$.xgafv'?: string;
2462
+ '$.xgafv'?: '1' | '2';
2350
2463
  /** OAuth access token. */
2351
2464
  access_token?: string;
2352
2465
  /** Data format for response. */
2353
- alt?: string;
2466
+ alt?: 'json' | 'media' | 'proto';
2354
2467
  /** JSONP */
2355
2468
  callback?: string;
2356
2469
  /** Selector specifying which fields to include in a partial response. */
@@ -2373,11 +2486,11 @@ declare namespace gapi.client {
2373
2486
  /** Lists print server configurations. */
2374
2487
  list(request?: {
2375
2488
  /** V1 error format. */
2376
- '$.xgafv'?: string;
2489
+ '$.xgafv'?: '1' | '2';
2377
2490
  /** OAuth access token. */
2378
2491
  access_token?: string;
2379
2492
  /** Data format for response. */
2380
- alt?: string;
2493
+ alt?: 'json' | 'media' | 'proto';
2381
2494
  /** JSONP */
2382
2495
  callback?: string;
2383
2496
  /** Selector specifying which fields to include in a partial response. */
@@ -2410,11 +2523,11 @@ declare namespace gapi.client {
2410
2523
  /** Updates a print server's configuration. */
2411
2524
  patch(request: {
2412
2525
  /** V1 error format. */
2413
- '$.xgafv'?: string;
2526
+ '$.xgafv'?: '1' | '2';
2414
2527
  /** OAuth access token. */
2415
2528
  access_token?: string;
2416
2529
  /** Data format for response. */
2417
- alt?: string;
2530
+ alt?: 'json' | 'media' | 'proto';
2418
2531
  /** JSONP */
2419
2532
  callback?: string;
2420
2533
  /** Selector specifying which fields to include in a partial response. */
@@ -2441,11 +2554,11 @@ declare namespace gapi.client {
2441
2554
  patch(
2442
2555
  request: {
2443
2556
  /** V1 error format. */
2444
- '$.xgafv'?: string;
2557
+ '$.xgafv'?: '1' | '2';
2445
2558
  /** OAuth access token. */
2446
2559
  access_token?: string;
2447
2560
  /** Data format for response. */
2448
- alt?: string;
2561
+ alt?: 'json' | 'media' | 'proto';
2449
2562
  /** JSONP */
2450
2563
  callback?: string;
2451
2564
  /** Selector specifying which fields to include in a partial response. */
@@ -2527,7 +2640,11 @@ declare namespace gapi.client {
2527
2640
  /** Field that this message concerns. */
2528
2641
  fieldMask?: string;
2529
2642
  /** Message severity */
2530
- severity?: string;
2643
+ severity?:
2644
+ | 'SEVERITY_UNSPECIFIED'
2645
+ | 'SEVERITY_INFO'
2646
+ | 'SEVERITY_WARNING'
2647
+ | 'SEVERITY_ERROR';
2531
2648
  }
2532
2649
  interface BacklightInfo {
2533
2650
  /** Output only. Current brightness of the backlight, between 0 and max_brightness. */
@@ -2539,9 +2656,24 @@ declare namespace gapi.client {
2539
2656
  }
2540
2657
  interface BatchChangeChromeOsDeviceStatusRequest {
2541
2658
  /** Required. The action to take on the ChromeOS device in order to change its status. */
2542
- changeChromeOsDeviceStatusAction?: string;
2659
+ changeChromeOsDeviceStatusAction?:
2660
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED'
2661
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'
2662
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE'
2663
+ | 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE';
2543
2664
  /** Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field. */
2544
- deprovisionReason?: string;
2665
+ deprovisionReason?:
2666
+ | 'DEPROVISION_REASON_UNSPECIFIED'
2667
+ | 'DEPROVISION_REASON_SAME_MODEL_REPLACEMENT'
2668
+ | 'DEPROVISION_REASON_UPGRADE'
2669
+ | 'DEPROVISION_REASON_DOMAIN_MOVE'
2670
+ | 'DEPROVISION_REASON_SERVICE_EXPIRATION'
2671
+ | 'DEPROVISION_REASON_OTHER'
2672
+ | 'DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT'
2673
+ | 'DEPROVISION_REASON_RETIRING_DEVICE'
2674
+ | 'DEPROVISION_REASON_UPGRADE_TRANSFER'
2675
+ | 'DEPROVISION_REASON_NOT_REQUIRED'
2676
+ | 'DEPROVISION_REASON_REPAIR_CENTER';
2545
2677
  /** Required. List of the IDs of the ChromeOS devices to change. Maximum 50. */
2546
2678
  deviceIds?: string[];
2547
2679
  }
@@ -2749,7 +2881,7 @@ declare namespace gapi.client {
2749
2881
  /** The boot mode for the device. The possible values are: * `Verified`: The device is running a valid version of the Chrome OS. * `Dev`: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the [Chromebook developer information](https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch). */
2750
2882
  bootMode?: string;
2751
2883
  /** Output only. Chrome OS type of the device. */
2752
- chromeOsType?: string;
2884
+ chromeOsType?: 'chromeOsTypeUnspecified' | 'chromeOsFlex' | 'chromeOs';
2753
2885
  /** Information regarding CPU specs in the device. */
2754
2886
  cpuInfo?: Array<{
2755
2887
  /** The CPU architecture. */
@@ -2789,7 +2921,18 @@ declare namespace gapi.client {
2789
2921
  reportTime?: string;
2790
2922
  }>;
2791
2923
  /** (Read-only) Deprovision reason. */
2792
- deprovisionReason?: string;
2924
+ deprovisionReason?:
2925
+ | 'DEPROVISION_REASON_UNSPECIFIED'
2926
+ | 'DEPROVISION_REASON_SAME_MODEL_REPLACEMENT'
2927
+ | 'DEPROVISION_REASON_UPGRADE'
2928
+ | 'DEPROVISION_REASON_DOMAIN_MOVE'
2929
+ | 'DEPROVISION_REASON_SERVICE_EXPIRATION'
2930
+ | 'DEPROVISION_REASON_OTHER'
2931
+ | 'DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT'
2932
+ | 'DEPROVISION_REASON_RETIRING_DEVICE'
2933
+ | 'DEPROVISION_REASON_UPGRADE_TRANSFER'
2934
+ | 'DEPROVISION_REASON_NOT_REQUIRED'
2935
+ | 'DEPROVISION_REASON_REPAIR_CENTER';
2793
2936
  /** A list of device files to download (Read-only) */
2794
2937
  deviceFiles?: Array<{
2795
2938
  /** Date and time the file was created */
@@ -2804,7 +2947,17 @@ declare namespace gapi.client {
2804
2947
  /** The unique ID of the Chrome device. */
2805
2948
  deviceId?: string;
2806
2949
  /** Output only. Device license type. */
2807
- deviceLicenseType?: string;
2950
+ deviceLicenseType?:
2951
+ | 'deviceLicenseTypeUnspecified'
2952
+ | 'enterprise'
2953
+ | 'enterpriseUpgrade'
2954
+ | 'educationUpgrade'
2955
+ | 'education'
2956
+ | 'kioskUpgrade'
2957
+ | 'enterpriseUpgradePerpetual'
2958
+ | 'enterpriseUpgradeFixedTerm'
2959
+ | 'educationUpgradePerpetual'
2960
+ | 'educationUpgradeFixedTerm';
2808
2961
  /** Output only. How much disk space the device has available and is currently using. */
2809
2962
  diskSpaceUsage?: ByteUsage;
2810
2963
  /** Reports of disk space and other info about mounted/connected volumes. */
@@ -2875,7 +3028,11 @@ declare namespace gapi.client {
2875
3028
  /** The Chrome device's operating system version. */
2876
3029
  osVersion?: string;
2877
3030
  /** Output only. Device policy compliance status of the OS version. */
2878
- osVersionCompliance?: string;
3031
+ osVersionCompliance?:
3032
+ | 'complianceUnspecified'
3033
+ | 'compliant'
3034
+ | 'pending'
3035
+ | 'notCompliant';
2879
3036
  /** The Chrome device's platform version. */
2880
3037
  platformVersion?: string;
2881
3038
  /** A list of recent device users, in descending order, by last login time. */
@@ -3016,9 +3173,26 @@ declare namespace gapi.client {
3016
3173
  /** The payload that the command specified, if any. */
3017
3174
  payload?: string;
3018
3175
  /** Indicates the command state. */
3019
- state?: string;
3176
+ state?:
3177
+ | 'STATE_UNSPECIFIED'
3178
+ | 'PENDING'
3179
+ | 'EXPIRED'
3180
+ | 'CANCELLED'
3181
+ | 'SENT_TO_CLIENT'
3182
+ | 'ACKED_BY_CLIENT'
3183
+ | 'EXECUTED_BY_CLIENT';
3020
3184
  /** The type of the command. */
3021
- type?: string;
3185
+ type?:
3186
+ | 'COMMAND_TYPE_UNSPECIFIED'
3187
+ | 'REBOOT'
3188
+ | 'TAKE_A_SCREENSHOT'
3189
+ | 'SET_VOLUME'
3190
+ | 'WIPE_USERS'
3191
+ | 'REMOTE_POWERWASH'
3192
+ | 'DEVICE_START_CRD_SESSION'
3193
+ | 'CAPTURE_LOGS'
3194
+ | 'FETCH_CRD_AVAILABILITY_INFO'
3195
+ | 'FETCH_SUPPORT_PACKET';
3022
3196
  }
3023
3197
  interface DirectoryChromeosdevicesCommandResult {
3024
3198
  /** The payload for the command result. The following commands respond with a payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object in the form: { "url": url }. The provided URL links to the Chrome Remote Desktop session and requires authentication using only the `email` associated with the command's issuance. * `FETCH_CRD_AVAILABILITY_INFO`: Payload is a stringified JSON object in the form: { "deviceIdleTimeInSeconds": number, "userSessionType": string, "remoteSupportAvailability": string, "remoteAccessAvailability": string }. The "remoteSupportAvailability" field is set to "AVAILABLE" if `shared` CRD session to the device is available. The "remoteAccessAvailability" field is set to "AVAILABLE" if `private` CRD session to the device is available. */
@@ -3028,11 +3202,25 @@ declare namespace gapi.client {
3028
3202
  /** The time at which the command was executed or failed to execute. */
3029
3203
  executeTime?: string;
3030
3204
  /** The result of the command. */
3031
- result?: string;
3205
+ result?:
3206
+ | 'COMMAND_RESULT_TYPE_UNSPECIFIED'
3207
+ | 'IGNORED'
3208
+ | 'FAILURE'
3209
+ | 'SUCCESS';
3032
3210
  }
3033
3211
  interface DirectoryChromeosdevicesIssueCommandRequest {
3034
3212
  /** The type of command. */
3035
- commandType?: string;
3213
+ commandType?:
3214
+ | 'COMMAND_TYPE_UNSPECIFIED'
3215
+ | 'REBOOT'
3216
+ | 'TAKE_A_SCREENSHOT'
3217
+ | 'SET_VOLUME'
3218
+ | 'WIPE_USERS'
3219
+ | 'REMOTE_POWERWASH'
3220
+ | 'DEVICE_START_CRD_SESSION'
3221
+ | 'CAPTURE_LOGS'
3222
+ | 'FETCH_CRD_AVAILABILITY_INFO'
3223
+ | 'FETCH_SUPPORT_PACKET';
3036
3224
  /** The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form: { "volume": 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: { "ackedUserPresence": true, "crdSessionType": string }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set `ackedUserPresence` to `true`. `crdSessionType` can only select from values `private` (which grants the remote admin exclusive control of the ChromeOS device) or `shared` (which allows the admin and the local user to share control of the ChromeOS device). If not set, `crdSessionType` defaults to `shared`. The `FETCH_CRD_AVAILABILITY_INFO` command can be used to determine available session types on the device. * `REBOOT`: Payload is a stringified JSON object in the form: { "user_session_delay_seconds": 300 }. The `user_session_delay_seconds` is the amount of seconds to wait before rebooting the device if a user is logged in. It has to be an integer in the range [0,300]. When payload is not present for reboot, 0 delay is the default. Note: This only applies if an actual user is logged in, including a Guest. If the device is in the login screen or in Kiosk mode the value is not respected and the device immediately reboots. * `FETCH_SUPPORT_PACKET`: Payload is optionally a stringified JSON object in the form: {"supportPacketDetails":{ "issueCaseId": optional_support_case_id_string, "issueDescription": optional_issue_description_string, "requestedDataCollectors": []}} The list of available `data_collector_enums` are as following: Chrome System Information (1), Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill (Connection Manager) Logs (14), Policies (15), ChromeOS System State and Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18), ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network Health (23). See more details in [help article](https://support.google.com/chrome/a?p=remote-log). */
3037
3225
  payload?: string;
3038
3226
  }
@@ -3095,7 +3283,24 @@ declare namespace gapi.client {
3095
3283
  interface Empty {}
3096
3284
  interface FailureInfo {
3097
3285
  /** Canonical code for why the update failed to apply. */
3098
- errorCode?: string;
3286
+ errorCode?:
3287
+ | 'OK'
3288
+ | 'CANCELLED'
3289
+ | 'UNKNOWN'
3290
+ | 'INVALID_ARGUMENT'
3291
+ | 'DEADLINE_EXCEEDED'
3292
+ | 'NOT_FOUND'
3293
+ | 'ALREADY_EXISTS'
3294
+ | 'PERMISSION_DENIED'
3295
+ | 'UNAUTHENTICATED'
3296
+ | 'RESOURCE_EXHAUSTED'
3297
+ | 'FAILED_PRECONDITION'
3298
+ | 'ABORTED'
3299
+ | 'OUT_OF_RANGE'
3300
+ | 'UNIMPLEMENTED'
3301
+ | 'INTERNAL'
3302
+ | 'UNAVAILABLE'
3303
+ | 'DATA_LOSS';
3099
3304
  /** Failure reason message. */
3100
3305
  errorMessage?: string;
3101
3306
  /** Failed printer. */
@@ -3370,7 +3575,11 @@ declare namespace gapi.client {
3370
3575
  /** Date and time of the last reboot. */
3371
3576
  rebootTime?: string;
3372
3577
  /** The update state of an OS update. */
3373
- state?: string;
3578
+ state?:
3579
+ | 'updateStateUnspecified'
3580
+ | 'updateStateNotStarted'
3581
+ | 'updateStateDownloadInProgress'
3582
+ | 'updateStateNeedReboot';
3374
3583
  /** New required platform version from the pending updated kiosk app. */
3375
3584
  targetKioskAppVersion?: string;
3376
3585
  /** New platform version of the OS image being downloaded and applied. It is only set when update status is UPDATE_STATUS_DOWNLOAD_IN_PROGRESS or UPDATE_STATUS_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for UPDATE_STATUS_NEED_REBOOT for some edge cases, e.g. update engine is restarted without a reboot. */
@@ -3428,7 +3637,24 @@ declare namespace gapi.client {
3428
3637
  }
3429
3638
  interface PrintServerFailureInfo {
3430
3639
  /** Canonical code for why the update failed to apply. */
3431
- errorCode?: string;
3640
+ errorCode?:
3641
+ | 'OK'
3642
+ | 'CANCELLED'
3643
+ | 'UNKNOWN'
3644
+ | 'INVALID_ARGUMENT'
3645
+ | 'DEADLINE_EXCEEDED'
3646
+ | 'NOT_FOUND'
3647
+ | 'ALREADY_EXISTS'
3648
+ | 'PERMISSION_DENIED'
3649
+ | 'UNAUTHENTICATED'
3650
+ | 'RESOURCE_EXHAUSTED'
3651
+ | 'FAILED_PRECONDITION'
3652
+ | 'ABORTED'
3653
+ | 'OUT_OF_RANGE'
3654
+ | 'UNIMPLEMENTED'
3655
+ | 'INTERNAL'
3656
+ | 'UNAVAILABLE'
3657
+ | 'DATA_LOSS';
3432
3658
  /** Failure reason message. */
3433
3659
  errorMessage?: string;
3434
3660
  /** Failed print server. */
@@ -3487,7 +3713,7 @@ declare namespace gapi.client {
3487
3713
  /** The unique ID of the entity this role is assigned to—either the `user_id` of a user, the `group_id` of a group, or the `uniqueId` of a service account as defined in [Identity and Access Management (IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). */
3488
3714
  assignedTo?: string;
3489
3715
  /** Output only. The type of the assignee (`USER` or `GROUP`). */
3490
- assigneeType?: string;
3716
+ assigneeType?: 'user' | 'group';
3491
3717
  /** Optional. The condition associated with this role assignment. Note: Feature is available to Enterprise Standard, Enterprise Plus, Google Workspace for Education Plus and Cloud Identity Premium customers. A `RoleAssignment` with the `condition` field set will only take effect when the resource being accessed meets the condition. If `condition` is empty, the role (`role_id`) is applied to the actor (`assigned_to`) at the scope (`scope_type`) unconditionally. Currently, the following conditions are supported: - To make the `RoleAssignment` only applicable to [Security Groups](https://cloud.google.com/identity/docs/groups#group_types): `api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.security']) && resource.type == 'cloudidentity.googleapis.com/Group'` - To make the `RoleAssignment` not applicable to [Security Groups](https://cloud.google.com/identity/docs/groups#group_types): `!api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.security']) && resource.type == 'cloudidentity.googleapis.com/Group'` Currently, the condition strings have to be verbatim and they only work with the following [pre-built administrator roles](https://support.google.com/a/answer/2405986): - Groups Editor - Groups Reader The condition follows [Cloud IAM condition syntax](https://cloud.google.com/iam/docs/conditions-overview). - To make the `RoleAssignment` not applicable to [Locked Groups](https://cloud.google.com/identity/docs/groups#group_types): `!api.getAttribute('cloudidentity.googleapis.com/groups.labels', []).hasAny(['groups.locked']) && resource.type == 'cloudidentity.googleapis.com/Group'` This condition can also be used in conjunction with a Security-related condition. */
3492
3718
  condition?: string;
3493
3719
  /** ETag of the resource. */
@@ -3985,11 +4211,11 @@ declare namespace gapi.client {
3985
4211
  /** Deletes an ASP issued by a user. */
3986
4212
  delete(request?: {
3987
4213
  /** V1 error format. */
3988
- '$.xgafv'?: string;
4214
+ '$.xgafv'?: '1' | '2';
3989
4215
  /** OAuth access token. */
3990
4216
  access_token?: string;
3991
4217
  /** Data format for response. */
3992
- alt?: string;
4218
+ alt?: 'json' | 'media' | 'proto';
3993
4219
  /** JSONP */
3994
4220
  callback?: string;
3995
4221
  /** The unique ID of the ASP to be deleted. */
@@ -4014,11 +4240,11 @@ declare namespace gapi.client {
4014
4240
  /** Gets information about an ASP issued by a user. */
4015
4241
  get(request?: {
4016
4242
  /** V1 error format. */
4017
- '$.xgafv'?: string;
4243
+ '$.xgafv'?: '1' | '2';
4018
4244
  /** OAuth access token. */
4019
4245
  access_token?: string;
4020
4246
  /** Data format for response. */
4021
- alt?: string;
4247
+ alt?: 'json' | 'media' | 'proto';
4022
4248
  /** JSONP */
4023
4249
  callback?: string;
4024
4250
  /** The unique ID of the ASP. */
@@ -4043,11 +4269,11 @@ declare namespace gapi.client {
4043
4269
  /** Lists the ASPs issued by a user. */
4044
4270
  list(request?: {
4045
4271
  /** V1 error format. */
4046
- '$.xgafv'?: string;
4272
+ '$.xgafv'?: '1' | '2';
4047
4273
  /** OAuth access token. */
4048
4274
  access_token?: string;
4049
4275
  /** Data format for response. */
4050
- alt?: string;
4276
+ alt?: 'json' | 'media' | 'proto';
4051
4277
  /** JSONP */
4052
4278
  callback?: string;
4053
4279
  /** Selector specifying which fields to include in a partial response. */
@@ -4072,11 +4298,11 @@ declare namespace gapi.client {
4072
4298
  /** Use [BatchChangeChromeOsDeviceStatus](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) instead. 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 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 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 about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633). */
4073
4299
  action(request: {
4074
4300
  /** V1 error format. */
4075
- '$.xgafv'?: string;
4301
+ '$.xgafv'?: '1' | '2';
4076
4302
  /** OAuth access token. */
4077
4303
  access_token?: string;
4078
4304
  /** Data format for response. */
4079
- alt?: string;
4305
+ alt?: 'json' | 'media' | 'proto';
4080
4306
  /** JSONP */
4081
4307
  callback?: string;
4082
4308
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4103,11 +4329,11 @@ declare namespace gapi.client {
4103
4329
  action(
4104
4330
  request: {
4105
4331
  /** V1 error format. */
4106
- '$.xgafv'?: string;
4332
+ '$.xgafv'?: '1' | '2';
4107
4333
  /** OAuth access token. */
4108
4334
  access_token?: string;
4109
4335
  /** Data format for response. */
4110
- alt?: string;
4336
+ alt?: 'json' | 'media' | 'proto';
4111
4337
  /** JSONP */
4112
4338
  callback?: string;
4113
4339
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4134,11 +4360,11 @@ declare namespace gapi.client {
4134
4360
  /** Retrieves a Chrome OS device's properties. */
4135
4361
  get(request?: {
4136
4362
  /** V1 error format. */
4137
- '$.xgafv'?: string;
4363
+ '$.xgafv'?: '1' | '2';
4138
4364
  /** OAuth access token. */
4139
4365
  access_token?: string;
4140
4366
  /** Data format for response. */
4141
- alt?: string;
4367
+ alt?: 'json' | 'media' | 'proto';
4142
4368
  /** JSONP */
4143
4369
  callback?: string;
4144
4370
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4154,7 +4380,7 @@ declare namespace gapi.client {
4154
4380
  /** Returns response with indentations and line breaks. */
4155
4381
  prettyPrint?: boolean;
4156
4382
  /** Determines whether the response contains the full list of properties or only a subset. */
4157
- projection?: string;
4383
+ projection?: 'BASIC' | 'FULL';
4158
4384
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4159
4385
  quotaUser?: string;
4160
4386
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -4165,11 +4391,11 @@ declare namespace gapi.client {
4165
4391
  /** Retrieves a paginated list of Chrome OS devices within an account. */
4166
4392
  list(request?: {
4167
4393
  /** V1 error format. */
4168
- '$.xgafv'?: string;
4394
+ '$.xgafv'?: '1' | '2';
4169
4395
  /** OAuth access token. */
4170
4396
  access_token?: string;
4171
4397
  /** Data format for response. */
4172
- alt?: string;
4398
+ alt?: 'json' | 'media' | 'proto';
4173
4399
  /** JSONP */
4174
4400
  callback?: string;
4175
4401
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4185,7 +4411,13 @@ declare namespace gapi.client {
4185
4411
  /** OAuth 2.0 token for the current user. */
4186
4412
  oauth_token?: string;
4187
4413
  /** Device property to use for sorting results. */
4188
- orderBy?: string;
4414
+ orderBy?:
4415
+ | 'annotatedLocation'
4416
+ | 'annotatedUser'
4417
+ | 'lastSync'
4418
+ | 'notes'
4419
+ | 'serialNumber'
4420
+ | 'status';
4189
4421
  /** The full path of the organizational unit (minus the leading `/`) or its unique ID. */
4190
4422
  orgUnitPath?: string;
4191
4423
  /** The `pageToken` query parameter is used to request the next page of query results. The follow-on request's `pageToken` query parameter is the `nextPageToken` from your previous response. */
@@ -4193,13 +4425,13 @@ declare namespace gapi.client {
4193
4425
  /** Returns response with indentations and line breaks. */
4194
4426
  prettyPrint?: boolean;
4195
4427
  /** Determines whether the response contains the full list of properties or only a subset. */
4196
- projection?: string;
4428
+ projection?: 'BASIC' | 'FULL';
4197
4429
  /** Search string in the format given at [List query operators](https://developers.google.com/workspace/admin/directory/v1/list-query-operators). */
4198
4430
  query?: string;
4199
4431
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4200
4432
  quotaUser?: string;
4201
4433
  /** Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter. */
4202
- sortOrder?: string;
4434
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
4203
4435
  /** Upload protocol for media (e.g. "raw", "multipart"). */
4204
4436
  upload_protocol?: string;
4205
4437
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -4208,11 +4440,11 @@ declare namespace gapi.client {
4208
4440
  /** Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once. */
4209
4441
  moveDevicesToOu(request: {
4210
4442
  /** V1 error format. */
4211
- '$.xgafv'?: string;
4443
+ '$.xgafv'?: '1' | '2';
4212
4444
  /** OAuth access token. */
4213
4445
  access_token?: string;
4214
4446
  /** Data format for response. */
4215
- alt?: string;
4447
+ alt?: 'json' | 'media' | 'proto';
4216
4448
  /** JSONP */
4217
4449
  callback?: string;
4218
4450
  /** Immutable. ID of the Google Workspace account */
@@ -4239,11 +4471,11 @@ declare namespace gapi.client {
4239
4471
  moveDevicesToOu(
4240
4472
  request: {
4241
4473
  /** V1 error format. */
4242
- '$.xgafv'?: string;
4474
+ '$.xgafv'?: '1' | '2';
4243
4475
  /** OAuth access token. */
4244
4476
  access_token?: string;
4245
4477
  /** Data format for response. */
4246
- alt?: string;
4478
+ alt?: 'json' | 'media' | 'proto';
4247
4479
  /** JSONP */
4248
4480
  callback?: string;
4249
4481
  /** Immutable. ID of the Google Workspace account */
@@ -4270,11 +4502,11 @@ declare namespace gapi.client {
4270
4502
  /** Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch). */
4271
4503
  patch(request: {
4272
4504
  /** V1 error format. */
4273
- '$.xgafv'?: string;
4505
+ '$.xgafv'?: '1' | '2';
4274
4506
  /** OAuth access token. */
4275
4507
  access_token?: string;
4276
4508
  /** Data format for response. */
4277
- alt?: string;
4509
+ alt?: 'json' | 'media' | 'proto';
4278
4510
  /** JSONP */
4279
4511
  callback?: string;
4280
4512
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4290,7 +4522,7 @@ declare namespace gapi.client {
4290
4522
  /** Returns response with indentations and line breaks. */
4291
4523
  prettyPrint?: boolean;
4292
4524
  /** Determines whether the response contains the full list of properties or only a subset. */
4293
- projection?: string;
4525
+ projection?: 'BASIC' | 'FULL';
4294
4526
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4295
4527
  quotaUser?: string;
4296
4528
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -4303,11 +4535,11 @@ declare namespace gapi.client {
4303
4535
  patch(
4304
4536
  request: {
4305
4537
  /** V1 error format. */
4306
- '$.xgafv'?: string;
4538
+ '$.xgafv'?: '1' | '2';
4307
4539
  /** OAuth access token. */
4308
4540
  access_token?: string;
4309
4541
  /** Data format for response. */
4310
- alt?: string;
4542
+ alt?: 'json' | 'media' | 'proto';
4311
4543
  /** JSONP */
4312
4544
  callback?: string;
4313
4545
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4323,7 +4555,7 @@ declare namespace gapi.client {
4323
4555
  /** Returns response with indentations and line breaks. */
4324
4556
  prettyPrint?: boolean;
4325
4557
  /** Determines whether the response contains the full list of properties or only a subset. */
4326
- projection?: string;
4558
+ projection?: 'BASIC' | 'FULL';
4327
4559
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4328
4560
  quotaUser?: string;
4329
4561
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -4336,11 +4568,11 @@ declare namespace gapi.client {
4336
4568
  /** Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. */
4337
4569
  update(request: {
4338
4570
  /** V1 error format. */
4339
- '$.xgafv'?: string;
4571
+ '$.xgafv'?: '1' | '2';
4340
4572
  /** OAuth access token. */
4341
4573
  access_token?: string;
4342
4574
  /** Data format for response. */
4343
- alt?: string;
4575
+ alt?: 'json' | 'media' | 'proto';
4344
4576
  /** JSONP */
4345
4577
  callback?: string;
4346
4578
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4356,7 +4588,7 @@ declare namespace gapi.client {
4356
4588
  /** Returns response with indentations and line breaks. */
4357
4589
  prettyPrint?: boolean;
4358
4590
  /** Determines whether the response contains the full list of properties or only a subset. */
4359
- projection?: string;
4591
+ projection?: 'BASIC' | 'FULL';
4360
4592
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4361
4593
  quotaUser?: string;
4362
4594
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -4369,11 +4601,11 @@ declare namespace gapi.client {
4369
4601
  update(
4370
4602
  request: {
4371
4603
  /** V1 error format. */
4372
- '$.xgafv'?: string;
4604
+ '$.xgafv'?: '1' | '2';
4373
4605
  /** OAuth access token. */
4374
4606
  access_token?: string;
4375
4607
  /** Data format for response. */
4376
- alt?: string;
4608
+ alt?: 'json' | 'media' | 'proto';
4377
4609
  /** JSONP */
4378
4610
  callback?: string;
4379
4611
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -4389,7 +4621,7 @@ declare namespace gapi.client {
4389
4621
  /** Returns response with indentations and line breaks. */
4390
4622
  prettyPrint?: boolean;
4391
4623
  /** Determines whether the response contains the full list of properties or only a subset. */
4392
- projection?: string;
4624
+ projection?: 'BASIC' | 'FULL';
4393
4625
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4394
4626
  quotaUser?: string;
4395
4627
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -4404,11 +4636,11 @@ declare namespace gapi.client {
4404
4636
  /** Retrieves a customer. */
4405
4637
  get(request?: {
4406
4638
  /** V1 error format. */
4407
- '$.xgafv'?: string;
4639
+ '$.xgafv'?: '1' | '2';
4408
4640
  /** OAuth access token. */
4409
4641
  access_token?: string;
4410
4642
  /** Data format for response. */
4411
- alt?: string;
4643
+ alt?: 'json' | 'media' | 'proto';
4412
4644
  /** JSONP */
4413
4645
  callback?: string;
4414
4646
  /** Id of the customer to be retrieved */
@@ -4431,11 +4663,11 @@ declare namespace gapi.client {
4431
4663
  /** Patches a customer. */
4432
4664
  patch(request: {
4433
4665
  /** V1 error format. */
4434
- '$.xgafv'?: string;
4666
+ '$.xgafv'?: '1' | '2';
4435
4667
  /** OAuth access token. */
4436
4668
  access_token?: string;
4437
4669
  /** Data format for response. */
4438
- alt?: string;
4670
+ alt?: 'json' | 'media' | 'proto';
4439
4671
  /** JSONP */
4440
4672
  callback?: string;
4441
4673
  /** Id of the customer to be updated */
@@ -4460,11 +4692,11 @@ declare namespace gapi.client {
4460
4692
  patch(
4461
4693
  request: {
4462
4694
  /** V1 error format. */
4463
- '$.xgafv'?: string;
4695
+ '$.xgafv'?: '1' | '2';
4464
4696
  /** OAuth access token. */
4465
4697
  access_token?: string;
4466
4698
  /** Data format for response. */
4467
- alt?: string;
4699
+ alt?: 'json' | 'media' | 'proto';
4468
4700
  /** JSONP */
4469
4701
  callback?: string;
4470
4702
  /** Id of the customer to be updated */
@@ -4489,11 +4721,11 @@ declare namespace gapi.client {
4489
4721
  /** Updates a customer. */
4490
4722
  update(request: {
4491
4723
  /** V1 error format. */
4492
- '$.xgafv'?: string;
4724
+ '$.xgafv'?: '1' | '2';
4493
4725
  /** OAuth access token. */
4494
4726
  access_token?: string;
4495
4727
  /** Data format for response. */
4496
- alt?: string;
4728
+ alt?: 'json' | 'media' | 'proto';
4497
4729
  /** JSONP */
4498
4730
  callback?: string;
4499
4731
  /** Id of the customer to be updated */
@@ -4518,11 +4750,11 @@ declare namespace gapi.client {
4518
4750
  update(
4519
4751
  request: {
4520
4752
  /** V1 error format. */
4521
- '$.xgafv'?: string;
4753
+ '$.xgafv'?: '1' | '2';
4522
4754
  /** OAuth access token. */
4523
4755
  access_token?: string;
4524
4756
  /** Data format for response. */
4525
- alt?: string;
4757
+ alt?: 'json' | 'media' | 'proto';
4526
4758
  /** JSONP */
4527
4759
  callback?: string;
4528
4760
  /** Id of the customer to be updated */
@@ -4549,11 +4781,11 @@ declare namespace gapi.client {
4549
4781
  /** Deletes a domain Alias of the customer. */
4550
4782
  delete(request?: {
4551
4783
  /** V1 error format. */
4552
- '$.xgafv'?: string;
4784
+ '$.xgafv'?: '1' | '2';
4553
4785
  /** OAuth access token. */
4554
4786
  access_token?: string;
4555
4787
  /** Data format for response. */
4556
- alt?: string;
4788
+ alt?: 'json' | 'media' | 'proto';
4557
4789
  /** JSONP */
4558
4790
  callback?: string;
4559
4791
  /** Immutable ID of the Google Workspace account. */
@@ -4578,11 +4810,11 @@ declare namespace gapi.client {
4578
4810
  /** Retrieves a domain alias of the customer. */
4579
4811
  get(request?: {
4580
4812
  /** V1 error format. */
4581
- '$.xgafv'?: string;
4813
+ '$.xgafv'?: '1' | '2';
4582
4814
  /** OAuth access token. */
4583
4815
  access_token?: string;
4584
4816
  /** Data format for response. */
4585
- alt?: string;
4817
+ alt?: 'json' | 'media' | 'proto';
4586
4818
  /** JSONP */
4587
4819
  callback?: string;
4588
4820
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -4607,11 +4839,11 @@ declare namespace gapi.client {
4607
4839
  /** Inserts a domain alias of the customer. */
4608
4840
  insert(request: {
4609
4841
  /** V1 error format. */
4610
- '$.xgafv'?: string;
4842
+ '$.xgafv'?: '1' | '2';
4611
4843
  /** OAuth access token. */
4612
4844
  access_token?: string;
4613
4845
  /** Data format for response. */
4614
- alt?: string;
4846
+ alt?: 'json' | 'media' | 'proto';
4615
4847
  /** JSONP */
4616
4848
  callback?: string;
4617
4849
  /** Immutable ID of the Google Workspace account. */
@@ -4636,11 +4868,11 @@ declare namespace gapi.client {
4636
4868
  insert(
4637
4869
  request: {
4638
4870
  /** V1 error format. */
4639
- '$.xgafv'?: string;
4871
+ '$.xgafv'?: '1' | '2';
4640
4872
  /** OAuth access token. */
4641
4873
  access_token?: string;
4642
4874
  /** Data format for response. */
4643
- alt?: string;
4875
+ alt?: 'json' | 'media' | 'proto';
4644
4876
  /** JSONP */
4645
4877
  callback?: string;
4646
4878
  /** Immutable ID of the Google Workspace account. */
@@ -4665,11 +4897,11 @@ declare namespace gapi.client {
4665
4897
  /** Lists the domain aliases of the customer. */
4666
4898
  list(request?: {
4667
4899
  /** V1 error format. */
4668
- '$.xgafv'?: string;
4900
+ '$.xgafv'?: '1' | '2';
4669
4901
  /** OAuth access token. */
4670
4902
  access_token?: string;
4671
4903
  /** Data format for response. */
4672
- alt?: string;
4904
+ alt?: 'json' | 'media' | 'proto';
4673
4905
  /** JSONP */
4674
4906
  callback?: string;
4675
4907
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -4696,11 +4928,11 @@ declare namespace gapi.client {
4696
4928
  /** Deletes a domain of the customer. */
4697
4929
  delete(request?: {
4698
4930
  /** V1 error format. */
4699
- '$.xgafv'?: string;
4931
+ '$.xgafv'?: '1' | '2';
4700
4932
  /** OAuth access token. */
4701
4933
  access_token?: string;
4702
4934
  /** Data format for response. */
4703
- alt?: string;
4935
+ alt?: 'json' | 'media' | 'proto';
4704
4936
  /** JSONP */
4705
4937
  callback?: string;
4706
4938
  /** Immutable ID of the Google Workspace account. */
@@ -4725,11 +4957,11 @@ declare namespace gapi.client {
4725
4957
  /** Retrieves a domain of the customer. */
4726
4958
  get(request?: {
4727
4959
  /** V1 error format. */
4728
- '$.xgafv'?: string;
4960
+ '$.xgafv'?: '1' | '2';
4729
4961
  /** OAuth access token. */
4730
4962
  access_token?: string;
4731
4963
  /** Data format for response. */
4732
- alt?: string;
4964
+ alt?: 'json' | 'media' | 'proto';
4733
4965
  /** JSONP */
4734
4966
  callback?: string;
4735
4967
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -4754,11 +4986,11 @@ declare namespace gapi.client {
4754
4986
  /** Inserts a domain of the customer. */
4755
4987
  insert(request: {
4756
4988
  /** V1 error format. */
4757
- '$.xgafv'?: string;
4989
+ '$.xgafv'?: '1' | '2';
4758
4990
  /** OAuth access token. */
4759
4991
  access_token?: string;
4760
4992
  /** Data format for response. */
4761
- alt?: string;
4993
+ alt?: 'json' | 'media' | 'proto';
4762
4994
  /** JSONP */
4763
4995
  callback?: string;
4764
4996
  /** Immutable ID of the Google Workspace account. */
@@ -4783,11 +5015,11 @@ declare namespace gapi.client {
4783
5015
  insert(
4784
5016
  request: {
4785
5017
  /** V1 error format. */
4786
- '$.xgafv'?: string;
5018
+ '$.xgafv'?: '1' | '2';
4787
5019
  /** OAuth access token. */
4788
5020
  access_token?: string;
4789
5021
  /** Data format for response. */
4790
- alt?: string;
5022
+ alt?: 'json' | 'media' | 'proto';
4791
5023
  /** JSONP */
4792
5024
  callback?: string;
4793
5025
  /** Immutable ID of the Google Workspace account. */
@@ -4812,11 +5044,11 @@ declare namespace gapi.client {
4812
5044
  /** Lists the domains of the customer. */
4813
5045
  list(request?: {
4814
5046
  /** V1 error format. */
4815
- '$.xgafv'?: string;
5047
+ '$.xgafv'?: '1' | '2';
4816
5048
  /** OAuth access token. */
4817
5049
  access_token?: string;
4818
5050
  /** Data format for response. */
4819
- alt?: string;
5051
+ alt?: 'json' | 'media' | 'proto';
4820
5052
  /** JSONP */
4821
5053
  callback?: string;
4822
5054
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -4841,13 +5073,13 @@ declare namespace gapi.client {
4841
5073
  /** Removes an alias. */
4842
5074
  delete(request?: {
4843
5075
  /** V1 error format. */
4844
- '$.xgafv'?: string;
5076
+ '$.xgafv'?: '1' | '2';
4845
5077
  /** OAuth access token. */
4846
5078
  access_token?: string;
4847
5079
  /** The alias to be removed */
4848
5080
  alias: string;
4849
5081
  /** Data format for response. */
4850
- alt?: string;
5082
+ alt?: 'json' | 'media' | 'proto';
4851
5083
  /** JSONP */
4852
5084
  callback?: string;
4853
5085
  /** Selector specifying which fields to include in a partial response. */
@@ -4870,11 +5102,11 @@ declare namespace gapi.client {
4870
5102
  /** Adds an alias for the group. */
4871
5103
  insert(request: {
4872
5104
  /** V1 error format. */
4873
- '$.xgafv'?: string;
5105
+ '$.xgafv'?: '1' | '2';
4874
5106
  /** OAuth access token. */
4875
5107
  access_token?: string;
4876
5108
  /** Data format for response. */
4877
- alt?: string;
5109
+ alt?: 'json' | 'media' | 'proto';
4878
5110
  /** JSONP */
4879
5111
  callback?: string;
4880
5112
  /** Selector specifying which fields to include in a partial response. */
@@ -4899,11 +5131,11 @@ declare namespace gapi.client {
4899
5131
  insert(
4900
5132
  request: {
4901
5133
  /** V1 error format. */
4902
- '$.xgafv'?: string;
5134
+ '$.xgafv'?: '1' | '2';
4903
5135
  /** OAuth access token. */
4904
5136
  access_token?: string;
4905
5137
  /** Data format for response. */
4906
- alt?: string;
5138
+ alt?: 'json' | 'media' | 'proto';
4907
5139
  /** JSONP */
4908
5140
  callback?: string;
4909
5141
  /** Selector specifying which fields to include in a partial response. */
@@ -4928,11 +5160,11 @@ declare namespace gapi.client {
4928
5160
  /** Lists all aliases for a group. */
4929
5161
  list(request?: {
4930
5162
  /** V1 error format. */
4931
- '$.xgafv'?: string;
5163
+ '$.xgafv'?: '1' | '2';
4932
5164
  /** OAuth access token. */
4933
5165
  access_token?: string;
4934
5166
  /** Data format for response. */
4935
- alt?: string;
5167
+ alt?: 'json' | 'media' | 'proto';
4936
5168
  /** JSONP */
4937
5169
  callback?: string;
4938
5170
  /** Selector specifying which fields to include in a partial response. */
@@ -4957,11 +5189,11 @@ declare namespace gapi.client {
4957
5189
  /** Deletes a group. */
4958
5190
  delete(request?: {
4959
5191
  /** V1 error format. */
4960
- '$.xgafv'?: string;
5192
+ '$.xgafv'?: '1' | '2';
4961
5193
  /** OAuth access token. */
4962
5194
  access_token?: string;
4963
5195
  /** Data format for response. */
4964
- alt?: string;
5196
+ alt?: 'json' | 'media' | 'proto';
4965
5197
  /** JSONP */
4966
5198
  callback?: string;
4967
5199
  /** Selector specifying which fields to include in a partial response. */
@@ -4984,11 +5216,11 @@ declare namespace gapi.client {
4984
5216
  /** Retrieves a group's properties. */
4985
5217
  get(request?: {
4986
5218
  /** V1 error format. */
4987
- '$.xgafv'?: string;
5219
+ '$.xgafv'?: '1' | '2';
4988
5220
  /** OAuth access token. */
4989
5221
  access_token?: string;
4990
5222
  /** Data format for response. */
4991
- alt?: string;
5223
+ alt?: 'json' | 'media' | 'proto';
4992
5224
  /** JSONP */
4993
5225
  callback?: string;
4994
5226
  /** Selector specifying which fields to include in a partial response. */
@@ -5011,11 +5243,11 @@ declare namespace gapi.client {
5011
5243
  /** Creates a group. */
5012
5244
  insert(request: {
5013
5245
  /** V1 error format. */
5014
- '$.xgafv'?: string;
5246
+ '$.xgafv'?: '1' | '2';
5015
5247
  /** OAuth access token. */
5016
5248
  access_token?: string;
5017
5249
  /** Data format for response. */
5018
- alt?: string;
5250
+ alt?: 'json' | 'media' | 'proto';
5019
5251
  /** JSONP */
5020
5252
  callback?: string;
5021
5253
  /** Selector specifying which fields to include in a partial response. */
@@ -5038,11 +5270,11 @@ declare namespace gapi.client {
5038
5270
  insert(
5039
5271
  request: {
5040
5272
  /** V1 error format. */
5041
- '$.xgafv'?: string;
5273
+ '$.xgafv'?: '1' | '2';
5042
5274
  /** OAuth access token. */
5043
5275
  access_token?: string;
5044
5276
  /** Data format for response. */
5045
- alt?: string;
5277
+ alt?: 'json' | 'media' | 'proto';
5046
5278
  /** JSONP */
5047
5279
  callback?: string;
5048
5280
  /** Selector specifying which fields to include in a partial response. */
@@ -5065,11 +5297,11 @@ declare namespace gapi.client {
5065
5297
  /** Retrieves all groups of a domain or of a user given a userKey (paginated). */
5066
5298
  list(request?: {
5067
5299
  /** V1 error format. */
5068
- '$.xgafv'?: string;
5300
+ '$.xgafv'?: '1' | '2';
5069
5301
  /** OAuth access token. */
5070
5302
  access_token?: string;
5071
5303
  /** Data format for response. */
5072
- alt?: string;
5304
+ alt?: 'json' | 'media' | 'proto';
5073
5305
  /** JSONP */
5074
5306
  callback?: string;
5075
5307
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -5085,7 +5317,7 @@ declare namespace gapi.client {
5085
5317
  /** OAuth 2.0 token for the current user. */
5086
5318
  oauth_token?: string;
5087
5319
  /** Column to use for sorting results */
5088
- orderBy?: string;
5320
+ orderBy?: 'email';
5089
5321
  /** Token to specify next page in the list */
5090
5322
  pageToken?: string;
5091
5323
  /** Returns response with indentations and line breaks. */
@@ -5095,7 +5327,7 @@ declare namespace gapi.client {
5095
5327
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5096
5328
  quotaUser?: string;
5097
5329
  /** Whether to return results in ascending or descending order. Only of use when orderBy is also used */
5098
- sortOrder?: string;
5330
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
5099
5331
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5100
5332
  upload_protocol?: string;
5101
5333
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -5106,11 +5338,11 @@ declare namespace gapi.client {
5106
5338
  /** Updates a group's properties. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch). */
5107
5339
  patch(request: {
5108
5340
  /** V1 error format. */
5109
- '$.xgafv'?: string;
5341
+ '$.xgafv'?: '1' | '2';
5110
5342
  /** OAuth access token. */
5111
5343
  access_token?: string;
5112
5344
  /** Data format for response. */
5113
- alt?: string;
5345
+ alt?: 'json' | 'media' | 'proto';
5114
5346
  /** JSONP */
5115
5347
  callback?: string;
5116
5348
  /** Selector specifying which fields to include in a partial response. */
@@ -5135,11 +5367,11 @@ declare namespace gapi.client {
5135
5367
  patch(
5136
5368
  request: {
5137
5369
  /** V1 error format. */
5138
- '$.xgafv'?: string;
5370
+ '$.xgafv'?: '1' | '2';
5139
5371
  /** OAuth access token. */
5140
5372
  access_token?: string;
5141
5373
  /** Data format for response. */
5142
- alt?: string;
5374
+ alt?: 'json' | 'media' | 'proto';
5143
5375
  /** JSONP */
5144
5376
  callback?: string;
5145
5377
  /** Selector specifying which fields to include in a partial response. */
@@ -5164,11 +5396,11 @@ declare namespace gapi.client {
5164
5396
  /** Updates a group's properties. */
5165
5397
  update(request: {
5166
5398
  /** V1 error format. */
5167
- '$.xgafv'?: string;
5399
+ '$.xgafv'?: '1' | '2';
5168
5400
  /** OAuth access token. */
5169
5401
  access_token?: string;
5170
5402
  /** Data format for response. */
5171
- alt?: string;
5403
+ alt?: 'json' | 'media' | 'proto';
5172
5404
  /** JSONP */
5173
5405
  callback?: string;
5174
5406
  /** Selector specifying which fields to include in a partial response. */
@@ -5193,11 +5425,11 @@ declare namespace gapi.client {
5193
5425
  update(
5194
5426
  request: {
5195
5427
  /** V1 error format. */
5196
- '$.xgafv'?: string;
5428
+ '$.xgafv'?: '1' | '2';
5197
5429
  /** OAuth access token. */
5198
5430
  access_token?: string;
5199
5431
  /** Data format for response. */
5200
- alt?: string;
5432
+ alt?: 'json' | 'media' | 'proto';
5201
5433
  /** JSONP */
5202
5434
  callback?: string;
5203
5435
  /** Selector specifying which fields to include in a partial response. */
@@ -5225,11 +5457,11 @@ declare namespace gapi.client {
5225
5457
  /** Removes a member from a group. */
5226
5458
  delete(request?: {
5227
5459
  /** V1 error format. */
5228
- '$.xgafv'?: string;
5460
+ '$.xgafv'?: '1' | '2';
5229
5461
  /** OAuth access token. */
5230
5462
  access_token?: string;
5231
5463
  /** Data format for response. */
5232
- alt?: string;
5464
+ alt?: 'json' | 'media' | 'proto';
5233
5465
  /** JSONP */
5234
5466
  callback?: string;
5235
5467
  /** Selector specifying which fields to include in a partial response. */
@@ -5254,11 +5486,11 @@ declare namespace gapi.client {
5254
5486
  /** Retrieves a group member's properties. */
5255
5487
  get(request?: {
5256
5488
  /** V1 error format. */
5257
- '$.xgafv'?: string;
5489
+ '$.xgafv'?: '1' | '2';
5258
5490
  /** OAuth access token. */
5259
5491
  access_token?: string;
5260
5492
  /** Data format for response. */
5261
- alt?: string;
5493
+ alt?: 'json' | 'media' | 'proto';
5262
5494
  /** JSONP */
5263
5495
  callback?: string;
5264
5496
  /** Selector specifying which fields to include in a partial response. */
@@ -5283,11 +5515,11 @@ declare namespace gapi.client {
5283
5515
  /** 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 `Invalid input` error is returned. To check for nested memberships that include entities outside of the group's domain, use the [`checkTransitiveMembership()`](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships/checkTransitiveMembership) method in the Cloud Identity Groups API. */
5284
5516
  hasMember(request?: {
5285
5517
  /** V1 error format. */
5286
- '$.xgafv'?: string;
5518
+ '$.xgafv'?: '1' | '2';
5287
5519
  /** OAuth access token. */
5288
5520
  access_token?: string;
5289
5521
  /** Data format for response. */
5290
- alt?: string;
5522
+ alt?: 'json' | 'media' | 'proto';
5291
5523
  /** JSONP */
5292
5524
  callback?: string;
5293
5525
  /** Selector specifying which fields to include in a partial response. */
@@ -5312,11 +5544,11 @@ declare namespace gapi.client {
5312
5544
  /** Adds a user to the specified group. */
5313
5545
  insert(request: {
5314
5546
  /** V1 error format. */
5315
- '$.xgafv'?: string;
5547
+ '$.xgafv'?: '1' | '2';
5316
5548
  /** OAuth access token. */
5317
5549
  access_token?: string;
5318
5550
  /** Data format for response. */
5319
- alt?: string;
5551
+ alt?: 'json' | 'media' | 'proto';
5320
5552
  /** JSONP */
5321
5553
  callback?: string;
5322
5554
  /** Selector specifying which fields to include in a partial response. */
@@ -5341,11 +5573,11 @@ declare namespace gapi.client {
5341
5573
  insert(
5342
5574
  request: {
5343
5575
  /** V1 error format. */
5344
- '$.xgafv'?: string;
5576
+ '$.xgafv'?: '1' | '2';
5345
5577
  /** OAuth access token. */
5346
5578
  access_token?: string;
5347
5579
  /** Data format for response. */
5348
- alt?: string;
5580
+ alt?: 'json' | 'media' | 'proto';
5349
5581
  /** JSONP */
5350
5582
  callback?: string;
5351
5583
  /** Selector specifying which fields to include in a partial response. */
@@ -5370,11 +5602,11 @@ declare namespace gapi.client {
5370
5602
  /** Retrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/workspace/admin/directory/v1/guides/troubleshoot-error-codes). */
5371
5603
  list(request?: {
5372
5604
  /** V1 error format. */
5373
- '$.xgafv'?: string;
5605
+ '$.xgafv'?: '1' | '2';
5374
5606
  /** OAuth access token. */
5375
5607
  access_token?: string;
5376
5608
  /** Data format for response. */
5377
- alt?: string;
5609
+ alt?: 'json' | 'media' | 'proto';
5378
5610
  /** JSONP */
5379
5611
  callback?: string;
5380
5612
  /** Selector specifying which fields to include in a partial response. */
@@ -5405,11 +5637,11 @@ declare namespace gapi.client {
5405
5637
  /** Updates the membership properties of a user in the specified group. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch). */
5406
5638
  patch(request: {
5407
5639
  /** V1 error format. */
5408
- '$.xgafv'?: string;
5640
+ '$.xgafv'?: '1' | '2';
5409
5641
  /** OAuth access token. */
5410
5642
  access_token?: string;
5411
5643
  /** Data format for response. */
5412
- alt?: string;
5644
+ alt?: 'json' | 'media' | 'proto';
5413
5645
  /** JSONP */
5414
5646
  callback?: string;
5415
5647
  /** Selector specifying which fields to include in a partial response. */
@@ -5436,11 +5668,11 @@ declare namespace gapi.client {
5436
5668
  patch(
5437
5669
  request: {
5438
5670
  /** V1 error format. */
5439
- '$.xgafv'?: string;
5671
+ '$.xgafv'?: '1' | '2';
5440
5672
  /** OAuth access token. */
5441
5673
  access_token?: string;
5442
5674
  /** Data format for response. */
5443
- alt?: string;
5675
+ alt?: 'json' | 'media' | 'proto';
5444
5676
  /** JSONP */
5445
5677
  callback?: string;
5446
5678
  /** Selector specifying which fields to include in a partial response. */
@@ -5467,11 +5699,11 @@ declare namespace gapi.client {
5467
5699
  /** Updates the membership of a user in the specified group. */
5468
5700
  update(request: {
5469
5701
  /** V1 error format. */
5470
- '$.xgafv'?: string;
5702
+ '$.xgafv'?: '1' | '2';
5471
5703
  /** OAuth access token. */
5472
5704
  access_token?: string;
5473
5705
  /** Data format for response. */
5474
- alt?: string;
5706
+ alt?: 'json' | 'media' | 'proto';
5475
5707
  /** JSONP */
5476
5708
  callback?: string;
5477
5709
  /** Selector specifying which fields to include in a partial response. */
@@ -5498,11 +5730,11 @@ declare namespace gapi.client {
5498
5730
  update(
5499
5731
  request: {
5500
5732
  /** V1 error format. */
5501
- '$.xgafv'?: string;
5733
+ '$.xgafv'?: '1' | '2';
5502
5734
  /** OAuth access token. */
5503
5735
  access_token?: string;
5504
5736
  /** Data format for response. */
5505
- alt?: string;
5737
+ alt?: 'json' | 'media' | 'proto';
5506
5738
  /** JSONP */
5507
5739
  callback?: string;
5508
5740
  /** Selector specifying which fields to include in a partial response. */
@@ -5531,11 +5763,11 @@ declare namespace gapi.client {
5531
5763
  /** Takes an action that affects a mobile device. For example, remotely wiping a device. */
5532
5764
  action(request: {
5533
5765
  /** V1 error format. */
5534
- '$.xgafv'?: string;
5766
+ '$.xgafv'?: '1' | '2';
5535
5767
  /** OAuth access token. */
5536
5768
  access_token?: string;
5537
5769
  /** Data format for response. */
5538
- alt?: string;
5770
+ alt?: 'json' | 'media' | 'proto';
5539
5771
  /** JSONP */
5540
5772
  callback?: string;
5541
5773
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5562,11 +5794,11 @@ declare namespace gapi.client {
5562
5794
  action(
5563
5795
  request: {
5564
5796
  /** V1 error format. */
5565
- '$.xgafv'?: string;
5797
+ '$.xgafv'?: '1' | '2';
5566
5798
  /** OAuth access token. */
5567
5799
  access_token?: string;
5568
5800
  /** Data format for response. */
5569
- alt?: string;
5801
+ alt?: 'json' | 'media' | 'proto';
5570
5802
  /** JSONP */
5571
5803
  callback?: string;
5572
5804
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5593,11 +5825,11 @@ declare namespace gapi.client {
5593
5825
  /** Removes a mobile device. */
5594
5826
  delete(request?: {
5595
5827
  /** V1 error format. */
5596
- '$.xgafv'?: string;
5828
+ '$.xgafv'?: '1' | '2';
5597
5829
  /** OAuth access token. */
5598
5830
  access_token?: string;
5599
5831
  /** Data format for response. */
5600
- alt?: string;
5832
+ alt?: 'json' | 'media' | 'proto';
5601
5833
  /** JSONP */
5602
5834
  callback?: string;
5603
5835
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5622,11 +5854,11 @@ declare namespace gapi.client {
5622
5854
  /** Retrieves a mobile device's properties. */
5623
5855
  get(request?: {
5624
5856
  /** V1 error format. */
5625
- '$.xgafv'?: string;
5857
+ '$.xgafv'?: '1' | '2';
5626
5858
  /** OAuth access token. */
5627
5859
  access_token?: string;
5628
5860
  /** Data format for response. */
5629
- alt?: string;
5861
+ alt?: 'json' | 'media' | 'proto';
5630
5862
  /** JSONP */
5631
5863
  callback?: string;
5632
5864
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5640,7 +5872,7 @@ declare namespace gapi.client {
5640
5872
  /** Returns response with indentations and line breaks. */
5641
5873
  prettyPrint?: boolean;
5642
5874
  /** Restrict information returned to a set of selected fields. */
5643
- projection?: string;
5875
+ projection?: 'BASIC' | 'FULL';
5644
5876
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5645
5877
  quotaUser?: string;
5646
5878
  /** The unique ID the API service uses to identify the mobile device. */
@@ -5653,11 +5885,11 @@ declare namespace gapi.client {
5653
5885
  /** 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 API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/workspace/admin/directory/v1/guides/troubleshoot-error-codes). */
5654
5886
  list(request?: {
5655
5887
  /** V1 error format. */
5656
- '$.xgafv'?: string;
5888
+ '$.xgafv'?: '1' | '2';
5657
5889
  /** OAuth access token. */
5658
5890
  access_token?: string;
5659
5891
  /** Data format for response. */
5660
- alt?: string;
5892
+ alt?: 'json' | 'media' | 'proto';
5661
5893
  /** JSONP */
5662
5894
  callback?: string;
5663
5895
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5671,19 +5903,27 @@ declare namespace gapi.client {
5671
5903
  /** OAuth 2.0 token for the current user. */
5672
5904
  oauth_token?: string;
5673
5905
  /** Device property to use for sorting results. */
5674
- orderBy?: string;
5906
+ orderBy?:
5907
+ | 'deviceId'
5908
+ | 'email'
5909
+ | 'lastSync'
5910
+ | 'model'
5911
+ | 'name'
5912
+ | 'os'
5913
+ | 'status'
5914
+ | 'type';
5675
5915
  /** Token to specify next page in the list */
5676
5916
  pageToken?: string;
5677
5917
  /** Returns response with indentations and line breaks. */
5678
5918
  prettyPrint?: boolean;
5679
5919
  /** Restrict information returned to a set of selected fields. */
5680
- projection?: string;
5920
+ projection?: 'BASIC' | 'FULL';
5681
5921
  /** Search string in the format given at https://developers.google.com/workspace/admin/directory/v1/search-operators */
5682
5922
  query?: string;
5683
5923
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5684
5924
  quotaUser?: string;
5685
5925
  /** Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter. */
5686
- sortOrder?: string;
5926
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
5687
5927
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5688
5928
  upload_protocol?: string;
5689
5929
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -5694,11 +5934,11 @@ declare namespace gapi.client {
5694
5934
  /** Removes an organizational unit. */
5695
5935
  delete(request?: {
5696
5936
  /** V1 error format. */
5697
- '$.xgafv'?: string;
5937
+ '$.xgafv'?: '1' | '2';
5698
5938
  /** OAuth access token. */
5699
5939
  access_token?: string;
5700
5940
  /** Data format for response. */
5701
- alt?: string;
5941
+ alt?: 'json' | 'media' | 'proto';
5702
5942
  /** JSONP */
5703
5943
  callback?: string;
5704
5944
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5723,11 +5963,11 @@ declare namespace gapi.client {
5723
5963
  /** Retrieves an organizational unit. */
5724
5964
  get(request?: {
5725
5965
  /** V1 error format. */
5726
- '$.xgafv'?: string;
5966
+ '$.xgafv'?: '1' | '2';
5727
5967
  /** OAuth access token. */
5728
5968
  access_token?: string;
5729
5969
  /** Data format for response. */
5730
- alt?: string;
5970
+ alt?: 'json' | 'media' | 'proto';
5731
5971
  /** JSONP */
5732
5972
  callback?: string;
5733
5973
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5752,11 +5992,11 @@ declare namespace gapi.client {
5752
5992
  /** Adds an organizational unit. */
5753
5993
  insert(request: {
5754
5994
  /** V1 error format. */
5755
- '$.xgafv'?: string;
5995
+ '$.xgafv'?: '1' | '2';
5756
5996
  /** OAuth access token. */
5757
5997
  access_token?: string;
5758
5998
  /** Data format for response. */
5759
- alt?: string;
5999
+ alt?: 'json' | 'media' | 'proto';
5760
6000
  /** JSONP */
5761
6001
  callback?: string;
5762
6002
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5781,11 +6021,11 @@ declare namespace gapi.client {
5781
6021
  insert(
5782
6022
  request: {
5783
6023
  /** V1 error format. */
5784
- '$.xgafv'?: string;
6024
+ '$.xgafv'?: '1' | '2';
5785
6025
  /** OAuth access token. */
5786
6026
  access_token?: string;
5787
6027
  /** Data format for response. */
5788
- alt?: string;
6028
+ alt?: 'json' | 'media' | 'proto';
5789
6029
  /** JSONP */
5790
6030
  callback?: string;
5791
6031
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5810,11 +6050,11 @@ declare namespace gapi.client {
5810
6050
  /** Retrieves a list of all organizational units for an account. */
5811
6051
  list(request?: {
5812
6052
  /** V1 error format. */
5813
- '$.xgafv'?: string;
6053
+ '$.xgafv'?: '1' | '2';
5814
6054
  /** OAuth access token. */
5815
6055
  access_token?: string;
5816
6056
  /** Data format for response. */
5817
- alt?: string;
6057
+ alt?: 'json' | 'media' | 'proto';
5818
6058
  /** JSONP */
5819
6059
  callback?: string;
5820
6060
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5832,7 +6072,7 @@ declare namespace gapi.client {
5832
6072
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5833
6073
  quotaUser?: string;
5834
6074
  /** Whether to return all sub-organizations or just immediate children. */
5835
- type?: string;
6075
+ type?: 'all' | 'children' | 'allIncludingParent';
5836
6076
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5837
6077
  upload_protocol?: string;
5838
6078
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -5841,11 +6081,11 @@ declare namespace gapi.client {
5841
6081
  /** Updates an organizational unit. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch) */
5842
6082
  patch(request: {
5843
6083
  /** V1 error format. */
5844
- '$.xgafv'?: string;
6084
+ '$.xgafv'?: '1' | '2';
5845
6085
  /** OAuth access token. */
5846
6086
  access_token?: string;
5847
6087
  /** Data format for response. */
5848
- alt?: string;
6088
+ alt?: 'json' | 'media' | 'proto';
5849
6089
  /** JSONP */
5850
6090
  callback?: string;
5851
6091
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5872,11 +6112,11 @@ declare namespace gapi.client {
5872
6112
  patch(
5873
6113
  request: {
5874
6114
  /** V1 error format. */
5875
- '$.xgafv'?: string;
6115
+ '$.xgafv'?: '1' | '2';
5876
6116
  /** OAuth access token. */
5877
6117
  access_token?: string;
5878
6118
  /** Data format for response. */
5879
- alt?: string;
6119
+ alt?: 'json' | 'media' | 'proto';
5880
6120
  /** JSONP */
5881
6121
  callback?: string;
5882
6122
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5903,11 +6143,11 @@ declare namespace gapi.client {
5903
6143
  /** Updates an organizational unit. */
5904
6144
  update(request: {
5905
6145
  /** V1 error format. */
5906
- '$.xgafv'?: string;
6146
+ '$.xgafv'?: '1' | '2';
5907
6147
  /** OAuth access token. */
5908
6148
  access_token?: string;
5909
6149
  /** Data format for response. */
5910
- alt?: string;
6150
+ alt?: 'json' | 'media' | 'proto';
5911
6151
  /** JSONP */
5912
6152
  callback?: string;
5913
6153
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5934,11 +6174,11 @@ declare namespace gapi.client {
5934
6174
  update(
5935
6175
  request: {
5936
6176
  /** V1 error format. */
5937
- '$.xgafv'?: string;
6177
+ '$.xgafv'?: '1' | '2';
5938
6178
  /** OAuth access token. */
5939
6179
  access_token?: string;
5940
6180
  /** Data format for response. */
5941
- alt?: string;
6181
+ alt?: 'json' | 'media' | 'proto';
5942
6182
  /** JSONP */
5943
6183
  callback?: string;
5944
6184
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). */
@@ -5967,11 +6207,11 @@ declare namespace gapi.client {
5967
6207
  /** Retrieves a paginated list of all privileges for a customer. */
5968
6208
  list(request?: {
5969
6209
  /** V1 error format. */
5970
- '$.xgafv'?: string;
6210
+ '$.xgafv'?: '1' | '2';
5971
6211
  /** OAuth access token. */
5972
6212
  access_token?: string;
5973
6213
  /** Data format for response. */
5974
- alt?: string;
6214
+ alt?: 'json' | 'media' | 'proto';
5975
6215
  /** JSONP */
5976
6216
  callback?: string;
5977
6217
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -5996,11 +6236,11 @@ declare namespace gapi.client {
5996
6236
  /** Deletes a building. */
5997
6237
  delete(request?: {
5998
6238
  /** V1 error format. */
5999
- '$.xgafv'?: string;
6239
+ '$.xgafv'?: '1' | '2';
6000
6240
  /** OAuth access token. */
6001
6241
  access_token?: string;
6002
6242
  /** Data format for response. */
6003
- alt?: string;
6243
+ alt?: 'json' | 'media' | 'proto';
6004
6244
  /** The id of the building to delete. */
6005
6245
  buildingId: string;
6006
6246
  /** JSONP */
@@ -6025,11 +6265,11 @@ declare namespace gapi.client {
6025
6265
  /** Retrieves a building. */
6026
6266
  get(request?: {
6027
6267
  /** V1 error format. */
6028
- '$.xgafv'?: string;
6268
+ '$.xgafv'?: '1' | '2';
6029
6269
  /** OAuth access token. */
6030
6270
  access_token?: string;
6031
6271
  /** Data format for response. */
6032
- alt?: string;
6272
+ alt?: 'json' | 'media' | 'proto';
6033
6273
  /** The unique ID of the building to retrieve. */
6034
6274
  buildingId: string;
6035
6275
  /** JSONP */
@@ -6054,15 +6294,18 @@ declare namespace gapi.client {
6054
6294
  /** Inserts a building. */
6055
6295
  insert(request: {
6056
6296
  /** V1 error format. */
6057
- '$.xgafv'?: string;
6297
+ '$.xgafv'?: '1' | '2';
6058
6298
  /** OAuth access token. */
6059
6299
  access_token?: string;
6060
6300
  /** Data format for response. */
6061
- alt?: string;
6301
+ alt?: 'json' | 'media' | 'proto';
6062
6302
  /** JSONP */
6063
6303
  callback?: string;
6064
6304
  /** Source from which Building.coordinates are derived. */
6065
- coordinatesSource?: string;
6305
+ coordinatesSource?:
6306
+ | 'CLIENT_SPECIFIED'
6307
+ | 'RESOLVED_FROM_ADDRESS'
6308
+ | 'SOURCE_UNSPECIFIED';
6066
6309
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6067
6310
  customer: string;
6068
6311
  /** Selector specifying which fields to include in a partial response. */
@@ -6085,15 +6328,18 @@ declare namespace gapi.client {
6085
6328
  insert(
6086
6329
  request: {
6087
6330
  /** V1 error format. */
6088
- '$.xgafv'?: string;
6331
+ '$.xgafv'?: '1' | '2';
6089
6332
  /** OAuth access token. */
6090
6333
  access_token?: string;
6091
6334
  /** Data format for response. */
6092
- alt?: string;
6335
+ alt?: 'json' | 'media' | 'proto';
6093
6336
  /** JSONP */
6094
6337
  callback?: string;
6095
6338
  /** Source from which Building.coordinates are derived. */
6096
- coordinatesSource?: string;
6339
+ coordinatesSource?:
6340
+ | 'CLIENT_SPECIFIED'
6341
+ | 'RESOLVED_FROM_ADDRESS'
6342
+ | 'SOURCE_UNSPECIFIED';
6097
6343
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6098
6344
  customer: string;
6099
6345
  /** Selector specifying which fields to include in a partial response. */
@@ -6116,11 +6362,11 @@ declare namespace gapi.client {
6116
6362
  /** Retrieves a list of buildings for an account. */
6117
6363
  list(request?: {
6118
6364
  /** V1 error format. */
6119
- '$.xgafv'?: string;
6365
+ '$.xgafv'?: '1' | '2';
6120
6366
  /** OAuth access token. */
6121
6367
  access_token?: string;
6122
6368
  /** Data format for response. */
6123
- alt?: string;
6369
+ alt?: 'json' | 'media' | 'proto';
6124
6370
  /** JSONP */
6125
6371
  callback?: string;
6126
6372
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6147,17 +6393,20 @@ declare namespace gapi.client {
6147
6393
  /** Patches a building. */
6148
6394
  patch(request: {
6149
6395
  /** V1 error format. */
6150
- '$.xgafv'?: string;
6396
+ '$.xgafv'?: '1' | '2';
6151
6397
  /** OAuth access token. */
6152
6398
  access_token?: string;
6153
6399
  /** Data format for response. */
6154
- alt?: string;
6400
+ alt?: 'json' | 'media' | 'proto';
6155
6401
  /** The id of the building to update. */
6156
6402
  buildingId: string;
6157
6403
  /** JSONP */
6158
6404
  callback?: string;
6159
6405
  /** Source from which Building.coordinates are derived. */
6160
- coordinatesSource?: string;
6406
+ coordinatesSource?:
6407
+ | 'CLIENT_SPECIFIED'
6408
+ | 'RESOLVED_FROM_ADDRESS'
6409
+ | 'SOURCE_UNSPECIFIED';
6161
6410
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6162
6411
  customer: string;
6163
6412
  /** Selector specifying which fields to include in a partial response. */
@@ -6180,17 +6429,20 @@ declare namespace gapi.client {
6180
6429
  patch(
6181
6430
  request: {
6182
6431
  /** V1 error format. */
6183
- '$.xgafv'?: string;
6432
+ '$.xgafv'?: '1' | '2';
6184
6433
  /** OAuth access token. */
6185
6434
  access_token?: string;
6186
6435
  /** Data format for response. */
6187
- alt?: string;
6436
+ alt?: 'json' | 'media' | 'proto';
6188
6437
  /** The id of the building to update. */
6189
6438
  buildingId: string;
6190
6439
  /** JSONP */
6191
6440
  callback?: string;
6192
6441
  /** Source from which Building.coordinates are derived. */
6193
- coordinatesSource?: string;
6442
+ coordinatesSource?:
6443
+ | 'CLIENT_SPECIFIED'
6444
+ | 'RESOLVED_FROM_ADDRESS'
6445
+ | 'SOURCE_UNSPECIFIED';
6194
6446
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6195
6447
  customer: string;
6196
6448
  /** Selector specifying which fields to include in a partial response. */
@@ -6213,17 +6465,20 @@ declare namespace gapi.client {
6213
6465
  /** Updates a building. */
6214
6466
  update(request: {
6215
6467
  /** V1 error format. */
6216
- '$.xgafv'?: string;
6468
+ '$.xgafv'?: '1' | '2';
6217
6469
  /** OAuth access token. */
6218
6470
  access_token?: string;
6219
6471
  /** Data format for response. */
6220
- alt?: string;
6472
+ alt?: 'json' | 'media' | 'proto';
6221
6473
  /** The id of the building to update. */
6222
6474
  buildingId: string;
6223
6475
  /** JSONP */
6224
6476
  callback?: string;
6225
6477
  /** Source from which Building.coordinates are derived. */
6226
- coordinatesSource?: string;
6478
+ coordinatesSource?:
6479
+ | 'CLIENT_SPECIFIED'
6480
+ | 'RESOLVED_FROM_ADDRESS'
6481
+ | 'SOURCE_UNSPECIFIED';
6227
6482
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6228
6483
  customer: string;
6229
6484
  /** Selector specifying which fields to include in a partial response. */
@@ -6246,17 +6501,20 @@ declare namespace gapi.client {
6246
6501
  update(
6247
6502
  request: {
6248
6503
  /** V1 error format. */
6249
- '$.xgafv'?: string;
6504
+ '$.xgafv'?: '1' | '2';
6250
6505
  /** OAuth access token. */
6251
6506
  access_token?: string;
6252
6507
  /** Data format for response. */
6253
- alt?: string;
6508
+ alt?: 'json' | 'media' | 'proto';
6254
6509
  /** The id of the building to update. */
6255
6510
  buildingId: string;
6256
6511
  /** JSONP */
6257
6512
  callback?: string;
6258
6513
  /** Source from which Building.coordinates are derived. */
6259
- coordinatesSource?: string;
6514
+ coordinatesSource?:
6515
+ | 'CLIENT_SPECIFIED'
6516
+ | 'RESOLVED_FROM_ADDRESS'
6517
+ | 'SOURCE_UNSPECIFIED';
6260
6518
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
6261
6519
  customer: string;
6262
6520
  /** Selector specifying which fields to include in a partial response. */
@@ -6281,11 +6539,11 @@ declare namespace gapi.client {
6281
6539
  /** Deletes a calendar resource. */
6282
6540
  delete(request?: {
6283
6541
  /** V1 error format. */
6284
- '$.xgafv'?: string;
6542
+ '$.xgafv'?: '1' | '2';
6285
6543
  /** OAuth access token. */
6286
6544
  access_token?: string;
6287
6545
  /** Data format for response. */
6288
- alt?: string;
6546
+ alt?: 'json' | 'media' | 'proto';
6289
6547
  /** The unique ID of the calendar resource to delete. */
6290
6548
  calendarResourceId: string;
6291
6549
  /** JSONP */
@@ -6310,11 +6568,11 @@ declare namespace gapi.client {
6310
6568
  /** Retrieves a calendar resource. */
6311
6569
  get(request?: {
6312
6570
  /** V1 error format. */
6313
- '$.xgafv'?: string;
6571
+ '$.xgafv'?: '1' | '2';
6314
6572
  /** OAuth access token. */
6315
6573
  access_token?: string;
6316
6574
  /** Data format for response. */
6317
- alt?: string;
6575
+ alt?: 'json' | 'media' | 'proto';
6318
6576
  /** The unique ID of the calendar resource to retrieve. */
6319
6577
  calendarResourceId: string;
6320
6578
  /** JSONP */
@@ -6339,11 +6597,11 @@ declare namespace gapi.client {
6339
6597
  /** Inserts a calendar resource. */
6340
6598
  insert(request: {
6341
6599
  /** V1 error format. */
6342
- '$.xgafv'?: string;
6600
+ '$.xgafv'?: '1' | '2';
6343
6601
  /** OAuth access token. */
6344
6602
  access_token?: string;
6345
6603
  /** Data format for response. */
6346
- alt?: string;
6604
+ alt?: 'json' | 'media' | 'proto';
6347
6605
  /** JSONP */
6348
6606
  callback?: string;
6349
6607
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6368,11 +6626,11 @@ declare namespace gapi.client {
6368
6626
  insert(
6369
6627
  request: {
6370
6628
  /** V1 error format. */
6371
- '$.xgafv'?: string;
6629
+ '$.xgafv'?: '1' | '2';
6372
6630
  /** OAuth access token. */
6373
6631
  access_token?: string;
6374
6632
  /** Data format for response. */
6375
- alt?: string;
6633
+ alt?: 'json' | 'media' | 'proto';
6376
6634
  /** JSONP */
6377
6635
  callback?: string;
6378
6636
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6397,11 +6655,11 @@ declare namespace gapi.client {
6397
6655
  /** Retrieves a list of calendar resources for an account. */
6398
6656
  list(request?: {
6399
6657
  /** V1 error format. */
6400
- '$.xgafv'?: string;
6658
+ '$.xgafv'?: '1' | '2';
6401
6659
  /** OAuth access token. */
6402
6660
  access_token?: string;
6403
6661
  /** Data format for response. */
6404
- alt?: string;
6662
+ alt?: 'json' | 'media' | 'proto';
6405
6663
  /** JSONP */
6406
6664
  callback?: string;
6407
6665
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6432,11 +6690,11 @@ declare namespace gapi.client {
6432
6690
  /** Patches a calendar resource. */
6433
6691
  patch(request: {
6434
6692
  /** V1 error format. */
6435
- '$.xgafv'?: string;
6693
+ '$.xgafv'?: '1' | '2';
6436
6694
  /** OAuth access token. */
6437
6695
  access_token?: string;
6438
6696
  /** Data format for response. */
6439
- alt?: string;
6697
+ alt?: 'json' | 'media' | 'proto';
6440
6698
  /** The unique ID of the calendar resource to update. */
6441
6699
  calendarResourceId: string;
6442
6700
  /** JSONP */
@@ -6463,11 +6721,11 @@ declare namespace gapi.client {
6463
6721
  patch(
6464
6722
  request: {
6465
6723
  /** V1 error format. */
6466
- '$.xgafv'?: string;
6724
+ '$.xgafv'?: '1' | '2';
6467
6725
  /** OAuth access token. */
6468
6726
  access_token?: string;
6469
6727
  /** Data format for response. */
6470
- alt?: string;
6728
+ alt?: 'json' | 'media' | 'proto';
6471
6729
  /** The unique ID of the calendar resource to update. */
6472
6730
  calendarResourceId: string;
6473
6731
  /** JSONP */
@@ -6494,11 +6752,11 @@ declare namespace gapi.client {
6494
6752
  /** 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 preserved. */
6495
6753
  update(request: {
6496
6754
  /** V1 error format. */
6497
- '$.xgafv'?: string;
6755
+ '$.xgafv'?: '1' | '2';
6498
6756
  /** OAuth access token. */
6499
6757
  access_token?: string;
6500
6758
  /** Data format for response. */
6501
- alt?: string;
6759
+ alt?: 'json' | 'media' | 'proto';
6502
6760
  /** The unique ID of the calendar resource to update. */
6503
6761
  calendarResourceId: string;
6504
6762
  /** JSONP */
@@ -6525,11 +6783,11 @@ declare namespace gapi.client {
6525
6783
  update(
6526
6784
  request: {
6527
6785
  /** V1 error format. */
6528
- '$.xgafv'?: string;
6786
+ '$.xgafv'?: '1' | '2';
6529
6787
  /** OAuth access token. */
6530
6788
  access_token?: string;
6531
6789
  /** Data format for response. */
6532
- alt?: string;
6790
+ alt?: 'json' | 'media' | 'proto';
6533
6791
  /** The unique ID of the calendar resource to update. */
6534
6792
  calendarResourceId: string;
6535
6793
  /** JSONP */
@@ -6558,11 +6816,11 @@ declare namespace gapi.client {
6558
6816
  /** Deletes a feature. */
6559
6817
  delete(request?: {
6560
6818
  /** V1 error format. */
6561
- '$.xgafv'?: string;
6819
+ '$.xgafv'?: '1' | '2';
6562
6820
  /** OAuth access token. */
6563
6821
  access_token?: string;
6564
6822
  /** Data format for response. */
6565
- alt?: string;
6823
+ alt?: 'json' | 'media' | 'proto';
6566
6824
  /** JSONP */
6567
6825
  callback?: string;
6568
6826
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6587,11 +6845,11 @@ declare namespace gapi.client {
6587
6845
  /** Retrieves a feature. */
6588
6846
  get(request?: {
6589
6847
  /** V1 error format. */
6590
- '$.xgafv'?: string;
6848
+ '$.xgafv'?: '1' | '2';
6591
6849
  /** OAuth access token. */
6592
6850
  access_token?: string;
6593
6851
  /** Data format for response. */
6594
- alt?: string;
6852
+ alt?: 'json' | 'media' | 'proto';
6595
6853
  /** JSONP */
6596
6854
  callback?: string;
6597
6855
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6616,11 +6874,11 @@ declare namespace gapi.client {
6616
6874
  /** Inserts a feature. */
6617
6875
  insert(request: {
6618
6876
  /** V1 error format. */
6619
- '$.xgafv'?: string;
6877
+ '$.xgafv'?: '1' | '2';
6620
6878
  /** OAuth access token. */
6621
6879
  access_token?: string;
6622
6880
  /** Data format for response. */
6623
- alt?: string;
6881
+ alt?: 'json' | 'media' | 'proto';
6624
6882
  /** JSONP */
6625
6883
  callback?: string;
6626
6884
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6645,11 +6903,11 @@ declare namespace gapi.client {
6645
6903
  insert(
6646
6904
  request: {
6647
6905
  /** V1 error format. */
6648
- '$.xgafv'?: string;
6906
+ '$.xgafv'?: '1' | '2';
6649
6907
  /** OAuth access token. */
6650
6908
  access_token?: string;
6651
6909
  /** Data format for response. */
6652
- alt?: string;
6910
+ alt?: 'json' | 'media' | 'proto';
6653
6911
  /** JSONP */
6654
6912
  callback?: string;
6655
6913
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6674,11 +6932,11 @@ declare namespace gapi.client {
6674
6932
  /** Retrieves a list of features for an account. */
6675
6933
  list(request?: {
6676
6934
  /** V1 error format. */
6677
- '$.xgafv'?: string;
6935
+ '$.xgafv'?: '1' | '2';
6678
6936
  /** OAuth access token. */
6679
6937
  access_token?: string;
6680
6938
  /** Data format for response. */
6681
- alt?: string;
6939
+ alt?: 'json' | 'media' | 'proto';
6682
6940
  /** JSONP */
6683
6941
  callback?: string;
6684
6942
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6705,11 +6963,11 @@ declare namespace gapi.client {
6705
6963
  /** Patches a feature. */
6706
6964
  patch(request: {
6707
6965
  /** V1 error format. */
6708
- '$.xgafv'?: string;
6966
+ '$.xgafv'?: '1' | '2';
6709
6967
  /** OAuth access token. */
6710
6968
  access_token?: string;
6711
6969
  /** Data format for response. */
6712
- alt?: string;
6970
+ alt?: 'json' | 'media' | 'proto';
6713
6971
  /** JSONP */
6714
6972
  callback?: string;
6715
6973
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6736,11 +6994,11 @@ declare namespace gapi.client {
6736
6994
  patch(
6737
6995
  request: {
6738
6996
  /** V1 error format. */
6739
- '$.xgafv'?: string;
6997
+ '$.xgafv'?: '1' | '2';
6740
6998
  /** OAuth access token. */
6741
6999
  access_token?: string;
6742
7000
  /** Data format for response. */
6743
- alt?: string;
7001
+ alt?: 'json' | 'media' | 'proto';
6744
7002
  /** JSONP */
6745
7003
  callback?: string;
6746
7004
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6767,11 +7025,11 @@ declare namespace gapi.client {
6767
7025
  /** Renames a feature. */
6768
7026
  rename(request: {
6769
7027
  /** V1 error format. */
6770
- '$.xgafv'?: string;
7028
+ '$.xgafv'?: '1' | '2';
6771
7029
  /** OAuth access token. */
6772
7030
  access_token?: string;
6773
7031
  /** Data format for response. */
6774
- alt?: string;
7032
+ alt?: 'json' | 'media' | 'proto';
6775
7033
  /** JSONP */
6776
7034
  callback?: string;
6777
7035
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6798,11 +7056,11 @@ declare namespace gapi.client {
6798
7056
  rename(
6799
7057
  request: {
6800
7058
  /** V1 error format. */
6801
- '$.xgafv'?: string;
7059
+ '$.xgafv'?: '1' | '2';
6802
7060
  /** OAuth access token. */
6803
7061
  access_token?: string;
6804
7062
  /** Data format for response. */
6805
- alt?: string;
7063
+ alt?: 'json' | 'media' | 'proto';
6806
7064
  /** JSONP */
6807
7065
  callback?: string;
6808
7066
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6829,11 +7087,11 @@ declare namespace gapi.client {
6829
7087
  /** Updates a feature. */
6830
7088
  update(request: {
6831
7089
  /** V1 error format. */
6832
- '$.xgafv'?: string;
7090
+ '$.xgafv'?: '1' | '2';
6833
7091
  /** OAuth access token. */
6834
7092
  access_token?: string;
6835
7093
  /** Data format for response. */
6836
- alt?: string;
7094
+ alt?: 'json' | 'media' | 'proto';
6837
7095
  /** JSONP */
6838
7096
  callback?: string;
6839
7097
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6860,11 +7118,11 @@ declare namespace gapi.client {
6860
7118
  update(
6861
7119
  request: {
6862
7120
  /** V1 error format. */
6863
- '$.xgafv'?: string;
7121
+ '$.xgafv'?: '1' | '2';
6864
7122
  /** OAuth access token. */
6865
7123
  access_token?: string;
6866
7124
  /** Data format for response. */
6867
- alt?: string;
7125
+ alt?: 'json' | 'media' | 'proto';
6868
7126
  /** JSONP */
6869
7127
  callback?: string;
6870
7128
  /** The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. */
@@ -6898,11 +7156,11 @@ declare namespace gapi.client {
6898
7156
  /** Deletes a role assignment. */
6899
7157
  delete(request?: {
6900
7158
  /** V1 error format. */
6901
- '$.xgafv'?: string;
7159
+ '$.xgafv'?: '1' | '2';
6902
7160
  /** OAuth access token. */
6903
7161
  access_token?: string;
6904
7162
  /** Data format for response. */
6905
- alt?: string;
7163
+ alt?: 'json' | 'media' | 'proto';
6906
7164
  /** JSONP */
6907
7165
  callback?: string;
6908
7166
  /** Immutable ID of the Google Workspace account. */
@@ -6927,11 +7185,11 @@ declare namespace gapi.client {
6927
7185
  /** Retrieves a role assignment. */
6928
7186
  get(request?: {
6929
7187
  /** V1 error format. */
6930
- '$.xgafv'?: string;
7188
+ '$.xgafv'?: '1' | '2';
6931
7189
  /** OAuth access token. */
6932
7190
  access_token?: string;
6933
7191
  /** Data format for response. */
6934
- alt?: string;
7192
+ alt?: 'json' | 'media' | 'proto';
6935
7193
  /** JSONP */
6936
7194
  callback?: string;
6937
7195
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -6956,11 +7214,11 @@ declare namespace gapi.client {
6956
7214
  /** Creates a role assignment. */
6957
7215
  insert(request: {
6958
7216
  /** V1 error format. */
6959
- '$.xgafv'?: string;
7217
+ '$.xgafv'?: '1' | '2';
6960
7218
  /** OAuth access token. */
6961
7219
  access_token?: string;
6962
7220
  /** Data format for response. */
6963
- alt?: string;
7221
+ alt?: 'json' | 'media' | 'proto';
6964
7222
  /** JSONP */
6965
7223
  callback?: string;
6966
7224
  /** Immutable ID of the Google Workspace account. */
@@ -6985,11 +7243,11 @@ declare namespace gapi.client {
6985
7243
  insert(
6986
7244
  request: {
6987
7245
  /** V1 error format. */
6988
- '$.xgafv'?: string;
7246
+ '$.xgafv'?: '1' | '2';
6989
7247
  /** OAuth access token. */
6990
7248
  access_token?: string;
6991
7249
  /** Data format for response. */
6992
- alt?: string;
7250
+ alt?: 'json' | 'media' | 'proto';
6993
7251
  /** JSONP */
6994
7252
  callback?: string;
6995
7253
  /** Immutable ID of the Google Workspace account. */
@@ -7014,11 +7272,11 @@ declare namespace gapi.client {
7014
7272
  /** Retrieves a paginated list of all roleAssignments. */
7015
7273
  list(request?: {
7016
7274
  /** V1 error format. */
7017
- '$.xgafv'?: string;
7275
+ '$.xgafv'?: '1' | '2';
7018
7276
  /** OAuth access token. */
7019
7277
  access_token?: string;
7020
7278
  /** Data format for response. */
7021
- alt?: string;
7279
+ alt?: 'json' | 'media' | 'proto';
7022
7280
  /** JSONP */
7023
7281
  callback?: string;
7024
7282
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -7053,11 +7311,11 @@ declare namespace gapi.client {
7053
7311
  /** Deletes a role. */
7054
7312
  delete(request?: {
7055
7313
  /** V1 error format. */
7056
- '$.xgafv'?: string;
7314
+ '$.xgafv'?: '1' | '2';
7057
7315
  /** OAuth access token. */
7058
7316
  access_token?: string;
7059
7317
  /** Data format for response. */
7060
- alt?: string;
7318
+ alt?: 'json' | 'media' | 'proto';
7061
7319
  /** JSONP */
7062
7320
  callback?: string;
7063
7321
  /** Immutable ID of the Google Workspace account. */
@@ -7082,11 +7340,11 @@ declare namespace gapi.client {
7082
7340
  /** Retrieves a role. */
7083
7341
  get(request?: {
7084
7342
  /** V1 error format. */
7085
- '$.xgafv'?: string;
7343
+ '$.xgafv'?: '1' | '2';
7086
7344
  /** OAuth access token. */
7087
7345
  access_token?: string;
7088
7346
  /** Data format for response. */
7089
- alt?: string;
7347
+ alt?: 'json' | 'media' | 'proto';
7090
7348
  /** JSONP */
7091
7349
  callback?: string;
7092
7350
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -7111,11 +7369,11 @@ declare namespace gapi.client {
7111
7369
  /** Creates a role. */
7112
7370
  insert(request: {
7113
7371
  /** V1 error format. */
7114
- '$.xgafv'?: string;
7372
+ '$.xgafv'?: '1' | '2';
7115
7373
  /** OAuth access token. */
7116
7374
  access_token?: string;
7117
7375
  /** Data format for response. */
7118
- alt?: string;
7376
+ alt?: 'json' | 'media' | 'proto';
7119
7377
  /** JSONP */
7120
7378
  callback?: string;
7121
7379
  /** Immutable ID of the Google Workspace account. */
@@ -7140,11 +7398,11 @@ declare namespace gapi.client {
7140
7398
  insert(
7141
7399
  request: {
7142
7400
  /** V1 error format. */
7143
- '$.xgafv'?: string;
7401
+ '$.xgafv'?: '1' | '2';
7144
7402
  /** OAuth access token. */
7145
7403
  access_token?: string;
7146
7404
  /** Data format for response. */
7147
- alt?: string;
7405
+ alt?: 'json' | 'media' | 'proto';
7148
7406
  /** JSONP */
7149
7407
  callback?: string;
7150
7408
  /** Immutable ID of the Google Workspace account. */
@@ -7169,11 +7427,11 @@ declare namespace gapi.client {
7169
7427
  /** Retrieves a paginated list of all the roles in a domain. */
7170
7428
  list(request?: {
7171
7429
  /** V1 error format. */
7172
- '$.xgafv'?: string;
7430
+ '$.xgafv'?: '1' | '2';
7173
7431
  /** OAuth access token. */
7174
7432
  access_token?: string;
7175
7433
  /** Data format for response. */
7176
- alt?: string;
7434
+ alt?: 'json' | 'media' | 'proto';
7177
7435
  /** JSONP */
7178
7436
  callback?: string;
7179
7437
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -7200,11 +7458,11 @@ declare namespace gapi.client {
7200
7458
  /** Patches a role. */
7201
7459
  patch(request: {
7202
7460
  /** V1 error format. */
7203
- '$.xgafv'?: string;
7461
+ '$.xgafv'?: '1' | '2';
7204
7462
  /** OAuth access token. */
7205
7463
  access_token?: string;
7206
7464
  /** Data format for response. */
7207
- alt?: string;
7465
+ alt?: 'json' | 'media' | 'proto';
7208
7466
  /** JSONP */
7209
7467
  callback?: string;
7210
7468
  /** Immutable ID of the Google Workspace account. */
@@ -7231,11 +7489,11 @@ declare namespace gapi.client {
7231
7489
  patch(
7232
7490
  request: {
7233
7491
  /** V1 error format. */
7234
- '$.xgafv'?: string;
7492
+ '$.xgafv'?: '1' | '2';
7235
7493
  /** OAuth access token. */
7236
7494
  access_token?: string;
7237
7495
  /** Data format for response. */
7238
- alt?: string;
7496
+ alt?: 'json' | 'media' | 'proto';
7239
7497
  /** JSONP */
7240
7498
  callback?: string;
7241
7499
  /** Immutable ID of the Google Workspace account. */
@@ -7262,11 +7520,11 @@ declare namespace gapi.client {
7262
7520
  /** Updates a role. */
7263
7521
  update(request: {
7264
7522
  /** V1 error format. */
7265
- '$.xgafv'?: string;
7523
+ '$.xgafv'?: '1' | '2';
7266
7524
  /** OAuth access token. */
7267
7525
  access_token?: string;
7268
7526
  /** Data format for response. */
7269
- alt?: string;
7527
+ alt?: 'json' | 'media' | 'proto';
7270
7528
  /** JSONP */
7271
7529
  callback?: string;
7272
7530
  /** Immutable ID of the Google Workspace account. */
@@ -7293,11 +7551,11 @@ declare namespace gapi.client {
7293
7551
  update(
7294
7552
  request: {
7295
7553
  /** V1 error format. */
7296
- '$.xgafv'?: string;
7554
+ '$.xgafv'?: '1' | '2';
7297
7555
  /** OAuth access token. */
7298
7556
  access_token?: string;
7299
7557
  /** Data format for response. */
7300
- alt?: string;
7558
+ alt?: 'json' | 'media' | 'proto';
7301
7559
  /** JSONP */
7302
7560
  callback?: string;
7303
7561
  /** Immutable ID of the Google Workspace account. */
@@ -7326,11 +7584,11 @@ declare namespace gapi.client {
7326
7584
  /** Deletes a schema. */
7327
7585
  delete(request?: {
7328
7586
  /** V1 error format. */
7329
- '$.xgafv'?: string;
7587
+ '$.xgafv'?: '1' | '2';
7330
7588
  /** OAuth access token. */
7331
7589
  access_token?: string;
7332
7590
  /** Data format for response. */
7333
- alt?: string;
7591
+ alt?: 'json' | 'media' | 'proto';
7334
7592
  /** JSONP */
7335
7593
  callback?: string;
7336
7594
  /** Immutable ID of the Google Workspace account. */
@@ -7355,11 +7613,11 @@ declare namespace gapi.client {
7355
7613
  /** Retrieves a schema. */
7356
7614
  get(request?: {
7357
7615
  /** V1 error format. */
7358
- '$.xgafv'?: string;
7616
+ '$.xgafv'?: '1' | '2';
7359
7617
  /** OAuth access token. */
7360
7618
  access_token?: string;
7361
7619
  /** Data format for response. */
7362
- alt?: string;
7620
+ alt?: 'json' | 'media' | 'proto';
7363
7621
  /** JSONP */
7364
7622
  callback?: string;
7365
7623
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -7384,11 +7642,11 @@ declare namespace gapi.client {
7384
7642
  /** Creates a schema. */
7385
7643
  insert(request: {
7386
7644
  /** V1 error format. */
7387
- '$.xgafv'?: string;
7645
+ '$.xgafv'?: '1' | '2';
7388
7646
  /** OAuth access token. */
7389
7647
  access_token?: string;
7390
7648
  /** Data format for response. */
7391
- alt?: string;
7649
+ alt?: 'json' | 'media' | 'proto';
7392
7650
  /** JSONP */
7393
7651
  callback?: string;
7394
7652
  /** Immutable ID of the Google Workspace account. */
@@ -7413,11 +7671,11 @@ declare namespace gapi.client {
7413
7671
  insert(
7414
7672
  request: {
7415
7673
  /** V1 error format. */
7416
- '$.xgafv'?: string;
7674
+ '$.xgafv'?: '1' | '2';
7417
7675
  /** OAuth access token. */
7418
7676
  access_token?: string;
7419
7677
  /** Data format for response. */
7420
- alt?: string;
7678
+ alt?: 'json' | 'media' | 'proto';
7421
7679
  /** JSONP */
7422
7680
  callback?: string;
7423
7681
  /** Immutable ID of the Google Workspace account. */
@@ -7442,11 +7700,11 @@ declare namespace gapi.client {
7442
7700
  /** Retrieves all schemas for a customer. */
7443
7701
  list(request?: {
7444
7702
  /** V1 error format. */
7445
- '$.xgafv'?: string;
7703
+ '$.xgafv'?: '1' | '2';
7446
7704
  /** OAuth access token. */
7447
7705
  access_token?: string;
7448
7706
  /** Data format for response. */
7449
- alt?: string;
7707
+ alt?: 'json' | 'media' | 'proto';
7450
7708
  /** JSONP */
7451
7709
  callback?: string;
7452
7710
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -7469,11 +7727,11 @@ declare namespace gapi.client {
7469
7727
  /** Patches a schema. */
7470
7728
  patch(request: {
7471
7729
  /** V1 error format. */
7472
- '$.xgafv'?: string;
7730
+ '$.xgafv'?: '1' | '2';
7473
7731
  /** OAuth access token. */
7474
7732
  access_token?: string;
7475
7733
  /** Data format for response. */
7476
- alt?: string;
7734
+ alt?: 'json' | 'media' | 'proto';
7477
7735
  /** JSONP */
7478
7736
  callback?: string;
7479
7737
  /** Immutable ID of the Google Workspace account. */
@@ -7500,11 +7758,11 @@ declare namespace gapi.client {
7500
7758
  patch(
7501
7759
  request: {
7502
7760
  /** V1 error format. */
7503
- '$.xgafv'?: string;
7761
+ '$.xgafv'?: '1' | '2';
7504
7762
  /** OAuth access token. */
7505
7763
  access_token?: string;
7506
7764
  /** Data format for response. */
7507
- alt?: string;
7765
+ alt?: 'json' | 'media' | 'proto';
7508
7766
  /** JSONP */
7509
7767
  callback?: string;
7510
7768
  /** Immutable ID of the Google Workspace account. */
@@ -7531,11 +7789,11 @@ declare namespace gapi.client {
7531
7789
  /** Updates a schema. */
7532
7790
  update(request: {
7533
7791
  /** V1 error format. */
7534
- '$.xgafv'?: string;
7792
+ '$.xgafv'?: '1' | '2';
7535
7793
  /** OAuth access token. */
7536
7794
  access_token?: string;
7537
7795
  /** Data format for response. */
7538
- alt?: string;
7796
+ alt?: 'json' | 'media' | 'proto';
7539
7797
  /** JSONP */
7540
7798
  callback?: string;
7541
7799
  /** Immutable ID of the Google Workspace account. */
@@ -7562,11 +7820,11 @@ declare namespace gapi.client {
7562
7820
  update(
7563
7821
  request: {
7564
7822
  /** V1 error format. */
7565
- '$.xgafv'?: string;
7823
+ '$.xgafv'?: '1' | '2';
7566
7824
  /** OAuth access token. */
7567
7825
  access_token?: string;
7568
7826
  /** Data format for response. */
7569
- alt?: string;
7827
+ alt?: 'json' | 'media' | 'proto';
7570
7828
  /** JSONP */
7571
7829
  callback?: string;
7572
7830
  /** Immutable ID of the Google Workspace account. */
@@ -7595,11 +7853,11 @@ declare namespace gapi.client {
7595
7853
  /** Deletes all access tokens issued by a user for an application. */
7596
7854
  delete(request?: {
7597
7855
  /** V1 error format. */
7598
- '$.xgafv'?: string;
7856
+ '$.xgafv'?: '1' | '2';
7599
7857
  /** OAuth access token. */
7600
7858
  access_token?: string;
7601
7859
  /** Data format for response. */
7602
- alt?: string;
7860
+ alt?: 'json' | 'media' | 'proto';
7603
7861
  /** JSONP */
7604
7862
  callback?: string;
7605
7863
  /** The Client ID of the application the token is issued to. */
@@ -7624,11 +7882,11 @@ declare namespace gapi.client {
7624
7882
  /** Gets information about an access token issued by a user. */
7625
7883
  get(request?: {
7626
7884
  /** V1 error format. */
7627
- '$.xgafv'?: string;
7885
+ '$.xgafv'?: '1' | '2';
7628
7886
  /** OAuth access token. */
7629
7887
  access_token?: string;
7630
7888
  /** Data format for response. */
7631
- alt?: string;
7889
+ alt?: 'json' | 'media' | 'proto';
7632
7890
  /** JSONP */
7633
7891
  callback?: string;
7634
7892
  /** The Client ID of the application the token is issued to. */
@@ -7653,11 +7911,11 @@ declare namespace gapi.client {
7653
7911
  /** Returns the set of tokens specified user has issued to 3rd party applications. */
7654
7912
  list(request?: {
7655
7913
  /** V1 error format. */
7656
- '$.xgafv'?: string;
7914
+ '$.xgafv'?: '1' | '2';
7657
7915
  /** OAuth access token. */
7658
7916
  access_token?: string;
7659
7917
  /** Data format for response. */
7660
- alt?: string;
7918
+ alt?: 'json' | 'media' | 'proto';
7661
7919
  /** JSONP */
7662
7920
  callback?: string;
7663
7921
  /** Selector specifying which fields to include in a partial response. */
@@ -7682,11 +7940,11 @@ declare namespace gapi.client {
7682
7940
  /** Turns off 2-Step Verification for user. */
7683
7941
  turnOff(request?: {
7684
7942
  /** V1 error format. */
7685
- '$.xgafv'?: string;
7943
+ '$.xgafv'?: '1' | '2';
7686
7944
  /** OAuth access token. */
7687
7945
  access_token?: string;
7688
7946
  /** Data format for response. */
7689
- alt?: string;
7947
+ alt?: 'json' | 'media' | 'proto';
7690
7948
  /** JSONP */
7691
7949
  callback?: string;
7692
7950
  /** Selector specifying which fields to include in a partial response. */
@@ -7711,13 +7969,13 @@ declare namespace gapi.client {
7711
7969
  /** Removes an alias. */
7712
7970
  delete(request?: {
7713
7971
  /** V1 error format. */
7714
- '$.xgafv'?: string;
7972
+ '$.xgafv'?: '1' | '2';
7715
7973
  /** OAuth access token. */
7716
7974
  access_token?: string;
7717
7975
  /** The alias to be removed. */
7718
7976
  alias: string;
7719
7977
  /** Data format for response. */
7720
- alt?: string;
7978
+ alt?: 'json' | 'media' | 'proto';
7721
7979
  /** JSONP */
7722
7980
  callback?: string;
7723
7981
  /** Selector specifying which fields to include in a partial response. */
@@ -7740,11 +7998,11 @@ declare namespace gapi.client {
7740
7998
  /** Adds an alias. */
7741
7999
  insert(request: {
7742
8000
  /** V1 error format. */
7743
- '$.xgafv'?: string;
8001
+ '$.xgafv'?: '1' | '2';
7744
8002
  /** OAuth access token. */
7745
8003
  access_token?: string;
7746
8004
  /** Data format for response. */
7747
- alt?: string;
8005
+ alt?: 'json' | 'media' | 'proto';
7748
8006
  /** JSONP */
7749
8007
  callback?: string;
7750
8008
  /** Selector specifying which fields to include in a partial response. */
@@ -7769,11 +8027,11 @@ declare namespace gapi.client {
7769
8027
  insert(
7770
8028
  request: {
7771
8029
  /** V1 error format. */
7772
- '$.xgafv'?: string;
8030
+ '$.xgafv'?: '1' | '2';
7773
8031
  /** OAuth access token. */
7774
8032
  access_token?: string;
7775
8033
  /** Data format for response. */
7776
- alt?: string;
8034
+ alt?: 'json' | 'media' | 'proto';
7777
8035
  /** JSONP */
7778
8036
  callback?: string;
7779
8037
  /** Selector specifying which fields to include in a partial response. */
@@ -7798,15 +8056,15 @@ declare namespace gapi.client {
7798
8056
  /** Lists all aliases for a user. */
7799
8057
  list(request?: {
7800
8058
  /** V1 error format. */
7801
- '$.xgafv'?: string;
8059
+ '$.xgafv'?: '1' | '2';
7802
8060
  /** OAuth access token. */
7803
8061
  access_token?: string;
7804
8062
  /** Data format for response. */
7805
- alt?: string;
8063
+ alt?: 'json' | 'media' | 'proto';
7806
8064
  /** JSONP */
7807
8065
  callback?: string;
7808
8066
  /** Events to watch for. */
7809
- event?: string;
8067
+ event?: 'add' | 'delete';
7810
8068
  /** Selector specifying which fields to include in a partial response. */
7811
8069
  fields?: string;
7812
8070
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -7827,15 +8085,15 @@ declare namespace gapi.client {
7827
8085
  /** Watches for changes in users list. */
7828
8086
  watch(request: {
7829
8087
  /** V1 error format. */
7830
- '$.xgafv'?: string;
8088
+ '$.xgafv'?: '1' | '2';
7831
8089
  /** OAuth access token. */
7832
8090
  access_token?: string;
7833
8091
  /** Data format for response. */
7834
- alt?: string;
8092
+ alt?: 'json' | 'media' | 'proto';
7835
8093
  /** JSONP */
7836
8094
  callback?: string;
7837
8095
  /** Events to watch for. */
7838
- event?: string;
8096
+ event?: 'add' | 'delete';
7839
8097
  /** Selector specifying which fields to include in a partial response. */
7840
8098
  fields?: string;
7841
8099
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -7858,15 +8116,15 @@ declare namespace gapi.client {
7858
8116
  watch(
7859
8117
  request: {
7860
8118
  /** V1 error format. */
7861
- '$.xgafv'?: string;
8119
+ '$.xgafv'?: '1' | '2';
7862
8120
  /** OAuth access token. */
7863
8121
  access_token?: string;
7864
8122
  /** Data format for response. */
7865
- alt?: string;
8123
+ alt?: 'json' | 'media' | 'proto';
7866
8124
  /** JSONP */
7867
8125
  callback?: string;
7868
8126
  /** Events to watch for. */
7869
- event?: string;
8127
+ event?: 'add' | 'delete';
7870
8128
  /** Selector specifying which fields to include in a partial response. */
7871
8129
  fields?: string;
7872
8130
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -7891,11 +8149,11 @@ declare namespace gapi.client {
7891
8149
  /** Removes the user's photo. */
7892
8150
  delete(request?: {
7893
8151
  /** V1 error format. */
7894
- '$.xgafv'?: string;
8152
+ '$.xgafv'?: '1' | '2';
7895
8153
  /** OAuth access token. */
7896
8154
  access_token?: string;
7897
8155
  /** Data format for response. */
7898
- alt?: string;
8156
+ alt?: 'json' | 'media' | 'proto';
7899
8157
  /** JSONP */
7900
8158
  callback?: string;
7901
8159
  /** Selector specifying which fields to include in a partial response. */
@@ -7918,11 +8176,11 @@ declare namespace gapi.client {
7918
8176
  /** Retrieves the user's photo. */
7919
8177
  get(request?: {
7920
8178
  /** V1 error format. */
7921
- '$.xgafv'?: string;
8179
+ '$.xgafv'?: '1' | '2';
7922
8180
  /** OAuth access token. */
7923
8181
  access_token?: string;
7924
8182
  /** Data format for response. */
7925
- alt?: string;
8183
+ alt?: 'json' | 'media' | 'proto';
7926
8184
  /** JSONP */
7927
8185
  callback?: string;
7928
8186
  /** Selector specifying which fields to include in a partial response. */
@@ -7945,11 +8203,11 @@ declare namespace gapi.client {
7945
8203
  /** Adds a photo for the user. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch). */
7946
8204
  patch(request: {
7947
8205
  /** V1 error format. */
7948
- '$.xgafv'?: string;
8206
+ '$.xgafv'?: '1' | '2';
7949
8207
  /** OAuth access token. */
7950
8208
  access_token?: string;
7951
8209
  /** Data format for response. */
7952
- alt?: string;
8210
+ alt?: 'json' | 'media' | 'proto';
7953
8211
  /** JSONP */
7954
8212
  callback?: string;
7955
8213
  /** Selector specifying which fields to include in a partial response. */
@@ -7974,11 +8232,11 @@ declare namespace gapi.client {
7974
8232
  patch(
7975
8233
  request: {
7976
8234
  /** V1 error format. */
7977
- '$.xgafv'?: string;
8235
+ '$.xgafv'?: '1' | '2';
7978
8236
  /** OAuth access token. */
7979
8237
  access_token?: string;
7980
8238
  /** Data format for response. */
7981
- alt?: string;
8239
+ alt?: 'json' | 'media' | 'proto';
7982
8240
  /** JSONP */
7983
8241
  callback?: string;
7984
8242
  /** Selector specifying which fields to include in a partial response. */
@@ -8003,11 +8261,11 @@ declare namespace gapi.client {
8003
8261
  /** Adds a photo for the user. */
8004
8262
  update(request: {
8005
8263
  /** V1 error format. */
8006
- '$.xgafv'?: string;
8264
+ '$.xgafv'?: '1' | '2';
8007
8265
  /** OAuth access token. */
8008
8266
  access_token?: string;
8009
8267
  /** Data format for response. */
8010
- alt?: string;
8268
+ alt?: 'json' | 'media' | 'proto';
8011
8269
  /** JSONP */
8012
8270
  callback?: string;
8013
8271
  /** Selector specifying which fields to include in a partial response. */
@@ -8032,11 +8290,11 @@ declare namespace gapi.client {
8032
8290
  update(
8033
8291
  request: {
8034
8292
  /** V1 error format. */
8035
- '$.xgafv'?: string;
8293
+ '$.xgafv'?: '1' | '2';
8036
8294
  /** OAuth access token. */
8037
8295
  access_token?: string;
8038
8296
  /** Data format for response. */
8039
- alt?: string;
8297
+ alt?: 'json' | 'media' | 'proto';
8040
8298
  /** JSONP */
8041
8299
  callback?: string;
8042
8300
  /** Selector specifying which fields to include in a partial response. */
@@ -8063,11 +8321,11 @@ declare namespace gapi.client {
8063
8321
  /** Create a guest user with access to a [subset of Workspace capabilities](https://support.google.com/a/answer/16558545). This feature is currently in Alpha. Please reach out to support if you are interested in trying this feature. */
8064
8322
  createGuest(request: {
8065
8323
  /** V1 error format. */
8066
- '$.xgafv'?: string;
8324
+ '$.xgafv'?: '1' | '2';
8067
8325
  /** OAuth access token. */
8068
8326
  access_token?: string;
8069
8327
  /** Data format for response. */
8070
- alt?: string;
8328
+ alt?: 'json' | 'media' | 'proto';
8071
8329
  /** JSONP */
8072
8330
  callback?: string;
8073
8331
  /** Selector specifying which fields to include in a partial response. */
@@ -8090,11 +8348,11 @@ declare namespace gapi.client {
8090
8348
  createGuest(
8091
8349
  request: {
8092
8350
  /** V1 error format. */
8093
- '$.xgafv'?: string;
8351
+ '$.xgafv'?: '1' | '2';
8094
8352
  /** OAuth access token. */
8095
8353
  access_token?: string;
8096
8354
  /** Data format for response. */
8097
- alt?: string;
8355
+ alt?: 'json' | 'media' | 'proto';
8098
8356
  /** JSONP */
8099
8357
  callback?: string;
8100
8358
  /** Selector specifying which fields to include in a partial response. */
@@ -8117,11 +8375,11 @@ declare namespace gapi.client {
8117
8375
  /** Deletes a user. */
8118
8376
  delete(request?: {
8119
8377
  /** V1 error format. */
8120
- '$.xgafv'?: string;
8378
+ '$.xgafv'?: '1' | '2';
8121
8379
  /** OAuth access token. */
8122
8380
  access_token?: string;
8123
8381
  /** Data format for response. */
8124
- alt?: string;
8382
+ alt?: 'json' | 'media' | 'proto';
8125
8383
  /** JSONP */
8126
8384
  callback?: string;
8127
8385
  /** Selector specifying which fields to include in a partial response. */
@@ -8144,11 +8402,11 @@ declare namespace gapi.client {
8144
8402
  /** Retrieves a user. */
8145
8403
  get(request?: {
8146
8404
  /** V1 error format. */
8147
- '$.xgafv'?: string;
8405
+ '$.xgafv'?: '1' | '2';
8148
8406
  /** OAuth access token. */
8149
8407
  access_token?: string;
8150
8408
  /** Data format for response. */
8151
- alt?: string;
8409
+ alt?: 'json' | 'media' | 'proto';
8152
8410
  /** JSONP */
8153
8411
  callback?: string;
8154
8412
  /** A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when `projection=custom`. */
@@ -8162,7 +8420,7 @@ declare namespace gapi.client {
8162
8420
  /** Returns response with indentations and line breaks. */
8163
8421
  prettyPrint?: boolean;
8164
8422
  /** What subset of fields to fetch for this user. */
8165
- projection?: string;
8423
+ projection?: 'basic' | 'custom' | 'full';
8166
8424
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
8167
8425
  quotaUser?: string;
8168
8426
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -8172,16 +8430,16 @@ declare namespace gapi.client {
8172
8430
  /** Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. */
8173
8431
  userKey: string;
8174
8432
  /** Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#retrieve_users_non_admin). */
8175
- viewType?: string;
8433
+ viewType?: 'admin_view' | 'domain_public';
8176
8434
  }): Request<User>;
8177
8435
  /** 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 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. If `resolveConflictAccount` is set to `true`, a `202` response code means that a conflicting unmanaged account exists and was invited to join the organization. A `409` response code means that a conflicting account exists so the user wasn't created based on the [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) option selected. */
8178
8436
  insert(request: {
8179
8437
  /** V1 error format. */
8180
- '$.xgafv'?: string;
8438
+ '$.xgafv'?: '1' | '2';
8181
8439
  /** OAuth access token. */
8182
8440
  access_token?: string;
8183
8441
  /** Data format for response. */
8184
- alt?: string;
8442
+ alt?: 'json' | 'media' | 'proto';
8185
8443
  /** JSONP */
8186
8444
  callback?: string;
8187
8445
  /** Selector specifying which fields to include in a partial response. */
@@ -8206,11 +8464,11 @@ declare namespace gapi.client {
8206
8464
  insert(
8207
8465
  request: {
8208
8466
  /** V1 error format. */
8209
- '$.xgafv'?: string;
8467
+ '$.xgafv'?: '1' | '2';
8210
8468
  /** OAuth access token. */
8211
8469
  access_token?: string;
8212
8470
  /** Data format for response. */
8213
- alt?: string;
8471
+ alt?: 'json' | 'media' | 'proto';
8214
8472
  /** JSONP */
8215
8473
  callback?: string;
8216
8474
  /** Selector specifying which fields to include in a partial response. */
@@ -8235,11 +8493,11 @@ declare namespace gapi.client {
8235
8493
  /** Retrieves a paginated list of either deleted users or all users in a domain. */
8236
8494
  list(request?: {
8237
8495
  /** V1 error format. */
8238
- '$.xgafv'?: string;
8496
+ '$.xgafv'?: '1' | '2';
8239
8497
  /** OAuth access token. */
8240
8498
  access_token?: string;
8241
8499
  /** Data format for response. */
8242
- alt?: string;
8500
+ alt?: 'json' | 'media' | 'proto';
8243
8501
  /** JSONP */
8244
8502
  callback?: string;
8245
8503
  /** The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all users for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. */
@@ -8249,7 +8507,7 @@ declare namespace gapi.client {
8249
8507
  /** The domain name. Use this field to get users from only one domain. To return all domains for a customer account, use the `customer` query parameter instead. Either the `customer` or the `domain` parameter must be provided. */
8250
8508
  domain?: string;
8251
8509
  /** Event on which subscription is intended (if subscribing) */
8252
- event?: string;
8510
+ event?: 'add' | 'delete' | 'makeAdmin' | 'undelete' | 'update';
8253
8511
  /** Selector specifying which fields to include in a partial response. */
8254
8512
  fields?: string;
8255
8513
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -8259,13 +8517,13 @@ declare namespace gapi.client {
8259
8517
  /** OAuth 2.0 token for the current user. */
8260
8518
  oauth_token?: string;
8261
8519
  /** Property to use for sorting results. */
8262
- orderBy?: string;
8520
+ orderBy?: 'email' | 'familyName' | 'givenName';
8263
8521
  /** Token to specify next page in the list. The page token is only valid for three days. */
8264
8522
  pageToken?: string;
8265
8523
  /** Returns response with indentations and line breaks. */
8266
8524
  prettyPrint?: boolean;
8267
8525
  /** What subset of fields to fetch for this user. */
8268
- projection?: string;
8526
+ projection?: 'basic' | 'custom' | 'full';
8269
8527
  /** Query string for searching user fields. For more information on constructing user queries, see [Search for Users](https://developers.google.com/workspace/admin/directory/v1/guides/search-users). */
8270
8528
  query?: string;
8271
8529
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -8273,22 +8531,22 @@ declare namespace gapi.client {
8273
8531
  /** If set to `true`, retrieves the list of deleted users. (Default: `false`) */
8274
8532
  showDeleted?: string;
8275
8533
  /** Whether to return results in ascending or descending order, ignoring case. */
8276
- sortOrder?: string;
8534
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
8277
8535
  /** Upload protocol for media (e.g. "raw", "multipart"). */
8278
8536
  upload_protocol?: string;
8279
8537
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8280
8538
  uploadType?: string;
8281
8539
  /** Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#retrieve_users_non_admin). */
8282
- viewType?: string;
8540
+ viewType?: 'admin_view' | 'domain_public';
8283
8541
  }): Request<Users>;
8284
8542
  /** Makes a user a super administrator. */
8285
8543
  makeAdmin(request: {
8286
8544
  /** V1 error format. */
8287
- '$.xgafv'?: string;
8545
+ '$.xgafv'?: '1' | '2';
8288
8546
  /** OAuth access token. */
8289
8547
  access_token?: string;
8290
8548
  /** Data format for response. */
8291
- alt?: string;
8549
+ alt?: 'json' | 'media' | 'proto';
8292
8550
  /** JSONP */
8293
8551
  callback?: string;
8294
8552
  /** Selector specifying which fields to include in a partial response. */
@@ -8313,11 +8571,11 @@ declare namespace gapi.client {
8313
8571
  makeAdmin(
8314
8572
  request: {
8315
8573
  /** V1 error format. */
8316
- '$.xgafv'?: string;
8574
+ '$.xgafv'?: '1' | '2';
8317
8575
  /** OAuth access token. */
8318
8576
  access_token?: string;
8319
8577
  /** Data format for response. */
8320
- alt?: string;
8578
+ alt?: 'json' | 'media' | 'proto';
8321
8579
  /** JSONP */
8322
8580
  callback?: string;
8323
8581
  /** Selector specifying which fields to include in a partial response. */
@@ -8342,11 +8600,11 @@ declare namespace gapi.client {
8342
8600
  /** 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 identity to a Google identity, use the [`update`](https://developers.google.com/workspace/admin/directory/v1/reference/users/update) method instead of the `patch` method. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead. */
8343
8601
  patch(request: {
8344
8602
  /** V1 error format. */
8345
- '$.xgafv'?: string;
8603
+ '$.xgafv'?: '1' | '2';
8346
8604
  /** OAuth access token. */
8347
8605
  access_token?: string;
8348
8606
  /** Data format for response. */
8349
- alt?: string;
8607
+ alt?: 'json' | 'media' | 'proto';
8350
8608
  /** JSONP */
8351
8609
  callback?: string;
8352
8610
  /** Selector specifying which fields to include in a partial response. */
@@ -8371,11 +8629,11 @@ declare namespace gapi.client {
8371
8629
  patch(
8372
8630
  request: {
8373
8631
  /** V1 error format. */
8374
- '$.xgafv'?: string;
8632
+ '$.xgafv'?: '1' | '2';
8375
8633
  /** OAuth access token. */
8376
8634
  access_token?: string;
8377
8635
  /** Data format for response. */
8378
- alt?: string;
8636
+ alt?: 'json' | 'media' | 'proto';
8379
8637
  /** JSONP */
8380
8638
  callback?: string;
8381
8639
  /** Selector specifying which fields to include in a partial response. */
@@ -8400,11 +8658,11 @@ declare namespace gapi.client {
8400
8658
  /** 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. */
8401
8659
  signOut(request?: {
8402
8660
  /** V1 error format. */
8403
- '$.xgafv'?: string;
8661
+ '$.xgafv'?: '1' | '2';
8404
8662
  /** OAuth access token. */
8405
8663
  access_token?: string;
8406
8664
  /** Data format for response. */
8407
- alt?: string;
8665
+ alt?: 'json' | 'media' | 'proto';
8408
8666
  /** JSONP */
8409
8667
  callback?: string;
8410
8668
  /** Selector specifying which fields to include in a partial response. */
@@ -8427,11 +8685,11 @@ declare namespace gapi.client {
8427
8685
  /** Undeletes a deleted user. */
8428
8686
  undelete(request: {
8429
8687
  /** V1 error format. */
8430
- '$.xgafv'?: string;
8688
+ '$.xgafv'?: '1' | '2';
8431
8689
  /** OAuth access token. */
8432
8690
  access_token?: string;
8433
8691
  /** Data format for response. */
8434
- alt?: string;
8692
+ alt?: 'json' | 'media' | 'proto';
8435
8693
  /** JSONP */
8436
8694
  callback?: string;
8437
8695
  /** Selector specifying which fields to include in a partial response. */
@@ -8456,11 +8714,11 @@ declare namespace gapi.client {
8456
8714
  undelete(
8457
8715
  request: {
8458
8716
  /** V1 error format. */
8459
- '$.xgafv'?: string;
8717
+ '$.xgafv'?: '1' | '2';
8460
8718
  /** OAuth access token. */
8461
8719
  access_token?: string;
8462
8720
  /** Data format for response. */
8463
- alt?: string;
8721
+ alt?: 'json' | 'media' | 'proto';
8464
8722
  /** JSONP */
8465
8723
  callback?: string;
8466
8724
  /** Selector specifying which fields to include in a partial response. */
@@ -8485,11 +8743,11 @@ declare namespace gapi.client {
8485
8743
  /** 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, 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 with the desired values for all items. See the [user accounts guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#update_user) for more information. */
8486
8744
  update(request: {
8487
8745
  /** V1 error format. */
8488
- '$.xgafv'?: string;
8746
+ '$.xgafv'?: '1' | '2';
8489
8747
  /** OAuth access token. */
8490
8748
  access_token?: string;
8491
8749
  /** Data format for response. */
8492
- alt?: string;
8750
+ alt?: 'json' | 'media' | 'proto';
8493
8751
  /** JSONP */
8494
8752
  callback?: string;
8495
8753
  /** Selector specifying which fields to include in a partial response. */
@@ -8514,11 +8772,11 @@ declare namespace gapi.client {
8514
8772
  update(
8515
8773
  request: {
8516
8774
  /** V1 error format. */
8517
- '$.xgafv'?: string;
8775
+ '$.xgafv'?: '1' | '2';
8518
8776
  /** OAuth access token. */
8519
8777
  access_token?: string;
8520
8778
  /** Data format for response. */
8521
- alt?: string;
8779
+ alt?: 'json' | 'media' | 'proto';
8522
8780
  /** JSONP */
8523
8781
  callback?: string;
8524
8782
  /** Selector specifying which fields to include in a partial response. */
@@ -8543,11 +8801,11 @@ declare namespace gapi.client {
8543
8801
  /** Watches for changes in users list. */
8544
8802
  watch(request: {
8545
8803
  /** V1 error format. */
8546
- '$.xgafv'?: string;
8804
+ '$.xgafv'?: '1' | '2';
8547
8805
  /** OAuth access token. */
8548
8806
  access_token?: string;
8549
8807
  /** Data format for response. */
8550
- alt?: string;
8808
+ alt?: 'json' | 'media' | 'proto';
8551
8809
  /** JSONP */
8552
8810
  callback?: string;
8553
8811
  /** Immutable ID of the Google Workspace account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain. */
@@ -8557,7 +8815,7 @@ declare namespace gapi.client {
8557
8815
  /** Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead." */
8558
8816
  domain?: string;
8559
8817
  /** Events to watch for. */
8560
- event?: string;
8818
+ event?: 'add' | 'delete' | 'makeAdmin' | 'undelete' | 'update';
8561
8819
  /** Selector specifying which fields to include in a partial response. */
8562
8820
  fields?: string;
8563
8821
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -8567,13 +8825,13 @@ declare namespace gapi.client {
8567
8825
  /** OAuth 2.0 token for the current user. */
8568
8826
  oauth_token?: string;
8569
8827
  /** Column to use for sorting results */
8570
- orderBy?: string;
8828
+ orderBy?: 'email' | 'familyName' | 'givenName';
8571
8829
  /** Token to specify next page in the list */
8572
8830
  pageToken?: string;
8573
8831
  /** Returns response with indentations and line breaks. */
8574
8832
  prettyPrint?: boolean;
8575
8833
  /** What subset of fields to fetch for this user. */
8576
- projection?: string;
8834
+ projection?: 'basic' | 'custom' | 'full';
8577
8835
  /** Query string search. Contains one or more search clauses, each with a field, operator, and value. For complete documentation, go to [Search for users](https://developers.google.com/workspace/admin/directory/v1/guides/search-users). */
8578
8836
  query?: string;
8579
8837
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -8581,24 +8839,24 @@ declare namespace gapi.client {
8581
8839
  /** If set to true, retrieves the list of deleted users. (Default: false) */
8582
8840
  showDeleted?: string;
8583
8841
  /** Whether to return results in ascending or descending order. */
8584
- sortOrder?: string;
8842
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
8585
8843
  /** Upload protocol for media (e.g. "raw", "multipart"). */
8586
8844
  upload_protocol?: string;
8587
8845
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8588
8846
  uploadType?: string;
8589
8847
  /** Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#retrieve_users_non_admin). */
8590
- viewType?: string;
8848
+ viewType?: 'admin_view' | 'domain_public';
8591
8849
  /** Request body */
8592
8850
  resource: Channel;
8593
8851
  }): Request<Channel>;
8594
8852
  watch(
8595
8853
  request: {
8596
8854
  /** V1 error format. */
8597
- '$.xgafv'?: string;
8855
+ '$.xgafv'?: '1' | '2';
8598
8856
  /** OAuth access token. */
8599
8857
  access_token?: string;
8600
8858
  /** Data format for response. */
8601
- alt?: string;
8859
+ alt?: 'json' | 'media' | 'proto';
8602
8860
  /** JSONP */
8603
8861
  callback?: string;
8604
8862
  /** Immutable ID of the Google Workspace account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain. */
@@ -8608,7 +8866,7 @@ declare namespace gapi.client {
8608
8866
  /** Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead." */
8609
8867
  domain?: string;
8610
8868
  /** Events to watch for. */
8611
- event?: string;
8869
+ event?: 'add' | 'delete' | 'makeAdmin' | 'undelete' | 'update';
8612
8870
  /** Selector specifying which fields to include in a partial response. */
8613
8871
  fields?: string;
8614
8872
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -8618,13 +8876,13 @@ declare namespace gapi.client {
8618
8876
  /** OAuth 2.0 token for the current user. */
8619
8877
  oauth_token?: string;
8620
8878
  /** Column to use for sorting results */
8621
- orderBy?: string;
8879
+ orderBy?: 'email' | 'familyName' | 'givenName';
8622
8880
  /** Token to specify next page in the list */
8623
8881
  pageToken?: string;
8624
8882
  /** Returns response with indentations and line breaks. */
8625
8883
  prettyPrint?: boolean;
8626
8884
  /** What subset of fields to fetch for this user. */
8627
- projection?: string;
8885
+ projection?: 'basic' | 'custom' | 'full';
8628
8886
  /** Query string search. Contains one or more search clauses, each with a field, operator, and value. For complete documentation, go to [Search for users](https://developers.google.com/workspace/admin/directory/v1/guides/search-users). */
8629
8887
  query?: string;
8630
8888
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -8632,13 +8890,13 @@ declare namespace gapi.client {
8632
8890
  /** If set to true, retrieves the list of deleted users. (Default: false) */
8633
8891
  showDeleted?: string;
8634
8892
  /** Whether to return results in ascending or descending order. */
8635
- sortOrder?: string;
8893
+ sortOrder?: 'ASCENDING' | 'DESCENDING';
8636
8894
  /** Upload protocol for media (e.g. "raw", "multipart"). */
8637
8895
  upload_protocol?: string;
8638
8896
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8639
8897
  uploadType?: string;
8640
8898
  /** Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#retrieve_users_non_admin). */
8641
- viewType?: string;
8899
+ viewType?: 'admin_view' | 'domain_public';
8642
8900
  },
8643
8901
  body: Channel,
8644
8902
  ): Request<Channel>;
@@ -8649,11 +8907,11 @@ declare namespace gapi.client {
8649
8907
  /** Generates new backup verification codes for the user. */
8650
8908
  generate(request?: {
8651
8909
  /** V1 error format. */
8652
- '$.xgafv'?: string;
8910
+ '$.xgafv'?: '1' | '2';
8653
8911
  /** OAuth access token. */
8654
8912
  access_token?: string;
8655
8913
  /** Data format for response. */
8656
- alt?: string;
8914
+ alt?: 'json' | 'media' | 'proto';
8657
8915
  /** JSONP */
8658
8916
  callback?: string;
8659
8917
  /** Selector specifying which fields to include in a partial response. */
@@ -8676,11 +8934,11 @@ declare namespace gapi.client {
8676
8934
  /** Invalidates the current backup verification codes for the user. */
8677
8935
  invalidate(request?: {
8678
8936
  /** V1 error format. */
8679
- '$.xgafv'?: string;
8937
+ '$.xgafv'?: '1' | '2';
8680
8938
  /** OAuth access token. */
8681
8939
  access_token?: string;
8682
8940
  /** Data format for response. */
8683
- alt?: string;
8941
+ alt?: 'json' | 'media' | 'proto';
8684
8942
  /** JSONP */
8685
8943
  callback?: string;
8686
8944
  /** Selector specifying which fields to include in a partial response. */
@@ -8703,11 +8961,11 @@ declare namespace gapi.client {
8703
8961
  /** Returns the current set of valid backup verification codes for the specified user. */
8704
8962
  list(request?: {
8705
8963
  /** V1 error format. */
8706
- '$.xgafv'?: string;
8964
+ '$.xgafv'?: '1' | '2';
8707
8965
  /** OAuth access token. */
8708
8966
  access_token?: string;
8709
8967
  /** Data format for response. */
8710
- alt?: string;
8968
+ alt?: 'json' | 'media' | 'proto';
8711
8969
  /** JSONP */
8712
8970
  callback?: string;
8713
8971
  /** Selector specifying which fields to include in a partial response. */