@maxim_mazurok/gapi.client.iam-v1 0.0.20241104 → 0.0.20241114
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 +17 -17
- package/package.json +1 -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: 20241114
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -295,7 +295,7 @@ declare namespace gapi.client {
|
|
|
295
295
|
displayName?: string;
|
|
296
296
|
/** Output only. Time after which the OauthClient will be permanently purged and cannot be recovered. */
|
|
297
297
|
expireTime?: string;
|
|
298
|
-
/** Immutable. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
298
|
+
/** Immutable. Identifier. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
299
299
|
name?: string;
|
|
300
300
|
/** Output only. The state of the OauthClient. */
|
|
301
301
|
state?: string;
|
|
@@ -307,11 +307,11 @@ declare namespace gapi.client {
|
|
|
307
307
|
disabled?: boolean;
|
|
308
308
|
/** Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters. */
|
|
309
309
|
displayName?: string;
|
|
310
|
-
/** Immutable. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
310
|
+
/** Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
311
311
|
name?: string;
|
|
312
312
|
}
|
|
313
313
|
interface Oidc {
|
|
314
|
-
/** Acceptable values for the `aud` field (audience) in the OIDC token. Token exchange requests are rejected if the token audience does not match one of the configured values. Each audience may be at most 256 characters. A maximum of 10 audiences may be configured. If this list is empty, the OIDC token audience must be equal to the full canonical resource name of the WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example: ``` //iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ ``` */
|
|
314
|
+
/** Optional. Acceptable values for the `aud` field (audience) in the OIDC token. Token exchange requests are rejected if the token audience does not match one of the configured values. Each audience may be at most 256 characters. A maximum of 10 audiences may be configured. If this list is empty, the OIDC token audience must be equal to the full canonical resource name of the WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example: ``` //iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ ``` */
|
|
315
315
|
allowedAudiences?: string[];
|
|
316
316
|
/** Required. The OIDC issuer URL. Must be an HTTPS endpoint. */
|
|
317
317
|
issuerUri?: string;
|
|
@@ -333,7 +333,7 @@ declare namespace gapi.client {
|
|
|
333
333
|
interface OperationMetadata {
|
|
334
334
|
/** Output only. API version used to start the operation. */
|
|
335
335
|
apiVersion?: string;
|
|
336
|
-
/** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1
|
|
336
|
+
/** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
337
337
|
cancelRequested?: boolean;
|
|
338
338
|
/** Output only. The time the operation was created. */
|
|
339
339
|
createTime?: string;
|
|
@@ -620,11 +620,11 @@ declare namespace gapi.client {
|
|
|
620
620
|
use?: string;
|
|
621
621
|
}
|
|
622
622
|
interface WorkloadIdentityPool {
|
|
623
|
-
/** A description of the pool. Cannot exceed 256 characters. */
|
|
623
|
+
/** Optional. A description of the pool. Cannot exceed 256 characters. */
|
|
624
624
|
description?: string;
|
|
625
|
-
/** Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. */
|
|
625
|
+
/** Optional. Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. */
|
|
626
626
|
disabled?: boolean;
|
|
627
|
-
/** A display name for the pool. Cannot exceed 32 characters. */
|
|
627
|
+
/** Optional. A display name for the pool. Cannot exceed 32 characters. */
|
|
628
628
|
displayName?: string;
|
|
629
629
|
/** Output only. Time after which the workload identity pool will be permanently purged and cannot be recovered. */
|
|
630
630
|
expireTime?: string;
|
|
@@ -635,17 +635,17 @@ declare namespace gapi.client {
|
|
|
635
635
|
}
|
|
636
636
|
interface WorkloadIdentityPoolOperationMetadata {}
|
|
637
637
|
interface WorkloadIdentityPoolProvider {
|
|
638
|
-
/** [A Common Expression Language](https://opensource.google/projects/cel) expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted. The expression must output a boolean representing whether to allow the federation. The following keywords may be referenced in the expressions: * `assertion`: JSON representing the authentication credential issued by the provider. * `google`: The Google attributes mapped from the assertion in the `attribute_mappings`. * `attribute`: The custom attributes mapped from the assertion in the `attribute_mappings`. The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credential are accepted. The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`: ``` "'admins' in google.groups" ``` */
|
|
638
|
+
/** Optional. [A Common Expression Language](https://opensource.google/projects/cel) expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted. The expression must output a boolean representing whether to allow the federation. The following keywords may be referenced in the expressions: * `assertion`: JSON representing the authentication credential issued by the provider. * `google`: The Google attributes mapped from the assertion in the `attribute_mappings`. * `attribute`: The custom attributes mapped from the assertion in the `attribute_mappings`. The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credential are accepted. The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`: ``` "'admins' in google.groups" ``` */
|
|
639
639
|
attributeCondition?: string;
|
|
640
|
-
/** Maps attributes from authentication credentials issued by an external identity provider to Google Cloud attributes, such as `subject` and `segment`. Each key must be a string specifying the Google Cloud IAM attribute to map to. The following keys are supported: * `google.subject`: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. * `google.groups`: Groups the external identity belongs to. You can grant groups access to resources using an IAM `principalSet` binding; access applies to all members of the group. You can also provide custom attributes by specifying `attribute.{custom_attribute}`, where `{custom_attribute}` is the name of the custom attribute to be mapped. You can define a maximum of 50 custom attributes. The maximum length of a mapped attribute key is 100 characters, and the key may only contain the characters [a-z0-9_]. You can reference these attributes in IAM policies to define fine-grained access for a workload to Google Cloud resources. For example: * `google.subject`: `principal://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/subject/{value}` * `google.groups`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/group/{value}` * `attribute.{custom_attribute}`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value}` Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) function that maps an identity provider credential to the normalized attribute specified by the corresponding map key. You can use the `assertion` keyword in the expression to access a JSON representation of the authentication credential issued by the provider. The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 8KB. For AWS providers, if no attribute mapping is defined, the following default mapping applies: ``` { "google.subject":"assertion.arn", "attribute.aws_role": "assertion.arn.contains('assumed-role')" " ? assertion.arn.extract('{account_arn}assumed-role/')" " + 'assumed-role/'" " + assertion.arn.extract('assumed-role/{role_name}/')" " : assertion.arn", } ``` If any custom attribute mappings are defined, they must include a mapping to the `google.subject` attribute. For OIDC providers, you must supply a custom mapping, which must include the `google.subject` attribute. For example, the following maps the `sub` claim of the incoming credential to the `subject` attribute on a Google token: ``` {"google.subject": "assertion.sub"} ``` */
|
|
640
|
+
/** Optional. Maps attributes from authentication credentials issued by an external identity provider to Google Cloud attributes, such as `subject` and `segment`. Each key must be a string specifying the Google Cloud IAM attribute to map to. The following keys are supported: * `google.subject`: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. * `google.groups`: Groups the external identity belongs to. You can grant groups access to resources using an IAM `principalSet` binding; access applies to all members of the group. You can also provide custom attributes by specifying `attribute.{custom_attribute}`, where `{custom_attribute}` is the name of the custom attribute to be mapped. You can define a maximum of 50 custom attributes. The maximum length of a mapped attribute key is 100 characters, and the key may only contain the characters [a-z0-9_]. You can reference these attributes in IAM policies to define fine-grained access for a workload to Google Cloud resources. For example: * `google.subject`: `principal://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/subject/{value}` * `google.groups`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/group/{value}` * `attribute.{custom_attribute}`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value}` Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) function that maps an identity provider credential to the normalized attribute specified by the corresponding map key. You can use the `assertion` keyword in the expression to access a JSON representation of the authentication credential issued by the provider. The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 8KB. For AWS providers, if no attribute mapping is defined, the following default mapping applies: ``` { "google.subject":"assertion.arn", "attribute.aws_role": "assertion.arn.contains('assumed-role')" " ? assertion.arn.extract('{account_arn}assumed-role/')" " + 'assumed-role/'" " + assertion.arn.extract('assumed-role/{role_name}/')" " : assertion.arn", } ``` If any custom attribute mappings are defined, they must include a mapping to the `google.subject` attribute. For OIDC providers, you must supply a custom mapping, which must include the `google.subject` attribute. For example, the following maps the `sub` claim of the incoming credential to the `subject` attribute on a Google token: ``` {"google.subject": "assertion.sub"} ``` */
|
|
641
641
|
attributeMapping?: {[P in string]: string};
|
|
642
642
|
/** An Amazon Web Services identity provider. */
|
|
643
643
|
aws?: Aws;
|
|
644
|
-
/** A description for the provider. Cannot exceed 256 characters. */
|
|
644
|
+
/** Optional. A description for the provider. Cannot exceed 256 characters. */
|
|
645
645
|
description?: string;
|
|
646
|
-
/** Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access. */
|
|
646
|
+
/** Optional. Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access. */
|
|
647
647
|
disabled?: boolean;
|
|
648
|
-
/** A display name for the provider. Cannot exceed 32 characters. */
|
|
648
|
+
/** Optional. A display name for the provider. Cannot exceed 32 characters. */
|
|
649
649
|
displayName?: string;
|
|
650
650
|
/** Output only. Time after which the workload identity pool provider will be permanently purged and cannot be recovered. */
|
|
651
651
|
expireTime?: string;
|
|
@@ -2324,7 +2324,7 @@ declare namespace gapi.client {
|
|
|
2324
2324
|
fields?: string;
|
|
2325
2325
|
/** 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. */
|
|
2326
2326
|
key?: string;
|
|
2327
|
-
/** Immutable. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
2327
|
+
/** Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
2328
2328
|
name: string;
|
|
2329
2329
|
/** OAuth 2.0 token for the current user. */
|
|
2330
2330
|
oauth_token?: string;
|
|
@@ -2355,7 +2355,7 @@ declare namespace gapi.client {
|
|
|
2355
2355
|
fields?: string;
|
|
2356
2356
|
/** 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. */
|
|
2357
2357
|
key?: string;
|
|
2358
|
-
/** Immutable. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
2358
|
+
/** Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` */
|
|
2359
2359
|
name: string;
|
|
2360
2360
|
/** OAuth 2.0 token for the current user. */
|
|
2361
2361
|
oauth_token?: string;
|
|
@@ -2537,7 +2537,7 @@ declare namespace gapi.client {
|
|
|
2537
2537
|
fields?: string;
|
|
2538
2538
|
/** 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. */
|
|
2539
2539
|
key?: string;
|
|
2540
|
-
/** Immutable. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
2540
|
+
/** Immutable. Identifier. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
2541
2541
|
name: string;
|
|
2542
2542
|
/** OAuth 2.0 token for the current user. */
|
|
2543
2543
|
oauth_token?: string;
|
|
@@ -2568,7 +2568,7 @@ declare namespace gapi.client {
|
|
|
2568
2568
|
fields?: string;
|
|
2569
2569
|
/** 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. */
|
|
2570
2570
|
key?: string;
|
|
2571
|
-
/** Immutable. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
2571
|
+
/** Immutable. Identifier. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. */
|
|
2572
2572
|
name: string;
|
|
2573
2573
|
/** OAuth 2.0 token for the current user. */
|
|
2574
2574
|
oauth_token?: string;
|