Class: Google::Apis::ContentV2_1::LinkService

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) ⇒ LinkService

Returns a new instance of LinkService.



3468
3469
3470
# File 'generated/google/apis/content_v2_1/classes.rb', line 3468

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

Instance Attribute Details

#serviceString

Service provided to or by the linked account. Acceptable values are:

  • "shoppingActionsOrderManagement"
  • "shoppingActionsProductManagement"
  • "shoppingAdsProductManagement" Corresponds to the JSON property service

Returns:

  • (String)


3457
3458
3459
# File 'generated/google/apis/content_v2_1/classes.rb', line 3457

def service
  @service
end

#statusString

Status of the link Acceptable values are:

  • "active"
  • "inactive"
  • "pending" Corresponds to the JSON property status

Returns:

  • (String)


3466
3467
3468
# File 'generated/google/apis/content_v2_1/classes.rb', line 3466

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3473
3474
3475
3476
# File 'generated/google/apis/content_v2_1/classes.rb', line 3473

def update!(**args)
  @service = args[:service] if args.key?(:service)
  @status = args[:status] if args.key?(:status)
end