class Google::Apis::CloudtasksV2beta3::OAuthToken

Contains information needed for generating an [OAuth token](developers. google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

Attributes

scope[RW]

OAuth scope to be used for generating OAuth access token. If not specified, “ www.googleapis.com/auth/cloud-platform” will be used. Corresponds to the JSON property `scope` @return [String]

service_account_email[RW]

[Service account email](cloud.google.com/iam/docs/service-accounts) 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` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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