lib/phrase/models/translations_verify_parameters.rb in phrase-2.3.0 vs lib/phrase/models/translations_verify_parameters.rb in phrase-2.3.1

- old
+ new

@@ -3,36 +3,31 @@ module Phrase class TranslationsVerifyParameters # specify the branch to use attr_accessor :branch + # specify the locale of the translations to be verified + attr_accessor :locale_id + # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. attr_accessor :q - # Sort criteria. Can be one of: key_name, created_at, updated_at. - attr_accessor :sort - - # Order direction. Can be one of: asc, desc. - attr_accessor :order - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'branch' => :'branch', - :'q' => :'q', - :'sort' => :'sort', - :'order' => :'order' + :'locale_id' => :'locale_id', + :'q' => :'q' } end # Attribute type mapping. def self.openapi_types { :'branch' => :'String', - :'q' => :'String', - :'sort' => :'String', - :'order' => :'String' + :'locale_id' => :'String', + :'q' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -57,21 +52,17 @@ if attributes.key?(:'branch') self.branch = attributes[:'branch'] end + if attributes.key?(:'locale_id') + self.locale_id = attributes[:'locale_id'] + end + if attributes.key?(:'q') self.q = attributes[:'q'] end - - if attributes.key?(:'sort') - self.sort = attributes[:'sort'] - end - - if attributes.key?(:'order') - self.order = attributes[:'order'] - 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 @@ -89,13 +80,12 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && branch == o.branch && - q == o.q && - sort == o.sort && - order == o.order + locale_id == o.locale_id && + q == o.q end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -103,10 +93,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [branch, q, sort, order].hash + [branch, locale_id, q].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself