Class: Google::Apis::ContentV2_1::AccountCredentials
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountCredentials
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Credentials allowing Google to call a partner's API on behalf of a merchant.
Instance Attribute Summary collapse
-
#access_token ⇒ String
An OAuth access token.
-
#expires_in ⇒ Fixnum
The amount of time, in seconds, after which the access token is no longer valid.
-
#purpose ⇒ String
Indicates to Google how Google should use these OAuth tokens.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountCredentials
constructor
A new instance of AccountCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountCredentials
Returns a new instance of AccountCredentials.
441 442 443 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
An OAuth access token.
Corresponds to the JSON property accessToken
428 429 430 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 428 def access_token @access_token end |
#expires_in ⇒ Fixnum
The amount of time, in seconds, after which the access token is no longer
valid.
Corresponds to the JSON property expiresIn
434 435 436 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 434 def expires_in @expires_in end |
#purpose ⇒ String
Indicates to Google how Google should use these OAuth tokens.
Corresponds to the JSON property purpose
439 440 441 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 439 def purpose @purpose end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
446 447 448 449 450 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 446 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @expires_in = args[:expires_in] if args.key?(:expires_in) @purpose = args[:purpose] if args.key?(:purpose) end |