Class: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CollectionStatusDestinationStatus

Returns a new instance of CollectionStatusDestinationStatus.



3262
3263
3264
# File 'lib/google/apis/content_v2_1/classes.rb', line 3262

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

Instance Attribute Details

#approved_countriesArray<String>

Country codes (ISO 3166-1 alpha-2) where the collection is approved. Corresponds to the JSON property approvedCountries

Returns:

  • (Array<String>)


3240
3241
3242
# File 'lib/google/apis/content_v2_1/classes.rb', line 3240

def approved_countries
  @approved_countries
end

#destinationString

The name of the destination Corresponds to the JSON property destination

Returns:

  • (String)


3245
3246
3247
# File 'lib/google/apis/content_v2_1/classes.rb', line 3245

def destination
  @destination
end

#disapproved_countriesArray<String>

Country codes (ISO 3166-1 alpha-2) where the collection is disapproved. Corresponds to the JSON property disapprovedCountries

Returns:

  • (Array<String>)


3250
3251
3252
# File 'lib/google/apis/content_v2_1/classes.rb', line 3250

def disapproved_countries
  @disapproved_countries
end

#pending_countriesArray<String>

Country codes (ISO 3166-1 alpha-2) where the collection is pending approval. Corresponds to the JSON property pendingCountries

Returns:

  • (Array<String>)


3255
3256
3257
# File 'lib/google/apis/content_v2_1/classes.rb', line 3255

def pending_countries
  @pending_countries
end

#statusString

The status for the specified destination in the collections target country. Corresponds to the JSON property status

Returns:

  • (String)


3260
3261
3262
# File 'lib/google/apis/content_v2_1/classes.rb', line 3260

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3267
3268
3269
3270
3271
3272
3273
# File 'lib/google/apis/content_v2_1/classes.rb', line 3267

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