lib/phrase/models/key_create_parameters.rb in phrase-2.20.0 vs lib/phrase/models/key_create_parameters.rb in phrase-2.21.0
- old
+ new
@@ -48,10 +48,13 @@
attr_accessor :localized_format_string
# NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
attr_accessor :localized_format_key
+ # Custom metadata property name and value pairs to be associated with key.
+ attr_accessor :custom_metadata
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'branch' => :'branch',
:'name' => :'name',
@@ -66,11 +69,12 @@
:'unformatted' => :'unformatted',
:'default_translation_content' => :'default_translation_content',
:'xml_space_preserve' => :'xml_space_preserve',
:'original_file' => :'original_file',
:'localized_format_string' => :'localized_format_string',
- :'localized_format_key' => :'localized_format_key'
+ :'localized_format_key' => :'localized_format_key',
+ :'custom_metadata' => :'custom_metadata'
}
end
# Attribute type mapping.
def self.openapi_types
@@ -88,11 +92,12 @@
:'unformatted' => :'Boolean',
:'default_translation_content' => :'String',
:'xml_space_preserve' => :'Boolean',
:'original_file' => :'String',
:'localized_format_string' => :'String',
- :'localized_format_key' => :'String'
+ :'localized_format_key' => :'String',
+ :'custom_metadata' => :'Object'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -176,10 +181,14 @@
end
if attributes.key?(:'localized_format_key')
self.localized_format_key = attributes[:'localized_format_key']
end
+
+ if attributes.key?(:'custom_metadata')
+ self.custom_metadata = attributes[:'custom_metadata']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -211,11 +220,12 @@
unformatted == o.unformatted &&
default_translation_content == o.default_translation_content &&
xml_space_preserve == o.xml_space_preserve &&
original_file == o.original_file &&
localized_format_string == o.localized_format_string &&
- localized_format_key == o.localized_format_key
+ localized_format_key == o.localized_format_key &&
+ custom_metadata == o.custom_metadata
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -223,10 +233,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, xml_space_preserve, original_file, localized_format_string, localized_format_key].hash
+ [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself