Class: Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService
- 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
Reference to a Terms of Service resource.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#region_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceptTermsOfService
constructor
A new instance of AcceptTermsOfService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcceptTermsOfService
Returns a new instance of AcceptTermsOfService.
41 42 43 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 41 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The resource name of the terms of service version.
Corresponds to the JSON property name
32 33 34 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 32 def name @name end |
#region_code ⇒ String
Required. Region code as defined by CLDR. This is
either a country when the ToS applies specifically to that country or 001
when it applies globally.
Corresponds to the JSON property regionCode
39 40 41 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 39 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
46 47 48 49 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 46 def update!(**args) @name = args[:name] if args.key?(:name) @region_code = args[:region_code] if args.key?(:region_code) end |