lib/phrase/models/invitation_create_parameters.rb in phrase-2.3.1 vs lib/phrase/models/invitation_create_parameters.rb in phrase-2.4.0
- old
+ new
@@ -15,10 +15,13 @@
attr_accessor :locale_ids
# List of spaces the user is assigned to.
attr_accessor :space_ids
+ # List of teams the user is assigned to.
+ attr_accessor :team_ids
+
# List of default locales for the user.
attr_accessor :default_locale_codes
# Additional permissions depending on invitation role. Available permissions are <code>create_upload</code> and <code>review_translations</code>
attr_accessor :permissions
@@ -29,10 +32,11 @@
:'email' => :'email',
:'role' => :'role',
:'project_ids' => :'project_ids',
:'locale_ids' => :'locale_ids',
:'space_ids' => :'space_ids',
+ :'team_ids' => :'team_ids',
:'default_locale_codes' => :'default_locale_codes',
:'permissions' => :'permissions'
}
end
@@ -42,10 +46,11 @@
:'email' => :'String',
:'role' => :'String',
:'project_ids' => :'String',
:'locale_ids' => :'String',
:'space_ids' => :'Array<String>',
+ :'team_ids' => :'Array<String>',
:'default_locale_codes' => :'Array<String>',
:'permissions' => :'Hash<String, String>'
}
end
@@ -90,10 +95,16 @@
if (value = attributes[:'space_ids']).is_a?(Array)
self.space_ids = value
end
end
+ if attributes.key?(:'team_ids')
+ if (value = attributes[:'team_ids']).is_a?(Array)
+ self.team_ids = value
+ end
+ end
+
if attributes.key?(:'default_locale_codes')
if (value = attributes[:'default_locale_codes']).is_a?(Array)
self.default_locale_codes = value
end
end
@@ -126,10 +137,11 @@
email == o.email &&
role == o.role &&
project_ids == o.project_ids &&
locale_ids == o.locale_ids &&
space_ids == o.space_ids &&
+ team_ids == o.team_ids &&
default_locale_codes == o.default_locale_codes &&
permissions == o.permissions
end
# @see the `==` method
@@ -139,10 +151,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [email, role, project_ids, locale_ids, space_ids, default_locale_codes, permissions].hash
+ [email, role, project_ids, locale_ids, space_ids, team_ids, default_locale_codes, permissions].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself