lib/hubspot/codegen/settings/users/models/public_user_update.rb in hubspot-api-client-17.2.0 vs lib/hubspot/codegen/settings/users/models/public_user_update.rb in hubspot-api-client-18.0.0

- old
+ new

@@ -1,7 +1,7 @@ =begin -#Users +#Settings User Provisioning #Add, manage, and remove users from your account The version of the OpenAPI document: v3 @@ -16,24 +16,24 @@ module Hubspot module Settings module Users # A user to update class PublicUserUpdate - # The user's role - attr_accessor :role_id - # The user's primary team attr_accessor :primary_team_id + # The user's role + attr_accessor :role_id + # The user's additional teams attr_accessor :secondary_team_ids # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'role_id' => :'roleId', :'primary_team_id' => :'primaryTeamId', + :'role_id' => :'roleId', :'secondary_team_ids' => :'secondaryTeamIds' } end # Returns all the JSON keys this model knows about @@ -42,12 +42,12 @@ end # Attribute type mapping. def self.openapi_types { - :'role_id' => :'String', :'primary_team_id' => :'String', + :'role_id' => :'String', :'secondary_team_ids' => :'Array<String>' } end # List of attributes with nullable: true @@ -69,18 +69,18 @@ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Settings::Users::PublicUserUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'role_id') - self.role_id = attributes[:'role_id'] - end - if attributes.key?(:'primary_team_id') self.primary_team_id = attributes[:'primary_team_id'] end + if attributes.key?(:'role_id') + self.role_id = attributes[:'role_id'] + end + if attributes.key?(:'secondary_team_ids') if (value = attributes[:'secondary_team_ids']).is_a?(Array) self.secondary_team_ids = value end end @@ -102,12 +102,12 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - role_id == o.role_id && primary_team_id == o.primary_team_id && + role_id == o.role_id && secondary_team_ids == o.secondary_team_ids end # @see the `==` method # @param [Object] Object to be compared @@ -116,10 +116,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [role_id, primary_team_id, secondary_team_ids].hash + [primary_team_id, role_id, secondary_team_ids].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself