Skip to content

Commit 7f75e0c

Browse files
feat: Automated regeneration of IAM client (googleapis#12600)
Auto-created at 2024-11-21 13:22:00 +0000 using the toys pull request generator.
1 parent af2c973 commit 7f75e0c

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

clients/iam/lib/google_api/iam/v1/api/projects.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ defmodule GoogleApi.IAM.V1.Api.Projects do
321321
## Parameters
322322
323323
* `connection` (*type:* `GoogleApi.IAM.V1.Connection.t`) - Connection to server
324-
* `name` (*type:* `String.t`) - Immutable. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`.
324+
* `name` (*type:* `String.t`) - Immutable. Identifier. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`.
325325
* `optional_params` (*type:* `keyword()`) - Optional parameters
326326
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
327327
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -753,7 +753,7 @@ defmodule GoogleApi.IAM.V1.Api.Projects do
753753
## Parameters
754754
755755
* `connection` (*type:* `GoogleApi.IAM.V1.Connection.t`) - Connection to server
756-
* `name` (*type:* `String.t`) - Immutable. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
756+
* `name` (*type:* `String.t`) - Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
757757
* `optional_params` (*type:* `keyword()`) - Optional parameters
758758
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
759759
* `:access_token` (*type:* `String.t`) - OAuth access token.

clients/iam/lib/google_api/iam/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.IAM.V1 do
2020
API client metadata for GoogleApi.IAM.V1.
2121
"""
2222

23-
@discovery_revision "20241028"
23+
@discovery_revision "20241114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/iam/lib/google_api/iam/v1/model/oauth_client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GoogleApi.IAM.V1.Model.OauthClient do
3030
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the OauthClient is disabled. You cannot use a disabled OAuth client.
3131
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified display name of the OauthClient. Cannot exceed 32 characters.
3232
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the OauthClient will be permanently purged and cannot be recovered.
33-
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`.
33+
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. Identifier. The resource name of the OauthClient. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`.
3434
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the OauthClient.
3535
"""
3636

clients/iam/lib/google_api/iam/v1/model/oauth_client_credential.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.IAM.V1.Model.OauthClientCredential do
2424
* `clientSecret` (*type:* `String.t`, *default:* `nil`) - Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
2525
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
2626
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
27-
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
27+
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
2828
"""
2929

3030
use GoogleApi.Gax.ModelBase

clients/iam/lib/google_api/iam/v1/model/oidc.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.IAM.V1.Model.Oidc do
2121
2222
## Attributes
2323
24-
* `allowedAudiences` (*type:* `list(String.t)`, *default:* `nil`) - 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/ ```
24+
* `allowedAudiences` (*type:* `list(String.t)`, *default:* `nil`) - 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/ ```
2525
* `issuerUri` (*type:* `String.t`, *default:* `nil`) - Required. The OIDC issuer URL. Must be an HTTPS endpoint.
2626
* `jwksJson` (*type:* `String.t`, *default:* `nil`) - Optional. OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the discovery document(fetched from the .well-known path of the `issuer_uri`) will be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use following format and include only the following fields: { "keys": [ { "kty": "RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": "", "y": "", "crv": "" } ] }
2727
"""

clients/iam/lib/google_api/iam/v1/model/operation_metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.IAM.V1.Model.OperationMetadata do
2222
## Attributes
2323
2424
* `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation.
25-
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - 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, corresponding to `Code.CANCELLED`.
25+
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - 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`.
2626
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
2727
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
2828
* `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any.

clients/iam/lib/google_api/iam/v1/model/workload_identity_pool.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ defmodule GoogleApi.IAM.V1.Model.WorkloadIdentityPool do
2121
2222
## Attributes
2323
24-
* `description` (*type:* `String.t`, *default:* `nil`) - A description of the pool. Cannot exceed 256 characters.
25-
* `disabled` (*type:* `boolean()`, *default:* `nil`) - 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.
26-
* `displayName` (*type:* `String.t`, *default:* `nil`) - A display name for the pool. Cannot exceed 32 characters.
24+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A description of the pool. Cannot exceed 256 characters.
25+
* `disabled` (*type:* `boolean()`, *default:* `nil`) - 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.
26+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A display name for the pool. Cannot exceed 32 characters.
2727
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the workload identity pool will be permanently purged and cannot be recovered.
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the pool.
2929
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the pool.

clients/iam/lib/google_api/iam/v1/model/workload_identity_pool_provider.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ defmodule GoogleApi.IAM.V1.Model.WorkloadIdentityPoolProvider do
2121
2222
## Attributes
2323
24-
* `attributeCondition` (*type:* `String.t`, *default:* `nil`) - [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" ```
25-
* `attributeMapping` (*type:* `map()`, *default:* `nil`) - 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"} ```
24+
* `attributeCondition` (*type:* `String.t`, *default:* `nil`) - 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" ```
25+
* `attributeMapping` (*type:* `map()`, *default:* `nil`) - 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"} ```
2626
* `aws` (*type:* `GoogleApi.IAM.V1.Model.Aws.t`, *default:* `nil`) - An Amazon Web Services identity provider.
27-
* `description` (*type:* `String.t`, *default:* `nil`) - A description for the provider. Cannot exceed 256 characters.
28-
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.
29-
* `displayName` (*type:* `String.t`, *default:* `nil`) - A display name for the provider. Cannot exceed 32 characters.
27+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A description for the provider. Cannot exceed 256 characters.
28+
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.
29+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A display name for the provider. Cannot exceed 32 characters.
3030
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the workload identity pool provider will be permanently purged and cannot be recovered.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the provider.
3232
* `oidc` (*type:* `GoogleApi.IAM.V1.Model.Oidc.t`, *default:* `nil`) - An OpenId Connect 1.0 identity provider.

clients/iam/lib/google_api/iam/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.IAM.V2 do
2020
API client metadata for GoogleApi.IAM.V2.
2121
"""
2222

23-
@discovery_revision "20240530"
23+
@discovery_revision "20241114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/iam/lib/google_api/iam/v2/model/google_cloud_common_operation_metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.IAM.V2.Model.GoogleCloudCommonOperationMetadata do
2222
## Attributes
2323
2424
* `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation.
25-
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - 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, corresponding to `Code.CANCELLED`.
25+
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - 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`.
2626
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
2727
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
2828
* `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any.

0 commit comments

Comments
 (0)