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,21 @@ import { z } from 'zod';
|
|
|
3
3
|
import { coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
5
|
export function registerCloudsearchGeneratedTools(registry) {
|
|
6
|
+
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
|
+
const S_cloudsearch_v1 = [
|
|
8
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.debug"],
|
|
9
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.settings", "https://www.googleapis.com/auth/cloud_search.settings.indexing"],
|
|
10
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.indexing"],
|
|
11
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.debug", "https://www.googleapis.com/auth/cloud_search.indexing", "https://www.googleapis.com/auth/cloud_search.settings", "https://www.googleapis.com/auth/cloud_search.settings.indexing", "https://www.googleapis.com/auth/cloud_search.settings.query"],
|
|
12
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.query"],
|
|
13
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.settings", "https://www.googleapis.com/auth/cloud_search.settings.query"],
|
|
14
|
+
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.stats", "https://www.googleapis.com/auth/cloud_search.stats.indexing"],
|
|
15
|
+
];
|
|
6
16
|
registerGeneratedTool(registry, {
|
|
7
17
|
name: "cloudsearch_debug_datasources_items_check_access",
|
|
8
18
|
cud: "create",
|
|
9
19
|
description: "Checks whether an item is accessible by specified principal. Principal must be a user; groups and domain values aren't supported. **Note:** This API requires an",
|
|
10
|
-
method: { id: "cloudsearch.debug.datasources.items.checkAccess", httpMethod: "POST", path: "v1/debug/{+name}:checkAccess", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
20
|
+
method: { id: "cloudsearch.debug.datasources.items.checkAccess", httpMethod: "POST", path: "v1/debug/{+name}:checkAccess", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[0] },
|
|
11
21
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
22
|
hasBody: true,
|
|
13
23
|
shape: {
|
|
@@ -22,7 +32,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
22
32
|
name: "cloudsearch_debug_datasources_items_search_by_view_url",
|
|
23
33
|
cud: "read",
|
|
24
34
|
description: "Fetches the item whose viewUrl exactly matches that of the URL provided in the request. **Note:** This API requires an admin account to execute.",
|
|
25
|
-
method: { id: "cloudsearch.debug.datasources.items.searchByViewUrl", httpMethod: "POST", path: "v1/debug/{+name}/items:searchByViewUrl", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
35
|
+
method: { id: "cloudsearch.debug.datasources.items.searchByViewUrl", httpMethod: "POST", path: "v1/debug/{+name}/items:searchByViewUrl", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[0] },
|
|
26
36
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
27
37
|
hasBody: true,
|
|
28
38
|
shape: {
|
|
@@ -36,7 +46,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
36
46
|
name: "cloudsearch_debug_datasources_items_unmappedids_list",
|
|
37
47
|
cud: "read",
|
|
38
48
|
description: "List all unmapped identities for a specific item. **Note:** This API requires an admin account to execute.",
|
|
39
|
-
method: { id: "cloudsearch.debug.datasources.items.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
49
|
+
method: { id: "cloudsearch.debug.datasources.items.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"], scopes: S_cloudsearch_v1[0] },
|
|
40
50
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
41
51
|
hasBody: false,
|
|
42
52
|
shape: {
|
|
@@ -52,7 +62,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
52
62
|
name: "cloudsearch_debug_identitysources_items_list_forunmappedidentity",
|
|
53
63
|
cud: "read",
|
|
54
64
|
description: "Lists names of items associated with an unmapped identity. **Note:** This API requires an admin account to execute.",
|
|
55
|
-
method: { id: "cloudsearch.debug.identitysources.items.listForunmappedidentity", httpMethod: "GET", path: "v1/debug/{+parent}/items:forunmappedidentity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
65
|
+
method: { id: "cloudsearch.debug.identitysources.items.listForunmappedidentity", httpMethod: "GET", path: "v1/debug/{+parent}/items:forunmappedidentity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"], scopes: S_cloudsearch_v1[0] },
|
|
56
66
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "groupResourceName", "api": "groupResourceName", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "userResourceName", "api": "userResourceName", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
57
67
|
hasBody: false,
|
|
58
68
|
shape: {
|
|
@@ -70,7 +80,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
70
80
|
name: "cloudsearch_debug_identitysources_unmappedids_list",
|
|
71
81
|
cud: "read",
|
|
72
82
|
description: "Lists unmapped user identities for an identity source. **Note:** This API requires an admin account to execute.",
|
|
73
|
-
method: { id: "cloudsearch.debug.identitysources.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
83
|
+
method: { id: "cloudsearch.debug.identitysources.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"], scopes: S_cloudsearch_v1[0] },
|
|
74
84
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "resolutionStatusCode", "api": "resolutionStatusCode", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
75
85
|
hasBody: false,
|
|
76
86
|
shape: {
|
|
@@ -87,7 +97,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
87
97
|
name: "cloudsearch_indexing_datasources_delete_schema",
|
|
88
98
|
cud: "delete",
|
|
89
99
|
description: "Deletes the schema of a data source. **Note:** This API requires an admin or service account to execute.",
|
|
90
|
-
method: { id: "cloudsearch.indexing.datasources.deleteSchema", httpMethod: "DELETE", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
100
|
+
method: { id: "cloudsearch.indexing.datasources.deleteSchema", httpMethod: "DELETE", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
91
101
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
92
102
|
hasBody: false,
|
|
93
103
|
shape: {
|
|
@@ -101,7 +111,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
101
111
|
name: "cloudsearch_indexing_datasources_get_schema",
|
|
102
112
|
cud: "read",
|
|
103
113
|
description: "Gets the schema of a data source. **Note:** This API requires an admin or service account to execute.",
|
|
104
|
-
method: { id: "cloudsearch.indexing.datasources.getSchema", httpMethod: "GET", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
114
|
+
method: { id: "cloudsearch.indexing.datasources.getSchema", httpMethod: "GET", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
105
115
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
106
116
|
hasBody: false,
|
|
107
117
|
shape: {
|
|
@@ -115,7 +125,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
115
125
|
name: "cloudsearch_indexing_datasources_items_delete",
|
|
116
126
|
cud: "delete",
|
|
117
127
|
description: "Deletes Item resource for the specified resource name. This API requires an admin or service account to execute. The service account used is the one whitelisted",
|
|
118
|
-
method: { id: "cloudsearch.indexing.datasources.items.delete", httpMethod: "DELETE", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
128
|
+
method: { id: "cloudsearch.indexing.datasources.items.delete", httpMethod: "DELETE", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
119
129
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "mode", "api": "mode", "location": "query" }, { "field": "version", "api": "version", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
120
130
|
hasBody: false,
|
|
121
131
|
shape: {
|
|
@@ -132,7 +142,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
132
142
|
name: "cloudsearch_indexing_datasources_items_delete_queue_items",
|
|
133
143
|
cud: "delete",
|
|
134
144
|
description: "Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used",
|
|
135
|
-
method: { id: "cloudsearch.indexing.datasources.items.deleteQueueItems", httpMethod: "POST", path: "v1/indexing/{+name}/items:deleteQueueItems", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
145
|
+
method: { id: "cloudsearch.indexing.datasources.items.deleteQueueItems", httpMethod: "POST", path: "v1/indexing/{+name}/items:deleteQueueItems", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
136
146
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
137
147
|
hasBody: true,
|
|
138
148
|
shape: {
|
|
@@ -146,7 +156,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
146
156
|
name: "cloudsearch_indexing_datasources_items_get",
|
|
147
157
|
cud: "read",
|
|
148
158
|
description: "Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding",
|
|
149
|
-
method: { id: "cloudsearch.indexing.datasources.items.get", httpMethod: "GET", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
159
|
+
method: { id: "cloudsearch.indexing.datasources.items.get", httpMethod: "GET", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
150
160
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
151
161
|
hasBody: false,
|
|
152
162
|
shape: {
|
|
@@ -161,7 +171,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
161
171
|
name: "cloudsearch_indexing_datasources_items_index",
|
|
162
172
|
cud: "create",
|
|
163
173
|
description: "Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided val",
|
|
164
|
-
method: { id: "cloudsearch.indexing.datasources.items.index", httpMethod: "POST", path: "v1/indexing/{+name}:index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
174
|
+
method: { id: "cloudsearch.indexing.datasources.items.index", httpMethod: "POST", path: "v1/indexing/{+name}:index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
165
175
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
166
176
|
hasBody: true,
|
|
167
177
|
shape: {
|
|
@@ -175,7 +185,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
175
185
|
name: "cloudsearch_indexing_datasources_items_list",
|
|
176
186
|
cud: "read",
|
|
177
187
|
description: "Lists all or a subset of Item resources. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corres",
|
|
178
|
-
method: { id: "cloudsearch.indexing.datasources.items.list", httpMethod: "GET", path: "v1/indexing/{+name}/items", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
188
|
+
method: { id: "cloudsearch.indexing.datasources.items.list", httpMethod: "GET", path: "v1/indexing/{+name}/items", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
179
189
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "brief", "api": "brief", "location": "query" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
180
190
|
hasBody: false,
|
|
181
191
|
shape: {
|
|
@@ -193,7 +203,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
193
203
|
name: "cloudsearch_indexing_datasources_items_poll",
|
|
194
204
|
cud: "create",
|
|
195
205
|
description: "Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority Ite",
|
|
196
|
-
method: { id: "cloudsearch.indexing.datasources.items.poll", httpMethod: "POST", path: "v1/indexing/{+name}/items:poll", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
206
|
+
method: { id: "cloudsearch.indexing.datasources.items.poll", httpMethod: "POST", path: "v1/indexing/{+name}/items:poll", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
197
207
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
198
208
|
hasBody: true,
|
|
199
209
|
shape: {
|
|
@@ -207,7 +217,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
207
217
|
name: "cloudsearch_indexing_datasources_items_push",
|
|
208
218
|
cud: "create",
|
|
209
219
|
description: "Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitel",
|
|
210
|
-
method: { id: "cloudsearch.indexing.datasources.items.push", httpMethod: "POST", path: "v1/indexing/{+name}:push", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
220
|
+
method: { id: "cloudsearch.indexing.datasources.items.push", httpMethod: "POST", path: "v1/indexing/{+name}:push", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
211
221
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
222
|
hasBody: true,
|
|
213
223
|
shape: {
|
|
@@ -221,7 +231,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
221
231
|
name: "cloudsearch_indexing_datasources_items_unreserve",
|
|
222
232
|
cud: "create",
|
|
223
233
|
description: "Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been rest",
|
|
224
|
-
method: { id: "cloudsearch.indexing.datasources.items.unreserve", httpMethod: "POST", path: "v1/indexing/{+name}/items:unreserve", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
234
|
+
method: { id: "cloudsearch.indexing.datasources.items.unreserve", httpMethod: "POST", path: "v1/indexing/{+name}/items:unreserve", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
225
235
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
226
236
|
hasBody: true,
|
|
227
237
|
shape: {
|
|
@@ -235,7 +245,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
235
245
|
name: "cloudsearch_indexing_datasources_items_upload",
|
|
236
246
|
cud: "create",
|
|
237
247
|
description: "Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API r",
|
|
238
|
-
method: { id: "cloudsearch.indexing.datasources.items.upload", httpMethod: "POST", path: "v1/indexing/{+name}:upload", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
248
|
+
method: { id: "cloudsearch.indexing.datasources.items.upload", httpMethod: "POST", path: "v1/indexing/{+name}:upload", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
239
249
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
240
250
|
hasBody: true,
|
|
241
251
|
shape: {
|
|
@@ -249,7 +259,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
249
259
|
name: "cloudsearch_indexing_datasources_update_schema",
|
|
250
260
|
cud: "update",
|
|
251
261
|
description: "Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the",
|
|
252
|
-
method: { id: "cloudsearch.indexing.datasources.updateSchema", httpMethod: "PUT", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
262
|
+
method: { id: "cloudsearch.indexing.datasources.updateSchema", httpMethod: "PUT", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
253
263
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
254
264
|
hasBody: true,
|
|
255
265
|
shape: {
|
|
@@ -263,7 +273,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
263
273
|
name: "cloudsearch_initialize_customer",
|
|
264
274
|
cud: "create",
|
|
265
275
|
description: "Enables `third party` support in Google Cloud Search. **Note:** This API requires an admin account to execute.",
|
|
266
|
-
method: { id: "cloudsearch.initializeCustomer", httpMethod: "POST", path: "v1:initializeCustomer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
276
|
+
method: { id: "cloudsearch.initializeCustomer", httpMethod: "POST", path: "v1:initializeCustomer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
267
277
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
268
278
|
hasBody: true,
|
|
269
279
|
shape: {
|
|
@@ -276,7 +286,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
276
286
|
name: "cloudsearch_media_upload",
|
|
277
287
|
cud: "create",
|
|
278
288
|
description: "Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during i",
|
|
279
|
-
method: { id: "cloudsearch.media.upload", httpMethod: "POST", path: "v1/media/{+resourceName}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["resourceName"] },
|
|
289
|
+
method: { id: "cloudsearch.media.upload", httpMethod: "POST", path: "v1/media/{+resourceName}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["resourceName"], scopes: S_cloudsearch_v1[2] },
|
|
280
290
|
params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
281
291
|
hasBody: true,
|
|
282
292
|
shape: {
|
|
@@ -290,7 +300,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
290
300
|
name: "cloudsearch_operations_get",
|
|
291
301
|
cud: "read",
|
|
292
302
|
description: "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
|
|
293
|
-
method: { id: "cloudsearch.operations.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
303
|
+
method: { id: "cloudsearch.operations.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[3] },
|
|
294
304
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
295
305
|
hasBody: false,
|
|
296
306
|
shape: {
|
|
@@ -303,7 +313,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
303
313
|
name: "cloudsearch_operations_lro_list",
|
|
304
314
|
cud: "read",
|
|
305
315
|
description: "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
|
|
306
|
-
method: { id: "cloudsearch.operations.lro.list", httpMethod: "GET", path: "v1/{+name}/lro", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
316
|
+
method: { id: "cloudsearch.operations.lro.list", httpMethod: "GET", path: "v1/{+name}/lro", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[3] },
|
|
307
317
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "returnPartialSuccess", "api": "returnPartialSuccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
308
318
|
hasBody: false,
|
|
309
319
|
shape: {
|
|
@@ -320,7 +330,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
320
330
|
name: "cloudsearch_query_remove_activity",
|
|
321
331
|
cud: "delete",
|
|
322
332
|
description: "Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user accou",
|
|
323
|
-
method: { id: "cloudsearch.query.removeActivity", httpMethod: "POST", path: "v1/query:removeActivity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
333
|
+
method: { id: "cloudsearch.query.removeActivity", httpMethod: "POST", path: "v1/query:removeActivity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[4] },
|
|
324
334
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
325
335
|
hasBody: true,
|
|
326
336
|
shape: {
|
|
@@ -333,7 +343,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
333
343
|
name: "cloudsearch_query_search",
|
|
334
344
|
cud: "read",
|
|
335
345
|
description: "The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from Google Workspace app",
|
|
336
|
-
method: { id: "cloudsearch.query.search", httpMethod: "POST", path: "v1/query/search", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
346
|
+
method: { id: "cloudsearch.query.search", httpMethod: "POST", path: "v1/query/search", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[4] },
|
|
337
347
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
338
348
|
hasBody: true,
|
|
339
349
|
shape: {
|
|
@@ -346,7 +356,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
346
356
|
name: "cloudsearch_query_sources_list",
|
|
347
357
|
cud: "read",
|
|
348
358
|
description: "Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. A service account can",
|
|
349
|
-
method: { id: "cloudsearch.query.sources.list", httpMethod: "GET", path: "v1/query/sources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
359
|
+
method: { id: "cloudsearch.query.sources.list", httpMethod: "GET", path: "v1/query/sources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[4] },
|
|
350
360
|
params: [{ "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "requestOptions.clientDisplayLanguageCode", "api": "requestOptions.clientDisplayLanguageCode", "location": "query" }, { "field": "requestOptions.countryCode", "api": "requestOptions.countryCode", "location": "query" }, { "field": "requestOptions.debugOptions.enableDebugging", "api": "requestOptions.debugOptions.enableDebugging", "location": "query" }, { "field": "requestOptions.languageCode", "api": "requestOptions.languageCode", "location": "query" }, { "field": "requestOptions.searchApplicationId", "api": "requestOptions.searchApplicationId", "location": "query" }, { "field": "requestOptions.timeZone", "api": "requestOptions.timeZone", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
351
361
|
hasBody: false,
|
|
352
362
|
shape: {
|
|
@@ -365,7 +375,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
365
375
|
name: "cloudsearch_query_suggest",
|
|
366
376
|
cud: "create",
|
|
367
377
|
description: "Provides suggestions for autocompleting the query. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API",
|
|
368
|
-
method: { id: "cloudsearch.query.suggest", httpMethod: "POST", path: "v1/query/suggest", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
378
|
+
method: { id: "cloudsearch.query.suggest", httpMethod: "POST", path: "v1/query/suggest", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[4] },
|
|
369
379
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
370
380
|
hasBody: true,
|
|
371
381
|
shape: {
|
|
@@ -378,7 +388,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
378
388
|
name: "cloudsearch_settings_datasources_create",
|
|
379
389
|
cud: "create",
|
|
380
390
|
description: "Creates a datasource. **Note:** This API requires an admin account to execute.",
|
|
381
|
-
method: { id: "cloudsearch.settings.datasources.create", httpMethod: "POST", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
391
|
+
method: { id: "cloudsearch.settings.datasources.create", httpMethod: "POST", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
382
392
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
383
393
|
hasBody: true,
|
|
384
394
|
shape: {
|
|
@@ -391,7 +401,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
391
401
|
name: "cloudsearch_settings_datasources_delete",
|
|
392
402
|
cud: "delete",
|
|
393
403
|
description: "Deletes a datasource. **Note:** This API requires an admin account to execute.",
|
|
394
|
-
method: { id: "cloudsearch.settings.datasources.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
404
|
+
method: { id: "cloudsearch.settings.datasources.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
395
405
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
396
406
|
hasBody: false,
|
|
397
407
|
shape: {
|
|
@@ -405,7 +415,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
405
415
|
name: "cloudsearch_settings_datasources_get",
|
|
406
416
|
cud: "read",
|
|
407
417
|
description: "Gets a datasource. **Note:** This API requires an admin account to execute.",
|
|
408
|
-
method: { id: "cloudsearch.settings.datasources.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
418
|
+
method: { id: "cloudsearch.settings.datasources.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
409
419
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
410
420
|
hasBody: false,
|
|
411
421
|
shape: {
|
|
@@ -419,7 +429,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
419
429
|
name: "cloudsearch_settings_datasources_list",
|
|
420
430
|
cud: "read",
|
|
421
431
|
description: "Lists datasources. **Note:** This API requires an admin account to execute.",
|
|
422
|
-
method: { id: "cloudsearch.settings.datasources.list", httpMethod: "GET", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
432
|
+
method: { id: "cloudsearch.settings.datasources.list", httpMethod: "GET", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
423
433
|
params: [{ "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
424
434
|
hasBody: false,
|
|
425
435
|
shape: {
|
|
@@ -434,7 +444,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
434
444
|
name: "cloudsearch_settings_datasources_patch",
|
|
435
445
|
cud: "update",
|
|
436
446
|
description: "Updates a datasource. **Note:** This API requires an admin account to execute.",
|
|
437
|
-
method: { id: "cloudsearch.settings.datasources.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
447
|
+
method: { id: "cloudsearch.settings.datasources.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
438
448
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
439
449
|
hasBody: true,
|
|
440
450
|
shape: {
|
|
@@ -450,7 +460,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
450
460
|
name: "cloudsearch_settings_datasources_update",
|
|
451
461
|
cud: "update",
|
|
452
462
|
description: "Updates a datasource. **Note:** This API requires an admin account to execute.",
|
|
453
|
-
method: { id: "cloudsearch.settings.datasources.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
463
|
+
method: { id: "cloudsearch.settings.datasources.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[1] },
|
|
454
464
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
455
465
|
hasBody: true,
|
|
456
466
|
shape: {
|
|
@@ -464,7 +474,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
464
474
|
name: "cloudsearch_settings_get_customer",
|
|
465
475
|
cud: "read",
|
|
466
476
|
description: "Get customer settings. **Note:** This API requires an admin account to execute.",
|
|
467
|
-
method: { id: "cloudsearch.settings.getCustomer", httpMethod: "GET", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
477
|
+
method: { id: "cloudsearch.settings.getCustomer", httpMethod: "GET", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
468
478
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
469
479
|
hasBody: false,
|
|
470
480
|
shape: {
|
|
@@ -476,7 +486,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
476
486
|
name: "cloudsearch_settings_searchapplications_create",
|
|
477
487
|
cud: "create",
|
|
478
488
|
description: "Creates a search application. **Note:** This API requires an admin account to execute.",
|
|
479
|
-
method: { id: "cloudsearch.settings.searchapplications.create", httpMethod: "POST", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
489
|
+
method: { id: "cloudsearch.settings.searchapplications.create", httpMethod: "POST", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[5] },
|
|
480
490
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
481
491
|
hasBody: true,
|
|
482
492
|
shape: {
|
|
@@ -489,7 +499,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
489
499
|
name: "cloudsearch_settings_searchapplications_delete",
|
|
490
500
|
cud: "delete",
|
|
491
501
|
description: "Deletes a search application. **Note:** This API requires an admin account to execute.",
|
|
492
|
-
method: { id: "cloudsearch.settings.searchapplications.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
502
|
+
method: { id: "cloudsearch.settings.searchapplications.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
493
503
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
494
504
|
hasBody: false,
|
|
495
505
|
shape: {
|
|
@@ -503,7 +513,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
503
513
|
name: "cloudsearch_settings_searchapplications_get",
|
|
504
514
|
cud: "read",
|
|
505
515
|
description: "Gets the specified search application. **Note:** This API requires an admin account to execute.",
|
|
506
|
-
method: { id: "cloudsearch.settings.searchapplications.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
516
|
+
method: { id: "cloudsearch.settings.searchapplications.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
507
517
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
508
518
|
hasBody: false,
|
|
509
519
|
shape: {
|
|
@@ -517,7 +527,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
517
527
|
name: "cloudsearch_settings_searchapplications_list",
|
|
518
528
|
cud: "read",
|
|
519
529
|
description: "Lists all search applications. **Note:** This API requires an admin account to execute.",
|
|
520
|
-
method: { id: "cloudsearch.settings.searchapplications.list", httpMethod: "GET", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
530
|
+
method: { id: "cloudsearch.settings.searchapplications.list", httpMethod: "GET", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[5] },
|
|
521
531
|
params: [{ "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
522
532
|
hasBody: false,
|
|
523
533
|
shape: {
|
|
@@ -532,7 +542,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
532
542
|
name: "cloudsearch_settings_searchapplications_patch",
|
|
533
543
|
cud: "update",
|
|
534
544
|
description: "Updates a search application. **Note:** This API requires an admin account to execute.",
|
|
535
|
-
method: { id: "cloudsearch.settings.searchapplications.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
545
|
+
method: { id: "cloudsearch.settings.searchapplications.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
536
546
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
537
547
|
hasBody: true,
|
|
538
548
|
shape: {
|
|
@@ -547,7 +557,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
547
557
|
name: "cloudsearch_settings_searchapplications_reset",
|
|
548
558
|
cud: "create",
|
|
549
559
|
description: "Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.",
|
|
550
|
-
method: { id: "cloudsearch.settings.searchapplications.reset", httpMethod: "POST", path: "v1/settings/{+name}:reset", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
560
|
+
method: { id: "cloudsearch.settings.searchapplications.reset", httpMethod: "POST", path: "v1/settings/{+name}:reset", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
551
561
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
552
562
|
hasBody: true,
|
|
553
563
|
shape: {
|
|
@@ -561,7 +571,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
561
571
|
name: "cloudsearch_settings_searchapplications_update",
|
|
562
572
|
cud: "update",
|
|
563
573
|
description: "Updates a search application. **Note:** This API requires an admin account to execute.",
|
|
564
|
-
method: { id: "cloudsearch.settings.searchapplications.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
574
|
+
method: { id: "cloudsearch.settings.searchapplications.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
565
575
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
566
576
|
hasBody: true,
|
|
567
577
|
shape: {
|
|
@@ -576,7 +586,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
576
586
|
name: "cloudsearch_settings_update_customer",
|
|
577
587
|
cud: "update",
|
|
578
588
|
description: "Update customer settings. **Note:** This API requires an admin account to execute.",
|
|
579
|
-
method: { id: "cloudsearch.settings.updateCustomer", httpMethod: "PATCH", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
589
|
+
method: { id: "cloudsearch.settings.updateCustomer", httpMethod: "PATCH", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
580
590
|
params: [{ "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
581
591
|
hasBody: true,
|
|
582
592
|
shape: {
|
|
@@ -590,7 +600,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
590
600
|
name: "cloudsearch_stats_get_index",
|
|
591
601
|
cud: "read",
|
|
592
602
|
description: "Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the curr",
|
|
593
|
-
method: { id: "cloudsearch.stats.getIndex", httpMethod: "GET", path: "v1/stats/index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
603
|
+
method: { id: "cloudsearch.stats.getIndex", httpMethod: "GET", path: "v1/stats/index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[6] },
|
|
594
604
|
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
595
605
|
hasBody: false,
|
|
596
606
|
shape: {
|
|
@@ -608,7 +618,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
608
618
|
name: "cloudsearch_stats_get_query",
|
|
609
619
|
cud: "read",
|
|
610
620
|
description: "Get the query statistics for customer. **Note:** This API requires a standard end user account to execute.",
|
|
611
|
-
method: { id: "cloudsearch.stats.getQuery", httpMethod: "GET", path: "v1/stats/query", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
621
|
+
method: { id: "cloudsearch.stats.getQuery", httpMethod: "GET", path: "v1/stats/query", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[6] },
|
|
612
622
|
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
613
623
|
hasBody: false,
|
|
614
624
|
shape: {
|
|
@@ -626,7 +636,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
626
636
|
name: "cloudsearch_stats_get_searchapplication",
|
|
627
637
|
cud: "read",
|
|
628
638
|
description: "Get search application stats for customer. **Note:** This API requires a standard end user account to execute.",
|
|
629
|
-
method: { id: "cloudsearch.stats.getSearchapplication", httpMethod: "GET", path: "v1/stats/searchapplication", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
639
|
+
method: { id: "cloudsearch.stats.getSearchapplication", httpMethod: "GET", path: "v1/stats/searchapplication", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[6] },
|
|
630
640
|
params: [{ "field": "endDate.day", "api": "endDate.day", "location": "query" }, { "field": "endDate.month", "api": "endDate.month", "location": "query" }, { "field": "endDate.year", "api": "endDate.year", "location": "query" }, { "field": "startDate.day", "api": "startDate.day", "location": "query" }, { "field": "startDate.month", "api": "startDate.month", "location": "query" }, { "field": "startDate.year", "api": "startDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
631
641
|
hasBody: false,
|
|
632
642
|
shape: {
|
|
@@ -644,7 +654,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
644
654
|
name: "cloudsearch_stats_get_session",
|
|
645
655
|
cud: "read",
|
|
646
656
|
description: "Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to ex",
|
|
647
|
-
method: { id: "cloudsearch.stats.getSession", httpMethod: "GET", path: "v1/stats/session", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
657
|
+
method: { id: "cloudsearch.stats.getSession", httpMethod: "GET", path: "v1/stats/session", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[6] },
|
|
648
658
|
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
649
659
|
hasBody: false,
|
|
650
660
|
shape: {
|
|
@@ -662,7 +672,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
662
672
|
name: "cloudsearch_stats_get_user",
|
|
663
673
|
cud: "read",
|
|
664
674
|
description: "Get the users statistics for customer. **Note:** This API requires a standard end user account to execute.",
|
|
665
|
-
method: { id: "cloudsearch.stats.getUser", httpMethod: "GET", path: "v1/stats/user", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
675
|
+
method: { id: "cloudsearch.stats.getUser", httpMethod: "GET", path: "v1/stats/user", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[6] },
|
|
666
676
|
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
667
677
|
hasBody: false,
|
|
668
678
|
shape: {
|
|
@@ -680,7 +690,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
680
690
|
name: "cloudsearch_stats_index_datasources_get",
|
|
681
691
|
cud: "read",
|
|
682
692
|
description: "Gets indexed item statistics for a single data source. **Note:** This API requires a standard end user account to execute.",
|
|
683
|
-
method: { id: "cloudsearch.stats.index.datasources.get", httpMethod: "GET", path: "v1/stats/index/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
693
|
+
method: { id: "cloudsearch.stats.index.datasources.get", httpMethod: "GET", path: "v1/stats/index/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[6] },
|
|
684
694
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
685
695
|
hasBody: false,
|
|
686
696
|
shape: {
|
|
@@ -699,7 +709,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
699
709
|
name: "cloudsearch_stats_query_searchapplications_get",
|
|
700
710
|
cud: "read",
|
|
701
711
|
description: "Get the query statistics for search application. **Note:** This API requires a standard end user account to execute.",
|
|
702
|
-
method: { id: "cloudsearch.stats.query.searchapplications.get", httpMethod: "GET", path: "v1/stats/query/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
712
|
+
method: { id: "cloudsearch.stats.query.searchapplications.get", httpMethod: "GET", path: "v1/stats/query/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[6] },
|
|
703
713
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
704
714
|
hasBody: false,
|
|
705
715
|
shape: {
|
|
@@ -718,7 +728,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
718
728
|
name: "cloudsearch_stats_session_searchapplications_get",
|
|
719
729
|
cud: "read",
|
|
720
730
|
description: "Get the # of search sessions, % of successful sessions with a click query statistics for search application. **Note:** This API requires a standard end user acc",
|
|
721
|
-
method: { id: "cloudsearch.stats.session.searchapplications.get", httpMethod: "GET", path: "v1/stats/session/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
731
|
+
method: { id: "cloudsearch.stats.session.searchapplications.get", httpMethod: "GET", path: "v1/stats/session/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[6] },
|
|
722
732
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
723
733
|
hasBody: false,
|
|
724
734
|
shape: {
|
|
@@ -737,7 +747,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
737
747
|
name: "cloudsearch_stats_user_searchapplications_get",
|
|
738
748
|
cud: "read",
|
|
739
749
|
description: "Get the users statistics for search application. **Note:** This API requires a standard end user account to execute.",
|
|
740
|
-
method: { id: "cloudsearch.stats.user.searchapplications.get", httpMethod: "GET", path: "v1/stats/user/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
750
|
+
method: { id: "cloudsearch.stats.user.searchapplications.get", httpMethod: "GET", path: "v1/stats/user/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[6] },
|
|
741
751
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
742
752
|
hasBody: false,
|
|
743
753
|
shape: {
|