Class: Google::Apis::ContentV2_1::AccountCredentials

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_tokenString

An OAuth access token. Corresponds to the JSON property accessToken

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/content_v2_1/classes.rb', line 428

def access_token
  @access_token
end

#expires_inFixnum

The amount of time, in seconds, after which the access token is no longer valid. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


434
435
436
# File 'lib/google/apis/content_v2_1/classes.rb', line 434

def expires_in
  @expires_in
end

#purposeString

Indicates to Google how Google should use these OAuth tokens. Corresponds to the JSON property purpose

Returns:

  • (String)


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