Class: Google::Apis::CloudtasksV2beta3::OAuthToken

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

Overview

Contains information needed for generating an OAuth token. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

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) ⇒ OAuthToken

Returns a new instance of OAuthToken.



879
880
881
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 879

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

Instance Attribute Details

#scopeString

OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used. Corresponds to the JSON property scope

Returns:

  • (String)


868
869
870
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 868

def scope
  @scope
end

#service_account_emailString

Service account email to be used for generating OAuth 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)


877
878
879
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 877

def 
  @service_account_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



884
885
886
887
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 884

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