lib/phrase/models/release_create_parameters.rb in phrase-3.2.0 vs lib/phrase/models/release_create_parameters.rb in phrase-3.2.1

- old
+ new

@@ -12,20 +12,28 @@ attr_accessor :locale_ids # Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided attr_accessor :tags + # Minimum version of the app that the release supports in semver format + attr_accessor :app_min_version + + # Maximum version of the app that the release supports in semver format + attr_accessor :app_max_version + # Branch used for release attr_accessor :branch # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'description' => :'description', :'platforms' => :'platforms', :'locale_ids' => :'locale_ids', :'tags' => :'tags', + :'app_min_version' => :'app_min_version', + :'app_max_version' => :'app_max_version', :'branch' => :'branch' } end # Attribute type mapping. @@ -33,10 +41,12 @@ { :'description' => :'String', :'platforms' => :'Array<String>', :'locale_ids' => :'Array<String>', :'tags' => :'Array<String>', + :'app_min_version' => :'String', + :'app_max_version' => :'String', :'branch' => :'String' } end # List of attributes with nullable: true @@ -80,10 +90,18 @@ if (value = attributes[:'tags']).is_a?(Array) self.tags = value end end + if attributes.key?(:'app_min_version') + self.app_min_version = attributes[:'app_min_version'] + end + + if attributes.key?(:'app_max_version') + self.app_max_version = attributes[:'app_max_version'] + end + if attributes.key?(:'branch') self.branch = attributes[:'branch'] end end @@ -107,10 +125,12 @@ self.class == o.class && description == o.description && platforms == o.platforms && locale_ids == o.locale_ids && tags == o.tags && + app_min_version == o.app_min_version && + app_max_version == o.app_max_version && branch == o.branch end # @see the `==` method # @param [Object] Object to be compared @@ -119,10 +139,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [description, platforms, locale_ids, tags, branch].hash + [description, platforms, locale_ids, tags, app_min_version, app_max_version, branch].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself