@maxim_mazurok/gapi.client.iam-v1 0.0.20230601 → 0.0.20230622

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.
Files changed (3) hide show
  1. package/index.d.ts +217 -3
  2. package/package.json +1 -1
  3. package/tests.ts +37 -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: 20230601
12
+ // Revision: 20230622
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,7 +194,26 @@ 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;
@@ -533,8 +555,9 @@ declare namespace gapi.client {
533
555
  includedPermissions?:
534
556
  string[];
535
557
  /**
536
- * 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 complete
537
- * path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
558
+ * 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
559
+ * complete path. For example, `roles/logging.viewer` for predefined roles, `organizations/{ORGANIZATION_ID}/roles/my-role` for organization-level custom roles, and
560
+ * `projects/{PROJECT_ID}/roles/my-role` for project-level custom roles.
538
561
  */
539
562
  name?:
540
563
  string;
@@ -868,6 +891,9 @@ declare namespace gapi.client {
868
891
  /** A display name for the pool. Cannot exceed 32 characters. */
869
892
  displayName?:
870
893
  string;
894
+ /** Immutable. The identity mode of the pool. */
895
+ identityMode?:
896
+ string;
871
897
  /** Output only. The resource name of the pool. */
872
898
  name?:
873
899
  string;
@@ -3286,6 +3312,192 @@ declare namespace gapi.client {
3286
3312
  string;
3287
3313
  }): Request<Operation>;
3288
3314
  }
3315
+ interface WorkloadSourcesResource {
3316
+ operations:
3317
+ OperationsResource;
3318
+ }
3319
+ interface ManagedIdentitiesResource {
3320
+ operations:
3321
+ OperationsResource;
3322
+ workloadSources:
3323
+ WorkloadSourcesResource;
3324
+ }
3325
+ interface OperationsResource {
3326
+ /** 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. */
3327
+ get(request?: {
3328
+ /** V1 error format. */
3329
+ "$.xgafv"?:
3330
+ string;
3331
+ /** OAuth access token. */
3332
+ access_token?:
3333
+ string;
3334
+ /** Data format for response. */
3335
+ alt?:
3336
+ string;
3337
+ /** JSONP */
3338
+ callback?:
3339
+ string;
3340
+ /** Selector specifying which fields to include in a partial response. */
3341
+ fields?:
3342
+ string;
3343
+ /** 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. */
3344
+ key?:
3345
+ string;
3346
+ /** The name of the operation resource. */
3347
+ name:
3348
+ string;
3349
+ /** OAuth 2.0 token for the current user. */
3350
+ oauth_token?:
3351
+ string;
3352
+ /** Returns response with indentations and line breaks. */
3353
+ prettyPrint?:
3354
+ boolean;
3355
+ /** 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. */
3356
+ quotaUser?:
3357
+ string;
3358
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3359
+ upload_protocol?:
3360
+ string;
3361
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3362
+ uploadType?:
3363
+ string;
3364
+ }): Request<Operation>;
3365
+ }
3366
+ interface OperationsResource {
3367
+ /** 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. */
3368
+ get(request?: {
3369
+ /** V1 error format. */
3370
+ "$.xgafv"?:
3371
+ string;
3372
+ /** OAuth access token. */
3373
+ access_token?:
3374
+ string;
3375
+ /** Data format for response. */
3376
+ alt?:
3377
+ string;
3378
+ /** JSONP */
3379
+ callback?:
3380
+ string;
3381
+ /** Selector specifying which fields to include in a partial response. */
3382
+ fields?:
3383
+ string;
3384
+ /** 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. */
3385
+ key?:
3386
+ string;
3387
+ /** The name of the operation resource. */
3388
+ name:
3389
+ string;
3390
+ /** OAuth 2.0 token for the current user. */
3391
+ oauth_token?:
3392
+ string;
3393
+ /** Returns response with indentations and line breaks. */
3394
+ prettyPrint?:
3395
+ boolean;
3396
+ /** 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. */
3397
+ quotaUser?:
3398
+ string;
3399
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3400
+ upload_protocol?:
3401
+ string;
3402
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3403
+ uploadType?:
3404
+ string;
3405
+ }): Request<Operation>;
3406
+ }
3407
+ interface WorkloadSourcesResource {
3408
+ operations:
3409
+ OperationsResource;
3410
+ }
3411
+ interface NamespacesResource {
3412
+ managedIdentities:
3413
+ ManagedIdentitiesResource;
3414
+ operations:
3415
+ OperationsResource;
3416
+ workloadSources:
3417
+ WorkloadSourcesResource;
3418
+ }
3419
+ interface OperationsResource {
3420
+ /** 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. */
3421
+ get(request?: {
3422
+ /** V1 error format. */
3423
+ "$.xgafv"?:
3424
+ string;
3425
+ /** OAuth access token. */
3426
+ access_token?:
3427
+ string;
3428
+ /** Data format for response. */
3429
+ alt?:
3430
+ string;
3431
+ /** JSONP */
3432
+ callback?:
3433
+ string;
3434
+ /** Selector specifying which fields to include in a partial response. */
3435
+ fields?:
3436
+ string;
3437
+ /** 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. */
3438
+ key?:
3439
+ string;
3440
+ /** The name of the operation resource. */
3441
+ name:
3442
+ string;
3443
+ /** OAuth 2.0 token for the current user. */
3444
+ oauth_token?:
3445
+ string;
3446
+ /** Returns response with indentations and line breaks. */
3447
+ prettyPrint?:
3448
+ boolean;
3449
+ /** 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. */
3450
+ quotaUser?:
3451
+ string;
3452
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3453
+ upload_protocol?:
3454
+ string;
3455
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3456
+ uploadType?:
3457
+ string;
3458
+ }): Request<Operation>;
3459
+ }
3460
+ interface OperationsResource {
3461
+ /** 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. */
3462
+ get(request?: {
3463
+ /** V1 error format. */
3464
+ "$.xgafv"?:
3465
+ string;
3466
+ /** OAuth access token. */
3467
+ access_token?:
3468
+ string;
3469
+ /** Data format for response. */
3470
+ alt?:
3471
+ string;
3472
+ /** JSONP */
3473
+ callback?:
3474
+ string;
3475
+ /** Selector specifying which fields to include in a partial response. */
3476
+ fields?:
3477
+ string;
3478
+ /** 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. */
3479
+ key?:
3480
+ string;
3481
+ /** The name of the operation resource. */
3482
+ name:
3483
+ string;
3484
+ /** OAuth 2.0 token for the current user. */
3485
+ oauth_token?:
3486
+ string;
3487
+ /** Returns response with indentations and line breaks. */
3488
+ prettyPrint?:
3489
+ boolean;
3490
+ /** 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. */
3491
+ quotaUser?:
3492
+ string;
3493
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3494
+ upload_protocol?:
3495
+ string;
3496
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3497
+ uploadType?:
3498
+ string;
3499
+ }): Request<Operation>;
3500
+ }
3289
3501
  interface KeysResource {
3290
3502
  /** Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider. */
3291
3503
  create(request: {
@@ -4413,6 +4625,8 @@ declare namespace gapi.client {
4413
4625
  string;
4414
4626
  },
4415
4627
  body: UndeleteWorkloadIdentityPoolRequest): Request<Operation>;
4628
+ namespaces:
4629
+ NamespacesResource;
4416
4630
  operations:
4417
4631
  OperationsResource;
4418
4632
  providers:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.iam-v1",
3
- "version": "0.0.20230601",
3
+ "version": "0.0.20230622",
4
4
  "description": "TypeScript typings for Identity and Access Management (IAM) API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230601
6
+ // Revision: 20230622
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -174,8 +174,17 @@ gapi.load('client', async () => {
174
174
  name: "Test string",
175
175
  oidc: {
176
176
  clientId: "Test string",
177
+ clientSecret: {
178
+ value: {
179
+ plainText: "Test string",
180
+ thumbprint: "Test string",
181
+ },
182
+ },
177
183
  issuerUri: "Test string",
178
184
  webSsoConfig: {
185
+ additionalScopes: [
186
+ "Test string"
187
+ ],
179
188
  assertionClaimsBehavior: "Test string",
180
189
  responseType: "Test string",
181
190
  },
@@ -218,8 +227,17 @@ gapi.load('client', async () => {
218
227
  name: "Test string",
219
228
  oidc: {
220
229
  clientId: "Test string",
230
+ clientSecret: {
231
+ value: {
232
+ plainText: "Test string",
233
+ thumbprint: "Test string",
234
+ },
235
+ },
221
236
  issuerUri: "Test string",
222
237
  webSsoConfig: {
238
+ additionalScopes: [
239
+ "Test string"
240
+ ],
223
241
  assertionClaimsBehavior: "Test string",
224
242
  responseType: "Test string",
225
243
  },
@@ -372,6 +390,7 @@ gapi.load('client', async () => {
372
390
  description: "Test string",
373
391
  disabled: true,
374
392
  displayName: "Test string",
393
+ identityMode: "Test string",
375
394
  name: "Test string",
376
395
  state: "Test string",
377
396
  });
@@ -402,6 +421,7 @@ gapi.load('client', async () => {
402
421
  description: "Test string",
403
422
  disabled: true,
404
423
  displayName: "Test string",
424
+ identityMode: "Test string",
405
425
  name: "Test string",
406
426
  state: "Test string",
407
427
  });
@@ -411,6 +431,22 @@ gapi.load('client', async () => {
411
431
  }, {
412
432
  });
413
433
  /** 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. */
434
+ await gapi.client.iam.projects.locations.workloadIdentityPools.namespaces.managedIdentities.operations.get({
435
+ name: "Test string",
436
+ });
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.workloadSources.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.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.workloadSources.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. */
414
450
  await gapi.client.iam.projects.locations.workloadIdentityPools.operations.get({
415
451
  name: "Test string",
416
452
  });