Class: Google::Apis::MybusinessV3::TransferLocationRequest

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

Overview

Request message for MyBusiness.TransferLocation to transfer a location from its current account to another.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TransferLocationRequest

Returns a new instance of TransferLocationRequest



1598
1599
1600
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1598

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

Instance Attribute Details

#to_accountString

Name of the account resource to transfer the location to (e.g. "accounts/8675309") Corresponds to the JSON property toAccount

Returns:

  • (String)


1596
1597
1598
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1596

def 
  @to_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1603
1604
1605
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1603

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