Class: Google::Apis::PubsubV1beta2::OidcToken

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsub_v1beta2/classes.rb,
generated/google/apis/pubsub_v1beta2/representations.rb,
generated/google/apis/pubsub_v1beta2/representations.rb

Overview

Contains information needed for generating an OpenID Connect token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OidcToken

Returns a new instance of OidcToken.



370
371
372
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 370

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audienceString

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

Returns:

  • (String)


359
360
361
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 359

def audience
  @audience
end

#service_account_emailString

Service account email 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

Returns:

  • (String)


368
369
370
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 368

def 
  @service_account_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



375
376
377
378
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 375

def update!(**args)
  @audience = args[:audience] if args.key?(:audience)
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
end