mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.4
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 +2 -2
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/index.js +4 -34
- package/dist/services.d.ts +11 -0
- package/dist/services.js +53 -0
- package/dist/tools/generated/admin.d.ts +2 -0
- package/dist/tools/generated/admin.js +1937 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -0
- package/dist/tools/generated/appsmarket.js +33 -0
- package/dist/tools/generated/calendar.d.ts +2 -0
- package/dist/tools/generated/calendar.js +428 -0
- package/dist/tools/generated/chat.d.ts +2 -0
- package/dist/tools/generated/chat.js +666 -0
- package/dist/tools/generated/classroom.d.ts +2 -0
- package/dist/tools/generated/classroom.js +1610 -0
- package/dist/tools/generated/cloudidentity.d.ts +2 -0
- package/dist/tools/generated/cloudidentity.js +955 -0
- package/dist/tools/generated/cloudsearch.d.ts +2 -0
- package/dist/tools/generated/cloudsearch.js +754 -0
- package/dist/tools/generated/contacts.d.ts +2 -0
- package/dist/tools/generated/contacts.js +215 -0
- package/dist/tools/generated/drive.d.ts +2 -0
- package/dist/tools/generated/drive.js +543 -0
- package/dist/tools/generated/driveactivity.d.ts +2 -0
- package/dist/tools/generated/driveactivity.js +19 -0
- package/dist/tools/generated/drivelabels.d.ts +2 -0
- package/dist/tools/generated/drivelabels.js +389 -0
- package/dist/tools/generated/forms.d.ts +2 -0
- package/dist/tools/generated/forms.js +49 -0
- package/dist/tools/generated/gmail.d.ts +2 -0
- package/dist/tools/generated/gmail.js +835 -0
- package/dist/tools/generated/groupsmigration.d.ts +2 -0
- package/dist/tools/generated/groupsmigration.js +18 -0
- package/dist/tools/generated/groupssettings.d.ts +2 -0
- package/dist/tools/generated/groupssettings.js +47 -0
- package/dist/tools/generated/index.js +50 -0
- package/dist/tools/generated/keep.d.ts +2 -0
- package/dist/tools/generated/keep.js +102 -0
- package/dist/tools/generated/licensing.d.ts +2 -0
- package/dist/tools/generated/licensing.js +116 -0
- package/dist/tools/generated/meet.d.ts +2 -0
- package/dist/tools/generated/meet.js +186 -0
- package/dist/tools/generated/postmaster.d.ts +2 -0
- package/dist/tools/generated/postmaster.js +66 -0
- package/dist/tools/generated/reseller.d.ts +2 -0
- package/dist/tools/generated/reseller.js +249 -0
- package/dist/tools/generated/script.d.ts +2 -0
- package/dist/tools/generated/script.js +249 -0
- package/dist/tools/generated/searchconsole.d.ts +2 -0
- package/dist/tools/generated/searchconsole.js +19 -0
- package/dist/tools/generated/sheets.d.ts +2 -0
- package/dist/tools/generated/sheets.js +105 -0
- package/dist/tools/generated/vault.d.ts +2 -0
- package/dist/tools/generated/vault.js +479 -0
- package/dist/tools/generated/workspaceevents.d.ts +2 -0
- package/dist/tools/generated/workspaceevents.js +223 -0
- package/dist/tools/google-api.js +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { coerceJson } from '../_coerce.js';
|
|
4
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
+
export function registerCloudidentityGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "cloudidentity_customers_userinvitations_cancel",
|
|
8
|
+
cud: "create",
|
|
9
|
+
description: "Cancels a UserInvitation that was already sent.",
|
|
10
|
+
method: { id: "cloudidentity.customers.userinvitations.cancel", httpMethod: "POST", path: "v1/{+name}:cancel", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
11
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: true,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
name: z.string().describe("Required. `UserInvitation` name in the format `customers/{customer}/userinvitations/{user_email_address}`"),
|
|
16
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CancelUserInvitationRequest JSON request body."),
|
|
17
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
registerGeneratedTool(registry, {
|
|
21
|
+
name: "cloudidentity_customers_userinvitations_get",
|
|
22
|
+
cud: "read",
|
|
23
|
+
description: "Retrieves a UserInvitation resource. **Note:** New consumer accounts with the customer's verified domain created within the previous 48 hours will not appear in",
|
|
24
|
+
method: { id: "cloudidentity.customers.userinvitations.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
25
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
26
|
+
hasBody: false,
|
|
27
|
+
shape: {
|
|
28
|
+
account: accountField(),
|
|
29
|
+
name: z.string().describe("Required. `UserInvitation` name in the format `customers/{customer}/userinvitations/{user_email_address}`"),
|
|
30
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
registerGeneratedTool(registry, {
|
|
34
|
+
name: "cloudidentity_customers_userinvitations_is_invitable_user",
|
|
35
|
+
cud: "read",
|
|
36
|
+
description: "Verifies whether a user account is eligible to receive a UserInvitation (is an unmanaged account). Eligibility is based on the following criteria: * the email a",
|
|
37
|
+
method: { id: "cloudidentity.customers.userinvitations.isInvitableUser", httpMethod: "GET", path: "v1/{+name}:isInvitableUser", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
38
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
39
|
+
hasBody: false,
|
|
40
|
+
shape: {
|
|
41
|
+
account: accountField(),
|
|
42
|
+
name: z.string().describe("Required. `UserInvitation` name in the format `customers/{customer}/userinvitations/{user_email_address}`"),
|
|
43
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
registerGeneratedTool(registry, {
|
|
47
|
+
name: "cloudidentity_customers_userinvitations_list",
|
|
48
|
+
cud: "read",
|
|
49
|
+
description: "Retrieves a list of UserInvitation resources. **Note:** New consumer accounts with the customer's verified domain created within the previous 48 hours will not",
|
|
50
|
+
method: { id: "cloudidentity.customers.userinvitations.list", httpMethod: "GET", path: "v1/{+parent}/userinvitations", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
51
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
52
|
+
hasBody: false,
|
|
53
|
+
shape: {
|
|
54
|
+
account: accountField(),
|
|
55
|
+
parent: z.string().describe("Required. The customer ID of the Google Workspace or Cloud Identity account the UserInvitation resources are associated with."),
|
|
56
|
+
filter: z.string().describe("Optional. A query string for filtering `UserInvitation` results by their current state, in the format: `\"state=='invited'\"`.").optional(),
|
|
57
|
+
orderBy: z.string().describe("Optional. The sort order of the list results. You can sort the results in descending order based on either email or last update timestamp but not both, using `order_by=\"email desc\"`. Currently, sortin").optional(),
|
|
58
|
+
pageSize: z.number().describe("Optional. The maximum number of UserInvitation resources to return. If unspecified, at most 100 resources will be returned. The maximum value is 200; values above 200 will be set to 200.").optional(),
|
|
59
|
+
pageToken: z.string().describe("Optional. A page token, received from a previous `ListUserInvitations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBooks` must match the ").optional(),
|
|
60
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
registerGeneratedTool(registry, {
|
|
64
|
+
name: "cloudidentity_customers_userinvitations_send",
|
|
65
|
+
cud: "create",
|
|
66
|
+
description: "Sends a UserInvitation to email. If the `UserInvitation` does not exist for this request and it is a valid request, the request creates a `UserInvitation`. **No",
|
|
67
|
+
method: { id: "cloudidentity.customers.userinvitations.send", httpMethod: "POST", path: "v1/{+name}:send", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
68
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
69
|
+
hasBody: true,
|
|
70
|
+
shape: {
|
|
71
|
+
account: accountField(),
|
|
72
|
+
name: z.string().describe("Required. `UserInvitation` name in the format `customers/{customer}/userinvitations/{user_email_address}`"),
|
|
73
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SendUserInvitationRequest JSON request body."),
|
|
74
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
registerGeneratedTool(registry, {
|
|
78
|
+
name: "cloudidentity_devices_cancel_wipe",
|
|
79
|
+
cud: "create",
|
|
80
|
+
description: "Cancels an unfinished device wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being",
|
|
81
|
+
method: { id: "cloudidentity.devices.cancelWipe", httpMethod: "POST", path: "v1/{+name}:cancelWipe", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
82
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
83
|
+
hasBody: true,
|
|
84
|
+
shape: {
|
|
85
|
+
account: accountField(),
|
|
86
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}`, where device is the unique ID assigned to the Device."),
|
|
87
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest JSON request body. Top-level fields: customer."),
|
|
88
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
registerGeneratedTool(registry, {
|
|
92
|
+
name: "cloudidentity_devices_create",
|
|
93
|
+
cud: "create",
|
|
94
|
+
description: "Creates a device. Only company-owned device may be created. **Note**: This method is available only to customers who have one of the following SKUs: Enterprise",
|
|
95
|
+
method: { id: "cloudidentity.devices.create", httpMethod: "POST", path: "v1/devices", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
96
|
+
params: [{ "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
97
|
+
hasBody: true,
|
|
98
|
+
shape: {
|
|
99
|
+
account: accountField(),
|
|
100
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
101
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1Device JSON request body. Top-level fields: androidSpecificAttributes, assetTag, basebandVersion, bootloaderVersion, brand, buildNumber, compromisedState, createTime, deviceId, deviceType, enabledDeveloperOptions, enabledUsbDebugging, +20 more."),
|
|
102
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
registerGeneratedTool(registry, {
|
|
106
|
+
name: "cloudidentity_devices_delete",
|
|
107
|
+
cud: "delete",
|
|
108
|
+
description: "Deletes the specified device.",
|
|
109
|
+
method: { id: "cloudidentity.devices.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
110
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
111
|
+
hasBody: false,
|
|
112
|
+
shape: {
|
|
113
|
+
account: accountField(),
|
|
114
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}`, where device is the unique ID assigned to the Device."),
|
|
115
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
116
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
registerGeneratedTool(registry, {
|
|
120
|
+
name: "cloudidentity_devices_device_users_approve",
|
|
121
|
+
cud: "create",
|
|
122
|
+
description: "Approves device to access user data.",
|
|
123
|
+
method: { id: "cloudidentity.devices.deviceUsers.approve", httpMethod: "POST", path: "v1/{+name}:approve", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
124
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
125
|
+
hasBody: true,
|
|
126
|
+
shape: {
|
|
127
|
+
account: accountField(),
|
|
128
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
129
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest JSON request body. Top-level fields: customer."),
|
|
130
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
registerGeneratedTool(registry, {
|
|
134
|
+
name: "cloudidentity_devices_device_users_block",
|
|
135
|
+
cud: "create",
|
|
136
|
+
description: "Blocks device from accessing user data",
|
|
137
|
+
method: { id: "cloudidentity.devices.deviceUsers.block", httpMethod: "POST", path: "v1/{+name}:block", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
138
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
139
|
+
hasBody: true,
|
|
140
|
+
shape: {
|
|
141
|
+
account: accountField(),
|
|
142
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
143
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest JSON request body. Top-level fields: customer."),
|
|
144
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
registerGeneratedTool(registry, {
|
|
148
|
+
name: "cloudidentity_devices_device_users_cancel_wipe",
|
|
149
|
+
cud: "create",
|
|
150
|
+
description: "Cancels an unfinished user account wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device",
|
|
151
|
+
method: { id: "cloudidentity.devices.deviceUsers.cancelWipe", httpMethod: "POST", path: "v1/{+name}:cancelWipe", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
152
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
153
|
+
hasBody: true,
|
|
154
|
+
shape: {
|
|
155
|
+
account: accountField(),
|
|
156
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
157
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest JSON request body. Top-level fields: customer."),
|
|
158
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
registerGeneratedTool(registry, {
|
|
162
|
+
name: "cloudidentity_devices_device_users_client_states_get",
|
|
163
|
+
cud: "read",
|
|
164
|
+
description: "Gets the client state for the device user",
|
|
165
|
+
method: { id: "cloudidentity.devices.deviceUsers.clientStates.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
166
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
167
|
+
hasBody: false,
|
|
168
|
+
shape: {
|
|
169
|
+
account: accountField(),
|
|
170
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device}/deviceUsers/{device_user}/clientStates/{partner}`, where `device` is the "),
|
|
171
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
172
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
registerGeneratedTool(registry, {
|
|
176
|
+
name: "cloudidentity_devices_device_users_client_states_list",
|
|
177
|
+
cud: "read",
|
|
178
|
+
description: "Lists the client states for the given search query.",
|
|
179
|
+
method: { id: "cloudidentity.devices.deviceUsers.clientStates.list", httpMethod: "GET", path: "v1/{+parent}/clientStates", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
180
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
181
|
+
hasBody: false,
|
|
182
|
+
shape: {
|
|
183
|
+
account: accountField(),
|
|
184
|
+
parent: z.string().describe("Required. To list all ClientStates, set this to \"devices/-/deviceUsers/-\". To list all ClientStates owned by a DeviceUser, set this to the resource name of the DeviceUser. Format: devices/{device}/dev"),
|
|
185
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
186
|
+
filter: z.string().describe("Optional. Additional restrictions when fetching list of client states.").optional(),
|
|
187
|
+
orderBy: z.string().describe("Optional. Order specification for client states in the response.").optional(),
|
|
188
|
+
pageToken: z.string().describe("Optional. A page token, received from a previous `ListClientStates` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListClientStates` must match ").optional(),
|
|
189
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
registerGeneratedTool(registry, {
|
|
193
|
+
name: "cloudidentity_devices_device_users_client_states_patch",
|
|
194
|
+
cud: "update",
|
|
195
|
+
description: "Updates the client state for the device user **Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enter",
|
|
196
|
+
method: { id: "cloudidentity.devices.deviceUsers.clientStates.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
197
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
198
|
+
hasBody: true,
|
|
199
|
+
shape: {
|
|
200
|
+
account: accountField(),
|
|
201
|
+
name: z.string().describe("Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device}/deviceUsers/{device_user}/clientState/{partner}`, where partner corres"),
|
|
202
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
203
|
+
updateMask: z.string().describe("Optional. Comma-separated list of fully qualified names of fields to be updated. If not specified, all updatable fields in ClientState are updated.").optional(),
|
|
204
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1ClientState JSON request body. Top-level fields: assetTags, complianceState, createTime, customId, etag, healthScore, keyValuePairs, lastUpdateTime, managed, name, ownerType, scoreReason."),
|
|
205
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
registerGeneratedTool(registry, {
|
|
209
|
+
name: "cloudidentity_devices_device_users_delete",
|
|
210
|
+
cud: "delete",
|
|
211
|
+
description: "Deletes the specified DeviceUser. This also revokes the user's access to device data.",
|
|
212
|
+
method: { id: "cloudidentity.devices.deviceUsers.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
213
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
214
|
+
hasBody: false,
|
|
215
|
+
shape: {
|
|
216
|
+
account: accountField(),
|
|
217
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
218
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
219
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
registerGeneratedTool(registry, {
|
|
223
|
+
name: "cloudidentity_devices_device_users_get",
|
|
224
|
+
cud: "read",
|
|
225
|
+
description: "Retrieves the specified DeviceUser",
|
|
226
|
+
method: { id: "cloudidentity.devices.deviceUsers.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
227
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
228
|
+
hasBody: false,
|
|
229
|
+
shape: {
|
|
230
|
+
account: accountField(),
|
|
231
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
232
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
233
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
registerGeneratedTool(registry, {
|
|
237
|
+
name: "cloudidentity_devices_device_users_list",
|
|
238
|
+
cud: "read",
|
|
239
|
+
description: "Lists/Searches DeviceUsers.",
|
|
240
|
+
method: { id: "cloudidentity.devices.deviceUsers.list", httpMethod: "GET", path: "v1/{+parent}/deviceUsers", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
241
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
242
|
+
hasBody: false,
|
|
243
|
+
shape: {
|
|
244
|
+
account: accountField(),
|
|
245
|
+
parent: z.string().describe("Required. To list all DeviceUsers, set this to \"devices/-\". To list all DeviceUsers owned by a device, set this to the resource name of the device. Format: devices/{device}"),
|
|
246
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API").optional(),
|
|
247
|
+
filter: z.string().describe("Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operato").optional(),
|
|
248
|
+
orderBy: z.string().describe("Optional. Order specification for devices in the response.").optional(),
|
|
249
|
+
pageSize: z.number().describe("Optional. The maximum number of DeviceUsers to return. If unspecified, at most 5 DeviceUsers will be returned. The maximum value is 20; values above 20 will be coerced to 20.").optional(),
|
|
250
|
+
pageToken: z.string().describe("Optional. A page token, received from a previous `ListDeviceUsers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBooks` must match the call").optional(),
|
|
251
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
registerGeneratedTool(registry, {
|
|
255
|
+
name: "cloudidentity_devices_device_users_lookup",
|
|
256
|
+
cud: "read",
|
|
257
|
+
description: "Looks up resource names of the DeviceUsers associated with the caller's credentials, as well as the properties provided in the request. This method must be call",
|
|
258
|
+
method: { id: "cloudidentity.devices.deviceUsers.lookup", httpMethod: "GET", path: "v1/{+parent}:lookup", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
259
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "androidId", "api": "androidId", "location": "query" }, { "field": "iosDeviceId", "api": "iosDeviceId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "partner", "api": "partner", "location": "query" }, { "field": "rawResourceId", "api": "rawResourceId", "location": "query" }, { "field": "userId", "api": "userId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
260
|
+
hasBody: false,
|
|
261
|
+
shape: {
|
|
262
|
+
account: accountField(),
|
|
263
|
+
parent: z.string().describe("Must be set to \"devices/-/deviceUsers\" to search across all DeviceUser belonging to the user."),
|
|
264
|
+
androidId: z.string().describe("Android Id returned by [Settings.Secure#ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID).").optional(),
|
|
265
|
+
iosDeviceId: z.string().describe("Optional. The partner-specified device identifier assigned to the iOS device that initiated the Lookup API call. This string must match the value of the iosDeviceId key in the app config dictionary pr").optional(),
|
|
266
|
+
pageSize: z.number().describe("The maximum number of DeviceUsers to return. If unspecified, at most 20 DeviceUsers will be returned. The maximum value is 20; values above 20 will be coerced to 20.").optional(),
|
|
267
|
+
pageToken: z.string().describe("A page token, received from a previous `LookupDeviceUsers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `LookupDeviceUsers` must match the call").optional(),
|
|
268
|
+
partner: z.string().describe("Optional. The partner ID of the calling iOS app. This string must match the value of the partner key within the app configuration dictionary provided to Google Workspace apps.").optional(),
|
|
269
|
+
rawResourceId: z.string().describe("Raw Resource Id used by Google Endpoint Verification. If the user is enrolled into Google Endpoint Verification, this id will be saved as the 'device_resource_id' field in the following platform depen").optional(),
|
|
270
|
+
userId: z.string().describe("The user whose DeviceUser's resource name will be fetched. Must be set to 'me' to fetch the DeviceUser's resource name for the calling user.").optional(),
|
|
271
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
registerGeneratedTool(registry, {
|
|
275
|
+
name: "cloudidentity_devices_device_users_wipe",
|
|
276
|
+
cud: "create",
|
|
277
|
+
description: "Wipes the user's account on a device. Other data on the device that is not associated with the user's work account is not affected. For example, if a Gmail app",
|
|
278
|
+
method: { id: "cloudidentity.devices.deviceUsers.wipe", httpMethod: "POST", path: "v1/{+name}:wipe", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
279
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
280
|
+
hasBody: true,
|
|
281
|
+
shape: {
|
|
282
|
+
account: accountField(),
|
|
283
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
284
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest JSON request body. Top-level fields: customer."),
|
|
285
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
286
|
+
},
|
|
287
|
+
});
|
|
288
|
+
registerGeneratedTool(registry, {
|
|
289
|
+
name: "cloudidentity_devices_get",
|
|
290
|
+
cud: "read",
|
|
291
|
+
description: "Retrieves the specified device.",
|
|
292
|
+
method: { id: "cloudidentity.devices.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
293
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
294
|
+
hasBody: false,
|
|
295
|
+
shape: {
|
|
296
|
+
account: accountField(),
|
|
297
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in the format: `devices/{device}`, where device is the unique ID assigned to the Device."),
|
|
298
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in the format: `customers/{customer}`, where customer is the customer to whom the device belongs. If you'").optional(),
|
|
299
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
registerGeneratedTool(registry, {
|
|
303
|
+
name: "cloudidentity_devices_list",
|
|
304
|
+
cud: "read",
|
|
305
|
+
description: "Lists/Searches devices.",
|
|
306
|
+
method: { id: "cloudidentity.devices.list", httpMethod: "GET", path: "v1/devices", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
307
|
+
params: [{ "field": "customer", "api": "customer", "location": "query" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
308
|
+
hasBody: false,
|
|
309
|
+
shape: {
|
|
310
|
+
account: accountField(),
|
|
311
|
+
customer: z.string().describe("Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer in the format: `customers/{customer}`, where customer is the customer to whom the device belongs. If you'").optional(),
|
|
312
|
+
filter: z.string().describe("Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operato").optional(),
|
|
313
|
+
orderBy: z.string().describe("Optional. Order specification for devices in the response. Only one of the following field names may be used to specify the order: `create_time`, `last_sync_time`, `model`, `os_version`, `device_type`").optional(),
|
|
314
|
+
pageSize: z.number().describe("Optional. The maximum number of Devices to return. If unspecified, at most 20 Devices will be returned. The maximum value is 100; values above 100 will be coerced to 100.").optional(),
|
|
315
|
+
pageToken: z.string().describe("Optional. A page token, received from a previous `ListDevices` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDevices` must match the call t").optional(),
|
|
316
|
+
view: z.enum(["VIEW_UNSPECIFIED", "COMPANY_INVENTORY", "USER_ASSIGNED_DEVICES"]).describe("Optional. The view to use for the List request.").optional(),
|
|
317
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
318
|
+
},
|
|
319
|
+
});
|
|
320
|
+
registerGeneratedTool(registry, {
|
|
321
|
+
name: "cloudidentity_devices_wipe",
|
|
322
|
+
cud: "create",
|
|
323
|
+
description: "Wipes all data on the specified device.",
|
|
324
|
+
method: { id: "cloudidentity.devices.wipe", httpMethod: "POST", path: "v1/{+name}:wipe", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
325
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
326
|
+
hasBody: true,
|
|
327
|
+
shape: {
|
|
328
|
+
account: accountField(),
|
|
329
|
+
name: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device}/deviceUsers/{device_user}`, where device is the unique ID assigned to the Devi"),
|
|
330
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsCloudidentityDevicesV1WipeDeviceRequest JSON request body. Top-level fields: customer, removeResetLock."),
|
|
331
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
332
|
+
},
|
|
333
|
+
});
|
|
334
|
+
registerGeneratedTool(registry, {
|
|
335
|
+
name: "cloudidentity_groups_create",
|
|
336
|
+
cud: "create",
|
|
337
|
+
description: "Creates a Group.",
|
|
338
|
+
method: { id: "cloudidentity.groups.create", httpMethod: "POST", path: "v1/groups", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
339
|
+
params: [{ "field": "initialGroupConfig", "api": "initialGroupConfig", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
340
|
+
hasBody: true,
|
|
341
|
+
shape: {
|
|
342
|
+
account: accountField(),
|
|
343
|
+
initialGroupConfig: z.enum(["INITIAL_GROUP_CONFIG_UNSPECIFIED", "WITH_INITIAL_OWNER", "EMPTY"]).describe("Optional. The initial configuration option for the `Group`.").optional(),
|
|
344
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Group JSON request body. Top-level fields: additionalGroupKeys, createTime, description, displayName, dynamicGroupMetadata, groupKey, labels, name, parent, updateTime."),
|
|
345
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
registerGeneratedTool(registry, {
|
|
349
|
+
name: "cloudidentity_groups_delete",
|
|
350
|
+
cud: "delete",
|
|
351
|
+
description: "Deletes a `Group`.",
|
|
352
|
+
method: { id: "cloudidentity.groups.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
353
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
354
|
+
hasBody: false,
|
|
355
|
+
shape: {
|
|
356
|
+
account: accountField(),
|
|
357
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group` to retrieve. Must be of the form `groups/{group}`."),
|
|
358
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
359
|
+
},
|
|
360
|
+
});
|
|
361
|
+
registerGeneratedTool(registry, {
|
|
362
|
+
name: "cloudidentity_groups_get",
|
|
363
|
+
cud: "read",
|
|
364
|
+
description: "Retrieves a `Group`.",
|
|
365
|
+
method: { id: "cloudidentity.groups.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
366
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
367
|
+
hasBody: false,
|
|
368
|
+
shape: {
|
|
369
|
+
account: accountField(),
|
|
370
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group` to retrieve. Must be of the form `groups/{group}`."),
|
|
371
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
registerGeneratedTool(registry, {
|
|
375
|
+
name: "cloudidentity_groups_get_security_settings",
|
|
376
|
+
cud: "read",
|
|
377
|
+
description: "Get Security Settings",
|
|
378
|
+
method: { id: "cloudidentity.groups.getSecuritySettings", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
379
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "readMask", "api": "readMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
380
|
+
hasBody: false,
|
|
381
|
+
shape: {
|
|
382
|
+
account: accountField(),
|
|
383
|
+
name: z.string().describe("Required. The security settings to retrieve. Format: `groups/{group_id}/securitySettings`"),
|
|
384
|
+
readMask: z.string().describe("Field-level read mask of which fields to return. \"*\" returns all fields. If not specified, all fields will be returned. May only contain the following field: `member_restriction`.").optional(),
|
|
385
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
386
|
+
},
|
|
387
|
+
});
|
|
388
|
+
registerGeneratedTool(registry, {
|
|
389
|
+
name: "cloudidentity_groups_list",
|
|
390
|
+
cud: "read",
|
|
391
|
+
description: "Lists the `Group` resources under a customer or namespace.",
|
|
392
|
+
method: { id: "cloudidentity.groups.list", httpMethod: "GET", path: "v1/groups", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
393
|
+
params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parent", "api": "parent", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
394
|
+
hasBody: false,
|
|
395
|
+
shape: {
|
|
396
|
+
account: accountField(),
|
|
397
|
+
pageSize: z.number().describe("The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue call").optional(),
|
|
398
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous list request, if any.").optional(),
|
|
399
|
+
parent: z.string().describe("Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer_id}` for G").optional(),
|
|
400
|
+
view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("The level of detail to be returned. If unspecified, defaults to `View.BASIC`.").optional(),
|
|
401
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
402
|
+
},
|
|
403
|
+
});
|
|
404
|
+
registerGeneratedTool(registry, {
|
|
405
|
+
name: "cloudidentity_groups_lookup",
|
|
406
|
+
cud: "read",
|
|
407
|
+
description: "Looks up the [resource name](https://cloud.google.com/apis/design/resource_names) of a `Group` by its `EntityKey`.",
|
|
408
|
+
method: { id: "cloudidentity.groups.lookup", httpMethod: "GET", path: "v1/groups:lookup", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
409
|
+
params: [{ "field": "groupKey.id", "api": "groupKey.id", "location": "query" }, { "field": "groupKey.namespace", "api": "groupKey.namespace", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
410
|
+
hasBody: false,
|
|
411
|
+
shape: {
|
|
412
|
+
account: accountField(),
|
|
413
|
+
"groupKey.id": z.string().describe("The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://s").optional(),
|
|
414
|
+
"groupKey.namespace": z.string().describe("The namespace in which the entity exists. If not specified, the `EntityKey` represents a Google-managed entity such as a Google user or a Google Group. If specified, the `EntityKey` represents an exte").optional(),
|
|
415
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
416
|
+
},
|
|
417
|
+
});
|
|
418
|
+
registerGeneratedTool(registry, {
|
|
419
|
+
name: "cloudidentity_groups_memberships_check_transitive_membership",
|
|
420
|
+
cud: "read",
|
|
421
|
+
description: "Check a potential member for membership in a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enter",
|
|
422
|
+
method: { id: "cloudidentity.groups.memberships.checkTransitiveMembership", httpMethod: "GET", path: "v1/{+parent}/memberships:checkTransitiveMembership", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
423
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
424
|
+
hasBody: false,
|
|
425
|
+
shape: {
|
|
426
|
+
account: accountField(),
|
|
427
|
+
parent: z.string().describe("[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to check the transitive membership in. Format: `groups/{group}`, where `group` is the unique id assigned to the Group "),
|
|
428
|
+
query: z.string().describe("Required. A CEL expression that MUST include member specification. This is a `required` field. Certain groups are uniquely identified by both a 'member_key_id' and a 'member_key_namespace', which requ").optional(),
|
|
429
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
430
|
+
},
|
|
431
|
+
});
|
|
432
|
+
registerGeneratedTool(registry, {
|
|
433
|
+
name: "cloudidentity_groups_memberships_create",
|
|
434
|
+
cud: "create",
|
|
435
|
+
description: "Creates a `Membership`.",
|
|
436
|
+
method: { id: "cloudidentity.groups.memberships.create", httpMethod: "POST", path: "v1/{+parent}/memberships", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
437
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
438
|
+
hasBody: true,
|
|
439
|
+
shape: {
|
|
440
|
+
account: accountField(),
|
|
441
|
+
parent: z.string().describe("Required. The parent `Group` resource under which to create the `Membership`. Must be of the form `groups/{group}`."),
|
|
442
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Membership JSON request body. Top-level fields: createTime, deliverySetting, name, preferredMemberKey, roles, type, updateTime."),
|
|
443
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
444
|
+
},
|
|
445
|
+
});
|
|
446
|
+
registerGeneratedTool(registry, {
|
|
447
|
+
name: "cloudidentity_groups_memberships_delete",
|
|
448
|
+
cud: "delete",
|
|
449
|
+
description: "Deletes a `Membership`.",
|
|
450
|
+
method: { id: "cloudidentity.groups.memberships.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
451
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
452
|
+
hasBody: false,
|
|
453
|
+
shape: {
|
|
454
|
+
account: accountField(),
|
|
455
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership` to delete. Must be of the form `groups/{group}/memberships/{membership}`"),
|
|
456
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
457
|
+
},
|
|
458
|
+
});
|
|
459
|
+
registerGeneratedTool(registry, {
|
|
460
|
+
name: "cloudidentity_groups_memberships_get",
|
|
461
|
+
cud: "read",
|
|
462
|
+
description: "Retrieves a `Membership`.",
|
|
463
|
+
method: { id: "cloudidentity.groups.memberships.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
464
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
465
|
+
hasBody: false,
|
|
466
|
+
shape: {
|
|
467
|
+
account: accountField(),
|
|
468
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership` to retrieve. Must be of the form `groups/{group}/memberships/{membership}`."),
|
|
469
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
470
|
+
},
|
|
471
|
+
});
|
|
472
|
+
registerGeneratedTool(registry, {
|
|
473
|
+
name: "cloudidentity_groups_memberships_get_membership_graph",
|
|
474
|
+
cud: "read",
|
|
475
|
+
description: "Get a membership graph of just a member or both a member and a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterpri",
|
|
476
|
+
method: { id: "cloudidentity.groups.memberships.getMembershipGraph", httpMethod: "GET", path: "v1/{+parent}/memberships:getMembershipGraph", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
477
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
478
|
+
hasBody: false,
|
|
479
|
+
shape: {
|
|
480
|
+
account: accountField(),
|
|
481
|
+
parent: z.string().describe("Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: `groups/{group}`, where `group` is the unique ID assigned to th"),
|
|
482
|
+
query: z.string().describe("Required. A CEL expression that MUST include member specification AND label(s). Certain groups are uniquely identified by both a 'member_key_id' and a 'member_key_namespace', which requires an additio").optional(),
|
|
483
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
484
|
+
},
|
|
485
|
+
});
|
|
486
|
+
registerGeneratedTool(registry, {
|
|
487
|
+
name: "cloudidentity_groups_memberships_list",
|
|
488
|
+
cud: "read",
|
|
489
|
+
description: "Lists the `Membership`s within a `Group`.",
|
|
490
|
+
method: { id: "cloudidentity.groups.memberships.list", httpMethod: "GET", path: "v1/{+parent}/memberships", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
491
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
492
|
+
hasBody: false,
|
|
493
|
+
shape: {
|
|
494
|
+
account: accountField(),
|
|
495
|
+
parent: z.string().describe("Required. The parent `Group` resource under which to lookup the `Membership` name. Must be of the form `groups/{group}`."),
|
|
496
|
+
pageSize: z.number().describe("The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue call").optional(),
|
|
497
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous search request, if any.").optional(),
|
|
498
|
+
view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("The level of detail to be returned. If unspecified, defaults to `View.BASIC`.").optional(),
|
|
499
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
500
|
+
},
|
|
501
|
+
});
|
|
502
|
+
registerGeneratedTool(registry, {
|
|
503
|
+
name: "cloudidentity_groups_memberships_lookup",
|
|
504
|
+
cud: "read",
|
|
505
|
+
description: "Looks up the [resource name](https://cloud.google.com/apis/design/resource_names) of a `Membership` by its `EntityKey`.",
|
|
506
|
+
method: { id: "cloudidentity.groups.memberships.lookup", httpMethod: "GET", path: "v1/{+parent}/memberships:lookup", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
507
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "memberKey.id", "api": "memberKey.id", "location": "query" }, { "field": "memberKey.namespace", "api": "memberKey.namespace", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
508
|
+
hasBody: false,
|
|
509
|
+
shape: {
|
|
510
|
+
account: accountField(),
|
|
511
|
+
parent: z.string().describe("Required. The parent `Group` resource under which to lookup the `Membership` name. Must be of the form `groups/{group}`."),
|
|
512
|
+
"memberKey.id": z.string().describe("The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://s").optional(),
|
|
513
|
+
"memberKey.namespace": z.string().describe("The namespace in which the entity exists. If not specified, the `EntityKey` represents a Google-managed entity such as a Google user or a Google Group. If specified, the `EntityKey` represents an exte").optional(),
|
|
514
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
515
|
+
},
|
|
516
|
+
});
|
|
517
|
+
registerGeneratedTool(registry, {
|
|
518
|
+
name: "cloudidentity_groups_memberships_modify_membership_roles",
|
|
519
|
+
cud: "update",
|
|
520
|
+
description: "Modifies the `MembershipRole`s of a `Membership`.",
|
|
521
|
+
method: { id: "cloudidentity.groups.memberships.modifyMembershipRoles", httpMethod: "POST", path: "v1/{+name}:modifyMembershipRoles", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
522
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
523
|
+
hasBody: true,
|
|
524
|
+
shape: {
|
|
525
|
+
account: accountField(),
|
|
526
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership` whose roles are to be modified. Must be of the form `groups/{group}/memberships/{membership}`."),
|
|
527
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyMembershipRolesRequest JSON request body. Top-level fields: addRoles, removeRoles, updateRolesParams."),
|
|
528
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
529
|
+
},
|
|
530
|
+
});
|
|
531
|
+
registerGeneratedTool(registry, {
|
|
532
|
+
name: "cloudidentity_groups_memberships_search_direct_groups",
|
|
533
|
+
cud: "read",
|
|
534
|
+
description: "Searches direct groups of a member. Groups for which the actor does not have the permission to view memberships are silently filtered out.",
|
|
535
|
+
method: { id: "cloudidentity.groups.memberships.searchDirectGroups", httpMethod: "GET", path: "v1/{+parent}/memberships:searchDirectGroups", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
536
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
537
|
+
hasBody: false,
|
|
538
|
+
shape: {
|
|
539
|
+
account: accountField(),
|
|
540
|
+
parent: z.string().describe("[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search a"),
|
|
541
|
+
orderBy: z.string().describe("The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example").optional(),
|
|
542
|
+
pageSize: z.number().describe("The default page size is 200 (max 1000).").optional(),
|
|
543
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous list request, if any").optional(),
|
|
544
|
+
query: z.string().describe("Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are").optional(),
|
|
545
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
546
|
+
},
|
|
547
|
+
});
|
|
548
|
+
registerGeneratedTool(registry, {
|
|
549
|
+
name: "cloudidentity_groups_memberships_search_transitive_groups",
|
|
550
|
+
cud: "read",
|
|
551
|
+
description: "Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Educ",
|
|
552
|
+
method: { id: "cloudidentity.groups.memberships.searchTransitiveGroups", httpMethod: "GET", path: "v1/{+parent}/memberships:searchTransitiveGroups", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
553
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
554
|
+
hasBody: false,
|
|
555
|
+
shape: {
|
|
556
|
+
account: accountField(),
|
|
557
|
+
parent: z.string().describe("[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: `groups/{group}`, where `group` is always '-' as this API will search acr"),
|
|
558
|
+
pageSize: z.number().describe("The default page size is 200 (max 1000).").optional(),
|
|
559
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous list request, if any.").optional(),
|
|
560
|
+
query: z.string().describe("Required. A CEL expression that MUST include member specification AND label(s). This is a `required` field. Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels").optional(),
|
|
561
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
562
|
+
},
|
|
563
|
+
});
|
|
564
|
+
registerGeneratedTool(registry, {
|
|
565
|
+
name: "cloudidentity_groups_memberships_search_transitive_memberships",
|
|
566
|
+
cud: "read",
|
|
567
|
+
description: "Search transitive memberships of a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for",
|
|
568
|
+
method: { id: "cloudidentity.groups.memberships.searchTransitiveMemberships", httpMethod: "GET", path: "v1/{+parent}/memberships:searchTransitiveMemberships", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
569
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
570
|
+
hasBody: false,
|
|
571
|
+
shape: {
|
|
572
|
+
account: accountField(),
|
|
573
|
+
parent: z.string().describe("[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: `groups/{group}`, where `group` is the unique ID assigned to the Group."),
|
|
574
|
+
pageSize: z.number().describe("The default page size is 200 (max 1000).").optional(),
|
|
575
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous list request, if any.").optional(),
|
|
576
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
577
|
+
},
|
|
578
|
+
});
|
|
579
|
+
registerGeneratedTool(registry, {
|
|
580
|
+
name: "cloudidentity_groups_patch",
|
|
581
|
+
cud: "update",
|
|
582
|
+
description: "Updates a `Group`.",
|
|
583
|
+
method: { id: "cloudidentity.groups.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
584
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
585
|
+
hasBody: true,
|
|
586
|
+
shape: {
|
|
587
|
+
account: accountField(),
|
|
588
|
+
name: z.string().describe("Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group`. Shall be of the form `groups/{group}`."),
|
|
589
|
+
updateMask: z.string().describe("Required. The names of fields to update. May only contain the following field names: `display_name`, `description`, `labels`.").optional(),
|
|
590
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Group JSON request body. Top-level fields: additionalGroupKeys, createTime, description, displayName, dynamicGroupMetadata, groupKey, labels, name, parent, updateTime."),
|
|
591
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
592
|
+
},
|
|
593
|
+
});
|
|
594
|
+
registerGeneratedTool(registry, {
|
|
595
|
+
name: "cloudidentity_groups_search",
|
|
596
|
+
cud: "read",
|
|
597
|
+
description: "Searches for `Group` resources matching a specified query.",
|
|
598
|
+
method: { id: "cloudidentity.groups.search", httpMethod: "GET", path: "v1/groups:search", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
599
|
+
params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
600
|
+
hasBody: false,
|
|
601
|
+
shape: {
|
|
602
|
+
account: accountField(),
|
|
603
|
+
pageSize: z.number().describe("The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue call").optional(),
|
|
604
|
+
pageToken: z.string().describe("The `next_page_token` value returned from a previous search request, if any.").optional(),
|
|
605
|
+
query: z.string().describe("Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{cu").optional(),
|
|
606
|
+
view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("The level of detail to be returned. If unspecified, defaults to `View.BASIC`.").optional(),
|
|
607
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
608
|
+
},
|
|
609
|
+
});
|
|
610
|
+
registerGeneratedTool(registry, {
|
|
611
|
+
name: "cloudidentity_groups_update_security_settings",
|
|
612
|
+
cud: "update",
|
|
613
|
+
description: "Update Security Settings",
|
|
614
|
+
method: { id: "cloudidentity.groups.updateSecuritySettings", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
615
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
616
|
+
hasBody: true,
|
|
617
|
+
shape: {
|
|
618
|
+
account: accountField(),
|
|
619
|
+
name: z.string().describe("Output only. The resource name of the security settings. Shall be of the form `groups/{group_id}/securitySettings`."),
|
|
620
|
+
updateMask: z.string().describe("Required. The fully-qualified names of fields to update. May only contain the following field: `member_restriction.query`.").optional(),
|
|
621
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SecuritySettings JSON request body. Top-level fields: memberRestriction, name."),
|
|
622
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
623
|
+
},
|
|
624
|
+
});
|
|
625
|
+
registerGeneratedTool(registry, {
|
|
626
|
+
name: "cloudidentity_inbound_oidc_sso_profiles_create",
|
|
627
|
+
cud: "create",
|
|
628
|
+
description: "Creates an InboundOidcSsoProfile for a customer. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/",
|
|
629
|
+
method: { id: "cloudidentity.inboundOidcSsoProfiles.create", httpMethod: "POST", path: "v1/inboundOidcSsoProfiles", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
630
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
631
|
+
hasBody: true,
|
|
632
|
+
shape: {
|
|
633
|
+
account: accountField(),
|
|
634
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundOidcSsoProfile JSON request body. Top-level fields: customer, displayName, idpConfig, name, rpConfig."),
|
|
635
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
636
|
+
},
|
|
637
|
+
});
|
|
638
|
+
registerGeneratedTool(registry, {
|
|
639
|
+
name: "cloudidentity_inbound_oidc_sso_profiles_delete",
|
|
640
|
+
cud: "delete",
|
|
641
|
+
description: "Deletes an InboundOidcSsoProfile.",
|
|
642
|
+
method: { id: "cloudidentity.inboundOidcSsoProfiles.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
643
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
644
|
+
hasBody: false,
|
|
645
|
+
shape: {
|
|
646
|
+
account: accountField(),
|
|
647
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundOidcSsoProfile to delete. Format: `inboundOidcSsoProfiles/{sso_profile_id}`"),
|
|
648
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
649
|
+
},
|
|
650
|
+
});
|
|
651
|
+
registerGeneratedTool(registry, {
|
|
652
|
+
name: "cloudidentity_inbound_oidc_sso_profiles_get",
|
|
653
|
+
cud: "read",
|
|
654
|
+
description: "Gets an InboundOidcSsoProfile.",
|
|
655
|
+
method: { id: "cloudidentity.inboundOidcSsoProfiles.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
656
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
657
|
+
hasBody: false,
|
|
658
|
+
shape: {
|
|
659
|
+
account: accountField(),
|
|
660
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundOidcSsoProfile to get. Format: `inboundOidcSsoProfiles/{sso_profile_id}`"),
|
|
661
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
662
|
+
},
|
|
663
|
+
});
|
|
664
|
+
registerGeneratedTool(registry, {
|
|
665
|
+
name: "cloudidentity_inbound_oidc_sso_profiles_list",
|
|
666
|
+
cud: "read",
|
|
667
|
+
description: "Lists InboundOidcSsoProfile objects for a Google enterprise customer.",
|
|
668
|
+
method: { id: "cloudidentity.inboundOidcSsoProfiles.list", httpMethod: "GET", path: "v1/inboundOidcSsoProfiles", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
669
|
+
params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
670
|
+
hasBody: false,
|
|
671
|
+
shape: {
|
|
672
|
+
account: accountField(),
|
|
673
|
+
filter: z.string().describe("A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. ").optional(),
|
|
674
|
+
pageSize: z.number().describe("The maximum number of InboundOidcSsoProfiles to return. The service may return fewer than this value. If omitted (or defaulted to zero) the server will use a sensible default. This default may change ").optional(),
|
|
675
|
+
pageToken: z.string().describe("A page token, received from a previous `ListInboundOidcSsoProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInboundOidcSsoProfiles` m").optional(),
|
|
676
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
677
|
+
},
|
|
678
|
+
});
|
|
679
|
+
registerGeneratedTool(registry, {
|
|
680
|
+
name: "cloudidentity_inbound_oidc_sso_profiles_patch",
|
|
681
|
+
cud: "update",
|
|
682
|
+
description: "Updates an InboundOidcSsoProfile. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448",
|
|
683
|
+
method: { id: "cloudidentity.inboundOidcSsoProfiles.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
684
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
685
|
+
hasBody: true,
|
|
686
|
+
shape: {
|
|
687
|
+
account: accountField(),
|
|
688
|
+
name: z.string().describe("Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the OIDC SSO profile."),
|
|
689
|
+
updateMask: z.string().describe("Required. The list of fields to be updated.").optional(),
|
|
690
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundOidcSsoProfile JSON request body. Top-level fields: customer, displayName, idpConfig, name, rpConfig."),
|
|
691
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
692
|
+
},
|
|
693
|
+
});
|
|
694
|
+
registerGeneratedTool(registry, {
|
|
695
|
+
name: "cloudidentity_inbound_saml_sso_profiles_create",
|
|
696
|
+
cud: "create",
|
|
697
|
+
description: "Creates an InboundSamlSsoProfile for a customer. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/",
|
|
698
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.create", httpMethod: "POST", path: "v1/inboundSamlSsoProfiles", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
699
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
700
|
+
hasBody: true,
|
|
701
|
+
shape: {
|
|
702
|
+
account: accountField(),
|
|
703
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundSamlSsoProfile JSON request body. Top-level fields: customer, displayName, idpConfig, name, spConfig."),
|
|
704
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
705
|
+
},
|
|
706
|
+
});
|
|
707
|
+
registerGeneratedTool(registry, {
|
|
708
|
+
name: "cloudidentity_inbound_saml_sso_profiles_delete",
|
|
709
|
+
cud: "delete",
|
|
710
|
+
description: "Deletes an InboundSamlSsoProfile.",
|
|
711
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
712
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
713
|
+
hasBody: false,
|
|
714
|
+
shape: {
|
|
715
|
+
account: accountField(),
|
|
716
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundSamlSsoProfile to delete. Format: `inboundSamlSsoProfiles/{sso_profile_id}`"),
|
|
717
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
718
|
+
},
|
|
719
|
+
});
|
|
720
|
+
registerGeneratedTool(registry, {
|
|
721
|
+
name: "cloudidentity_inbound_saml_sso_profiles_get",
|
|
722
|
+
cud: "read",
|
|
723
|
+
description: "Gets an InboundSamlSsoProfile.",
|
|
724
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
725
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
726
|
+
hasBody: false,
|
|
727
|
+
shape: {
|
|
728
|
+
account: accountField(),
|
|
729
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundSamlSsoProfile to get. Format: `inboundSamlSsoProfiles/{sso_profile_id}`"),
|
|
730
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
731
|
+
},
|
|
732
|
+
});
|
|
733
|
+
registerGeneratedTool(registry, {
|
|
734
|
+
name: "cloudidentity_inbound_saml_sso_profiles_idp_credentials_add",
|
|
735
|
+
cud: "create",
|
|
736
|
+
description: "Adds an IdpCredential. Up to 2 credentials are allowed. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google",
|
|
737
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.idpCredentials.add", httpMethod: "POST", path: "v1/{+parent}/idpCredentials:add", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
738
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
739
|
+
hasBody: true,
|
|
740
|
+
shape: {
|
|
741
|
+
account: accountField(),
|
|
742
|
+
parent: z.string().describe("Required. The InboundSamlSsoProfile that owns the IdpCredential. Format: `inboundSamlSsoProfiles/{sso_profile_id}`"),
|
|
743
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddIdpCredentialRequest JSON request body. Top-level fields: pemData."),
|
|
744
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
745
|
+
},
|
|
746
|
+
});
|
|
747
|
+
registerGeneratedTool(registry, {
|
|
748
|
+
name: "cloudidentity_inbound_saml_sso_profiles_idp_credentials_delete",
|
|
749
|
+
cud: "delete",
|
|
750
|
+
description: "Deletes an IdpCredential.",
|
|
751
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.idpCredentials.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
752
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
753
|
+
hasBody: false,
|
|
754
|
+
shape: {
|
|
755
|
+
account: accountField(),
|
|
756
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the IdpCredential to delete. Format: `inboundSamlSsoProfiles/{sso_profile_id}/idpCredentials/{idp_credential_id}`"),
|
|
757
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
758
|
+
},
|
|
759
|
+
});
|
|
760
|
+
registerGeneratedTool(registry, {
|
|
761
|
+
name: "cloudidentity_inbound_saml_sso_profiles_idp_credentials_get",
|
|
762
|
+
cud: "read",
|
|
763
|
+
description: "Gets an IdpCredential.",
|
|
764
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.idpCredentials.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
765
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
766
|
+
hasBody: false,
|
|
767
|
+
shape: {
|
|
768
|
+
account: accountField(),
|
|
769
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the IdpCredential to retrieve. Format: `inboundSamlSsoProfiles/{sso_profile_id}/idpCredentials/{idp_credential_id}"),
|
|
770
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
771
|
+
},
|
|
772
|
+
});
|
|
773
|
+
registerGeneratedTool(registry, {
|
|
774
|
+
name: "cloudidentity_inbound_saml_sso_profiles_idp_credentials_list",
|
|
775
|
+
cud: "read",
|
|
776
|
+
description: "Returns a list of IdpCredentials in an InboundSamlSsoProfile.",
|
|
777
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.idpCredentials.list", httpMethod: "GET", path: "v1/{+parent}/idpCredentials", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["parent"] },
|
|
778
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
779
|
+
hasBody: false,
|
|
780
|
+
shape: {
|
|
781
|
+
account: accountField(),
|
|
782
|
+
parent: z.string().describe("Required. The parent, which owns this collection of `IdpCredential`s. Format: `inboundSamlSsoProfiles/{sso_profile_id}`"),
|
|
783
|
+
pageSize: z.number().describe("The maximum number of `IdpCredential`s to return. The service may return fewer than this value.").optional(),
|
|
784
|
+
pageToken: z.string().describe("A page token, received from a previous `ListIdpCredentials` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIdpCredentials` must match the ca").optional(),
|
|
785
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
786
|
+
},
|
|
787
|
+
});
|
|
788
|
+
registerGeneratedTool(registry, {
|
|
789
|
+
name: "cloudidentity_inbound_saml_sso_profiles_list",
|
|
790
|
+
cud: "read",
|
|
791
|
+
description: "Lists InboundSamlSsoProfiles for a customer.",
|
|
792
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.list", httpMethod: "GET", path: "v1/inboundSamlSsoProfiles", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
793
|
+
params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
794
|
+
hasBody: false,
|
|
795
|
+
shape: {
|
|
796
|
+
account: accountField(),
|
|
797
|
+
filter: z.string().describe("A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. ").optional(),
|
|
798
|
+
pageSize: z.number().describe("The maximum number of InboundSamlSsoProfiles to return. The service may return fewer than this value. If omitted (or defaulted to zero) the server will use a sensible default. This default may change ").optional(),
|
|
799
|
+
pageToken: z.string().describe("A page token, received from a previous `ListInboundSamlSsoProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInboundSamlSsoProfiles` m").optional(),
|
|
800
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
801
|
+
},
|
|
802
|
+
});
|
|
803
|
+
registerGeneratedTool(registry, {
|
|
804
|
+
name: "cloudidentity_inbound_saml_sso_profiles_patch",
|
|
805
|
+
cud: "update",
|
|
806
|
+
description: "Updates an InboundSamlSsoProfile. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448",
|
|
807
|
+
method: { id: "cloudidentity.inboundSamlSsoProfiles.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
808
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
809
|
+
hasBody: true,
|
|
810
|
+
shape: {
|
|
811
|
+
account: accountField(),
|
|
812
|
+
name: z.string().describe("Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the SAML SSO profile."),
|
|
813
|
+
updateMask: z.string().describe("Required. The list of fields to be updated.").optional(),
|
|
814
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundSamlSsoProfile JSON request body. Top-level fields: customer, displayName, idpConfig, name, spConfig."),
|
|
815
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
816
|
+
},
|
|
817
|
+
});
|
|
818
|
+
registerGeneratedTool(registry, {
|
|
819
|
+
name: "cloudidentity_inbound_sso_assignments_create",
|
|
820
|
+
cud: "create",
|
|
821
|
+
description: "Creates an InboundSsoAssignment for users and devices in a `Customer` under a given `Group` or `OrgUnit`.",
|
|
822
|
+
method: { id: "cloudidentity.inboundSsoAssignments.create", httpMethod: "POST", path: "v1/inboundSsoAssignments", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
823
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
824
|
+
hasBody: true,
|
|
825
|
+
shape: {
|
|
826
|
+
account: accountField(),
|
|
827
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundSsoAssignment JSON request body. Top-level fields: customer, name, oidcSsoInfo, rank, samlSsoInfo, signInBehavior, ssoMode, targetGroup, targetOrgUnit."),
|
|
828
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
829
|
+
},
|
|
830
|
+
});
|
|
831
|
+
registerGeneratedTool(registry, {
|
|
832
|
+
name: "cloudidentity_inbound_sso_assignments_delete",
|
|
833
|
+
cud: "delete",
|
|
834
|
+
description: "Deletes an InboundSsoAssignment. To disable SSO, Create (or Update) an assignment that has `sso_mode` == `SSO_OFF`.",
|
|
835
|
+
method: { id: "cloudidentity.inboundSsoAssignments.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
836
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
837
|
+
hasBody: false,
|
|
838
|
+
shape: {
|
|
839
|
+
account: accountField(),
|
|
840
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundSsoAssignment to delete. Format: `inboundSsoAssignments/{assignment}`"),
|
|
841
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
842
|
+
},
|
|
843
|
+
});
|
|
844
|
+
registerGeneratedTool(registry, {
|
|
845
|
+
name: "cloudidentity_inbound_sso_assignments_get",
|
|
846
|
+
cud: "read",
|
|
847
|
+
description: "Gets an InboundSsoAssignment.",
|
|
848
|
+
method: { id: "cloudidentity.inboundSsoAssignments.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
849
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
850
|
+
hasBody: false,
|
|
851
|
+
shape: {
|
|
852
|
+
account: accountField(),
|
|
853
|
+
name: z.string().describe("Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundSsoAssignment to fetch. Format: `inboundSsoAssignments/{assignment}`"),
|
|
854
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
855
|
+
},
|
|
856
|
+
});
|
|
857
|
+
registerGeneratedTool(registry, {
|
|
858
|
+
name: "cloudidentity_inbound_sso_assignments_list",
|
|
859
|
+
cud: "read",
|
|
860
|
+
description: "Lists the InboundSsoAssignments for a `Customer`.",
|
|
861
|
+
method: { id: "cloudidentity.inboundSsoAssignments.list", httpMethod: "GET", path: "v1/inboundSsoAssignments", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
862
|
+
params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
863
|
+
hasBody: false,
|
|
864
|
+
shape: {
|
|
865
|
+
account: accountField(),
|
|
866
|
+
filter: z.string().describe("A CEL expression to filter the results. The only supported filter is filtering by customer. For example: `customer==customers/C0123abc`. Omitting the filter or specifying a filter of `customer==custom").optional(),
|
|
867
|
+
pageSize: z.number().describe("The maximum number of assignments to return. The service may return fewer than this value. If omitted (or defaulted to zero) the server will use a sensible default. This default may change over time. ").optional(),
|
|
868
|
+
pageToken: z.string().describe("A page token, received from a previous `ListInboundSsoAssignments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInboundSsoAssignments` mus").optional(),
|
|
869
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
870
|
+
},
|
|
871
|
+
});
|
|
872
|
+
registerGeneratedTool(registry, {
|
|
873
|
+
name: "cloudidentity_inbound_sso_assignments_patch",
|
|
874
|
+
cud: "update",
|
|
875
|
+
description: "Updates an InboundSsoAssignment. The body of this request is the `inbound_sso_assignment` field and the `update_mask` is relative to that. For example: a PATCH",
|
|
876
|
+
method: { id: "cloudidentity.inboundSsoAssignments.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
877
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
878
|
+
hasBody: true,
|
|
879
|
+
shape: {
|
|
880
|
+
account: accountField(),
|
|
881
|
+
name: z.string().describe("Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Inbound SSO Assignment."),
|
|
882
|
+
updateMask: z.string().describe("Required. The list of fields to be updated.").optional(),
|
|
883
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InboundSsoAssignment JSON request body. Top-level fields: customer, name, oidcSsoInfo, rank, samlSsoInfo, signInBehavior, ssoMode, targetGroup, targetOrgUnit."),
|
|
884
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
885
|
+
},
|
|
886
|
+
});
|
|
887
|
+
registerGeneratedTool(registry, {
|
|
888
|
+
name: "cloudidentity_policies_create",
|
|
889
|
+
cud: "create",
|
|
890
|
+
description: "Create a policy.",
|
|
891
|
+
method: { id: "cloudidentity.policies.create", httpMethod: "POST", path: "v1/policies", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
892
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
893
|
+
hasBody: true,
|
|
894
|
+
shape: {
|
|
895
|
+
account: accountField(),
|
|
896
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Policy JSON request body. Top-level fields: customer, name, policyQuery, setting, type."),
|
|
897
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
898
|
+
},
|
|
899
|
+
});
|
|
900
|
+
registerGeneratedTool(registry, {
|
|
901
|
+
name: "cloudidentity_policies_delete",
|
|
902
|
+
cud: "delete",
|
|
903
|
+
description: "Delete a policy.",
|
|
904
|
+
method: { id: "cloudidentity.policies.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
905
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
906
|
+
hasBody: false,
|
|
907
|
+
shape: {
|
|
908
|
+
account: accountField(),
|
|
909
|
+
name: z.string().describe("Required. The name of the policy to delete. Format: `policies/{policy}`."),
|
|
910
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
911
|
+
},
|
|
912
|
+
});
|
|
913
|
+
registerGeneratedTool(registry, {
|
|
914
|
+
name: "cloudidentity_policies_get",
|
|
915
|
+
cud: "read",
|
|
916
|
+
description: "Get a policy.",
|
|
917
|
+
method: { id: "cloudidentity.policies.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
918
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
919
|
+
hasBody: false,
|
|
920
|
+
shape: {
|
|
921
|
+
account: accountField(),
|
|
922
|
+
name: z.string().describe("Required. The name of the policy to retrieve. Format: `policies/{policy}`."),
|
|
923
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
924
|
+
},
|
|
925
|
+
});
|
|
926
|
+
registerGeneratedTool(registry, {
|
|
927
|
+
name: "cloudidentity_policies_list",
|
|
928
|
+
cud: "read",
|
|
929
|
+
description: "List policies.",
|
|
930
|
+
method: { id: "cloudidentity.policies.list", httpMethod: "GET", path: "v1/policies", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: [] },
|
|
931
|
+
params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
932
|
+
hasBody: false,
|
|
933
|
+
shape: {
|
|
934
|
+
account: accountField(),
|
|
935
|
+
filter: z.string().describe("Optional. A CEL expression for filtering the results. Policies can be filtered using the expression in the following ways: - Filter by application: `setting.type.matches('^settings/gmail\\\\..*$')` - Fi").optional(),
|
|
936
|
+
pageSize: z.number().describe("Optional. The maximum number of results to return. The service can return fewer than this number. If omitted or set to `0`, the default is `50` results per page. The maximum allowed value is `100`. `p").optional(),
|
|
937
|
+
pageToken: z.string().describe("Optional. The pagination token received from a prior call to PoliciesService.ListPolicies to retrieve the next page of results. When paginating, all other parameters provided to `ListPoliciesRequest` ").optional(),
|
|
938
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
939
|
+
},
|
|
940
|
+
});
|
|
941
|
+
registerGeneratedTool(registry, {
|
|
942
|
+
name: "cloudidentity_policies_patch",
|
|
943
|
+
cud: "update",
|
|
944
|
+
description: "Update a policy.",
|
|
945
|
+
method: { id: "cloudidentity.policies.patch", httpMethod: "PATCH", path: "v1/{+name}", baseUrl: "https://cloudidentity.googleapis.com/", requiredParams: ["name"] },
|
|
946
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
947
|
+
hasBody: true,
|
|
948
|
+
shape: {
|
|
949
|
+
account: accountField(),
|
|
950
|
+
name: z.string().describe("Output only. Identifier. The [resource name](https://cloud.google.com/apis/design/resource_names) of the Policy. Format: policies/{policy}."),
|
|
951
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Policy JSON request body. Top-level fields: customer, name, policyQuery, setting, type."),
|
|
952
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
953
|
+
},
|
|
954
|
+
});
|
|
955
|
+
}
|