Cloud Pub/Sub API - Class Google::Cloud::PubSub::Subscription::PushConfig::OidcToken (v2.15.5)

Reference documentation and code samples for the Cloud Pub/Sub API class Google::Cloud::PubSub::Subscription::PushConfig::OidcToken.

Contains information needed for generating an OpenID Connect token.

Inherits

  • Object

Methods

#audience

def audience() -> String

The audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the endpoint URL will be used.

Returns
  • (String)

#audience=

def audience=(new_audience)

Sets the audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the endpoint URL will be used.

Parameter
  • new_audience (String) — New audience value.

#email

def email() -> String

The service account email to be used for generating the OIDC token. The caller must have the iam.serviceAccounts.actAs permission for the service account.

Returns
  • (String)

#email=

def email=(new_email)

Sets the service account email to be used for generating the OIDC token. The caller must have the iam.serviceAccounts.actAs permission for the service account.

Parameter
  • new_email (String) — New service account email value.