lib/phrase/models/member.rb in phrase-1.0.10 vs lib/phrase/models/member.rb in phrase-1.0.11

- old
+ new

@@ -10,29 +10,41 @@ attr_accessor :role attr_accessor :projects + attr_accessor :permissions + + attr_accessor :default_locale_codes + + attr_accessor :spaces + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'email' => :'email', :'username' => :'username', :'role' => :'role', - :'projects' => :'projects' + :'projects' => :'projects', + :'permissions' => :'permissions', + :'default_locale_codes' => :'default_locale_codes', + :'spaces' => :'spaces' } end # Attribute type mapping. def self.openapi_types { :'id' => :'String', :'email' => :'String', :'username' => :'String', :'role' => :'String', - :'projects' => :'Array<ProjectLocales>' + :'projects' => :'Array<ProjectLocales>', + :'permissions' => :'Object', + :'default_locale_codes' => :'Array<String>', + :'spaces' => :'Array<MemberSpaces>' } end # List of attributes with nullable: true def self.openapi_nullable @@ -74,10 +86,26 @@ if attributes.key?(:'projects') if (value = attributes[:'projects']).is_a?(Array) self.projects = value end end + + if attributes.key?(:'permissions') + self.permissions = attributes[:'permissions'] + end + + if attributes.key?(:'default_locale_codes') + if (value = attributes[:'default_locale_codes']).is_a?(Array) + self.default_locale_codes = value + end + end + + if attributes.key?(:'spaces') + if (value = attributes[:'spaces']).is_a?(Array) + self.spaces = 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 @@ -98,11 +126,14 @@ self.class == o.class && id == o.id && email == o.email && username == o.username && role == o.role && - projects == o.projects + projects == o.projects && + permissions == o.permissions && + default_locale_codes == o.default_locale_codes && + spaces == o.spaces end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -110,10 +141,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, email, username, role, projects].hash + [id, email, username, role, projects, permissions, default_locale_codes, spaces].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself