lib/phrase/models/invitation_update_parameters.rb in phrase-2.3.1 vs lib/phrase/models/invitation_update_parameters.rb in phrase-2.4.0
- old
+ new
@@ -12,10 +12,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.
attr_accessor :permissions
@@ -25,10 +28,11 @@
{
:'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
@@ -37,10 +41,11 @@
{
:'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
@@ -81,10 +86,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
@@ -116,10 +127,11 @@
self.class == o.class &&
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
@@ -129,10 +141,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [role, project_ids, locale_ids, space_ids, default_locale_codes, permissions].hash
+ [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