@maxim_mazurok/gapi.client.managedidentities-v1alpha1 0.0.20231010 → 0.0.20240112
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 +2482 -3742
- package/package.json +6 -6
- package/readme.md +17 -12
- package/tests.ts +0 -548
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.managedidentities-v1alpha1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20240112",
|
|
4
4
|
"description": "TypeScript typings for Managed Service for Microsoft Active Directory API v1alpha1",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
10
|
"author": {
|
|
7
|
-
"email": "maxim@mazurok.com",
|
|
8
11
|
"name": "Maxim Mazurok",
|
|
12
|
+
"email": "maxim@mazurok.com",
|
|
9
13
|
"url": "https://maxim.mazurok.com"
|
|
10
14
|
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
-
},
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
package/readme.md
CHANGED
|
@@ -25,10 +25,13 @@ gapi.load('client', () => {
|
|
|
25
25
|
Then load api client wrapper:
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
gapi.client.load(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
gapi.client.load(
|
|
29
|
+
'https://managedidentities.googleapis.com/$discovery/rest?version=v1alpha1',
|
|
30
|
+
() => {
|
|
31
|
+
// now we can use:
|
|
32
|
+
// gapi.client.managedidentities
|
|
33
|
+
}
|
|
34
|
+
);
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
```typescript
|
|
@@ -45,24 +48,26 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
45
48
|
// declare client_id registered in Google Developers Console
|
|
46
49
|
var client_id = '',
|
|
47
50
|
scope = [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
52
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
53
|
+
],
|
|
54
|
+
immediate = true;
|
|
52
55
|
// ...
|
|
53
56
|
|
|
54
57
|
gapi.auth.authorize(
|
|
55
|
-
{
|
|
58
|
+
{client_id: client_id, scope: scope, immediate: immediate},
|
|
56
59
|
authResult => {
|
|
57
60
|
if (authResult && !authResult.error) {
|
|
58
|
-
|
|
61
|
+
/* handle successful authorization */
|
|
59
62
|
} else {
|
|
60
|
-
|
|
63
|
+
/* handle authorization error */
|
|
61
64
|
}
|
|
62
|
-
}
|
|
65
|
+
}
|
|
66
|
+
);
|
|
63
67
|
```
|
|
64
68
|
|
|
65
69
|
After that you can use Managed Service for Microsoft Active Directory API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
70
|
|
|
67
71
|
```typescript
|
|
72
|
+
|
|
68
73
|
```
|
package/tests.ts
DELETED
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.managedidentities-v1alpha1 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: 20231010
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://managedidentities.googleapis.com/$discovery/rest?version=v1alpha1');
|
|
12
|
-
/** now we can use gapi.client.managedidentities */
|
|
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
|
-
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
-
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/** Gets information about a location. */
|
|
33
|
-
await gapi.client.managedidentities.projects.locations.get({
|
|
34
|
-
name: "Test string",
|
|
35
|
-
});
|
|
36
|
-
/** Lists information about the supported locations for this service. */
|
|
37
|
-
await gapi.client.managedidentities.projects.locations.list({
|
|
38
|
-
filter: "Test string",
|
|
39
|
-
name: "Test string",
|
|
40
|
-
pageSize: 42,
|
|
41
|
-
pageToken: "Test string",
|
|
42
|
-
});
|
|
43
|
-
/** Adds AD trust in a given domain. Operation */
|
|
44
|
-
await gapi.client.managedidentities.projects.locations.global.domains.attachTrust({
|
|
45
|
-
name: "Test string",
|
|
46
|
-
}, {
|
|
47
|
-
trust: {
|
|
48
|
-
createTime: "Test string",
|
|
49
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
50
|
-
selectiveAuthentication: true,
|
|
51
|
-
state: "Test string",
|
|
52
|
-
stateDescription: "Test string",
|
|
53
|
-
targetDnsIpAddresses: [
|
|
54
|
-
"Test string"
|
|
55
|
-
],
|
|
56
|
-
targetDomainName: "Test string",
|
|
57
|
-
trustDirection: "Test string",
|
|
58
|
-
trustHandshakeSecret: "Test string",
|
|
59
|
-
trustType: "Test string",
|
|
60
|
-
updateTime: "Test string",
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
/** AuditMigration API gets the current state of DomainMigration */
|
|
64
|
-
await gapi.client.managedidentities.projects.locations.global.domains.checkMigrationPermission({
|
|
65
|
-
domain: "Test string",
|
|
66
|
-
}, {
|
|
67
|
-
});
|
|
68
|
-
/** Creates a Microsoft AD Domain in a given project. Operation */
|
|
69
|
-
await gapi.client.managedidentities.projects.locations.global.domains.create({
|
|
70
|
-
domainName: "Test string",
|
|
71
|
-
parent: "Test string",
|
|
72
|
-
}, {
|
|
73
|
-
auditLogsEnabled: true,
|
|
74
|
-
authorizedNetworks: [
|
|
75
|
-
"Test string"
|
|
76
|
-
],
|
|
77
|
-
createTime: "Test string",
|
|
78
|
-
fqdn: "Test string",
|
|
79
|
-
labels: {
|
|
80
|
-
A: "Test string"
|
|
81
|
-
},
|
|
82
|
-
locations: [
|
|
83
|
-
"Test string"
|
|
84
|
-
],
|
|
85
|
-
managedIdentitiesAdminName: "Test string",
|
|
86
|
-
name: "Test string",
|
|
87
|
-
reservedIpRange: "Test string",
|
|
88
|
-
state: "Test string",
|
|
89
|
-
statusMessage: "Test string",
|
|
90
|
-
trusts: [
|
|
91
|
-
{
|
|
92
|
-
createTime: "Test string",
|
|
93
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
94
|
-
selectiveAuthentication: true,
|
|
95
|
-
state: "Test string",
|
|
96
|
-
stateDescription: "Test string",
|
|
97
|
-
targetDnsIpAddresses: [
|
|
98
|
-
"Test string"
|
|
99
|
-
],
|
|
100
|
-
targetDomainName: "Test string",
|
|
101
|
-
trustDirection: "Test string",
|
|
102
|
-
trustHandshakeSecret: "Test string",
|
|
103
|
-
trustType: "Test string",
|
|
104
|
-
updateTime: "Test string",
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
updateTime: "Test string",
|
|
108
|
-
});
|
|
109
|
-
/** Deletes identified domain. Operation */
|
|
110
|
-
await gapi.client.managedidentities.projects.locations.global.domains.delete({
|
|
111
|
-
name: "Test string",
|
|
112
|
-
});
|
|
113
|
-
/** Removes identified trust. Operation */
|
|
114
|
-
await gapi.client.managedidentities.projects.locations.global.domains.detachTrust({
|
|
115
|
-
name: "Test string",
|
|
116
|
-
}, {
|
|
117
|
-
trust: {
|
|
118
|
-
createTime: "Test string",
|
|
119
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
120
|
-
selectiveAuthentication: true,
|
|
121
|
-
state: "Test string",
|
|
122
|
-
stateDescription: "Test string",
|
|
123
|
-
targetDnsIpAddresses: [
|
|
124
|
-
"Test string"
|
|
125
|
-
],
|
|
126
|
-
targetDomainName: "Test string",
|
|
127
|
-
trustDirection: "Test string",
|
|
128
|
-
trustHandshakeSecret: "Test string",
|
|
129
|
-
trustType: "Test string",
|
|
130
|
-
updateTime: "Test string",
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
/** Disable Domain Migration */
|
|
134
|
-
await gapi.client.managedidentities.projects.locations.global.domains.disableMigration({
|
|
135
|
-
domain: "Test string",
|
|
136
|
-
}, {
|
|
137
|
-
});
|
|
138
|
-
/** DomainJoinMachine API joins a Compute Engine VM to the domain */
|
|
139
|
-
await gapi.client.managedidentities.projects.locations.global.domains.domainJoinMachine({
|
|
140
|
-
domain: "Test string",
|
|
141
|
-
}, {
|
|
142
|
-
force: true,
|
|
143
|
-
ouName: "Test string",
|
|
144
|
-
vmIdToken: "Test string",
|
|
145
|
-
});
|
|
146
|
-
/** Enable Domain Migration */
|
|
147
|
-
await gapi.client.managedidentities.projects.locations.global.domains.enableMigration({
|
|
148
|
-
domain: "Test string",
|
|
149
|
-
}, {
|
|
150
|
-
enableDuration: "Test string",
|
|
151
|
-
migratingDomains: [
|
|
152
|
-
{
|
|
153
|
-
disableSidFiltering: true,
|
|
154
|
-
domainName: "Test string",
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
});
|
|
158
|
-
/** Extend Schema for Domain */
|
|
159
|
-
await gapi.client.managedidentities.projects.locations.global.domains.extendSchema({
|
|
160
|
-
domain: "Test string",
|
|
161
|
-
}, {
|
|
162
|
-
description: "Test string",
|
|
163
|
-
fileContents: "Test string",
|
|
164
|
-
gcsPath: "Test string",
|
|
165
|
-
});
|
|
166
|
-
/** Gets details of a single Domain. */
|
|
167
|
-
await gapi.client.managedidentities.projects.locations.global.domains.get({
|
|
168
|
-
name: "Test string",
|
|
169
|
-
});
|
|
170
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
171
|
-
await gapi.client.managedidentities.projects.locations.global.domains.getIamPolicy({
|
|
172
|
-
"options.requestedPolicyVersion": 42,
|
|
173
|
-
resource: "Test string",
|
|
174
|
-
});
|
|
175
|
-
/** Gets the domain ldaps settings. */
|
|
176
|
-
await gapi.client.managedidentities.projects.locations.global.domains.getLdapssettings({
|
|
177
|
-
name: "Test string",
|
|
178
|
-
});
|
|
179
|
-
/** Lists Domains in a given project. */
|
|
180
|
-
await gapi.client.managedidentities.projects.locations.global.domains.list({
|
|
181
|
-
filter: "Test string",
|
|
182
|
-
orderBy: "Test string",
|
|
183
|
-
pageSize: 42,
|
|
184
|
-
pageToken: "Test string",
|
|
185
|
-
parent: "Test string",
|
|
186
|
-
});
|
|
187
|
-
/** Updates the metadata and configuration of a specified domain. Operation */
|
|
188
|
-
await gapi.client.managedidentities.projects.locations.global.domains.patch({
|
|
189
|
-
name: "Test string",
|
|
190
|
-
updateMask: "Test string",
|
|
191
|
-
}, {
|
|
192
|
-
auditLogsEnabled: true,
|
|
193
|
-
authorizedNetworks: [
|
|
194
|
-
"Test string"
|
|
195
|
-
],
|
|
196
|
-
createTime: "Test string",
|
|
197
|
-
fqdn: "Test string",
|
|
198
|
-
labels: {
|
|
199
|
-
A: "Test string"
|
|
200
|
-
},
|
|
201
|
-
locations: [
|
|
202
|
-
"Test string"
|
|
203
|
-
],
|
|
204
|
-
managedIdentitiesAdminName: "Test string",
|
|
205
|
-
name: "Test string",
|
|
206
|
-
reservedIpRange: "Test string",
|
|
207
|
-
state: "Test string",
|
|
208
|
-
statusMessage: "Test string",
|
|
209
|
-
trusts: [
|
|
210
|
-
{
|
|
211
|
-
createTime: "Test string",
|
|
212
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
213
|
-
selectiveAuthentication: true,
|
|
214
|
-
state: "Test string",
|
|
215
|
-
stateDescription: "Test string",
|
|
216
|
-
targetDnsIpAddresses: [
|
|
217
|
-
"Test string"
|
|
218
|
-
],
|
|
219
|
-
targetDomainName: "Test string",
|
|
220
|
-
trustDirection: "Test string",
|
|
221
|
-
trustHandshakeSecret: "Test string",
|
|
222
|
-
trustType: "Test string",
|
|
223
|
-
updateTime: "Test string",
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
updateTime: "Test string",
|
|
227
|
-
});
|
|
228
|
-
/** Updates the dns conditional forwarder. Operation */
|
|
229
|
-
await gapi.client.managedidentities.projects.locations.global.domains.reconfigureTrust({
|
|
230
|
-
name: "Test string",
|
|
231
|
-
}, {
|
|
232
|
-
trust: {
|
|
233
|
-
createTime: "Test string",
|
|
234
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
235
|
-
selectiveAuthentication: true,
|
|
236
|
-
state: "Test string",
|
|
237
|
-
stateDescription: "Test string",
|
|
238
|
-
targetDnsIpAddresses: [
|
|
239
|
-
"Test string"
|
|
240
|
-
],
|
|
241
|
-
targetDomainName: "Test string",
|
|
242
|
-
trustDirection: "Test string",
|
|
243
|
-
trustHandshakeSecret: "Test string",
|
|
244
|
-
trustType: "Test string",
|
|
245
|
-
updateTime: "Test string",
|
|
246
|
-
},
|
|
247
|
-
});
|
|
248
|
-
/** Resets managed identities admin password identified by managed_identities_admin_name */
|
|
249
|
-
await gapi.client.managedidentities.projects.locations.global.domains.resetAdminPassword({
|
|
250
|
-
name: "Test string",
|
|
251
|
-
}, {
|
|
252
|
-
});
|
|
253
|
-
/** RestoreDomain restores domain backup mentioned in the RestoreDomainRequest */
|
|
254
|
-
await gapi.client.managedidentities.projects.locations.global.domains.restore({
|
|
255
|
-
name: "Test string",
|
|
256
|
-
}, {
|
|
257
|
-
backupId: "Test string",
|
|
258
|
-
});
|
|
259
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
260
|
-
await gapi.client.managedidentities.projects.locations.global.domains.setIamPolicy({
|
|
261
|
-
resource: "Test string",
|
|
262
|
-
}, {
|
|
263
|
-
policy: {
|
|
264
|
-
bindings: [
|
|
265
|
-
{
|
|
266
|
-
condition: {
|
|
267
|
-
description: "Test string",
|
|
268
|
-
expression: "Test string",
|
|
269
|
-
location: "Test string",
|
|
270
|
-
title: "Test string",
|
|
271
|
-
},
|
|
272
|
-
members: [
|
|
273
|
-
"Test string"
|
|
274
|
-
],
|
|
275
|
-
role: "Test string",
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
etag: "Test string",
|
|
279
|
-
version: 42,
|
|
280
|
-
},
|
|
281
|
-
});
|
|
282
|
-
/**
|
|
283
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
284
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
285
|
-
*/
|
|
286
|
-
await gapi.client.managedidentities.projects.locations.global.domains.testIamPermissions({
|
|
287
|
-
resource: "Test string",
|
|
288
|
-
}, {
|
|
289
|
-
permissions: [
|
|
290
|
-
"Test string"
|
|
291
|
-
],
|
|
292
|
-
});
|
|
293
|
-
/** Patches a single ldaps settings. */
|
|
294
|
-
await gapi.client.managedidentities.projects.locations.global.domains.updateLdapssettings({
|
|
295
|
-
name: "Test string",
|
|
296
|
-
updateMask: "Test string",
|
|
297
|
-
}, {
|
|
298
|
-
certificate: {
|
|
299
|
-
expireTime: "Test string",
|
|
300
|
-
issuingCertificate: undefined,
|
|
301
|
-
subject: "Test string",
|
|
302
|
-
subjectAlternativeName: [
|
|
303
|
-
"Test string"
|
|
304
|
-
],
|
|
305
|
-
thumbprint: "Test string",
|
|
306
|
-
},
|
|
307
|
-
certificatePassword: "Test string",
|
|
308
|
-
certificatePfx: "Test string",
|
|
309
|
-
name: "Test string",
|
|
310
|
-
state: "Test string",
|
|
311
|
-
updateTime: "Test string",
|
|
312
|
-
});
|
|
313
|
-
/** Validate the trust state Operation */
|
|
314
|
-
await gapi.client.managedidentities.projects.locations.global.domains.validateTrust({
|
|
315
|
-
name: "Test string",
|
|
316
|
-
}, {
|
|
317
|
-
trust: {
|
|
318
|
-
createTime: "Test string",
|
|
319
|
-
lastKnownTrustConnectedHeartbeatTime: "Test string",
|
|
320
|
-
selectiveAuthentication: true,
|
|
321
|
-
state: "Test string",
|
|
322
|
-
stateDescription: "Test string",
|
|
323
|
-
targetDnsIpAddresses: [
|
|
324
|
-
"Test string"
|
|
325
|
-
],
|
|
326
|
-
targetDomainName: "Test string",
|
|
327
|
-
trustDirection: "Test string",
|
|
328
|
-
trustHandshakeSecret: "Test string",
|
|
329
|
-
trustType: "Test string",
|
|
330
|
-
updateTime: "Test string",
|
|
331
|
-
},
|
|
332
|
-
});
|
|
333
|
-
/** Creates a Backup for a domain. */
|
|
334
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.create({
|
|
335
|
-
backupId: "Test string",
|
|
336
|
-
parent: "Test string",
|
|
337
|
-
}, {
|
|
338
|
-
createTime: "Test string",
|
|
339
|
-
description: "Test string",
|
|
340
|
-
labels: {
|
|
341
|
-
A: "Test string"
|
|
342
|
-
},
|
|
343
|
-
name: "Test string",
|
|
344
|
-
state: "Test string",
|
|
345
|
-
statusMessage: "Test string",
|
|
346
|
-
type: "Test string",
|
|
347
|
-
updateTime: "Test string",
|
|
348
|
-
});
|
|
349
|
-
/** Deletes identified Backup. */
|
|
350
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.delete({
|
|
351
|
-
name: "Test string",
|
|
352
|
-
});
|
|
353
|
-
/** Gets details of a single Backup. */
|
|
354
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.get({
|
|
355
|
-
name: "Test string",
|
|
356
|
-
});
|
|
357
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
358
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.getIamPolicy({
|
|
359
|
-
"options.requestedPolicyVersion": 42,
|
|
360
|
-
resource: "Test string",
|
|
361
|
-
});
|
|
362
|
-
/** Lists Backup in a given project. */
|
|
363
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.list({
|
|
364
|
-
filter: "Test string",
|
|
365
|
-
orderBy: "Test string",
|
|
366
|
-
pageSize: 42,
|
|
367
|
-
pageToken: "Test string",
|
|
368
|
-
parent: "Test string",
|
|
369
|
-
});
|
|
370
|
-
/** Updates the labels for specified Backup. */
|
|
371
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.patch({
|
|
372
|
-
name: "Test string",
|
|
373
|
-
updateMask: "Test string",
|
|
374
|
-
}, {
|
|
375
|
-
createTime: "Test string",
|
|
376
|
-
description: "Test string",
|
|
377
|
-
labels: {
|
|
378
|
-
A: "Test string"
|
|
379
|
-
},
|
|
380
|
-
name: "Test string",
|
|
381
|
-
state: "Test string",
|
|
382
|
-
statusMessage: "Test string",
|
|
383
|
-
type: "Test string",
|
|
384
|
-
updateTime: "Test string",
|
|
385
|
-
});
|
|
386
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
387
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.setIamPolicy({
|
|
388
|
-
resource: "Test string",
|
|
389
|
-
}, {
|
|
390
|
-
policy: {
|
|
391
|
-
bindings: [
|
|
392
|
-
{
|
|
393
|
-
condition: {
|
|
394
|
-
description: "Test string",
|
|
395
|
-
expression: "Test string",
|
|
396
|
-
location: "Test string",
|
|
397
|
-
title: "Test string",
|
|
398
|
-
},
|
|
399
|
-
members: [
|
|
400
|
-
"Test string"
|
|
401
|
-
],
|
|
402
|
-
role: "Test string",
|
|
403
|
-
}
|
|
404
|
-
],
|
|
405
|
-
etag: "Test string",
|
|
406
|
-
version: 42,
|
|
407
|
-
},
|
|
408
|
-
});
|
|
409
|
-
/**
|
|
410
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
411
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
412
|
-
*/
|
|
413
|
-
await gapi.client.managedidentities.projects.locations.global.domains.backups.testIamPermissions({
|
|
414
|
-
resource: "Test string",
|
|
415
|
-
}, {
|
|
416
|
-
permissions: [
|
|
417
|
-
"Test string"
|
|
418
|
-
],
|
|
419
|
-
});
|
|
420
|
-
/** Gets details of a single sqlIntegration. */
|
|
421
|
-
await gapi.client.managedidentities.projects.locations.global.domains.sqlIntegrations.get({
|
|
422
|
-
name: "Test string",
|
|
423
|
-
});
|
|
424
|
-
/** Lists SQLIntegrations in a given domain. */
|
|
425
|
-
await gapi.client.managedidentities.projects.locations.global.domains.sqlIntegrations.list({
|
|
426
|
-
filter: "Test string",
|
|
427
|
-
orderBy: "Test string",
|
|
428
|
-
pageSize: 42,
|
|
429
|
-
pageToken: "Test string",
|
|
430
|
-
parent: "Test string",
|
|
431
|
-
});
|
|
432
|
-
/**
|
|
433
|
-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
434
|
-
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
435
|
-
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
436
|
-
* 1, corresponding to `Code.CANCELLED`.
|
|
437
|
-
*/
|
|
438
|
-
await gapi.client.managedidentities.projects.locations.global.operations.cancel({
|
|
439
|
-
name: "Test string",
|
|
440
|
-
}, {
|
|
441
|
-
});
|
|
442
|
-
/**
|
|
443
|
-
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
444
|
-
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
445
|
-
*/
|
|
446
|
-
await gapi.client.managedidentities.projects.locations.global.operations.delete({
|
|
447
|
-
name: "Test string",
|
|
448
|
-
});
|
|
449
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
450
|
-
await gapi.client.managedidentities.projects.locations.global.operations.get({
|
|
451
|
-
name: "Test string",
|
|
452
|
-
});
|
|
453
|
-
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
454
|
-
await gapi.client.managedidentities.projects.locations.global.operations.list({
|
|
455
|
-
filter: "Test string",
|
|
456
|
-
name: "Test string",
|
|
457
|
-
pageSize: 42,
|
|
458
|
-
pageToken: "Test string",
|
|
459
|
-
});
|
|
460
|
-
/** Creates a Peering for Managed AD instance. */
|
|
461
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.create({
|
|
462
|
-
parent: "Test string",
|
|
463
|
-
peeringId: "Test string",
|
|
464
|
-
}, {
|
|
465
|
-
authorizedNetwork: "Test string",
|
|
466
|
-
createTime: "Test string",
|
|
467
|
-
domainResource: "Test string",
|
|
468
|
-
labels: {
|
|
469
|
-
A: "Test string"
|
|
470
|
-
},
|
|
471
|
-
name: "Test string",
|
|
472
|
-
state: "Test string",
|
|
473
|
-
statusMessage: "Test string",
|
|
474
|
-
updateTime: "Test string",
|
|
475
|
-
});
|
|
476
|
-
/** Deletes identified Peering. */
|
|
477
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.delete({
|
|
478
|
-
name: "Test string",
|
|
479
|
-
});
|
|
480
|
-
/** Gets details of a single Peering. */
|
|
481
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.get({
|
|
482
|
-
name: "Test string",
|
|
483
|
-
});
|
|
484
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
485
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.getIamPolicy({
|
|
486
|
-
"options.requestedPolicyVersion": 42,
|
|
487
|
-
resource: "Test string",
|
|
488
|
-
});
|
|
489
|
-
/** Lists Peerings in a given project. */
|
|
490
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.list({
|
|
491
|
-
filter: "Test string",
|
|
492
|
-
orderBy: "Test string",
|
|
493
|
-
pageSize: 42,
|
|
494
|
-
pageToken: "Test string",
|
|
495
|
-
parent: "Test string",
|
|
496
|
-
});
|
|
497
|
-
/** Updates the labels for specified Peering. */
|
|
498
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.patch({
|
|
499
|
-
name: "Test string",
|
|
500
|
-
updateMask: "Test string",
|
|
501
|
-
}, {
|
|
502
|
-
authorizedNetwork: "Test string",
|
|
503
|
-
createTime: "Test string",
|
|
504
|
-
domainResource: "Test string",
|
|
505
|
-
labels: {
|
|
506
|
-
A: "Test string"
|
|
507
|
-
},
|
|
508
|
-
name: "Test string",
|
|
509
|
-
state: "Test string",
|
|
510
|
-
statusMessage: "Test string",
|
|
511
|
-
updateTime: "Test string",
|
|
512
|
-
});
|
|
513
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
514
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.setIamPolicy({
|
|
515
|
-
resource: "Test string",
|
|
516
|
-
}, {
|
|
517
|
-
policy: {
|
|
518
|
-
bindings: [
|
|
519
|
-
{
|
|
520
|
-
condition: {
|
|
521
|
-
description: "Test string",
|
|
522
|
-
expression: "Test string",
|
|
523
|
-
location: "Test string",
|
|
524
|
-
title: "Test string",
|
|
525
|
-
},
|
|
526
|
-
members: [
|
|
527
|
-
"Test string"
|
|
528
|
-
],
|
|
529
|
-
role: "Test string",
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
etag: "Test string",
|
|
533
|
-
version: 42,
|
|
534
|
-
},
|
|
535
|
-
});
|
|
536
|
-
/**
|
|
537
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
538
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
539
|
-
*/
|
|
540
|
-
await gapi.client.managedidentities.projects.locations.global.peerings.testIamPermissions({
|
|
541
|
-
resource: "Test string",
|
|
542
|
-
}, {
|
|
543
|
-
permissions: [
|
|
544
|
-
"Test string"
|
|
545
|
-
],
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
});
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|