Class: Google::Apis::CloudtasksV2beta3::OidcToken

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudtasks_v2beta3/classes.rb,
lib/google/apis/cloudtasks_v2beta3/representations.rb,
lib/google/apis/cloudtasks_v2beta3/representations.rb

Overview

Contains information needed for generating an OpenID Connect token. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OidcToken

Returns a new instance of OidcToken.



1055
1056
1057
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 1055

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

Instance Attribute Details

#audienceString

Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used. Corresponds to the JSON property audience

Returns:

  • (String)


1045
1046
1047
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 1045

def audience
  @audience
end

#service_account_emailString

Service account email to be used for generating OIDC token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account. Corresponds to the JSON property serviceAccountEmail

Returns:

  • (String)


1053
1054
1055
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 1053

def 
  @service_account_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1060
1061
1062
1063
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 1060

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