Class: Google::Apis::MerchantapiAccountsV1beta::Requirement
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Requirement
- 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
Defines a requirement specified for participation in the program.
Instance Attribute Summary collapse
-
#affected_region_codes ⇒ Array<String>
Output only.
-
#documentation_uri ⇒ String
Output only.
-
#title ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Requirement
constructor
A new instance of Requirement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Requirement
Returns a new instance of Requirement.
2209 2210 2211 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#affected_region_codes ⇒ Array<String>
Output only. The regions that are currently affected by this requirement not
being met. Region codes are defined by CLDR. This
is either a country where the program applies specifically to that country or
001
when the program applies globally.
Corresponds to the JSON property affectedRegionCodes
2197 2198 2199 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2197 def affected_region_codes @affected_region_codes end |
#documentation_uri ⇒ String
Output only. The URL of a help page describing the requirement.
Corresponds to the JSON property documentationUri
2202 2203 2204 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2202 def documentation_uri @documentation_uri end |
#title ⇒ String
Output only. Name of the requirement.
Corresponds to the JSON property title
2207 2208 2209 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2207 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2214 2215 2216 2217 2218 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2214 def update!(**args) @affected_region_codes = args[:affected_region_codes] if args.key?(:affected_region_codes) @documentation_uri = args[:documentation_uri] if args.key?(:documentation_uri) @title = args[:title] if args.key?(:title) end |