lib/phrase/models/distribution_update_parameters.rb in phrase-2.3.1 vs lib/phrase/models/distribution_update_parameters.rb in phrase-2.4.0

- old
+ new

@@ -9,10 +9,13 @@ attr_accessor :project_id # List of platforms the distribution should support. attr_accessor :platforms + # List of locale ids that will be part of distribution releases + attr_accessor :locale_ids + # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. attr_accessor :format_options # Indicates whether to fallback to non regional locale when locale can not be found attr_accessor :fallback_to_non_regional_locale @@ -27,10 +30,11 @@ def self.attribute_map { :'name' => :'name', :'project_id' => :'project_id', :'platforms' => :'platforms', + :'locale_ids' => :'locale_ids', :'format_options' => :'format_options', :'fallback_to_non_regional_locale' => :'fallback_to_non_regional_locale', :'fallback_to_default_locale' => :'fallback_to_default_locale', :'use_last_reviewed_version' => :'use_last_reviewed_version' } @@ -40,10 +44,11 @@ def self.openapi_types { :'name' => :'String', :'project_id' => :'String', :'platforms' => :'Array<String>', + :'locale_ids' => :'Array<String>', :'format_options' => :'Hash<String, String>', :'fallback_to_non_regional_locale' => :'Boolean', :'fallback_to_default_locale' => :'Boolean', :'use_last_reviewed_version' => :'Boolean' } @@ -82,10 +87,16 @@ if (value = attributes[:'platforms']).is_a?(Array) self.platforms = value end end + if attributes.key?(:'locale_ids') + if (value = attributes[:'locale_ids']).is_a?(Array) + self.locale_ids = value + end + end + if attributes.key?(:'format_options') if (value = attributes[:'format_options']).is_a?(Hash) self.format_options = value end end @@ -122,10 +133,11 @@ return true if self.equal?(o) self.class == o.class && name == o.name && project_id == o.project_id && platforms == o.platforms && + locale_ids == o.locale_ids && format_options == o.format_options && fallback_to_non_regional_locale == o.fallback_to_non_regional_locale && fallback_to_default_locale == o.fallback_to_default_locale && use_last_reviewed_version == o.use_last_reviewed_version end @@ -137,10 +149,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, project_id, platforms, format_options, fallback_to_non_regional_locale, fallback_to_default_locale, use_last_reviewed_version].hash + [name, project_id, platforms, locale_ids, format_options, fallback_to_non_regional_locale, fallback_to_default_locale, use_last_reviewed_version].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself