lib/phrase/models/translation_key_details.rb in phrase-2.20.0 vs lib/phrase/models/translation_key_details.rb in phrase-2.21.0

- old
+ new

@@ -36,10 +36,12 @@ attr_accessor :format_value_type attr_accessor :creator + attr_accessor :custom_metadata + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'name' => :'name', @@ -56,11 +58,12 @@ :'screenshot_url' => :'screenshot_url', :'unformatted' => :'unformatted', :'xml_space_preserve' => :'xml_space_preserve', :'original_file' => :'original_file', :'format_value_type' => :'format_value_type', - :'creator' => :'creator' + :'creator' => :'creator', + :'custom_metadata' => :'custom_metadata' } end # Attribute type mapping. def self.openapi_types @@ -80,11 +83,12 @@ :'screenshot_url' => :'String', :'unformatted' => :'Boolean', :'xml_space_preserve' => :'Boolean', :'original_file' => :'String', :'format_value_type' => :'String', - :'creator' => :'UserPreview' + :'creator' => :'UserPreview', + :'custom_metadata' => :'Hash<String, String>' } end # List of attributes with nullable: true def self.openapi_nullable @@ -185,10 +189,16 @@ end if attributes.key?(:'creator') self.creator = attributes[:'creator'] end + + if attributes.key?(:'custom_metadata') + if (value = attributes[:'custom_metadata']).is_a?(Hash) + self.custom_metadata = value + end + 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 @@ -222,11 +232,12 @@ screenshot_url == o.screenshot_url && unformatted == o.unformatted && xml_space_preserve == o.xml_space_preserve && original_file == o.original_file && format_value_type == o.format_value_type && - creator == o.creator + creator == o.creator && + custom_metadata == o.custom_metadata end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -234,10 +245,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, description, name_hash, plural, tags, data_type, created_at, updated_at, name_plural, comments_count, max_characters_allowed, screenshot_url, unformatted, xml_space_preserve, original_file, format_value_type, creator].hash + [id, name, description, name_hash, plural, tags, data_type, created_at, updated_at, name_plural, comments_count, max_characters_allowed, screenshot_url, unformatted, xml_space_preserve, original_file, format_value_type, creator, 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