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

- old
+ new

@@ -6,27 +6,37 @@ attr_accessor :description # List of platforms the release should support. attr_accessor :platforms + # 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', + :'app_min_version' => :'app_min_version', + :'app_max_version' => :'app_max_version', :'branch' => :'branch' } end # Attribute type mapping. def self.openapi_types { :'description' => :'String', :'platforms' => :'Array<String>', + :'app_min_version' => :'String', + :'app_max_version' => :'String', :'branch' => :'String' } end # List of attributes with nullable: true @@ -58,10 +68,18 @@ if (value = attributes[:'platforms']).is_a?(Array) self.platforms = 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 @@ -83,10 +101,12 @@ def ==(o) return true if self.equal?(o) self.class == o.class && description == o.description && platforms == o.platforms && + 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 @@ -95,10 +115,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [description, platforms, branch].hash + [description, platforms, 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