Class: Google::Apis::CloudtasksV2beta2::OAuthToken
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::OAuthToken
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtasks_v2beta2/classes.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb,
lib/google/apis/cloudtasks_v2beta2/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
-
#scope ⇒ String
OAuth scope to be used for generating OAuth access token.
-
#service_account_email ⇒ String
Service account email to be used for generating OAuth token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthToken
constructor
A new instance of OAuthToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthToken
Returns a new instance of OAuthToken.
1167 1168 1169 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scope ⇒ String
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
1157 1158 1159 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1157 def scope @scope end |
#service_account_email ⇒ String
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
1165 1166 1167 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1165 def service_account_email @service_account_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1172 1173 1174 1175 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1172 def update!(**args) @scope = args[:scope] if args.key?(:scope) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) end |