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

- old
+ new

@@ -1,7 +1,7 @@ =begin -#Settings User Provisioning +#User Provisioning #Add, manage, and remove users from your account The version of the OpenAPI document: v3 @@ -16,10 +16,14 @@ module Hubspot module Settings module Users # A user to update class PublicUserUpdate + attr_accessor :first_name + + attr_accessor :last_name + # The user's primary team attr_accessor :primary_team_id # The user's role attr_accessor :role_id @@ -28,10 +32,12 @@ attr_accessor :secondary_team_ids # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'first_name' => :'firstName', + :'last_name' => :'lastName', :'primary_team_id' => :'primaryTeamId', :'role_id' => :'roleId', :'secondary_team_ids' => :'secondaryTeamIds' } end @@ -42,10 +48,12 @@ end # Attribute type mapping. def self.openapi_types { + :'first_name' => :'String', + :'last_name' => :'String', :'primary_team_id' => :'String', :'role_id' => :'String', :'secondary_team_ids' => :'Array<String>' } end @@ -69,10 +77,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?(:'first_name') + self.first_name = attributes[:'first_name'] + end + + if attributes.key?(:'last_name') + self.last_name = attributes[:'last_name'] + end + if attributes.key?(:'primary_team_id') self.primary_team_id = attributes[:'primary_team_id'] end if attributes.key?(:'role_id') @@ -102,10 +118,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 && + first_name == o.first_name && + last_name == o.last_name && primary_team_id == o.primary_team_id && role_id == o.role_id && secondary_team_ids == o.secondary_team_ids end @@ -116,10 +134,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [primary_team_id, role_id, secondary_team_ids].hash + [first_name, last_name, 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