@maxim_mazurok/gapi.client.iam-v1 0.0.20230608 → 0.0.20230710
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 +230 -4
- package/package.json +1 -1
- package/tests.ts +43 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://iam.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230710
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -184,6 +184,9 @@ declare namespace gapi.client {
|
|
|
184
184
|
/** Required. The client ID. Must match the audience claim of the JWT issued by the identity provider. */
|
|
185
185
|
clientId?:
|
|
186
186
|
string;
|
|
187
|
+
/** The optional client secret. Required to enable Authorization Code flow for web sign-in. */
|
|
188
|
+
clientSecret?:
|
|
189
|
+
GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret;
|
|
187
190
|
/** Required. The OIDC issuer URI. Must be a valid URI using the 'https' scheme. */
|
|
188
191
|
issuerUri?:
|
|
189
192
|
string;
|
|
@@ -191,11 +194,33 @@ declare namespace gapi.client {
|
|
|
191
194
|
webSsoConfig?:
|
|
192
195
|
GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig;
|
|
193
196
|
}
|
|
197
|
+
interface GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret {
|
|
198
|
+
/** The value of the client secret. */
|
|
199
|
+
value?:
|
|
200
|
+
GoogleIamAdminV1WorkforcePoolProviderOidcClientSecretValue;
|
|
201
|
+
}
|
|
202
|
+
interface GoogleIamAdminV1WorkforcePoolProviderOidcClientSecretValue {
|
|
203
|
+
/** Input only. The plain text of the client secret value. For security reasons, this field is only used for input and will never be populated in any response. */
|
|
204
|
+
plainText?:
|
|
205
|
+
string;
|
|
206
|
+
/** Output only. A thumbprint to represent the current client secret value. */
|
|
207
|
+
thumbprint?:
|
|
208
|
+
string;
|
|
209
|
+
}
|
|
194
210
|
interface GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig {
|
|
211
|
+
/**
|
|
212
|
+
* Additional scopes to request for in the OIDC authentication request on top of scopes requested by default. By default, the `openid`, `profile` and `email` scopes that are supported
|
|
213
|
+
* by the identity provider are requested. Each additional scope may be at most 256 characters. A maximum of 10 additional scopes may be configured.
|
|
214
|
+
*/
|
|
215
|
+
additionalScopes?:
|
|
216
|
+
string[];
|
|
195
217
|
/** Required. The behavior for how OIDC Claims are included in the `assertion` object used for attribute mapping and attribute condition. */
|
|
196
218
|
assertionClaimsBehavior?:
|
|
197
219
|
string;
|
|
198
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Required. The Response Type to request for in the OIDC Authorization Request for web sign-in. The `CODE` Response Type is recommended to avoid the Implicit Flow, for security
|
|
222
|
+
* reasons.
|
|
223
|
+
*/
|
|
199
224
|
responseType?:
|
|
200
225
|
string;
|
|
201
226
|
}
|
|
@@ -533,8 +558,9 @@ declare namespace gapi.client {
|
|
|
533
558
|
includedPermissions?:
|
|
534
559
|
string[];
|
|
535
560
|
/**
|
|
536
|
-
* The name of the role. When Role is used in CreateRole
|
|
537
|
-
* path,
|
|
561
|
+
* The name of the role. When `Role` is used in `CreateRole`, the role name must not be set. When `Role` is used in output and other input such as `UpdateRole`, the role name is the
|
|
562
|
+
* complete path. For example, `roles/logging.viewer` for predefined roles, `organizations/{ORGANIZATION_ID}/roles/my-role` for organization-level custom roles, and
|
|
563
|
+
* `projects/{PROJECT_ID}/roles/my-role` for project-level custom roles.
|
|
538
564
|
*/
|
|
539
565
|
name?:
|
|
540
566
|
string;
|
|
@@ -763,6 +789,9 @@ declare namespace gapi.client {
|
|
|
763
789
|
/** A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. */
|
|
764
790
|
displayName?:
|
|
765
791
|
string;
|
|
792
|
+
/** Output only. Time after which the workforce pool will be permanently purged and cannot be recovered. */
|
|
793
|
+
expireTime?:
|
|
794
|
+
string;
|
|
766
795
|
/** Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}` */
|
|
767
796
|
name?:
|
|
768
797
|
string;
|
|
@@ -822,6 +851,9 @@ declare namespace gapi.client {
|
|
|
822
851
|
/** A user-specified display name for the provider. Cannot exceed 32 characters. */
|
|
823
852
|
displayName?:
|
|
824
853
|
string;
|
|
854
|
+
/** Output only. Time after which the workload pool provider will be permanently purged and cannot be recovered. */
|
|
855
|
+
expireTime?:
|
|
856
|
+
string;
|
|
825
857
|
/** Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}` */
|
|
826
858
|
name?:
|
|
827
859
|
string;
|
|
@@ -868,6 +900,9 @@ declare namespace gapi.client {
|
|
|
868
900
|
/** A display name for the pool. Cannot exceed 32 characters. */
|
|
869
901
|
displayName?:
|
|
870
902
|
string;
|
|
903
|
+
/** Output only. Time after which the workload identity pool will be permanently purged and cannot be recovered. */
|
|
904
|
+
expireTime?:
|
|
905
|
+
string;
|
|
871
906
|
/** Output only. The resource name of the pool. */
|
|
872
907
|
name?:
|
|
873
908
|
string;
|
|
@@ -922,6 +957,9 @@ declare namespace gapi.client {
|
|
|
922
957
|
/** A display name for the provider. Cannot exceed 32 characters. */
|
|
923
958
|
displayName?:
|
|
924
959
|
string;
|
|
960
|
+
/** Output only. Time after which the workload identity pool provider will be permanently purged and cannot be recovered. */
|
|
961
|
+
expireTime?:
|
|
962
|
+
string;
|
|
925
963
|
/** Output only. The resource name of the provider. */
|
|
926
964
|
name?:
|
|
927
965
|
string;
|
|
@@ -3286,6 +3324,192 @@ declare namespace gapi.client {
|
|
|
3286
3324
|
string;
|
|
3287
3325
|
}): Request<Operation>;
|
|
3288
3326
|
}
|
|
3327
|
+
interface WorkloadSourcesResource {
|
|
3328
|
+
operations:
|
|
3329
|
+
OperationsResource;
|
|
3330
|
+
}
|
|
3331
|
+
interface ManagedIdentitiesResource {
|
|
3332
|
+
operations:
|
|
3333
|
+
OperationsResource;
|
|
3334
|
+
workloadSources:
|
|
3335
|
+
WorkloadSourcesResource;
|
|
3336
|
+
}
|
|
3337
|
+
interface OperationsResource {
|
|
3338
|
+
/** 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. */
|
|
3339
|
+
get(request?: {
|
|
3340
|
+
/** V1 error format. */
|
|
3341
|
+
"$.xgafv"?:
|
|
3342
|
+
string;
|
|
3343
|
+
/** OAuth access token. */
|
|
3344
|
+
access_token?:
|
|
3345
|
+
string;
|
|
3346
|
+
/** Data format for response. */
|
|
3347
|
+
alt?:
|
|
3348
|
+
string;
|
|
3349
|
+
/** JSONP */
|
|
3350
|
+
callback?:
|
|
3351
|
+
string;
|
|
3352
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3353
|
+
fields?:
|
|
3354
|
+
string;
|
|
3355
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3356
|
+
key?:
|
|
3357
|
+
string;
|
|
3358
|
+
/** The name of the operation resource. */
|
|
3359
|
+
name:
|
|
3360
|
+
string;
|
|
3361
|
+
/** OAuth 2.0 token for the current user. */
|
|
3362
|
+
oauth_token?:
|
|
3363
|
+
string;
|
|
3364
|
+
/** Returns response with indentations and line breaks. */
|
|
3365
|
+
prettyPrint?:
|
|
3366
|
+
boolean;
|
|
3367
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3368
|
+
quotaUser?:
|
|
3369
|
+
string;
|
|
3370
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3371
|
+
upload_protocol?:
|
|
3372
|
+
string;
|
|
3373
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3374
|
+
uploadType?:
|
|
3375
|
+
string;
|
|
3376
|
+
}): Request<Operation>;
|
|
3377
|
+
}
|
|
3378
|
+
interface OperationsResource {
|
|
3379
|
+
/** 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. */
|
|
3380
|
+
get(request?: {
|
|
3381
|
+
/** V1 error format. */
|
|
3382
|
+
"$.xgafv"?:
|
|
3383
|
+
string;
|
|
3384
|
+
/** OAuth access token. */
|
|
3385
|
+
access_token?:
|
|
3386
|
+
string;
|
|
3387
|
+
/** Data format for response. */
|
|
3388
|
+
alt?:
|
|
3389
|
+
string;
|
|
3390
|
+
/** JSONP */
|
|
3391
|
+
callback?:
|
|
3392
|
+
string;
|
|
3393
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3394
|
+
fields?:
|
|
3395
|
+
string;
|
|
3396
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3397
|
+
key?:
|
|
3398
|
+
string;
|
|
3399
|
+
/** The name of the operation resource. */
|
|
3400
|
+
name:
|
|
3401
|
+
string;
|
|
3402
|
+
/** OAuth 2.0 token for the current user. */
|
|
3403
|
+
oauth_token?:
|
|
3404
|
+
string;
|
|
3405
|
+
/** Returns response with indentations and line breaks. */
|
|
3406
|
+
prettyPrint?:
|
|
3407
|
+
boolean;
|
|
3408
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3409
|
+
quotaUser?:
|
|
3410
|
+
string;
|
|
3411
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3412
|
+
upload_protocol?:
|
|
3413
|
+
string;
|
|
3414
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3415
|
+
uploadType?:
|
|
3416
|
+
string;
|
|
3417
|
+
}): Request<Operation>;
|
|
3418
|
+
}
|
|
3419
|
+
interface WorkloadSourcesResource {
|
|
3420
|
+
operations:
|
|
3421
|
+
OperationsResource;
|
|
3422
|
+
}
|
|
3423
|
+
interface NamespacesResource {
|
|
3424
|
+
managedIdentities:
|
|
3425
|
+
ManagedIdentitiesResource;
|
|
3426
|
+
operations:
|
|
3427
|
+
OperationsResource;
|
|
3428
|
+
workloadSources:
|
|
3429
|
+
WorkloadSourcesResource;
|
|
3430
|
+
}
|
|
3431
|
+
interface OperationsResource {
|
|
3432
|
+
/** 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. */
|
|
3433
|
+
get(request?: {
|
|
3434
|
+
/** V1 error format. */
|
|
3435
|
+
"$.xgafv"?:
|
|
3436
|
+
string;
|
|
3437
|
+
/** OAuth access token. */
|
|
3438
|
+
access_token?:
|
|
3439
|
+
string;
|
|
3440
|
+
/** Data format for response. */
|
|
3441
|
+
alt?:
|
|
3442
|
+
string;
|
|
3443
|
+
/** JSONP */
|
|
3444
|
+
callback?:
|
|
3445
|
+
string;
|
|
3446
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3447
|
+
fields?:
|
|
3448
|
+
string;
|
|
3449
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3450
|
+
key?:
|
|
3451
|
+
string;
|
|
3452
|
+
/** The name of the operation resource. */
|
|
3453
|
+
name:
|
|
3454
|
+
string;
|
|
3455
|
+
/** OAuth 2.0 token for the current user. */
|
|
3456
|
+
oauth_token?:
|
|
3457
|
+
string;
|
|
3458
|
+
/** Returns response with indentations and line breaks. */
|
|
3459
|
+
prettyPrint?:
|
|
3460
|
+
boolean;
|
|
3461
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3462
|
+
quotaUser?:
|
|
3463
|
+
string;
|
|
3464
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3465
|
+
upload_protocol?:
|
|
3466
|
+
string;
|
|
3467
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3468
|
+
uploadType?:
|
|
3469
|
+
string;
|
|
3470
|
+
}): Request<Operation>;
|
|
3471
|
+
}
|
|
3472
|
+
interface OperationsResource {
|
|
3473
|
+
/** 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. */
|
|
3474
|
+
get(request?: {
|
|
3475
|
+
/** V1 error format. */
|
|
3476
|
+
"$.xgafv"?:
|
|
3477
|
+
string;
|
|
3478
|
+
/** OAuth access token. */
|
|
3479
|
+
access_token?:
|
|
3480
|
+
string;
|
|
3481
|
+
/** Data format for response. */
|
|
3482
|
+
alt?:
|
|
3483
|
+
string;
|
|
3484
|
+
/** JSONP */
|
|
3485
|
+
callback?:
|
|
3486
|
+
string;
|
|
3487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3488
|
+
fields?:
|
|
3489
|
+
string;
|
|
3490
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3491
|
+
key?:
|
|
3492
|
+
string;
|
|
3493
|
+
/** The name of the operation resource. */
|
|
3494
|
+
name:
|
|
3495
|
+
string;
|
|
3496
|
+
/** OAuth 2.0 token for the current user. */
|
|
3497
|
+
oauth_token?:
|
|
3498
|
+
string;
|
|
3499
|
+
/** Returns response with indentations and line breaks. */
|
|
3500
|
+
prettyPrint?:
|
|
3501
|
+
boolean;
|
|
3502
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3503
|
+
quotaUser?:
|
|
3504
|
+
string;
|
|
3505
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3506
|
+
upload_protocol?:
|
|
3507
|
+
string;
|
|
3508
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3509
|
+
uploadType?:
|
|
3510
|
+
string;
|
|
3511
|
+
}): Request<Operation>;
|
|
3512
|
+
}
|
|
3289
3513
|
interface KeysResource {
|
|
3290
3514
|
/** Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider. */
|
|
3291
3515
|
create(request: {
|
|
@@ -4413,6 +4637,8 @@ declare namespace gapi.client {
|
|
|
4413
4637
|
string;
|
|
4414
4638
|
},
|
|
4415
4639
|
body: UndeleteWorkloadIdentityPoolRequest): Request<Operation>;
|
|
4640
|
+
namespaces:
|
|
4641
|
+
NamespacesResource;
|
|
4416
4642
|
operations:
|
|
4417
4643
|
OperationsResource;
|
|
4418
4644
|
providers:
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230710
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -59,6 +59,7 @@ gapi.load('client', async () => {
|
|
|
59
59
|
description: "Test string",
|
|
60
60
|
disabled: true,
|
|
61
61
|
displayName: "Test string",
|
|
62
|
+
expireTime: "Test string",
|
|
62
63
|
name: "Test string",
|
|
63
64
|
parent: "Test string",
|
|
64
65
|
sessionDuration: "Test string",
|
|
@@ -100,6 +101,7 @@ gapi.load('client', async () => {
|
|
|
100
101
|
description: "Test string",
|
|
101
102
|
disabled: true,
|
|
102
103
|
displayName: "Test string",
|
|
104
|
+
expireTime: "Test string",
|
|
103
105
|
name: "Test string",
|
|
104
106
|
parent: "Test string",
|
|
105
107
|
sessionDuration: "Test string",
|
|
@@ -171,11 +173,21 @@ gapi.load('client', async () => {
|
|
|
171
173
|
description: "Test string",
|
|
172
174
|
disabled: true,
|
|
173
175
|
displayName: "Test string",
|
|
176
|
+
expireTime: "Test string",
|
|
174
177
|
name: "Test string",
|
|
175
178
|
oidc: {
|
|
176
179
|
clientId: "Test string",
|
|
180
|
+
clientSecret: {
|
|
181
|
+
value: {
|
|
182
|
+
plainText: "Test string",
|
|
183
|
+
thumbprint: "Test string",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
177
186
|
issuerUri: "Test string",
|
|
178
187
|
webSsoConfig: {
|
|
188
|
+
additionalScopes: [
|
|
189
|
+
"Test string"
|
|
190
|
+
],
|
|
179
191
|
assertionClaimsBehavior: "Test string",
|
|
180
192
|
responseType: "Test string",
|
|
181
193
|
},
|
|
@@ -215,11 +227,21 @@ gapi.load('client', async () => {
|
|
|
215
227
|
description: "Test string",
|
|
216
228
|
disabled: true,
|
|
217
229
|
displayName: "Test string",
|
|
230
|
+
expireTime: "Test string",
|
|
218
231
|
name: "Test string",
|
|
219
232
|
oidc: {
|
|
220
233
|
clientId: "Test string",
|
|
234
|
+
clientSecret: {
|
|
235
|
+
value: {
|
|
236
|
+
plainText: "Test string",
|
|
237
|
+
thumbprint: "Test string",
|
|
238
|
+
},
|
|
239
|
+
},
|
|
221
240
|
issuerUri: "Test string",
|
|
222
241
|
webSsoConfig: {
|
|
242
|
+
additionalScopes: [
|
|
243
|
+
"Test string"
|
|
244
|
+
],
|
|
223
245
|
assertionClaimsBehavior: "Test string",
|
|
224
246
|
responseType: "Test string",
|
|
225
247
|
},
|
|
@@ -372,6 +394,7 @@ gapi.load('client', async () => {
|
|
|
372
394
|
description: "Test string",
|
|
373
395
|
disabled: true,
|
|
374
396
|
displayName: "Test string",
|
|
397
|
+
expireTime: "Test string",
|
|
375
398
|
name: "Test string",
|
|
376
399
|
state: "Test string",
|
|
377
400
|
});
|
|
@@ -402,6 +425,7 @@ gapi.load('client', async () => {
|
|
|
402
425
|
description: "Test string",
|
|
403
426
|
disabled: true,
|
|
404
427
|
displayName: "Test string",
|
|
428
|
+
expireTime: "Test string",
|
|
405
429
|
name: "Test string",
|
|
406
430
|
state: "Test string",
|
|
407
431
|
});
|
|
@@ -411,6 +435,22 @@ gapi.load('client', async () => {
|
|
|
411
435
|
}, {
|
|
412
436
|
});
|
|
413
437
|
/** 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. */
|
|
438
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.namespaces.managedIdentities.operations.get({
|
|
439
|
+
name: "Test string",
|
|
440
|
+
});
|
|
441
|
+
/** 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. */
|
|
442
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.namespaces.managedIdentities.workloadSources.operations.get({
|
|
443
|
+
name: "Test string",
|
|
444
|
+
});
|
|
445
|
+
/** 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. */
|
|
446
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.namespaces.operations.get({
|
|
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.iam.projects.locations.workloadIdentityPools.namespaces.workloadSources.operations.get({
|
|
451
|
+
name: "Test string",
|
|
452
|
+
});
|
|
453
|
+
/** 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. */
|
|
414
454
|
await gapi.client.iam.projects.locations.workloadIdentityPools.operations.get({
|
|
415
455
|
name: "Test string",
|
|
416
456
|
});
|
|
@@ -429,6 +469,7 @@ gapi.load('client', async () => {
|
|
|
429
469
|
description: "Test string",
|
|
430
470
|
disabled: true,
|
|
431
471
|
displayName: "Test string",
|
|
472
|
+
expireTime: "Test string",
|
|
432
473
|
name: "Test string",
|
|
433
474
|
oidc: {
|
|
434
475
|
allowedAudiences: [
|
|
@@ -475,6 +516,7 @@ gapi.load('client', async () => {
|
|
|
475
516
|
description: "Test string",
|
|
476
517
|
disabled: true,
|
|
477
518
|
displayName: "Test string",
|
|
519
|
+
expireTime: "Test string",
|
|
478
520
|
name: "Test string",
|
|
479
521
|
oidc: {
|
|
480
522
|
allowedAudiences: [
|