Class: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CollectionStatusDestinationStatus
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Destination status message.
Instance Attribute Summary collapse
-
#approved_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is approved.
-
#destination ⇒ String
The name of the destination Corresponds to the JSON property
destination
. -
#disapproved_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is disapproved.
-
#pending_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is pending approval.
-
#status ⇒ String
The status for the specified destination in the collections target country.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CollectionStatusDestinationStatus
constructor
A new instance of CollectionStatusDestinationStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CollectionStatusDestinationStatus
Returns a new instance of CollectionStatusDestinationStatus.
3214 3215 3216 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3214 def initialize(**args) update!(**args) end |
Instance Attribute Details
#approved_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is approved.
Corresponds to the JSON property approvedCountries
3192 3193 3194 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3192 def approved_countries @approved_countries end |
#destination ⇒ String
The name of the destination
Corresponds to the JSON property destination
3197 3198 3199 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3197 def destination @destination end |
#disapproved_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is disapproved.
Corresponds to the JSON property disapprovedCountries
3202 3203 3204 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3202 def disapproved_countries @disapproved_countries end |
#pending_countries ⇒ Array<String>
Country codes (ISO 3166-1 alpha-2) where the collection is pending approval.
Corresponds to the JSON property pendingCountries
3207 3208 3209 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3207 def pending_countries @pending_countries end |
#status ⇒ String
The status for the specified destination in the collections target country.
Corresponds to the JSON property status
3212 3213 3214 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3212 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3219 3220 3221 3222 3223 3224 3225 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3219 def update!(**args) @approved_countries = args[:approved_countries] if args.key?(:approved_countries) @destination = args[:destination] if args.key?(:destination) @disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries) @pending_countries = args[:pending_countries] if args.key?(:pending_countries) @status = args[:status] if args.key?(:status) end |