Class: Google::Apis::MerchantapiAccountsV1beta::AddAccountService

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

Overview

Additional instructions to add account services during creation of the account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddAccountService

Returns a new instance of AddAccountService.



255
256
257
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 255

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

Instance Attribute Details

#account_aggregationGoogle::Apis::MerchantapiAccountsV1beta::Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo rpc Bar(google. protobuf.Empty) returns (google.protobuf.Empty); Corresponds to the JSON property accountAggregation



248
249
250
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 248

def 
  @account_aggregation
end

#providerString

Optional. The provider of the service. Format: accounts/account` Corresponds to the JSON propertyprovider`

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 253

def provider
  @provider
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 260

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