class Google::Apis::PubsubV1beta2::OidcToken

Contains information needed for generating an [OpenID Connect token](https:// developers.google.com/identity/protocols/OpenIDConnect).

Attributes

audience[RW]

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 Push endpoint URL will be used. Corresponds to the JSON property `audience` @return [String]

service_account_email[RW]

[Service account email](cloud.google.com/iam/docs/service-accounts) to be used for generating the OIDC token. The caller (for CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must have the iam. serviceAccounts.actAs permission for the service account. Corresponds to the JSON property `serviceAccountEmail` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1beta2/classes.rb, line 344
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1beta2/classes.rb, line 349
def update!(**args)
  @audience = args[:audience] if args.key?(:audience)
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
end