Class: Google::Apis::CssV1::DestinationStatus

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

Overview

The destination status of the product status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationStatus

Returns a new instance of DestinationStatus.



763
764
765
# File 'lib/google/apis/css_v1/classes.rb', line 763

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

Instance Attribute Details

#approved_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the CSS Product is approved. Corresponds to the JSON property approvedCountries

Returns:

  • (Array<String>)


744
745
746
# File 'lib/google/apis/css_v1/classes.rb', line 744

def approved_countries
  @approved_countries
end

#destinationString

The name of the destination Corresponds to the JSON property destination

Returns:

  • (String)


749
750
751
# File 'lib/google/apis/css_v1/classes.rb', line 749

def destination
  @destination
end

#disapproved_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the CSS Product is disapproved. Corresponds to the JSON property disapprovedCountries

Returns:

  • (Array<String>)


755
756
757
# File 'lib/google/apis/css_v1/classes.rb', line 755

def disapproved_countries
  @disapproved_countries
end

#pending_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the CSS Product is pending approval. Corresponds to the JSON property pendingCountries

Returns:

  • (Array<String>)


761
762
763
# File 'lib/google/apis/css_v1/classes.rb', line 761

def pending_countries
  @pending_countries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



768
769
770
771
772
773
# File 'lib/google/apis/css_v1/classes.rb', line 768

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)
end