Class: Google::Apis::ContentV2_1::AccountsLinkRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountsLinkRequest

Returns a new instance of AccountsLinkRequest.



1020
1021
1022
# File 'generated/google/apis/content_v2_1/classes.rb', line 1020

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

Instance Attribute Details

#actionString

Action to perform for this link. The "request" action is only available to select merchants. Acceptable values are:

  • "approve"
  • "remove"
  • "request" Corresponds to the JSON property action

Returns:

  • (String)


1000
1001
1002
# File 'generated/google/apis/content_v2_1/classes.rb', line 1000

def action
  @action
end

Type of the link between the two accounts. Acceptable values are:

  • "channelPartner"
  • "eCommercePlatform" Corresponds to the JSON property linkType

Returns:

  • (String)


1008
1009
1010
# File 'generated/google/apis/content_v2_1/classes.rb', line 1008

def link_type
  @link_type
end

#linked_account_idString

The ID of the linked account. Corresponds to the JSON property linkedAccountId

Returns:

  • (String)


1013
1014
1015
# File 'generated/google/apis/content_v2_1/classes.rb', line 1013

def 
  @linked_account_id
end

#servicesArray<String>

List of provided services. Corresponds to the JSON property services

Returns:

  • (Array<String>)


1018
1019
1020
# File 'generated/google/apis/content_v2_1/classes.rb', line 1018

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1025
1026
1027
1028
1029
1030
# File 'generated/google/apis/content_v2_1/classes.rb', line 1025

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @link_type = args[:link_type] if args.key?(:link_type)
  @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
  @services = args[:services] if args.key?(:services)
end