@maxim_mazurok/gapi.client.cloudidentity-v1 0.0.20220808
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/index.d.ts +2570 -0
- package/package.json +20 -0
- package/readme.md +167 -0
- package/tests.ts +506 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.cloudidentity-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220808
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://cloudidentity.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.cloudidentity */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** Private Service: https://www.googleapis.com/auth/cloud-identity */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-identity',
|
|
20
|
+
/** Private Service: https://www.googleapis.com/auth/cloud-identity.devices */
|
|
21
|
+
'https://www.googleapis.com/auth/cloud-identity.devices',
|
|
22
|
+
/** See your device details */
|
|
23
|
+
'https://www.googleapis.com/auth/cloud-identity.devices.lookup',
|
|
24
|
+
/** Private Service: https://www.googleapis.com/auth/cloud-identity.devices.readonly */
|
|
25
|
+
'https://www.googleapis.com/auth/cloud-identity.devices.readonly',
|
|
26
|
+
/** See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group */
|
|
27
|
+
'https://www.googleapis.com/auth/cloud-identity.groups',
|
|
28
|
+
/** See any Cloud Identity Groups that you can access, including group members and their emails */
|
|
29
|
+
'https://www.googleapis.com/auth/cloud-identity.groups.readonly',
|
|
30
|
+
/** See, send, or cancel any Cloud Identity UserInvitations to join your organization to users */
|
|
31
|
+
'https://www.googleapis.com/auth/cloud-identity.userinvitations',
|
|
32
|
+
/** See, send, or cancel any Cloud Identity UserInvitations to join your organization to users */
|
|
33
|
+
'https://www.googleapis.com/auth/cloud-identity.userinvitations.readonly',
|
|
34
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
35
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
36
|
+
];
|
|
37
|
+
const immediate = false;
|
|
38
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
39
|
+
if (authResult && !authResult.error) {
|
|
40
|
+
/** handle successful authorization */
|
|
41
|
+
run();
|
|
42
|
+
} else {
|
|
43
|
+
/** handle authorization error */
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
async function run() {
|
|
48
|
+
/** Cancels a UserInvitation that was already sent. */
|
|
49
|
+
await gapi.client.cloudidentity.customers.userinvitations.cancel({
|
|
50
|
+
name: "Test string",
|
|
51
|
+
}, {
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves a UserInvitation resource. **Note:** New consumer accounts with the customer's verified domain created within the previous 48 hours will not appear in the result. This delay
|
|
55
|
+
* also applies to newly-verified domains.
|
|
56
|
+
*/
|
|
57
|
+
await gapi.client.cloudidentity.customers.userinvitations.get({
|
|
58
|
+
name: "Test string",
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Verifies whether a user account is eligible to receive a UserInvitation (is an unmanaged account). Eligibility is based on the following criteria: * the email address is a consumer
|
|
62
|
+
* account and it's the primary email address of the account, and * the domain of the email address matches an existing verified Google Workspace or Cloud Identity domain If both
|
|
63
|
+
* conditions are met, the user is eligible. **Note:** This method is not supported for Workspace Essentials customers.
|
|
64
|
+
*/
|
|
65
|
+
await gapi.client.cloudidentity.customers.userinvitations.isInvitableUser({
|
|
66
|
+
name: "Test string",
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves a list of UserInvitation resources. **Note:** New consumer accounts with the customer's verified domain created within the previous 48 hours will not appear in the result.
|
|
70
|
+
* This delay also applies to newly-verified domains.
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.cloudidentity.customers.userinvitations.list({
|
|
73
|
+
filter: "Test string",
|
|
74
|
+
orderBy: "Test string",
|
|
75
|
+
pageSize: 42,
|
|
76
|
+
pageToken: "Test string",
|
|
77
|
+
parent: "Test string",
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* 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`. **Note:** The `get` and
|
|
81
|
+
* `list` methods have a 48-hour delay where newly-created consumer accounts will not appear in the results. You can still send a `UserInvitation` to those accounts if you know the
|
|
82
|
+
* unmanaged email address and IsInvitableUser==True.
|
|
83
|
+
*/
|
|
84
|
+
await gapi.client.cloudidentity.customers.userinvitations.send({
|
|
85
|
+
name: "Test string",
|
|
86
|
+
}, {
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* 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 wiped. This operation is
|
|
90
|
+
* possible when the device is in a "pending wipe" state. The device enters the "pending wipe" state when a wipe device command is issued, but has not yet been sent to the device. The
|
|
91
|
+
* cancel wipe will fail if the wipe command has already been issued to the device.
|
|
92
|
+
*/
|
|
93
|
+
await gapi.client.cloudidentity.devices.cancelWipe({
|
|
94
|
+
name: "Test string",
|
|
95
|
+
}, {
|
|
96
|
+
customer: "Test string",
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* 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 Standard, Enterprise
|
|
100
|
+
* Plus, Enterprise for Education, and Cloud Identity Premium
|
|
101
|
+
*/
|
|
102
|
+
await gapi.client.cloudidentity.devices.create({
|
|
103
|
+
customer: "Test string",
|
|
104
|
+
}, {
|
|
105
|
+
androidSpecificAttributes: {
|
|
106
|
+
enabledUnknownSources: true,
|
|
107
|
+
ownerProfileAccount: true,
|
|
108
|
+
ownershipPrivilege: "Test string",
|
|
109
|
+
supportsWorkProfile: true,
|
|
110
|
+
},
|
|
111
|
+
assetTag: "Test string",
|
|
112
|
+
basebandVersion: "Test string",
|
|
113
|
+
bootloaderVersion: "Test string",
|
|
114
|
+
brand: "Test string",
|
|
115
|
+
buildNumber: "Test string",
|
|
116
|
+
compromisedState: "Test string",
|
|
117
|
+
createTime: "Test string",
|
|
118
|
+
deviceId: "Test string",
|
|
119
|
+
deviceType: "Test string",
|
|
120
|
+
enabledDeveloperOptions: true,
|
|
121
|
+
enabledUsbDebugging: true,
|
|
122
|
+
encryptionState: "Test string",
|
|
123
|
+
imei: "Test string",
|
|
124
|
+
kernelVersion: "Test string",
|
|
125
|
+
lastSyncTime: "Test string",
|
|
126
|
+
managementState: "Test string",
|
|
127
|
+
manufacturer: "Test string",
|
|
128
|
+
meid: "Test string",
|
|
129
|
+
model: "Test string",
|
|
130
|
+
name: "Test string",
|
|
131
|
+
networkOperator: "Test string",
|
|
132
|
+
osVersion: "Test string",
|
|
133
|
+
otherAccounts: [
|
|
134
|
+
"Test string"
|
|
135
|
+
],
|
|
136
|
+
ownerType: "Test string",
|
|
137
|
+
releaseVersion: "Test string",
|
|
138
|
+
securityPatchTime: "Test string",
|
|
139
|
+
serialNumber: "Test string",
|
|
140
|
+
wifiMacAddresses: [
|
|
141
|
+
"Test string"
|
|
142
|
+
],
|
|
143
|
+
});
|
|
144
|
+
/** Deletes the specified device. */
|
|
145
|
+
await gapi.client.cloudidentity.devices.delete({
|
|
146
|
+
customer: "Test string",
|
|
147
|
+
name: "Test string",
|
|
148
|
+
});
|
|
149
|
+
/** Retrieves the specified device. */
|
|
150
|
+
await gapi.client.cloudidentity.devices.get({
|
|
151
|
+
customer: "Test string",
|
|
152
|
+
name: "Test string",
|
|
153
|
+
});
|
|
154
|
+
/** Lists/Searches devices. */
|
|
155
|
+
await gapi.client.cloudidentity.devices.list({
|
|
156
|
+
customer: "Test string",
|
|
157
|
+
filter: "Test string",
|
|
158
|
+
orderBy: "Test string",
|
|
159
|
+
pageSize: 42,
|
|
160
|
+
pageToken: "Test string",
|
|
161
|
+
view: "Test string",
|
|
162
|
+
});
|
|
163
|
+
/** Wipes all data on the specified device. */
|
|
164
|
+
await gapi.client.cloudidentity.devices.wipe({
|
|
165
|
+
name: "Test string",
|
|
166
|
+
}, {
|
|
167
|
+
customer: "Test string",
|
|
168
|
+
removeResetLock: true,
|
|
169
|
+
});
|
|
170
|
+
/** Approves device to access user data. */
|
|
171
|
+
await gapi.client.cloudidentity.devices.deviceUsers.approve({
|
|
172
|
+
name: "Test string",
|
|
173
|
+
}, {
|
|
174
|
+
customer: "Test string",
|
|
175
|
+
});
|
|
176
|
+
/** Blocks device from accessing user data */
|
|
177
|
+
await gapi.client.cloudidentity.devices.deviceUsers.block({
|
|
178
|
+
name: "Test string",
|
|
179
|
+
}, {
|
|
180
|
+
customer: "Test string",
|
|
181
|
+
});
|
|
182
|
+
/** 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 being wiped. */
|
|
183
|
+
await gapi.client.cloudidentity.devices.deviceUsers.cancelWipe({
|
|
184
|
+
name: "Test string",
|
|
185
|
+
}, {
|
|
186
|
+
customer: "Test string",
|
|
187
|
+
});
|
|
188
|
+
/** Deletes the specified DeviceUser. This also revokes the user's access to device data. */
|
|
189
|
+
await gapi.client.cloudidentity.devices.deviceUsers.delete({
|
|
190
|
+
customer: "Test string",
|
|
191
|
+
name: "Test string",
|
|
192
|
+
});
|
|
193
|
+
/** Retrieves the specified DeviceUser */
|
|
194
|
+
await gapi.client.cloudidentity.devices.deviceUsers.get({
|
|
195
|
+
customer: "Test string",
|
|
196
|
+
name: "Test string",
|
|
197
|
+
});
|
|
198
|
+
/** Lists/Searches DeviceUsers. */
|
|
199
|
+
await gapi.client.cloudidentity.devices.deviceUsers.list({
|
|
200
|
+
customer: "Test string",
|
|
201
|
+
filter: "Test string",
|
|
202
|
+
orderBy: "Test string",
|
|
203
|
+
pageSize: 42,
|
|
204
|
+
pageToken: "Test string",
|
|
205
|
+
parent: "Test string",
|
|
206
|
+
});
|
|
207
|
+
/**
|
|
208
|
+
* 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 called with end-user
|
|
209
|
+
* credentials with the scope: https://www.googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are provided, only DeviceUsers having all of these properties are
|
|
210
|
+
* considered as matches - i.e. the query behaves like an AND. Different platforms require different amounts of information from the caller to ensure that the DeviceUser is uniquely
|
|
211
|
+
* identified. - iOS: No properties need to be passed, the caller's credentials are sufficient to identify the corresponding DeviceUser. - Android: Specifying the 'android_id' field is
|
|
212
|
+
* required. - Desktop: Specifying the 'raw_resource_id' field is required.
|
|
213
|
+
*/
|
|
214
|
+
await gapi.client.cloudidentity.devices.deviceUsers.lookup({
|
|
215
|
+
androidId: "Test string",
|
|
216
|
+
pageSize: 42,
|
|
217
|
+
pageToken: "Test string",
|
|
218
|
+
parent: "Test string",
|
|
219
|
+
rawResourceId: "Test string",
|
|
220
|
+
userId: "Test string",
|
|
221
|
+
});
|
|
222
|
+
/**
|
|
223
|
+
* 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 is installed on a device
|
|
224
|
+
* that is used for personal and work purposes, and the user is logged in to the Gmail app with their personal account as well as their work account, wiping the "deviceUser" by their work
|
|
225
|
+
* administrator will not affect their personal account within Gmail or other apps such as Photos.
|
|
226
|
+
*/
|
|
227
|
+
await gapi.client.cloudidentity.devices.deviceUsers.wipe({
|
|
228
|
+
name: "Test string",
|
|
229
|
+
}, {
|
|
230
|
+
customer: "Test string",
|
|
231
|
+
});
|
|
232
|
+
/** Gets the client state for the device user */
|
|
233
|
+
await gapi.client.cloudidentity.devices.deviceUsers.clientStates.get({
|
|
234
|
+
customer: "Test string",
|
|
235
|
+
name: "Test string",
|
|
236
|
+
});
|
|
237
|
+
/** Lists the client states for the given search query. */
|
|
238
|
+
await gapi.client.cloudidentity.devices.deviceUsers.clientStates.list({
|
|
239
|
+
customer: "Test string",
|
|
240
|
+
filter: "Test string",
|
|
241
|
+
orderBy: "Test string",
|
|
242
|
+
pageToken: "Test string",
|
|
243
|
+
parent: "Test string",
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* 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, Enterprise Plus, Enterprise
|
|
247
|
+
* for Education, and Cloud Identity Premium
|
|
248
|
+
*/
|
|
249
|
+
await gapi.client.cloudidentity.devices.deviceUsers.clientStates.patch({
|
|
250
|
+
customer: "Test string",
|
|
251
|
+
name: "Test string",
|
|
252
|
+
updateMask: "Test string",
|
|
253
|
+
}, {
|
|
254
|
+
assetTags: [
|
|
255
|
+
"Test string"
|
|
256
|
+
],
|
|
257
|
+
complianceState: "Test string",
|
|
258
|
+
createTime: "Test string",
|
|
259
|
+
customId: "Test string",
|
|
260
|
+
etag: "Test string",
|
|
261
|
+
healthScore: "Test string",
|
|
262
|
+
keyValuePairs: {
|
|
263
|
+
A: {
|
|
264
|
+
boolValue: true,
|
|
265
|
+
numberValue: 42,
|
|
266
|
+
stringValue: "Test string",
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
lastUpdateTime: "Test string",
|
|
270
|
+
managed: "Test string",
|
|
271
|
+
name: "Test string",
|
|
272
|
+
ownerType: "Test string",
|
|
273
|
+
scoreReason: "Test string",
|
|
274
|
+
});
|
|
275
|
+
/** Creates a Group. */
|
|
276
|
+
await gapi.client.cloudidentity.groups.create({
|
|
277
|
+
initialGroupConfig: "Test string",
|
|
278
|
+
}, {
|
|
279
|
+
createTime: "Test string",
|
|
280
|
+
description: "Test string",
|
|
281
|
+
displayName: "Test string",
|
|
282
|
+
dynamicGroupMetadata: {
|
|
283
|
+
queries: [
|
|
284
|
+
{
|
|
285
|
+
query: "Test string",
|
|
286
|
+
resourceType: "Test string",
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
status: {
|
|
290
|
+
status: "Test string",
|
|
291
|
+
statusTime: "Test string",
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
groupKey: {
|
|
295
|
+
id: "Test string",
|
|
296
|
+
namespace: "Test string",
|
|
297
|
+
},
|
|
298
|
+
labels: {
|
|
299
|
+
A: "Test string"
|
|
300
|
+
},
|
|
301
|
+
name: "Test string",
|
|
302
|
+
parent: "Test string",
|
|
303
|
+
updateTime: "Test string",
|
|
304
|
+
});
|
|
305
|
+
/** Deletes a `Group`. */
|
|
306
|
+
await gapi.client.cloudidentity.groups.delete({
|
|
307
|
+
name: "Test string",
|
|
308
|
+
});
|
|
309
|
+
/** Retrieves a `Group`. */
|
|
310
|
+
await gapi.client.cloudidentity.groups.get({
|
|
311
|
+
name: "Test string",
|
|
312
|
+
});
|
|
313
|
+
/** Get Security Settings */
|
|
314
|
+
await gapi.client.cloudidentity.groups.getSecuritySettings({
|
|
315
|
+
name: "Test string",
|
|
316
|
+
readMask: "Test string",
|
|
317
|
+
});
|
|
318
|
+
/** Lists the `Group` resources under a customer or namespace. */
|
|
319
|
+
await gapi.client.cloudidentity.groups.list({
|
|
320
|
+
pageSize: 42,
|
|
321
|
+
pageToken: "Test string",
|
|
322
|
+
parent: "Test string",
|
|
323
|
+
view: "Test string",
|
|
324
|
+
});
|
|
325
|
+
/** Looks up the [resource name](https://cloud.google.com/apis/design/resource_names) of a `Group` by its `EntityKey`. */
|
|
326
|
+
await gapi.client.cloudidentity.groups.lookup({
|
|
327
|
+
"groupKey.id": "Test string",
|
|
328
|
+
"groupKey.namespace": "Test string",
|
|
329
|
+
});
|
|
330
|
+
/** Updates a `Group`. */
|
|
331
|
+
await gapi.client.cloudidentity.groups.patch({
|
|
332
|
+
name: "Test string",
|
|
333
|
+
updateMask: "Test string",
|
|
334
|
+
}, {
|
|
335
|
+
createTime: "Test string",
|
|
336
|
+
description: "Test string",
|
|
337
|
+
displayName: "Test string",
|
|
338
|
+
dynamicGroupMetadata: {
|
|
339
|
+
queries: [
|
|
340
|
+
{
|
|
341
|
+
query: "Test string",
|
|
342
|
+
resourceType: "Test string",
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
status: {
|
|
346
|
+
status: "Test string",
|
|
347
|
+
statusTime: "Test string",
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
groupKey: {
|
|
351
|
+
id: "Test string",
|
|
352
|
+
namespace: "Test string",
|
|
353
|
+
},
|
|
354
|
+
labels: {
|
|
355
|
+
A: "Test string"
|
|
356
|
+
},
|
|
357
|
+
name: "Test string",
|
|
358
|
+
parent: "Test string",
|
|
359
|
+
updateTime: "Test string",
|
|
360
|
+
});
|
|
361
|
+
/** Searches for `Group` resources matching a specified query. */
|
|
362
|
+
await gapi.client.cloudidentity.groups.search({
|
|
363
|
+
pageSize: 42,
|
|
364
|
+
pageToken: "Test string",
|
|
365
|
+
query: "Test string",
|
|
366
|
+
view: "Test string",
|
|
367
|
+
});
|
|
368
|
+
/** Update Security Settings */
|
|
369
|
+
await gapi.client.cloudidentity.groups.updateSecuritySettings({
|
|
370
|
+
name: "Test string",
|
|
371
|
+
updateMask: "Test string",
|
|
372
|
+
}, {
|
|
373
|
+
memberRestriction: {
|
|
374
|
+
evaluation: {
|
|
375
|
+
state: "Test string",
|
|
376
|
+
},
|
|
377
|
+
query: "Test string",
|
|
378
|
+
},
|
|
379
|
+
name: "Test string",
|
|
380
|
+
});
|
|
381
|
+
/**
|
|
382
|
+
* Check a potential member for membership in a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and
|
|
383
|
+
* Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A member has membership to a group as
|
|
384
|
+
* long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member
|
|
385
|
+
* and group.
|
|
386
|
+
*/
|
|
387
|
+
await gapi.client.cloudidentity.groups.memberships.checkTransitiveMembership({
|
|
388
|
+
parent: "Test string",
|
|
389
|
+
query: "Test string",
|
|
390
|
+
});
|
|
391
|
+
/** Creates a `Membership`. */
|
|
392
|
+
await gapi.client.cloudidentity.groups.memberships.create({
|
|
393
|
+
parent: "Test string",
|
|
394
|
+
}, {
|
|
395
|
+
createTime: "Test string",
|
|
396
|
+
name: "Test string",
|
|
397
|
+
preferredMemberKey: {
|
|
398
|
+
id: "Test string",
|
|
399
|
+
namespace: "Test string",
|
|
400
|
+
},
|
|
401
|
+
roles: [
|
|
402
|
+
{
|
|
403
|
+
expiryDetail: {
|
|
404
|
+
expireTime: "Test string",
|
|
405
|
+
},
|
|
406
|
+
name: "Test string",
|
|
407
|
+
restrictionEvaluations: {
|
|
408
|
+
memberRestrictionEvaluation: {
|
|
409
|
+
state: "Test string",
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
type: "Test string",
|
|
415
|
+
updateTime: "Test string",
|
|
416
|
+
});
|
|
417
|
+
/** Deletes a `Membership`. */
|
|
418
|
+
await gapi.client.cloudidentity.groups.memberships.delete({
|
|
419
|
+
name: "Test string",
|
|
420
|
+
});
|
|
421
|
+
/** Retrieves a `Membership`. */
|
|
422
|
+
await gapi.client.cloudidentity.groups.memberships.get({
|
|
423
|
+
name: "Test string",
|
|
424
|
+
});
|
|
425
|
+
/**
|
|
426
|
+
* 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, Enterprise Plus, and Enterprise
|
|
427
|
+
* for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. Given a member, the
|
|
428
|
+
* response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.
|
|
429
|
+
*/
|
|
430
|
+
await gapi.client.cloudidentity.groups.memberships.getMembershipGraph({
|
|
431
|
+
parent: "Test string",
|
|
432
|
+
query: "Test string",
|
|
433
|
+
});
|
|
434
|
+
/** Lists the `Membership`s within a `Group`. */
|
|
435
|
+
await gapi.client.cloudidentity.groups.memberships.list({
|
|
436
|
+
pageSize: 42,
|
|
437
|
+
pageToken: "Test string",
|
|
438
|
+
parent: "Test string",
|
|
439
|
+
view: "Test string",
|
|
440
|
+
});
|
|
441
|
+
/** Looks up the [resource name](https://cloud.google.com/apis/design/resource_names) of a `Membership` by its `EntityKey`. */
|
|
442
|
+
await gapi.client.cloudidentity.groups.memberships.lookup({
|
|
443
|
+
"memberKey.id": "Test string",
|
|
444
|
+
"memberKey.namespace": "Test string",
|
|
445
|
+
parent: "Test string",
|
|
446
|
+
});
|
|
447
|
+
/** Modifies the `MembershipRole`s of a `Membership`. */
|
|
448
|
+
await gapi.client.cloudidentity.groups.memberships.modifyMembershipRoles({
|
|
449
|
+
name: "Test string",
|
|
450
|
+
}, {
|
|
451
|
+
addRoles: [
|
|
452
|
+
{
|
|
453
|
+
expiryDetail: {
|
|
454
|
+
expireTime: "Test string",
|
|
455
|
+
},
|
|
456
|
+
name: "Test string",
|
|
457
|
+
restrictionEvaluations: {
|
|
458
|
+
memberRestrictionEvaluation: {
|
|
459
|
+
state: "Test string",
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
removeRoles: [
|
|
465
|
+
"Test string"
|
|
466
|
+
],
|
|
467
|
+
updateRolesParams: [
|
|
468
|
+
{
|
|
469
|
+
fieldMask: "Test string",
|
|
470
|
+
membershipRole: {
|
|
471
|
+
expiryDetail: {
|
|
472
|
+
expireTime: "Test string",
|
|
473
|
+
},
|
|
474
|
+
name: "Test string",
|
|
475
|
+
restrictionEvaluations: {
|
|
476
|
+
memberRestrictionEvaluation: {
|
|
477
|
+
state: "Test string",
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
});
|
|
484
|
+
/**
|
|
485
|
+
* Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity
|
|
486
|
+
* Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or
|
|
487
|
+
* indirect membership to the member. Actor must have view permissions all transitive groups.
|
|
488
|
+
*/
|
|
489
|
+
await gapi.client.cloudidentity.groups.memberships.searchTransitiveGroups({
|
|
490
|
+
pageSize: 42,
|
|
491
|
+
pageToken: "Test string",
|
|
492
|
+
parent: "Test string",
|
|
493
|
+
query: "Test string",
|
|
494
|
+
});
|
|
495
|
+
/**
|
|
496
|
+
* Search transitive memberships of a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud
|
|
497
|
+
* Identity Premium accounts. If the account of the group is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive membership is any direct or
|
|
498
|
+
* indirect membership of a group. Actor must have view permissions to all transitive memberships.
|
|
499
|
+
*/
|
|
500
|
+
await gapi.client.cloudidentity.groups.memberships.searchTransitiveMemberships({
|
|
501
|
+
pageSize: 42,
|
|
502
|
+
pageToken: "Test string",
|
|
503
|
+
parent: "Test string",
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|