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.



275
276
277
# File 'lib/google/apis/content_v2_1/classes.rb', line 275

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

Instance Attribute Details

#access_tokenString

An OAuth access token. Corresponds to the JSON property accessToken

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/content_v2_1/classes.rb', line 262

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)


268
269
270
# File 'lib/google/apis/content_v2_1/classes.rb', line 268

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)


273
274
275
# File 'lib/google/apis/content_v2_1/classes.rb', line 273

def purpose
  @purpose
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



280
281
282
283
284
# File 'lib/google/apis/content_v2_1/classes.rb', line 280

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