Skip to content

Commit 6926283

Browse files
feat: Automated regeneration of IAM client (googleapis#12442)
Auto-created at 2024-10-30 13:18:06 +0000 using the toys pull request generator.
1 parent 4d45421 commit 6926283

8 files changed

+16
-16
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defmodule GoogleApi.IAM.V1.Api.Locations do
3131
## Parameters
3232
3333
* `connection` (*type:* `GoogleApi.IAM.V1.Connection.t`) - Connection to server
34-
* `location` (*type:* `String.t`) - The location of the pool to create. Format: `locations/{location}`.
34+
* `location` (*type:* `String.t`) - Optional. The location of the pool to create. Format: `locations/{location}`.
3535
* `optional_params` (*type:* `keyword()`) - Optional parameters
3636
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3737
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -44,7 +44,7 @@ defmodule GoogleApi.IAM.V1.Api.Locations do
4444
* `:quotaUser` (*type:* `String.t`) - 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.
4545
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4646
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
47-
* `:workforcePoolId` (*type:* `String.t`) - The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified.
47+
* `:workforcePoolId` (*type:* `String.t`) - Optional. The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified.
4848
* `:body` (*type:* `GoogleApi.IAM.V1.Model.WorkforcePool.t`) -
4949
* `opts` (*type:* `keyword()`) - Call options
5050

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 "20241017"
23+
@discovery_revision "20241028"
2424

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ defmodule GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidc do
2222
## Attributes
2323
2424
* `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID. Must match the audience claim of the JWT issued by the identity provider.
25-
* `clientSecret` (*type:* `GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret.t`, *default:* `nil`) - The optional client secret. Required to enable Authorization Code flow for web sign-in.
25+
* `clientSecret` (*type:* `GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret.t`, *default:* `nil`) - Optional. The optional client secret. Required to enable Authorization Code flow for web sign-in.
2626
* `issuerUri` (*type:* `String.t`, *default:* `nil`) - Required. The OIDC issuer URI. Must be a valid URI using the `https` scheme.
27-
* `jwksJson` (*type:* `String.t`, *default:* `nil`) - 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": "" } ] }
27+
* `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": "" } ] }
2828
* `webSsoConfig` (*type:* `GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig.t`, *default:* `nil`) - Required. Configuration for web single sign-on for the OIDC provider. Here, web sign-in refers to console sign-in and gcloud sign-in through the browser.
2929
"""
3030

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidcClient
2121
2222
## Attributes
2323
24-
* `plainText` (*type:* `String.t`, *default:* `nil`) - 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.
24+
* `plainText` (*type:* `String.t`, *default:* `nil`) - Optional. 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.
2525
* `thumbprint` (*type:* `String.t`, *default:* `nil`) - Output only. A thumbprint to represent the current client secret value.
2626
"""
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderOidcWebSso
2121
2222
## Attributes
2323
24-
* `additionalScopes` (*type:* `list(String.t)`, *default:* `nil`) - 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 by the identity provider are requested. Each additional scope may be at most 256 characters. A maximum of 10 additional scopes may be configured.
24+
* `additionalScopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. 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 by the identity provider are requested. Each additional scope may be at most 256 characters. A maximum of 10 additional scopes may be configured.
2525
* `assertionClaimsBehavior` (*type:* `String.t`, *default:* `nil`) - Required. The behavior for how OIDC Claims are included in the `assertion` object used for attribute mapping and attribute condition.
2626
* `responseType` (*type:* `String.t`, *default:* `nil`) - 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 reasons.
2727
"""

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ defmodule GoogleApi.IAM.V1.Model.WorkforcePool do
2222
## Attributes
2323
2424
* `accessRestrictions` (*type:* `GoogleApi.IAM.V1.Model.AccessRestrictions.t`, *default:* `nil`) - Optional. Configure access restrictions on the workforce pool users. This is an optional field. If specified web sign-in can be restricted to given set of services or programmatic sign-in can be disabled for pool users.
25-
* `description` (*type:* `String.t`, *default:* `nil`) - A user-specified description of the pool. Cannot exceed 256 characters.
26-
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Disables the workforce pool. 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.
27-
* `displayName` (*type:* `String.t`, *default:* `nil`) - A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters.
25+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified description of the pool. Cannot exceed 256 characters.
26+
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Disables the workforce pool. 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.
27+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters.
2828
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the workforce pool will be permanently purged and cannot be recovered.
2929
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`
3030
* `parent` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the parent. Format: `organizations/{org-id}`.
31-
* `sessionDuration` (*type:* `String.t`, *default:* `nil`) - Duration that the Google Cloud access tokens, console sign-in sessions, and `gcloud` sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the `session_duration` and the `SessionNotOnOrAfter` claim in the SAML assertion.
31+
* `sessionDuration` (*type:* `String.t`, *default:* `nil`) - Optional. Duration that the Google Cloud access tokens, console sign-in sessions, and `gcloud` sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the `session_duration` and the `SessionNotOnOrAfter` claim in the SAML assertion.
3232
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the pool.
3333
"""
3434

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ defmodule GoogleApi.IAM.V1.Model.WorkforcePoolProvider 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`. `google.profile_photo`, `google.display_name` and `google.posix_username` are not supported. * `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 credentials will be accepted. The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`: ``` "'admins' in google.groups" ```
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`. `google.profile_photo`, `google.display_name` and `google.posix_username` are not supported. * `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 credentials will be accepted. The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`: ``` "'admins' in google.groups" ```
2525
* `attributeMapping` (*type:* `map()`, *default:* `nil`) - Required. Maps attributes from the 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. This is a required field and the mapped subject cannot exceed 127 bytes. * `google.groups`: Groups the authenticating user belongs to. You can grant groups access to resources using an IAM `principalSet` binding; access applies to all members of the group. * `google.display_name`: The name of the authenticated user. This is an optional field and the mapped display name cannot exceed 100 bytes. If not set, `google.subject` will be displayed instead. This attribute cannot be referenced in IAM bindings. * `google.profile_photo`: The URL that specifies the authenticated user's thumbnail photo. This is an optional field. When set, the image will be visible as the user's profile picture. If not set, a generic user icon will be displayed instead. This attribute cannot be referenced in IAM bindings. * `google.posix_username`: The Linux username used by OS Login. This is an optional field and the mapped POSIX username cannot exceed 32 characters, The key must match the regex "^a-zA-Z0-9._{0,31}$". This attribute cannot be referenced in IAM bindings. 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 workforce pool to Google Cloud resources. For example: * `google.subject`: `principal://iam.googleapis.com/locations/global/workforcePools/{pool}/subject/{value}` * `google.groups`: `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool}/group/{value}` * `attribute.{custom_attribute}`: `principalSet://iam.googleapis.com/locations/global/workforcePools/{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 4KB. For OIDC providers, you must supply a custom mapping that includes 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"} ```
26-
* `description` (*type:* `String.t`, *default:* `nil`) - A user-specified description of the provider. Cannot exceed 256 characters.
27-
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Disables the workforce pool provider. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.
28-
* `displayName` (*type:* `String.t`, *default:* `nil`) - A user-specified display name for the provider. Cannot exceed 32 characters.
26+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified description of the provider. Cannot exceed 256 characters.
27+
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Disables the workforce pool provider. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.
28+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. A user-specified display name for the provider. Cannot exceed 32 characters.
2929
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the workload pool provider will be permanently purged and cannot be recovered.
3030
* `extraAttributesOauth2Client` (*type:* `GoogleApi.IAM.V1.Model.GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client.t`, *default:* `nil`) - Optional. The configuration for OAuth 2.0 client used to get the additional user attributes. This should be used when users can't get the desired claims in authentication credentials. Currently this configuration is only supported with OIDC protocol.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`

clients/iam/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.IAM.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.44.2"
21+
@version "0.44.3"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)