mcp-google-multi 5.4.1-alpha.2 → 6.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -16
- package/dist/accounts.d.ts +44 -5
- package/dist/accounts.js +267 -25
- package/dist/auth.d.ts +11 -4
- package/dist/auth.js +85 -78
- package/dist/client-config.d.ts +90 -0
- package/dist/client-config.js +282 -0
- package/dist/client.js +10 -4
- package/dist/config-file.d.ts +38 -0
- package/dist/config-file.js +117 -0
- package/dist/discover.js +57 -3
- package/dist/doctor.d.ts +86 -0
- package/dist/doctor.js +384 -0
- package/dist/env-load.d.ts +11 -0
- package/dist/env-load.js +52 -0
- package/dist/executor.d.ts +2 -0
- package/dist/executor.js +2 -1
- package/dist/fanout.js +8 -5
- package/dist/fs-atomic.d.ts +3 -0
- package/dist/fs-atomic.js +123 -0
- package/dist/http-config.d.ts +35 -0
- package/dist/http-config.js +113 -0
- package/dist/http-transport.d.ts +59 -0
- package/dist/http-transport.js +269 -0
- package/dist/identity.d.ts +24 -0
- package/dist/identity.js +19 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +199 -18
- package/dist/master-key.d.ts +53 -0
- package/dist/master-key.js +242 -0
- package/dist/mcp-token.d.ts +81 -0
- package/dist/mcp-token.js +176 -0
- package/dist/migrate-config.d.ts +7 -0
- package/dist/migrate-config.js +103 -0
- package/dist/migrate-tokens.js +4 -3
- package/dist/net-tuning.d.ts +8 -0
- package/dist/net-tuning.js +25 -0
- package/dist/oauth-as.d.ts +52 -0
- package/dist/oauth-as.js +457 -0
- package/dist/oauth-consent.d.ts +28 -0
- package/dist/oauth-consent.js +109 -0
- package/dist/open-url.d.ts +1 -0
- package/dist/open-url.js +30 -0
- package/dist/reauth-hint.d.ts +2 -0
- package/dist/reauth-hint.js +15 -0
- package/dist/registry-transfer.d.ts +41 -0
- package/dist/registry-transfer.js +219 -0
- package/dist/registry.d.ts +27 -1
- package/dist/registry.js +117 -6
- package/dist/scope-catalog.d.ts +19 -0
- package/dist/scope-catalog.js +182 -0
- package/dist/scope-observability.d.ts +78 -0
- package/dist/scope-observability.js +192 -0
- package/dist/services.js +1 -1
- package/dist/setup-prompt.d.ts +9 -0
- package/dist/setup-prompt.js +59 -0
- package/dist/ssrf-guard.d.ts +48 -0
- package/dist/ssrf-guard.js +242 -0
- package/dist/token-store.js +23 -125
- package/dist/tools/_errors.d.ts +8 -2
- package/dist/tools/_errors.js +97 -6
- package/dist/tools/account-wizard.d.ts +33 -0
- package/dist/tools/account-wizard.js +284 -0
- package/dist/tools/accounts-tool.d.ts +8 -5
- package/dist/tools/accounts-tool.js +38 -15
- package/dist/tools/admin.js +2 -2
- package/dist/tools/calendar.js +2 -2
- package/dist/tools/chat.js +2 -2
- package/dist/tools/contacts.d.ts +40 -0
- package/dist/tools/contacts.js +135 -2
- package/dist/tools/docs.d.ts +3 -0
- package/dist/tools/docs.js +60 -9
- package/dist/tools/drive.d.ts +3 -0
- package/dist/tools/drive.js +60 -8
- package/dist/tools/forms.js +4 -2
- package/dist/tools/generated/_shared.d.ts +1 -3
- package/dist/tools/generated/_shared.js +3 -3
- package/dist/tools/generated/admin.js +175 -132
- package/dist/tools/generated/appsmarket.js +6 -2
- package/dist/tools/generated/calendar.js +45 -27
- package/dist/tools/generated/chat.js +81 -47
- package/dist/tools/generated/classroom.js +131 -104
- package/dist/tools/generated/cloudidentity.js +73 -61
- package/dist/tools/generated/cloudsearch.js +59 -49
- package/dist/tools/generated/contacts.js +22 -14
- package/dist/tools/generated/drive.js +51 -35
- package/dist/tools/generated/driveactivity.js +5 -1
- package/dist/tools/generated/drivelabels.js +30 -25
- package/dist/tools/generated/forms.js +7 -3
- package/dist/tools/generated/gmail.js +73 -58
- package/dist/tools/generated/groupsmigration.js +5 -1
- package/dist/tools/generated/groupssettings.js +7 -3
- package/dist/tools/generated/keep.js +12 -7
- package/dist/tools/generated/licensing.js +11 -7
- package/dist/tools/generated/meet.js +20 -13
- package/dist/tools/generated/postmaster.js +8 -4
- package/dist/tools/generated/reseller.js +22 -17
- package/dist/tools/generated/script.js +26 -16
- package/dist/tools/generated/sheets.js +11 -7
- package/dist/tools/generated/tasks.js +6 -2
- package/dist/tools/generated/vault.js +38 -33
- package/dist/tools/generated/workspaceevents.js +12 -7
- package/dist/tools/gmail-mime.d.ts +38 -8
- package/dist/tools/gmail-mime.js +75 -71
- package/dist/tools/gmail.d.ts +31 -0
- package/dist/tools/gmail.js +483 -99
- package/dist/tools/google-api.js +7 -4
- package/dist/tools/meet.js +2 -2
- package/dist/tools/searchconsole.js +2 -2
- package/dist/tools/sheets.js +6 -2
- package/dist/tools/slides.js +4 -2
- package/dist/tools/tasks.js +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/write-control.d.ts +24 -1
- package/dist/write-control.js +26 -1
- package/package.json +26 -7
|
@@ -3,11 +3,16 @@ import { z } from 'zod';
|
|
|
3
3
|
import { coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
5
|
export function registerAdminGeneratedTools(registry) {
|
|
6
|
+
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
|
+
const S_admin_datatransfer_v1 = [
|
|
8
|
+
["https://www.googleapis.com/auth/admin.datatransfer", "https://www.googleapis.com/auth/admin.datatransfer.readonly"],
|
|
9
|
+
["https://www.googleapis.com/auth/admin.datatransfer"],
|
|
10
|
+
];
|
|
6
11
|
registerGeneratedTool(registry, {
|
|
7
12
|
name: "admin_applications_get",
|
|
8
13
|
cud: "read",
|
|
9
14
|
description: "Retrieves information about an application for the given application ID.",
|
|
10
|
-
method: { id: "datatransfer.applications.get", httpMethod: "GET", path: "admin/datatransfer/v1/applications/{applicationId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["applicationId"] },
|
|
15
|
+
method: { id: "datatransfer.applications.get", httpMethod: "GET", path: "admin/datatransfer/v1/applications/{applicationId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["applicationId"], scopes: S_admin_datatransfer_v1[0] },
|
|
11
16
|
params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
17
|
hasBody: false,
|
|
13
18
|
shape: {
|
|
@@ -20,7 +25,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
20
25
|
name: "admin_applications_list",
|
|
21
26
|
cud: "read",
|
|
22
27
|
description: "Lists the applications available for data transfer for a customer.",
|
|
23
|
-
method: { id: "datatransfer.applications.list", httpMethod: "GET", path: "admin/datatransfer/v1/applications", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
28
|
+
method: { id: "datatransfer.applications.list", httpMethod: "GET", path: "admin/datatransfer/v1/applications", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_datatransfer_v1[0] },
|
|
24
29
|
params: [{ "field": "customerId", "api": "customerId", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
25
30
|
hasBody: false,
|
|
26
31
|
shape: {
|
|
@@ -35,7 +40,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
35
40
|
name: "admin_transfers_get",
|
|
36
41
|
cud: "read",
|
|
37
42
|
description: "Retrieves a data transfer request by its resource ID.",
|
|
38
|
-
method: { id: "datatransfer.transfers.get", httpMethod: "GET", path: "admin/datatransfer/v1/transfers/{dataTransferId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["dataTransferId"] },
|
|
43
|
+
method: { id: "datatransfer.transfers.get", httpMethod: "GET", path: "admin/datatransfer/v1/transfers/{dataTransferId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["dataTransferId"], scopes: S_admin_datatransfer_v1[0] },
|
|
39
44
|
params: [{ "field": "dataTransferId", "api": "dataTransferId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
40
45
|
hasBody: false,
|
|
41
46
|
shape: {
|
|
@@ -48,7 +53,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
48
53
|
name: "admin_transfers_insert",
|
|
49
54
|
cud: "create",
|
|
50
55
|
description: "Inserts a data transfer request. See the [Transfer parameters](https://developers.google.com/workspace/admin/data-transfer/v1/parameters) reference for specific",
|
|
51
|
-
method: { id: "datatransfer.transfers.insert", httpMethod: "POST", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
56
|
+
method: { id: "datatransfer.transfers.insert", httpMethod: "POST", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_datatransfer_v1[1] },
|
|
52
57
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
53
58
|
hasBody: true,
|
|
54
59
|
shape: {
|
|
@@ -61,7 +66,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
61
66
|
name: "admin_transfers_list",
|
|
62
67
|
cud: "read",
|
|
63
68
|
description: "Lists the transfers for a customer by source user, destination user, or status.",
|
|
64
|
-
method: { id: "datatransfer.transfers.list", httpMethod: "GET", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
69
|
+
method: { id: "datatransfer.transfers.list", httpMethod: "GET", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_datatransfer_v1[0] },
|
|
65
70
|
params: [{ "field": "customerId", "api": "customerId", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "newOwnerUserId", "api": "newOwnerUserId", "location": "query" }, { "field": "oldOwnerUserId", "api": "oldOwnerUserId", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "status", "api": "status", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
66
71
|
hasBody: false,
|
|
67
72
|
shape: {
|
|
@@ -75,11 +80,44 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
75
80
|
fields: z.string().optional().describe('Response field mask.'),
|
|
76
81
|
},
|
|
77
82
|
});
|
|
83
|
+
// Interned method scope sets (shared across tools; see scope-observability).
|
|
84
|
+
const S_admin_directory_v1 = [
|
|
85
|
+
["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias", "https://www.googleapis.com/auth/admin.directory.user.alias.readonly", "https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www.googleapis.com/auth/cloud-platform"],
|
|
86
|
+
["https://www.googleapis.com/auth/admin.directory.device.chromeos"],
|
|
87
|
+
["https://www.googleapis.com/auth/admin.directory.device.chromeos", "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"],
|
|
88
|
+
["https://www.googleapis.com/auth/admin.chrome.printers"],
|
|
89
|
+
["https://www.googleapis.com/auth/admin.chrome.printers", "https://www.googleapis.com/auth/admin.chrome.printers.readonly"],
|
|
90
|
+
["https://www.googleapis.com/auth/admin.directory.user.security"],
|
|
91
|
+
["https://www.googleapis.com/auth/admin.directory.customer", "https://www.googleapis.com/auth/admin.directory.customer.readonly"],
|
|
92
|
+
["https://www.googleapis.com/auth/admin.directory.customer"],
|
|
93
|
+
["https://www.googleapis.com/auth/admin.directory.domain"],
|
|
94
|
+
["https://www.googleapis.com/auth/admin.directory.domain", "https://www.googleapis.com/auth/admin.directory.domain.readonly"],
|
|
95
|
+
["https://www.googleapis.com/auth/admin.directory.group"],
|
|
96
|
+
["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.readonly"],
|
|
97
|
+
["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member"],
|
|
98
|
+
["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member", "https://www.googleapis.com/auth/admin.directory.group.member.readonly", "https://www.googleapis.com/auth/admin.directory.group.readonly"],
|
|
99
|
+
["https://www.googleapis.com/auth/admin.directory.device.mobile", "https://www.googleapis.com/auth/admin.directory.device.mobile.action"],
|
|
100
|
+
["https://www.googleapis.com/auth/admin.directory.device.mobile"],
|
|
101
|
+
["https://www.googleapis.com/auth/admin.directory.device.mobile", "https://www.googleapis.com/auth/admin.directory.device.mobile.action", "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"],
|
|
102
|
+
["https://www.googleapis.com/auth/admin.directory.orgunit"],
|
|
103
|
+
["https://www.googleapis.com/auth/admin.directory.orgunit", "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"],
|
|
104
|
+
["https://www.googleapis.com/auth/admin.directory.rolemanagement", "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly"],
|
|
105
|
+
["https://www.googleapis.com/auth/admin.directory.resource.calendar"],
|
|
106
|
+
["https://www.googleapis.com/auth/admin.directory.resource.calendar", "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"],
|
|
107
|
+
["https://www.googleapis.com/auth/admin.directory.rolemanagement"],
|
|
108
|
+
["https://www.googleapis.com/auth/admin.directory.userschema"],
|
|
109
|
+
["https://www.googleapis.com/auth/admin.directory.userschema", "https://www.googleapis.com/auth/admin.directory.userschema.readonly"],
|
|
110
|
+
["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias"],
|
|
111
|
+
["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias", "https://www.googleapis.com/auth/admin.directory.user.alias.readonly", "https://www.googleapis.com/auth/admin.directory.user.readonly"],
|
|
112
|
+
["https://www.googleapis.com/auth/admin.directory.user"],
|
|
113
|
+
["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.readonly"],
|
|
114
|
+
["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www.googleapis.com/auth/cloud-platform"],
|
|
115
|
+
];
|
|
78
116
|
registerGeneratedTool(registry, {
|
|
79
117
|
name: "admin_channels_stop",
|
|
80
118
|
cud: "create",
|
|
81
119
|
description: "Stops watching resources through this channel.",
|
|
82
|
-
method: { id: "admin.channels.stop", httpMethod: "POST", path: "admin/directory_v1/channels/stop", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
120
|
+
method: { id: "admin.channels.stop", httpMethod: "POST", path: "admin/directory_v1/channels/stop", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_directory_v1[0] },
|
|
83
121
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
84
122
|
hasBody: true,
|
|
85
123
|
shape: {
|
|
@@ -92,7 +130,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
92
130
|
name: "admin_customer_devices_chromeos_batch_change_status",
|
|
93
131
|
cud: "create",
|
|
94
132
|
description: "Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](h",
|
|
95
|
-
method: { id: "admin.customer.devices.chromeos.batchChangeStatus", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
133
|
+
method: { id: "admin.customer.devices.chromeos.batchChangeStatus", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[1] },
|
|
96
134
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
97
135
|
hasBody: true,
|
|
98
136
|
shape: {
|
|
@@ -106,7 +144,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
106
144
|
name: "admin_customer_devices_chromeos_commands_get",
|
|
107
145
|
cud: "read",
|
|
108
146
|
description: "Gets command data a specific command issued to the device.",
|
|
109
|
-
method: { id: "admin.customer.devices.chromeos.commands.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId", "commandId"] },
|
|
147
|
+
method: { id: "admin.customer.devices.chromeos.commands.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId", "commandId"], scopes: S_admin_directory_v1[2] },
|
|
110
148
|
params: [{ "field": "commandId", "api": "commandId", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
111
149
|
hasBody: false,
|
|
112
150
|
shape: {
|
|
@@ -121,7 +159,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
121
159
|
name: "admin_customer_devices_chromeos_count_chrome_os_devices",
|
|
122
160
|
cud: "read",
|
|
123
161
|
description: "Counts ChromeOS devices matching the request.",
|
|
124
|
-
method: { id: "admin.customer.devices.chromeos.countChromeOsDevices", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
162
|
+
method: { id: "admin.customer.devices.chromeos.countChromeOsDevices", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[2] },
|
|
125
163
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "includeChildOrgunits", "api": "includeChildOrgunits", "location": "query" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
126
164
|
hasBody: false,
|
|
127
165
|
shape: {
|
|
@@ -137,7 +175,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
137
175
|
name: "admin_customer_devices_chromeos_issue_command",
|
|
138
176
|
cud: "create",
|
|
139
177
|
description: "Issues a command for the device to execute.",
|
|
140
|
-
method: { id: "admin.customer.devices.chromeos.issueCommand", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
178
|
+
method: { id: "admin.customer.devices.chromeos.issueCommand", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"], scopes: S_admin_directory_v1[1] },
|
|
141
179
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
142
180
|
hasBody: true,
|
|
143
181
|
shape: {
|
|
@@ -152,7 +190,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
152
190
|
name: "admin_customers_chrome_printers_batch_create_printers",
|
|
153
191
|
cud: "create",
|
|
154
192
|
description: "Creates printers under given Organization Unit.",
|
|
155
|
-
method: { id: "admin.customers.chrome.printers.batchCreatePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
193
|
+
method: { id: "admin.customers.chrome.printers.batchCreatePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
156
194
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
157
195
|
hasBody: true,
|
|
158
196
|
shape: {
|
|
@@ -166,7 +204,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
166
204
|
name: "admin_customers_chrome_printers_batch_delete_printers",
|
|
167
205
|
cud: "delete",
|
|
168
206
|
description: "Deletes printers in batch.",
|
|
169
|
-
method: { id: "admin.customers.chrome.printers.batchDeletePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
207
|
+
method: { id: "admin.customers.chrome.printers.batchDeletePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
170
208
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
171
209
|
hasBody: true,
|
|
172
210
|
shape: {
|
|
@@ -180,7 +218,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
180
218
|
name: "admin_customers_chrome_printers_create",
|
|
181
219
|
cud: "create",
|
|
182
220
|
description: "Creates a printer under given Organization Unit.",
|
|
183
|
-
method: { id: "admin.customers.chrome.printers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
221
|
+
method: { id: "admin.customers.chrome.printers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
184
222
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
185
223
|
hasBody: true,
|
|
186
224
|
shape: {
|
|
@@ -194,7 +232,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
194
232
|
name: "admin_customers_chrome_printers_delete",
|
|
195
233
|
cud: "delete",
|
|
196
234
|
description: "Deletes a `Printer`.",
|
|
197
|
-
method: { id: "admin.customers.chrome.printers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
235
|
+
method: { id: "admin.customers.chrome.printers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[3] },
|
|
198
236
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
199
237
|
hasBody: false,
|
|
200
238
|
shape: {
|
|
@@ -207,7 +245,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
207
245
|
name: "admin_customers_chrome_printers_get",
|
|
208
246
|
cud: "read",
|
|
209
247
|
description: "Returns a `Printer` resource (printer's config).",
|
|
210
|
-
method: { id: "admin.customers.chrome.printers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
248
|
+
method: { id: "admin.customers.chrome.printers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[4] },
|
|
211
249
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
250
|
hasBody: false,
|
|
213
251
|
shape: {
|
|
@@ -220,7 +258,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
220
258
|
name: "admin_customers_chrome_printers_list",
|
|
221
259
|
cud: "read",
|
|
222
260
|
description: "List printers configs.",
|
|
223
|
-
method: { id: "admin.customers.chrome.printers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
261
|
+
method: { id: "admin.customers.chrome.printers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[4] },
|
|
224
262
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitId", "api": "orgUnitId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
225
263
|
hasBody: false,
|
|
226
264
|
shape: {
|
|
@@ -238,7 +276,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
238
276
|
name: "admin_customers_chrome_printers_list_printer_models",
|
|
239
277
|
cud: "read",
|
|
240
278
|
description: "Lists the supported printer models.",
|
|
241
|
-
method: { id: "admin.customers.chrome.printers.listPrinterModels", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers:listPrinterModels", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
279
|
+
method: { id: "admin.customers.chrome.printers.listPrinterModels", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers:listPrinterModels", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[4] },
|
|
242
280
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
243
281
|
hasBody: false,
|
|
244
282
|
shape: {
|
|
@@ -254,7 +292,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
254
292
|
name: "admin_customers_chrome_printers_patch",
|
|
255
293
|
cud: "update",
|
|
256
294
|
description: "Updates a `Printer` resource.",
|
|
257
|
-
method: { id: "admin.customers.chrome.printers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
295
|
+
method: { id: "admin.customers.chrome.printers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[3] },
|
|
258
296
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "clearMask", "api": "clearMask", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
259
297
|
hasBody: true,
|
|
260
298
|
shape: {
|
|
@@ -270,7 +308,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
270
308
|
name: "admin_customers_chrome_print_servers_batch_create_print_servers",
|
|
271
309
|
cud: "create",
|
|
272
310
|
description: "Creates multiple print servers.",
|
|
273
|
-
method: { id: "admin.customers.chrome.printServers.batchCreatePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
311
|
+
method: { id: "admin.customers.chrome.printServers.batchCreatePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
274
312
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
275
313
|
hasBody: true,
|
|
276
314
|
shape: {
|
|
@@ -284,7 +322,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
284
322
|
name: "admin_customers_chrome_print_servers_batch_delete_print_servers",
|
|
285
323
|
cud: "delete",
|
|
286
324
|
description: "Deletes multiple print servers.",
|
|
287
|
-
method: { id: "admin.customers.chrome.printServers.batchDeletePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
325
|
+
method: { id: "admin.customers.chrome.printServers.batchDeletePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
288
326
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
289
327
|
hasBody: true,
|
|
290
328
|
shape: {
|
|
@@ -298,7 +336,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
298
336
|
name: "admin_customers_chrome_print_servers_create",
|
|
299
337
|
cud: "create",
|
|
300
338
|
description: "Creates a print server.",
|
|
301
|
-
method: { id: "admin.customers.chrome.printServers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
339
|
+
method: { id: "admin.customers.chrome.printServers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[3] },
|
|
302
340
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
303
341
|
hasBody: true,
|
|
304
342
|
shape: {
|
|
@@ -312,7 +350,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
312
350
|
name: "admin_customers_chrome_print_servers_delete",
|
|
313
351
|
cud: "delete",
|
|
314
352
|
description: "Deletes a print server.",
|
|
315
|
-
method: { id: "admin.customers.chrome.printServers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
353
|
+
method: { id: "admin.customers.chrome.printServers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[3] },
|
|
316
354
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
317
355
|
hasBody: false,
|
|
318
356
|
shape: {
|
|
@@ -325,7 +363,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
325
363
|
name: "admin_customers_chrome_print_servers_get",
|
|
326
364
|
cud: "read",
|
|
327
365
|
description: "Returns a print server's configuration.",
|
|
328
|
-
method: { id: "admin.customers.chrome.printServers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
366
|
+
method: { id: "admin.customers.chrome.printServers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[4] },
|
|
329
367
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
330
368
|
hasBody: false,
|
|
331
369
|
shape: {
|
|
@@ -338,7 +376,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
338
376
|
name: "admin_customers_chrome_print_servers_list",
|
|
339
377
|
cud: "read",
|
|
340
378
|
description: "Lists print server configurations.",
|
|
341
|
-
method: { id: "admin.customers.chrome.printServers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
379
|
+
method: { id: "admin.customers.chrome.printServers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"], scopes: S_admin_directory_v1[4] },
|
|
342
380
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitId", "api": "orgUnitId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
343
381
|
hasBody: false,
|
|
344
382
|
shape: {
|
|
@@ -356,7 +394,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
356
394
|
name: "admin_customers_chrome_print_servers_patch",
|
|
357
395
|
cud: "update",
|
|
358
396
|
description: "Updates a print server's configuration.",
|
|
359
|
-
method: { id: "admin.customers.chrome.printServers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
397
|
+
method: { id: "admin.customers.chrome.printServers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"], scopes: S_admin_directory_v1[3] },
|
|
360
398
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
361
399
|
hasBody: true,
|
|
362
400
|
shape: {
|
|
@@ -371,7 +409,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
371
409
|
name: "admin_asps_delete",
|
|
372
410
|
cud: "delete",
|
|
373
411
|
description: "Deletes an ASP issued by a user.",
|
|
374
|
-
method: { id: "directory.asps.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"] },
|
|
412
|
+
method: { id: "directory.asps.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"], scopes: S_admin_directory_v1[5] },
|
|
375
413
|
params: [{ "field": "codeId", "api": "codeId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
376
414
|
hasBody: false,
|
|
377
415
|
shape: {
|
|
@@ -385,7 +423,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
385
423
|
name: "admin_asps_get",
|
|
386
424
|
cud: "read",
|
|
387
425
|
description: "Gets information about an ASP issued by a user.",
|
|
388
|
-
method: { id: "directory.asps.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"] },
|
|
426
|
+
method: { id: "directory.asps.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"], scopes: S_admin_directory_v1[5] },
|
|
389
427
|
params: [{ "field": "codeId", "api": "codeId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
390
428
|
hasBody: false,
|
|
391
429
|
shape: {
|
|
@@ -399,7 +437,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
399
437
|
name: "admin_asps_list",
|
|
400
438
|
cud: "read",
|
|
401
439
|
description: "Lists the ASPs issued by a user.",
|
|
402
|
-
method: { id: "directory.asps.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
440
|
+
method: { id: "directory.asps.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
403
441
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
404
442
|
hasBody: false,
|
|
405
443
|
shape: {
|
|
@@ -412,7 +450,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
412
450
|
name: "admin_chromeosdevices_action",
|
|
413
451
|
cud: "create",
|
|
414
452
|
description: "Use [BatchChangeChromeOsDeviceStatus](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) ins",
|
|
415
|
-
method: { id: "directory.chromeosdevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"] },
|
|
453
|
+
method: { id: "directory.chromeosdevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"], scopes: S_admin_directory_v1[1] },
|
|
416
454
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
417
455
|
hasBody: true,
|
|
418
456
|
shape: {
|
|
@@ -427,7 +465,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
427
465
|
name: "admin_chromeosdevices_get",
|
|
428
466
|
cud: "read",
|
|
429
467
|
description: "Retrieves a Chrome OS device's properties.",
|
|
430
|
-
method: { id: "directory.chromeosdevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
468
|
+
method: { id: "directory.chromeosdevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"], scopes: S_admin_directory_v1[2] },
|
|
431
469
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
432
470
|
hasBody: false,
|
|
433
471
|
shape: {
|
|
@@ -442,7 +480,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
442
480
|
name: "admin_chromeosdevices_list",
|
|
443
481
|
cud: "read",
|
|
444
482
|
description: "Retrieves a paginated list of Chrome OS devices within an account.",
|
|
445
|
-
method: { id: "directory.chromeosdevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
483
|
+
method: { id: "directory.chromeosdevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[2] },
|
|
446
484
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "includeChildOrgunits", "api": "includeChildOrgunits", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
447
485
|
hasBody: false,
|
|
448
486
|
shape: {
|
|
@@ -463,7 +501,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
463
501
|
name: "admin_chromeosdevices_move_devices_to_ou",
|
|
464
502
|
cud: "update",
|
|
465
503
|
description: "Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.",
|
|
466
|
-
method: { id: "directory.chromeosdevices.moveDevicesToOu", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
504
|
+
method: { id: "directory.chromeosdevices.moveDevicesToOu", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"], scopes: S_admin_directory_v1[1] },
|
|
467
505
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
468
506
|
hasBody: true,
|
|
469
507
|
shape: {
|
|
@@ -478,7 +516,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
478
516
|
name: "admin_chromeosdevices_patch",
|
|
479
517
|
cud: "update",
|
|
480
518
|
description: "Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This method supports [patc",
|
|
481
|
-
method: { id: "directory.chromeosdevices.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
519
|
+
method: { id: "directory.chromeosdevices.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"], scopes: S_admin_directory_v1[1] },
|
|
482
520
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
483
521
|
hasBody: true,
|
|
484
522
|
shape: {
|
|
@@ -494,7 +532,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
494
532
|
name: "admin_chromeosdevices_update",
|
|
495
533
|
cud: "update",
|
|
496
534
|
description: "Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`.",
|
|
497
|
-
method: { id: "directory.chromeosdevices.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
535
|
+
method: { id: "directory.chromeosdevices.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"], scopes: S_admin_directory_v1[1] },
|
|
498
536
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
499
537
|
hasBody: true,
|
|
500
538
|
shape: {
|
|
@@ -510,7 +548,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
510
548
|
name: "admin_customers_get",
|
|
511
549
|
cud: "read",
|
|
512
550
|
description: "Retrieves a customer.",
|
|
513
|
-
method: { id: "directory.customers.get", httpMethod: "GET", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
551
|
+
method: { id: "directory.customers.get", httpMethod: "GET", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"], scopes: S_admin_directory_v1[6] },
|
|
514
552
|
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
515
553
|
hasBody: false,
|
|
516
554
|
shape: {
|
|
@@ -523,7 +561,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
523
561
|
name: "admin_customers_patch",
|
|
524
562
|
cud: "update",
|
|
525
563
|
description: "Patches a customer.",
|
|
526
|
-
method: { id: "directory.customers.patch", httpMethod: "PATCH", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
564
|
+
method: { id: "directory.customers.patch", httpMethod: "PATCH", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"], scopes: S_admin_directory_v1[7] },
|
|
527
565
|
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
528
566
|
hasBody: true,
|
|
529
567
|
shape: {
|
|
@@ -537,7 +575,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
537
575
|
name: "admin_customers_update",
|
|
538
576
|
cud: "update",
|
|
539
577
|
description: "Updates a customer.",
|
|
540
|
-
method: { id: "directory.customers.update", httpMethod: "PUT", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
578
|
+
method: { id: "directory.customers.update", httpMethod: "PUT", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"], scopes: S_admin_directory_v1[7] },
|
|
541
579
|
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
542
580
|
hasBody: true,
|
|
543
581
|
shape: {
|
|
@@ -551,7 +589,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
551
589
|
name: "admin_domain_aliases_delete",
|
|
552
590
|
cud: "delete",
|
|
553
591
|
description: "Deletes a domain Alias of the customer.",
|
|
554
|
-
method: { id: "directory.domainAliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"] },
|
|
592
|
+
method: { id: "directory.domainAliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"], scopes: S_admin_directory_v1[8] },
|
|
555
593
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainAliasName", "api": "domainAliasName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
556
594
|
hasBody: false,
|
|
557
595
|
shape: {
|
|
@@ -565,7 +603,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
565
603
|
name: "admin_domain_aliases_get",
|
|
566
604
|
cud: "read",
|
|
567
605
|
description: "Retrieves a domain alias of the customer.",
|
|
568
|
-
method: { id: "directory.domainAliases.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"] },
|
|
606
|
+
method: { id: "directory.domainAliases.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"], scopes: S_admin_directory_v1[9] },
|
|
569
607
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainAliasName", "api": "domainAliasName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
570
608
|
hasBody: false,
|
|
571
609
|
shape: {
|
|
@@ -579,7 +617,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
579
617
|
name: "admin_domain_aliases_insert",
|
|
580
618
|
cud: "create",
|
|
581
619
|
description: "Inserts a domain alias of the customer.",
|
|
582
|
-
method: { id: "directory.domainAliases.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
620
|
+
method: { id: "directory.domainAliases.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[8] },
|
|
583
621
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
584
622
|
hasBody: true,
|
|
585
623
|
shape: {
|
|
@@ -593,7 +631,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
593
631
|
name: "admin_domain_aliases_list",
|
|
594
632
|
cud: "read",
|
|
595
633
|
description: "Lists the domain aliases of the customer.",
|
|
596
|
-
method: { id: "directory.domainAliases.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
634
|
+
method: { id: "directory.domainAliases.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[9] },
|
|
597
635
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "parentDomainName", "api": "parentDomainName", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
598
636
|
hasBody: false,
|
|
599
637
|
shape: {
|
|
@@ -607,7 +645,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
607
645
|
name: "admin_domains_delete",
|
|
608
646
|
cud: "delete",
|
|
609
647
|
description: "Deletes a domain of the customer.",
|
|
610
|
-
method: { id: "directory.domains.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"] },
|
|
648
|
+
method: { id: "directory.domains.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"], scopes: S_admin_directory_v1[8] },
|
|
611
649
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainName", "api": "domainName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
612
650
|
hasBody: false,
|
|
613
651
|
shape: {
|
|
@@ -621,7 +659,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
621
659
|
name: "admin_domains_get",
|
|
622
660
|
cud: "read",
|
|
623
661
|
description: "Retrieves a domain of the customer.",
|
|
624
|
-
method: { id: "directory.domains.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"] },
|
|
662
|
+
method: { id: "directory.domains.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"], scopes: S_admin_directory_v1[9] },
|
|
625
663
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainName", "api": "domainName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
626
664
|
hasBody: false,
|
|
627
665
|
shape: {
|
|
@@ -635,7 +673,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
635
673
|
name: "admin_domains_insert",
|
|
636
674
|
cud: "create",
|
|
637
675
|
description: "Inserts a domain of the customer.",
|
|
638
|
-
method: { id: "directory.domains.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
676
|
+
method: { id: "directory.domains.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[8] },
|
|
639
677
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
640
678
|
hasBody: true,
|
|
641
679
|
shape: {
|
|
@@ -649,7 +687,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
649
687
|
name: "admin_domains_list",
|
|
650
688
|
cud: "read",
|
|
651
689
|
description: "Lists the domains of the customer.",
|
|
652
|
-
method: { id: "directory.domains.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
690
|
+
method: { id: "directory.domains.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[9] },
|
|
653
691
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
654
692
|
hasBody: false,
|
|
655
693
|
shape: {
|
|
@@ -662,7 +700,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
662
700
|
name: "admin_groups_aliases_delete",
|
|
663
701
|
cud: "delete",
|
|
664
702
|
description: "Removes an alias.",
|
|
665
|
-
method: { id: "directory.groups.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "alias"] },
|
|
703
|
+
method: { id: "directory.groups.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "alias"], scopes: S_admin_directory_v1[10] },
|
|
666
704
|
params: [{ "field": "alias", "api": "alias", "location": "path" }, { "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
667
705
|
hasBody: false,
|
|
668
706
|
shape: {
|
|
@@ -676,7 +714,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
676
714
|
name: "admin_groups_aliases_insert",
|
|
677
715
|
cud: "create",
|
|
678
716
|
description: "Adds an alias for the group.",
|
|
679
|
-
method: { id: "directory.groups.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
717
|
+
method: { id: "directory.groups.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[10] },
|
|
680
718
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
681
719
|
hasBody: true,
|
|
682
720
|
shape: {
|
|
@@ -690,7 +728,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
690
728
|
name: "admin_groups_aliases_list",
|
|
691
729
|
cud: "read",
|
|
692
730
|
description: "Lists all aliases for a group.",
|
|
693
|
-
method: { id: "directory.groups.aliases.list", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
731
|
+
method: { id: "directory.groups.aliases.list", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[11] },
|
|
694
732
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
695
733
|
hasBody: false,
|
|
696
734
|
shape: {
|
|
@@ -703,7 +741,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
703
741
|
name: "admin_groups_delete",
|
|
704
742
|
cud: "delete",
|
|
705
743
|
description: "Deletes a group.",
|
|
706
|
-
method: { id: "directory.groups.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
744
|
+
method: { id: "directory.groups.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[10] },
|
|
707
745
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
708
746
|
hasBody: false,
|
|
709
747
|
shape: {
|
|
@@ -716,7 +754,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
716
754
|
name: "admin_groups_get",
|
|
717
755
|
cud: "read",
|
|
718
756
|
description: "Retrieves a group's properties.",
|
|
719
|
-
method: { id: "directory.groups.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
757
|
+
method: { id: "directory.groups.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[11] },
|
|
720
758
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
721
759
|
hasBody: false,
|
|
722
760
|
shape: {
|
|
@@ -729,7 +767,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
729
767
|
name: "admin_groups_insert",
|
|
730
768
|
cud: "create",
|
|
731
769
|
description: "Creates a group.",
|
|
732
|
-
method: { id: "directory.groups.insert", httpMethod: "POST", path: "admin/directory/v1/groups", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
770
|
+
method: { id: "directory.groups.insert", httpMethod: "POST", path: "admin/directory/v1/groups", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_directory_v1[10] },
|
|
733
771
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
734
772
|
hasBody: true,
|
|
735
773
|
shape: {
|
|
@@ -742,7 +780,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
742
780
|
name: "admin_groups_patch",
|
|
743
781
|
cud: "update",
|
|
744
782
|
description: "Updates a group's properties. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).",
|
|
745
|
-
method: { id: "directory.groups.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
783
|
+
method: { id: "directory.groups.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[10] },
|
|
746
784
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
747
785
|
hasBody: true,
|
|
748
786
|
shape: {
|
|
@@ -756,7 +794,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
756
794
|
name: "admin_groups_update",
|
|
757
795
|
cud: "update",
|
|
758
796
|
description: "Updates a group's properties.",
|
|
759
|
-
method: { id: "directory.groups.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
797
|
+
method: { id: "directory.groups.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[10] },
|
|
760
798
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
761
799
|
hasBody: true,
|
|
762
800
|
shape: {
|
|
@@ -770,7 +808,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
770
808
|
name: "admin_members_delete",
|
|
771
809
|
cud: "delete",
|
|
772
810
|
description: "Removes a member from a group.",
|
|
773
|
-
method: { id: "directory.members.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
811
|
+
method: { id: "directory.members.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"], scopes: S_admin_directory_v1[12] },
|
|
774
812
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
775
813
|
hasBody: false,
|
|
776
814
|
shape: {
|
|
@@ -784,7 +822,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
784
822
|
name: "admin_members_get",
|
|
785
823
|
cud: "read",
|
|
786
824
|
description: "Retrieves a group member's properties.",
|
|
787
|
-
method: { id: "directory.members.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
825
|
+
method: { id: "directory.members.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"], scopes: S_admin_directory_v1[13] },
|
|
788
826
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
789
827
|
hasBody: false,
|
|
790
828
|
shape: {
|
|
@@ -798,7 +836,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
798
836
|
name: "admin_members_has_member",
|
|
799
837
|
cud: "read",
|
|
800
838
|
description: "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 th",
|
|
801
|
-
method: { id: "directory.members.hasMember", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
839
|
+
method: { id: "directory.members.hasMember", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"], scopes: S_admin_directory_v1[13] },
|
|
802
840
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
803
841
|
hasBody: false,
|
|
804
842
|
shape: {
|
|
@@ -812,7 +850,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
812
850
|
name: "admin_members_insert",
|
|
813
851
|
cud: "create",
|
|
814
852
|
description: "Adds a user to the specified group.",
|
|
815
|
-
method: { id: "directory.members.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/members", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
853
|
+
method: { id: "directory.members.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/members", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"], scopes: S_admin_directory_v1[12] },
|
|
816
854
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
817
855
|
hasBody: true,
|
|
818
856
|
shape: {
|
|
@@ -826,7 +864,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
826
864
|
name: "admin_members_patch",
|
|
827
865
|
cud: "update",
|
|
828
866
|
description: "Updates the membership properties of a user in the specified group. This method supports [patch semantics](https://developers.google.com/workspace/admin/directo",
|
|
829
|
-
method: { id: "directory.members.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
867
|
+
method: { id: "directory.members.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"], scopes: S_admin_directory_v1[12] },
|
|
830
868
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
831
869
|
hasBody: true,
|
|
832
870
|
shape: {
|
|
@@ -841,7 +879,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
841
879
|
name: "admin_members_update",
|
|
842
880
|
cud: "update",
|
|
843
881
|
description: "Updates the membership of a user in the specified group.",
|
|
844
|
-
method: { id: "directory.members.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
882
|
+
method: { id: "directory.members.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"], scopes: S_admin_directory_v1[12] },
|
|
845
883
|
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
846
884
|
hasBody: true,
|
|
847
885
|
shape: {
|
|
@@ -856,7 +894,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
856
894
|
name: "admin_mobiledevices_action",
|
|
857
895
|
cud: "create",
|
|
858
896
|
description: "Takes an action that affects a mobile device. For example, remotely wiping a device.",
|
|
859
|
-
method: { id: "directory.mobiledevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"] },
|
|
897
|
+
method: { id: "directory.mobiledevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"], scopes: S_admin_directory_v1[14] },
|
|
860
898
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
861
899
|
hasBody: true,
|
|
862
900
|
shape: {
|
|
@@ -871,7 +909,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
871
909
|
name: "admin_mobiledevices_delete",
|
|
872
910
|
cud: "delete",
|
|
873
911
|
description: "Removes a mobile device.",
|
|
874
|
-
method: { id: "directory.mobiledevices.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"] },
|
|
912
|
+
method: { id: "directory.mobiledevices.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"], scopes: S_admin_directory_v1[15] },
|
|
875
913
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
876
914
|
hasBody: false,
|
|
877
915
|
shape: {
|
|
@@ -885,7 +923,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
885
923
|
name: "admin_mobiledevices_get",
|
|
886
924
|
cud: "read",
|
|
887
925
|
description: "Retrieves a mobile device's properties.",
|
|
888
|
-
method: { id: "directory.mobiledevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"] },
|
|
926
|
+
method: { id: "directory.mobiledevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "resourceId"], scopes: S_admin_directory_v1[16] },
|
|
889
927
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
890
928
|
hasBody: false,
|
|
891
929
|
shape: {
|
|
@@ -900,7 +938,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
900
938
|
name: "admin_mobiledevices_list",
|
|
901
939
|
cud: "read",
|
|
902
940
|
description: "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 [Devi",
|
|
903
|
-
method: { id: "directory.mobiledevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
941
|
+
method: { id: "directory.mobiledevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[16] },
|
|
904
942
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
905
943
|
hasBody: false,
|
|
906
944
|
shape: {
|
|
@@ -919,7 +957,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
919
957
|
name: "admin_orgunits_delete",
|
|
920
958
|
cud: "delete",
|
|
921
959
|
description: "Removes an organizational unit.",
|
|
922
|
-
method: { id: "directory.orgunits.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
960
|
+
method: { id: "directory.orgunits.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"], scopes: S_admin_directory_v1[17] },
|
|
923
961
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
924
962
|
hasBody: false,
|
|
925
963
|
shape: {
|
|
@@ -933,7 +971,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
933
971
|
name: "admin_orgunits_get",
|
|
934
972
|
cud: "read",
|
|
935
973
|
description: "Retrieves an organizational unit.",
|
|
936
|
-
method: { id: "directory.orgunits.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
974
|
+
method: { id: "directory.orgunits.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"], scopes: S_admin_directory_v1[18] },
|
|
937
975
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
938
976
|
hasBody: false,
|
|
939
977
|
shape: {
|
|
@@ -947,7 +985,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
947
985
|
name: "admin_orgunits_insert",
|
|
948
986
|
cud: "create",
|
|
949
987
|
description: "Adds an organizational unit.",
|
|
950
|
-
method: { id: "directory.orgunits.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
988
|
+
method: { id: "directory.orgunits.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[17] },
|
|
951
989
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
952
990
|
hasBody: true,
|
|
953
991
|
shape: {
|
|
@@ -961,7 +999,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
961
999
|
name: "admin_orgunits_list",
|
|
962
1000
|
cud: "read",
|
|
963
1001
|
description: "Retrieves a list of all organizational units for an account.",
|
|
964
|
-
method: { id: "directory.orgunits.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
1002
|
+
method: { id: "directory.orgunits.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[18] },
|
|
965
1003
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "type", "api": "type", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
966
1004
|
hasBody: false,
|
|
967
1005
|
shape: {
|
|
@@ -976,7 +1014,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
976
1014
|
name: "admin_orgunits_patch",
|
|
977
1015
|
cud: "update",
|
|
978
1016
|
description: "Updates an organizational unit. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch)",
|
|
979
|
-
method: { id: "directory.orgunits.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
1017
|
+
method: { id: "directory.orgunits.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"], scopes: S_admin_directory_v1[17] },
|
|
980
1018
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
981
1019
|
hasBody: true,
|
|
982
1020
|
shape: {
|
|
@@ -991,7 +1029,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
991
1029
|
name: "admin_orgunits_update",
|
|
992
1030
|
cud: "update",
|
|
993
1031
|
description: "Updates an organizational unit.",
|
|
994
|
-
method: { id: "directory.orgunits.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
1032
|
+
method: { id: "directory.orgunits.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"], scopes: S_admin_directory_v1[17] },
|
|
995
1033
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
996
1034
|
hasBody: true,
|
|
997
1035
|
shape: {
|
|
@@ -1006,7 +1044,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1006
1044
|
name: "admin_privileges_list",
|
|
1007
1045
|
cud: "read",
|
|
1008
1046
|
description: "Retrieves a paginated list of all privileges for a customer.",
|
|
1009
|
-
method: { id: "directory.privileges.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/ALL/privileges", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1047
|
+
method: { id: "directory.privileges.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/ALL/privileges", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[19] },
|
|
1010
1048
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1011
1049
|
hasBody: false,
|
|
1012
1050
|
shape: {
|
|
@@ -1019,7 +1057,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1019
1057
|
name: "admin_resources_buildings_delete",
|
|
1020
1058
|
cud: "delete",
|
|
1021
1059
|
description: "Deletes a building.",
|
|
1022
|
-
method: { id: "directory.resources.buildings.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1060
|
+
method: { id: "directory.resources.buildings.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"], scopes: S_admin_directory_v1[20] },
|
|
1023
1061
|
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1024
1062
|
hasBody: false,
|
|
1025
1063
|
shape: {
|
|
@@ -1033,7 +1071,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1033
1071
|
name: "admin_resources_buildings_get",
|
|
1034
1072
|
cud: "read",
|
|
1035
1073
|
description: "Retrieves a building.",
|
|
1036
|
-
method: { id: "directory.resources.buildings.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1074
|
+
method: { id: "directory.resources.buildings.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"], scopes: S_admin_directory_v1[21] },
|
|
1037
1075
|
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1038
1076
|
hasBody: false,
|
|
1039
1077
|
shape: {
|
|
@@ -1047,7 +1085,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1047
1085
|
name: "admin_resources_buildings_insert",
|
|
1048
1086
|
cud: "create",
|
|
1049
1087
|
description: "Inserts a building.",
|
|
1050
|
-
method: { id: "directory.resources.buildings.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1088
|
+
method: { id: "directory.resources.buildings.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[20] },
|
|
1051
1089
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1052
1090
|
hasBody: true,
|
|
1053
1091
|
shape: {
|
|
@@ -1062,7 +1100,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1062
1100
|
name: "admin_resources_buildings_list",
|
|
1063
1101
|
cud: "read",
|
|
1064
1102
|
description: "Retrieves a list of buildings for an account.",
|
|
1065
|
-
method: { id: "directory.resources.buildings.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1103
|
+
method: { id: "directory.resources.buildings.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[21] },
|
|
1066
1104
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1067
1105
|
hasBody: false,
|
|
1068
1106
|
shape: {
|
|
@@ -1077,7 +1115,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1077
1115
|
name: "admin_resources_buildings_patch",
|
|
1078
1116
|
cud: "update",
|
|
1079
1117
|
description: "Patches a building.",
|
|
1080
|
-
method: { id: "directory.resources.buildings.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1118
|
+
method: { id: "directory.resources.buildings.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"], scopes: S_admin_directory_v1[20] },
|
|
1081
1119
|
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1082
1120
|
hasBody: true,
|
|
1083
1121
|
shape: {
|
|
@@ -1093,7 +1131,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1093
1131
|
name: "admin_resources_buildings_update",
|
|
1094
1132
|
cud: "update",
|
|
1095
1133
|
description: "Updates a building.",
|
|
1096
|
-
method: { id: "directory.resources.buildings.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1134
|
+
method: { id: "directory.resources.buildings.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"], scopes: S_admin_directory_v1[20] },
|
|
1097
1135
|
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1098
1136
|
hasBody: true,
|
|
1099
1137
|
shape: {
|
|
@@ -1109,7 +1147,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1109
1147
|
name: "admin_resources_calendars_delete",
|
|
1110
1148
|
cud: "delete",
|
|
1111
1149
|
description: "Deletes a calendar resource.",
|
|
1112
|
-
method: { id: "directory.resources.calendars.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"] },
|
|
1150
|
+
method: { id: "directory.resources.calendars.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"], scopes: S_admin_directory_v1[20] },
|
|
1113
1151
|
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1114
1152
|
hasBody: false,
|
|
1115
1153
|
shape: {
|
|
@@ -1123,7 +1161,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1123
1161
|
name: "admin_resources_calendars_get",
|
|
1124
1162
|
cud: "read",
|
|
1125
1163
|
description: "Retrieves a calendar resource.",
|
|
1126
|
-
method: { id: "directory.resources.calendars.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"] },
|
|
1164
|
+
method: { id: "directory.resources.calendars.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"], scopes: S_admin_directory_v1[21] },
|
|
1127
1165
|
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1128
1166
|
hasBody: false,
|
|
1129
1167
|
shape: {
|
|
@@ -1137,7 +1175,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1137
1175
|
name: "admin_resources_calendars_insert",
|
|
1138
1176
|
cud: "create",
|
|
1139
1177
|
description: "Inserts a calendar resource.",
|
|
1140
|
-
method: { id: "directory.resources.calendars.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1178
|
+
method: { id: "directory.resources.calendars.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[20] },
|
|
1141
1179
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1142
1180
|
hasBody: true,
|
|
1143
1181
|
shape: {
|
|
@@ -1151,7 +1189,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1151
1189
|
name: "admin_resources_calendars_list",
|
|
1152
1190
|
cud: "read",
|
|
1153
1191
|
description: "Retrieves a list of calendar resources for an account.",
|
|
1154
|
-
method: { id: "directory.resources.calendars.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1192
|
+
method: { id: "directory.resources.calendars.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[21] },
|
|
1155
1193
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1156
1194
|
hasBody: false,
|
|
1157
1195
|
shape: {
|
|
@@ -1168,7 +1206,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1168
1206
|
name: "admin_resources_calendars_patch",
|
|
1169
1207
|
cud: "update",
|
|
1170
1208
|
description: "Patches a calendar resource.",
|
|
1171
|
-
method: { id: "directory.resources.calendars.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"] },
|
|
1209
|
+
method: { id: "directory.resources.calendars.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"], scopes: S_admin_directory_v1[20] },
|
|
1172
1210
|
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1173
1211
|
hasBody: true,
|
|
1174
1212
|
shape: {
|
|
@@ -1183,7 +1221,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1183
1221
|
name: "admin_resources_calendars_update",
|
|
1184
1222
|
cud: "update",
|
|
1185
1223
|
description: "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 i",
|
|
1186
|
-
method: { id: "directory.resources.calendars.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"] },
|
|
1224
|
+
method: { id: "directory.resources.calendars.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"], scopes: S_admin_directory_v1[20] },
|
|
1187
1225
|
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1188
1226
|
hasBody: true,
|
|
1189
1227
|
shape: {
|
|
@@ -1198,7 +1236,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1198
1236
|
name: "admin_resources_features_delete",
|
|
1199
1237
|
cud: "delete",
|
|
1200
1238
|
description: "Deletes a feature.",
|
|
1201
|
-
method: { id: "directory.resources.features.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1239
|
+
method: { id: "directory.resources.features.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"], scopes: S_admin_directory_v1[20] },
|
|
1202
1240
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1203
1241
|
hasBody: false,
|
|
1204
1242
|
shape: {
|
|
@@ -1212,7 +1250,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1212
1250
|
name: "admin_resources_features_get",
|
|
1213
1251
|
cud: "read",
|
|
1214
1252
|
description: "Retrieves a feature.",
|
|
1215
|
-
method: { id: "directory.resources.features.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1253
|
+
method: { id: "directory.resources.features.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"], scopes: S_admin_directory_v1[21] },
|
|
1216
1254
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1217
1255
|
hasBody: false,
|
|
1218
1256
|
shape: {
|
|
@@ -1226,7 +1264,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1226
1264
|
name: "admin_resources_features_insert",
|
|
1227
1265
|
cud: "create",
|
|
1228
1266
|
description: "Inserts a feature.",
|
|
1229
|
-
method: { id: "directory.resources.features.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1267
|
+
method: { id: "directory.resources.features.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[20] },
|
|
1230
1268
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1231
1269
|
hasBody: true,
|
|
1232
1270
|
shape: {
|
|
@@ -1240,7 +1278,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1240
1278
|
name: "admin_resources_features_list",
|
|
1241
1279
|
cud: "read",
|
|
1242
1280
|
description: "Retrieves a list of features for an account.",
|
|
1243
|
-
method: { id: "directory.resources.features.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1281
|
+
method: { id: "directory.resources.features.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[21] },
|
|
1244
1282
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1245
1283
|
hasBody: false,
|
|
1246
1284
|
shape: {
|
|
@@ -1255,7 +1293,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1255
1293
|
name: "admin_resources_features_patch",
|
|
1256
1294
|
cud: "update",
|
|
1257
1295
|
description: "Patches a feature.",
|
|
1258
|
-
method: { id: "directory.resources.features.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1296
|
+
method: { id: "directory.resources.features.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"], scopes: S_admin_directory_v1[20] },
|
|
1259
1297
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1260
1298
|
hasBody: true,
|
|
1261
1299
|
shape: {
|
|
@@ -1270,7 +1308,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1270
1308
|
name: "admin_resources_features_rename",
|
|
1271
1309
|
cud: "create",
|
|
1272
1310
|
description: "Renames a feature.",
|
|
1273
|
-
method: { id: "directory.resources.features.rename", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "oldName"] },
|
|
1311
|
+
method: { id: "directory.resources.features.rename", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "oldName"], scopes: S_admin_directory_v1[20] },
|
|
1274
1312
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "oldName", "api": "oldName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1275
1313
|
hasBody: true,
|
|
1276
1314
|
shape: {
|
|
@@ -1285,7 +1323,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1285
1323
|
name: "admin_resources_features_update",
|
|
1286
1324
|
cud: "update",
|
|
1287
1325
|
description: "Updates a feature.",
|
|
1288
|
-
method: { id: "directory.resources.features.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1326
|
+
method: { id: "directory.resources.features.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"], scopes: S_admin_directory_v1[20] },
|
|
1289
1327
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1290
1328
|
hasBody: true,
|
|
1291
1329
|
shape: {
|
|
@@ -1300,7 +1338,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1300
1338
|
name: "admin_role_assignments_delete",
|
|
1301
1339
|
cud: "delete",
|
|
1302
1340
|
description: "Deletes a role assignment.",
|
|
1303
|
-
method: { id: "directory.roleAssignments.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"] },
|
|
1341
|
+
method: { id: "directory.roleAssignments.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"], scopes: S_admin_directory_v1[22] },
|
|
1304
1342
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleAssignmentId", "api": "roleAssignmentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1305
1343
|
hasBody: false,
|
|
1306
1344
|
shape: {
|
|
@@ -1314,7 +1352,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1314
1352
|
name: "admin_role_assignments_get",
|
|
1315
1353
|
cud: "read",
|
|
1316
1354
|
description: "Retrieves a role assignment.",
|
|
1317
|
-
method: { id: "directory.roleAssignments.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"] },
|
|
1355
|
+
method: { id: "directory.roleAssignments.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"], scopes: S_admin_directory_v1[19] },
|
|
1318
1356
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleAssignmentId", "api": "roleAssignmentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1319
1357
|
hasBody: false,
|
|
1320
1358
|
shape: {
|
|
@@ -1328,7 +1366,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1328
1366
|
name: "admin_role_assignments_insert",
|
|
1329
1367
|
cud: "create",
|
|
1330
1368
|
description: "Creates a role assignment.",
|
|
1331
|
-
method: { id: "directory.roleAssignments.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1369
|
+
method: { id: "directory.roleAssignments.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[22] },
|
|
1332
1370
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1333
1371
|
hasBody: true,
|
|
1334
1372
|
shape: {
|
|
@@ -1342,7 +1380,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1342
1380
|
name: "admin_role_assignments_list",
|
|
1343
1381
|
cud: "read",
|
|
1344
1382
|
description: "Retrieves a paginated list of all roleAssignments.",
|
|
1345
|
-
method: { id: "directory.roleAssignments.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1383
|
+
method: { id: "directory.roleAssignments.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[19] },
|
|
1346
1384
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "includeIndirectRoleAssignments", "api": "includeIndirectRoleAssignments", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "roleId", "api": "roleId", "location": "query" }, { "field": "userKey", "api": "userKey", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1347
1385
|
hasBody: false,
|
|
1348
1386
|
shape: {
|
|
@@ -1360,7 +1398,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1360
1398
|
name: "admin_roles_delete",
|
|
1361
1399
|
cud: "delete",
|
|
1362
1400
|
description: "Deletes a role.",
|
|
1363
|
-
method: { id: "directory.roles.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1401
|
+
method: { id: "directory.roles.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"], scopes: S_admin_directory_v1[22] },
|
|
1364
1402
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1365
1403
|
hasBody: false,
|
|
1366
1404
|
shape: {
|
|
@@ -1374,7 +1412,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1374
1412
|
name: "admin_roles_get",
|
|
1375
1413
|
cud: "read",
|
|
1376
1414
|
description: "Retrieves a role.",
|
|
1377
|
-
method: { id: "directory.roles.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1415
|
+
method: { id: "directory.roles.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"], scopes: S_admin_directory_v1[19] },
|
|
1378
1416
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1379
1417
|
hasBody: false,
|
|
1380
1418
|
shape: {
|
|
@@ -1388,7 +1426,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1388
1426
|
name: "admin_roles_insert",
|
|
1389
1427
|
cud: "create",
|
|
1390
1428
|
description: "Creates a role.",
|
|
1391
|
-
method: { id: "directory.roles.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1429
|
+
method: { id: "directory.roles.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[22] },
|
|
1392
1430
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1393
1431
|
hasBody: true,
|
|
1394
1432
|
shape: {
|
|
@@ -1402,7 +1440,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1402
1440
|
name: "admin_roles_list",
|
|
1403
1441
|
cud: "read",
|
|
1404
1442
|
description: "Retrieves a paginated list of all the roles in a domain.",
|
|
1405
|
-
method: { id: "directory.roles.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1443
|
+
method: { id: "directory.roles.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"], scopes: S_admin_directory_v1[19] },
|
|
1406
1444
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1407
1445
|
hasBody: false,
|
|
1408
1446
|
shape: {
|
|
@@ -1417,7 +1455,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1417
1455
|
name: "admin_roles_patch",
|
|
1418
1456
|
cud: "update",
|
|
1419
1457
|
description: "Patches a role.",
|
|
1420
|
-
method: { id: "directory.roles.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1458
|
+
method: { id: "directory.roles.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"], scopes: S_admin_directory_v1[22] },
|
|
1421
1459
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1422
1460
|
hasBody: true,
|
|
1423
1461
|
shape: {
|
|
@@ -1432,7 +1470,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1432
1470
|
name: "admin_roles_update",
|
|
1433
1471
|
cud: "update",
|
|
1434
1472
|
description: "Updates a role.",
|
|
1435
|
-
method: { id: "directory.roles.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1473
|
+
method: { id: "directory.roles.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"], scopes: S_admin_directory_v1[22] },
|
|
1436
1474
|
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1437
1475
|
hasBody: true,
|
|
1438
1476
|
shape: {
|
|
@@ -1447,7 +1485,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1447
1485
|
name: "admin_schemas_delete",
|
|
1448
1486
|
cud: "delete",
|
|
1449
1487
|
description: "Deletes a schema.",
|
|
1450
|
-
method: { id: "directory.schemas.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1488
|
+
method: { id: "directory.schemas.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"], scopes: S_admin_directory_v1[23] },
|
|
1451
1489
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1452
1490
|
hasBody: false,
|
|
1453
1491
|
shape: {
|
|
@@ -1461,7 +1499,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1461
1499
|
name: "admin_schemas_get",
|
|
1462
1500
|
cud: "read",
|
|
1463
1501
|
description: "Retrieves a schema.",
|
|
1464
|
-
method: { id: "directory.schemas.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1502
|
+
method: { id: "directory.schemas.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"], scopes: S_admin_directory_v1[24] },
|
|
1465
1503
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1466
1504
|
hasBody: false,
|
|
1467
1505
|
shape: {
|
|
@@ -1475,7 +1513,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1475
1513
|
name: "admin_schemas_insert",
|
|
1476
1514
|
cud: "create",
|
|
1477
1515
|
description: "Creates a schema.",
|
|
1478
|
-
method: { id: "directory.schemas.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
1516
|
+
method: { id: "directory.schemas.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[23] },
|
|
1479
1517
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1480
1518
|
hasBody: true,
|
|
1481
1519
|
shape: {
|
|
@@ -1489,7 +1527,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1489
1527
|
name: "admin_schemas_list",
|
|
1490
1528
|
cud: "read",
|
|
1491
1529
|
description: "Retrieves all schemas for a customer.",
|
|
1492
|
-
method: { id: "directory.schemas.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
1530
|
+
method: { id: "directory.schemas.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"], scopes: S_admin_directory_v1[24] },
|
|
1493
1531
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1494
1532
|
hasBody: false,
|
|
1495
1533
|
shape: {
|
|
@@ -1502,7 +1540,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1502
1540
|
name: "admin_schemas_patch",
|
|
1503
1541
|
cud: "update",
|
|
1504
1542
|
description: "Patches a schema.",
|
|
1505
|
-
method: { id: "directory.schemas.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1543
|
+
method: { id: "directory.schemas.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"], scopes: S_admin_directory_v1[23] },
|
|
1506
1544
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1507
1545
|
hasBody: true,
|
|
1508
1546
|
shape: {
|
|
@@ -1517,7 +1555,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1517
1555
|
name: "admin_schemas_update",
|
|
1518
1556
|
cud: "update",
|
|
1519
1557
|
description: "Updates a schema.",
|
|
1520
|
-
method: { id: "directory.schemas.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1558
|
+
method: { id: "directory.schemas.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"], scopes: S_admin_directory_v1[23] },
|
|
1521
1559
|
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1522
1560
|
hasBody: true,
|
|
1523
1561
|
shape: {
|
|
@@ -1532,7 +1570,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1532
1570
|
name: "admin_tokens_delete",
|
|
1533
1571
|
cud: "delete",
|
|
1534
1572
|
description: "Deletes all access tokens issued by a user for an application.",
|
|
1535
|
-
method: { id: "directory.tokens.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"] },
|
|
1573
|
+
method: { id: "directory.tokens.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"], scopes: S_admin_directory_v1[5] },
|
|
1536
1574
|
params: [{ "field": "clientId", "api": "clientId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1537
1575
|
hasBody: false,
|
|
1538
1576
|
shape: {
|
|
@@ -1546,7 +1584,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1546
1584
|
name: "admin_tokens_get",
|
|
1547
1585
|
cud: "read",
|
|
1548
1586
|
description: "Gets information about an access token issued by a user.",
|
|
1549
|
-
method: { id: "directory.tokens.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"] },
|
|
1587
|
+
method: { id: "directory.tokens.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"], scopes: S_admin_directory_v1[5] },
|
|
1550
1588
|
params: [{ "field": "clientId", "api": "clientId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1551
1589
|
hasBody: false,
|
|
1552
1590
|
shape: {
|
|
@@ -1560,7 +1598,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1560
1598
|
name: "admin_tokens_list",
|
|
1561
1599
|
cud: "read",
|
|
1562
1600
|
description: "Returns the set of tokens specified user has issued to 3rd party applications.",
|
|
1563
|
-
method: { id: "directory.tokens.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1601
|
+
method: { id: "directory.tokens.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1564
1602
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1565
1603
|
hasBody: false,
|
|
1566
1604
|
shape: {
|
|
@@ -1573,7 +1611,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1573
1611
|
name: "admin_two_step_verification_turn_off",
|
|
1574
1612
|
cud: "create",
|
|
1575
1613
|
description: "Turns off 2-Step Verification for user.",
|
|
1576
|
-
method: { id: "directory.twoStepVerification.turnOff", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/twoStepVerification/turnOff", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1614
|
+
method: { id: "directory.twoStepVerification.turnOff", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/twoStepVerification/turnOff", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1577
1615
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1578
1616
|
hasBody: false,
|
|
1579
1617
|
shape: {
|
|
@@ -1586,7 +1624,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1586
1624
|
name: "admin_users_aliases_delete",
|
|
1587
1625
|
cud: "delete",
|
|
1588
1626
|
description: "Removes an alias.",
|
|
1589
|
-
method: { id: "directory.users.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "alias"] },
|
|
1627
|
+
method: { id: "directory.users.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "alias"], scopes: S_admin_directory_v1[25] },
|
|
1590
1628
|
params: [{ "field": "alias", "api": "alias", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1591
1629
|
hasBody: false,
|
|
1592
1630
|
shape: {
|
|
@@ -1600,7 +1638,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1600
1638
|
name: "admin_users_aliases_insert",
|
|
1601
1639
|
cud: "create",
|
|
1602
1640
|
description: "Adds an alias.",
|
|
1603
|
-
method: { id: "directory.users.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1641
|
+
method: { id: "directory.users.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[25] },
|
|
1604
1642
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1605
1643
|
hasBody: true,
|
|
1606
1644
|
shape: {
|
|
@@ -1614,7 +1652,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1614
1652
|
name: "admin_users_aliases_list",
|
|
1615
1653
|
cud: "read",
|
|
1616
1654
|
description: "Lists all aliases for a user.",
|
|
1617
|
-
method: { id: "directory.users.aliases.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1655
|
+
method: { id: "directory.users.aliases.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[26] },
|
|
1618
1656
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "event", "api": "event", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1619
1657
|
hasBody: false,
|
|
1620
1658
|
shape: {
|
|
@@ -1628,7 +1666,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1628
1666
|
name: "admin_users_aliases_watch",
|
|
1629
1667
|
cud: "create",
|
|
1630
1668
|
description: "Watches for changes in users list.",
|
|
1631
|
-
method: { id: "directory.users.aliases.watch", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1669
|
+
method: { id: "directory.users.aliases.watch", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[26] },
|
|
1632
1670
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "event", "api": "event", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1633
1671
|
hasBody: true,
|
|
1634
1672
|
shape: {
|
|
@@ -1643,7 +1681,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1643
1681
|
name: "admin_users_create_guest",
|
|
1644
1682
|
cud: "create",
|
|
1645
1683
|
description: "Create a guest user with access to a [subset of Workspace capabilities](https://support.google.com/a/answer/16558545). This feature is currently in Open Beta.",
|
|
1646
|
-
method: { id: "directory.users.createGuest", httpMethod: "POST", path: "admin/directory/v1/users:createGuest", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1684
|
+
method: { id: "directory.users.createGuest", httpMethod: "POST", path: "admin/directory/v1/users:createGuest", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_directory_v1[27] },
|
|
1647
1685
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
1648
1686
|
hasBody: true,
|
|
1649
1687
|
shape: {
|
|
@@ -1656,7 +1694,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1656
1694
|
name: "admin_users_delete",
|
|
1657
1695
|
cud: "delete",
|
|
1658
1696
|
description: "Deletes a user.",
|
|
1659
|
-
method: { id: "directory.users.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1697
|
+
method: { id: "directory.users.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1660
1698
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1661
1699
|
hasBody: false,
|
|
1662
1700
|
shape: {
|
|
@@ -1669,7 +1707,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1669
1707
|
name: "admin_users_insert",
|
|
1670
1708
|
cud: "create",
|
|
1671
1709
|
description: "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.",
|
|
1672
|
-
method: { id: "directory.users.insert", httpMethod: "POST", path: "admin/directory/v1/users", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1710
|
+
method: { id: "directory.users.insert", httpMethod: "POST", path: "admin/directory/v1/users", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_directory_v1[27] },
|
|
1673
1711
|
params: [{ "field": "resolveConflictAccount", "api": "resolveConflictAccount", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1674
1712
|
hasBody: true,
|
|
1675
1713
|
shape: {
|
|
@@ -1683,7 +1721,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1683
1721
|
name: "admin_users_make_admin",
|
|
1684
1722
|
cud: "create",
|
|
1685
1723
|
description: "Makes a user a super administrator.",
|
|
1686
|
-
method: { id: "directory.users.makeAdmin", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/makeAdmin", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1724
|
+
method: { id: "directory.users.makeAdmin", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/makeAdmin", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1687
1725
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1688
1726
|
hasBody: true,
|
|
1689
1727
|
shape: {
|
|
@@ -1697,7 +1735,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1697
1735
|
name: "admin_users_photos_delete",
|
|
1698
1736
|
cud: "delete",
|
|
1699
1737
|
description: "Removes the user's photo.",
|
|
1700
|
-
method: { id: "directory.users.photos.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1738
|
+
method: { id: "directory.users.photos.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1701
1739
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1702
1740
|
hasBody: false,
|
|
1703
1741
|
shape: {
|
|
@@ -1710,7 +1748,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1710
1748
|
name: "admin_users_photos_get",
|
|
1711
1749
|
cud: "read",
|
|
1712
1750
|
description: "Retrieves the user's photo.",
|
|
1713
|
-
method: { id: "directory.users.photos.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1751
|
+
method: { id: "directory.users.photos.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[28] },
|
|
1714
1752
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1715
1753
|
hasBody: false,
|
|
1716
1754
|
shape: {
|
|
@@ -1723,7 +1761,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1723
1761
|
name: "admin_users_photos_patch",
|
|
1724
1762
|
cud: "update",
|
|
1725
1763
|
description: "Adds a photo for the user. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).",
|
|
1726
|
-
method: { id: "directory.users.photos.patch", httpMethod: "PATCH", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1764
|
+
method: { id: "directory.users.photos.patch", httpMethod: "PATCH", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1727
1765
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1728
1766
|
hasBody: true,
|
|
1729
1767
|
shape: {
|
|
@@ -1737,7 +1775,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1737
1775
|
name: "admin_users_photos_update",
|
|
1738
1776
|
cud: "update",
|
|
1739
1777
|
description: "Adds a photo for the user.",
|
|
1740
|
-
method: { id: "directory.users.photos.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1778
|
+
method: { id: "directory.users.photos.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1741
1779
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1742
1780
|
hasBody: true,
|
|
1743
1781
|
shape: {
|
|
@@ -1751,7 +1789,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1751
1789
|
name: "admin_users_sign_out",
|
|
1752
1790
|
cud: "create",
|
|
1753
1791
|
description: "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.",
|
|
1754
|
-
method: { id: "directory.users.signOut", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/signOut", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1792
|
+
method: { id: "directory.users.signOut", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/signOut", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1755
1793
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1756
1794
|
hasBody: false,
|
|
1757
1795
|
shape: {
|
|
@@ -1764,7 +1802,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1764
1802
|
name: "admin_users_undelete",
|
|
1765
1803
|
cud: "update",
|
|
1766
1804
|
description: "Undeletes a deleted user.",
|
|
1767
|
-
method: { id: "directory.users.undelete", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/undelete", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1805
|
+
method: { id: "directory.users.undelete", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/undelete", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1768
1806
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1769
1807
|
hasBody: true,
|
|
1770
1808
|
shape: {
|
|
@@ -1778,7 +1816,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1778
1816
|
name: "admin_users_replace",
|
|
1779
1817
|
cud: "update",
|
|
1780
1818
|
description: "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 re",
|
|
1781
|
-
method: { id: "directory.users.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1819
|
+
method: { id: "directory.users.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[27] },
|
|
1782
1820
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1783
1821
|
hasBody: true,
|
|
1784
1822
|
shape: {
|
|
@@ -1792,7 +1830,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1792
1830
|
name: "admin_users_watch",
|
|
1793
1831
|
cud: "create",
|
|
1794
1832
|
description: "Watches for changes in users list.",
|
|
1795
|
-
method: { id: "directory.users.watch", httpMethod: "POST", path: "admin/directory/v1/users/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1833
|
+
method: { id: "directory.users.watch", httpMethod: "POST", path: "admin/directory/v1/users/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: [], scopes: S_admin_directory_v1[29] },
|
|
1796
1834
|
params: [{ "field": "customer", "api": "customer", "location": "query" }, { "field": "customFieldMask", "api": "customFieldMask", "location": "query" }, { "field": "domain", "api": "domain", "location": "query" }, { "field": "event", "api": "event", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "viewType", "api": "viewType", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1797
1835
|
hasBody: true,
|
|
1798
1836
|
shape: {
|
|
@@ -1817,7 +1855,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1817
1855
|
name: "admin_verification_codes_generate",
|
|
1818
1856
|
cud: "create",
|
|
1819
1857
|
description: "Generates new backup verification codes for the user.",
|
|
1820
|
-
method: { id: "directory.verificationCodes.generate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/generate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1858
|
+
method: { id: "directory.verificationCodes.generate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/generate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1821
1859
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1822
1860
|
hasBody: false,
|
|
1823
1861
|
shape: {
|
|
@@ -1830,7 +1868,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1830
1868
|
name: "admin_verification_codes_invalidate",
|
|
1831
1869
|
cud: "create",
|
|
1832
1870
|
description: "Invalidates the current backup verification codes for the user.",
|
|
1833
|
-
method: { id: "directory.verificationCodes.invalidate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/invalidate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1871
|
+
method: { id: "directory.verificationCodes.invalidate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/invalidate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1834
1872
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1835
1873
|
hasBody: false,
|
|
1836
1874
|
shape: {
|
|
@@ -1843,7 +1881,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1843
1881
|
name: "admin_verification_codes_list",
|
|
1844
1882
|
cud: "read",
|
|
1845
1883
|
description: "Returns the current set of valid backup verification codes for the specified user.",
|
|
1846
|
-
method: { id: "directory.verificationCodes.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/verificationCodes", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1884
|
+
method: { id: "directory.verificationCodes.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/verificationCodes", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"], scopes: S_admin_directory_v1[5] },
|
|
1847
1885
|
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1848
1886
|
hasBody: false,
|
|
1849
1887
|
shape: {
|
|
@@ -1852,11 +1890,16 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1852
1890
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1853
1891
|
},
|
|
1854
1892
|
});
|
|
1893
|
+
// Interned method scope sets (shared across tools; see scope-observability).
|
|
1894
|
+
const S_admin_reports_v1 = [
|
|
1895
|
+
["https://www.googleapis.com/auth/admin.reports.audit.readonly"],
|
|
1896
|
+
["https://www.googleapis.com/auth/admin.reports.usage.readonly"],
|
|
1897
|
+
];
|
|
1855
1898
|
registerGeneratedTool(registry, {
|
|
1856
1899
|
name: "admin_activities_watch",
|
|
1857
1900
|
cud: "create",
|
|
1858
1901
|
description: "Start receiving notifications for account activities. For more information, see Receiving Push Notifications.",
|
|
1859
|
-
method: { id: "reports.activities.watch", httpMethod: "POST", path: "admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "applicationName"] },
|
|
1902
|
+
method: { id: "reports.activities.watch", httpMethod: "POST", path: "admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "applicationName"], scopes: S_admin_reports_v1[0] },
|
|
1860
1903
|
params: [{ "field": "applicationName", "api": "applicationName", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "actorIpAddress", "api": "actorIpAddress", "location": "query" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "endTime", "api": "endTime", "location": "query" }, { "field": "eventName", "api": "eventName", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "groupIdFilter", "api": "groupIdFilter", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orgUnitID", "api": "orgUnitID", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "startTime", "api": "startTime", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1861
1904
|
hasBody: true,
|
|
1862
1905
|
shape: {
|
|
@@ -1881,7 +1924,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1881
1924
|
name: "admin_customer_usage_reports_get",
|
|
1882
1925
|
cud: "read",
|
|
1883
1926
|
description: "Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report gu",
|
|
1884
|
-
method: { id: "reports.customerUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["date"] },
|
|
1927
|
+
method: { id: "reports.customerUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["date"], scopes: S_admin_reports_v1[1] },
|
|
1885
1928
|
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1886
1929
|
hasBody: false,
|
|
1887
1930
|
shape: {
|
|
@@ -1897,7 +1940,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1897
1940
|
name: "admin_entity_usage_reports_get",
|
|
1898
1941
|
cud: "read",
|
|
1899
1942
|
description: "Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usag",
|
|
1900
|
-
method: { id: "reports.entityUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["entityType", "entityKey", "date"] },
|
|
1943
|
+
method: { id: "reports.entityUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["entityType", "entityKey", "date"], scopes: S_admin_reports_v1[1] },
|
|
1901
1944
|
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "entityKey", "api": "entityKey", "location": "path" }, { "field": "entityType", "api": "entityType", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1902
1945
|
hasBody: false,
|
|
1903
1946
|
shape: {
|
|
@@ -1917,7 +1960,7 @@ export function registerAdminGeneratedTools(registry) {
|
|
|
1917
1960
|
name: "admin_user_usage_report_get",
|
|
1918
1961
|
cud: "read",
|
|
1919
1962
|
description: "Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide",
|
|
1920
|
-
method: { id: "reports.userUsageReport.get", httpMethod: "GET", path: "admin/reports/v1/usage/users/{userKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "date"] },
|
|
1963
|
+
method: { id: "reports.userUsageReport.get", httpMethod: "GET", path: "admin/reports/v1/usage/users/{userKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "date"], scopes: S_admin_reports_v1[1] },
|
|
1921
1964
|
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "groupIdFilter", "api": "groupIdFilter", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orgUnitID", "api": "orgUnitID", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1922
1965
|
hasBody: false,
|
|
1923
1966
|
shape: {
|