lib/hubspot/codegen/settings/users/models/user_provision_request.rb in hubspot-api-client-18.0.0 vs lib/hubspot/codegen/settings/users/models/user_provision_request.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 creation request
class UserProvisionRequest
+ attr_accessor :first_name
+
+ attr_accessor :last_name
+
# The user's primary team
attr_accessor :primary_team_id
# Whether to send a welcome email
attr_accessor :send_welcome_email
@@ -34,10 +38,12 @@
attr_accessor :email
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+ :'first_name' => :'firstName',
+ :'last_name' => :'lastName',
:'primary_team_id' => :'primaryTeamId',
:'send_welcome_email' => :'sendWelcomeEmail',
:'role_id' => :'roleId',
:'secondary_team_ids' => :'secondaryTeamIds',
:'email' => :'email'
@@ -50,10 +56,12 @@
end
# Attribute type mapping.
def self.openapi_types
{
+ :'first_name' => :'String',
+ :'last_name' => :'String',
:'primary_team_id' => :'String',
:'send_welcome_email' => :'Boolean',
:'role_id' => :'String',
:'secondary_team_ids' => :'Array<String>',
:'email' => :'String'
@@ -79,10 +87,18 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Settings::Users::UserProvisionRequest`. 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?(:'send_welcome_email')
@@ -125,10 +141,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 &&
send_welcome_email == o.send_welcome_email &&
role_id == o.role_id &&
secondary_team_ids == o.secondary_team_ids &&
email == o.email
@@ -141,10 +159,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [primary_team_id, send_welcome_email, role_id, secondary_team_ids, email].hash
+ [first_name, last_name, primary_team_id, send_welcome_email, role_id, secondary_team_ids, email].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself