Class: Google::Apis::CloudschedulerV1::OidcToken

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

Overview

Contains information needed for generating an OpenID Connect token. This type of authorization should be used when sending requests to third party endpoints or Cloud Run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OidcToken

Returns a new instance of OidcToken



694
695
696
# File 'generated/google/apis/cloudscheduler_v1/classes.rb', line 694

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)


684
685
686
# File 'generated/google/apis/cloudscheduler_v1/classes.rb', line 684

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 job. The caller must have iam.serviceAccounts.actAs permission for the service account. Corresponds to the JSON property serviceAccountEmail

Returns:

  • (String)


692
693
694
# File 'generated/google/apis/cloudscheduler_v1/classes.rb', line 692

def 
  @service_account_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



699
700
701
702
# File 'generated/google/apis/cloudscheduler_v1/classes.rb', line 699

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