lib/phrase/models/release_create_parameters.rb in phrase-2.9.0 vs lib/phrase/models/release_create_parameters.rb in phrase-2.10.0
- old
+ new
@@ -9,29 +9,34 @@
attr_accessor :platforms
# List of locale ids that will be included in the release. If empty, distribution locales will be used
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
+
# 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',
:'branch' => :'branch'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'description' => :'String',
:'platforms' => :'Array<String>',
:'locale_ids' => :'Array<String>',
+ :'tags' => :'Array<String>',
:'branch' => :'String'
}
end
# List of attributes with nullable: true
@@ -69,10 +74,16 @@
if (value = attributes[:'locale_ids']).is_a?(Array)
self.locale_ids = value
end
end
+ if attributes.key?(:'tags')
+ if (value = attributes[:'tags']).is_a?(Array)
+ self.tags = value
+ end
+ end
+
if attributes.key?(:'branch')
self.branch = attributes[:'branch']
end
end
@@ -95,10 +106,11 @@
return true if self.equal?(o)
self.class == o.class &&
description == o.description &&
platforms == o.platforms &&
locale_ids == o.locale_ids &&
+ tags == o.tags &&
branch == o.branch
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -107,10 +119,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [description, platforms, locale_ids, branch].hash
+ [description, platforms, locale_ids, tags, branch].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself