lib/turnkey_client/models/user.rb in turnkey_client-0.0.4 vs lib/turnkey_client/models/user.rb in turnkey_client-0.0.7
- old
+ new
@@ -28,10 +28,13 @@
attr_accessor :api_keys
# A list of User Tag IDs.
attr_accessor :user_tags
+ # A list of Oauth Providers.
+ attr_accessor :oauth_providers
+
attr_accessor :created_at
attr_accessor :updated_at
# Attribute mapping from ruby-style variable name to JSON key.
@@ -41,10 +44,11 @@
:'user_name' => :'userName',
:'user_email' => :'userEmail',
:'authenticators' => :'authenticators',
:'api_keys' => :'apiKeys',
:'user_tags' => :'userTags',
+ :'oauth_providers' => :'oauthProviders',
:'created_at' => :'createdAt',
:'updated_at' => :'updatedAt'
}
end
@@ -55,10 +59,11 @@
:'user_name' => :'Object',
:'user_email' => :'Object',
:'authenticators' => :'Object',
:'api_keys' => :'Object',
:'user_tags' => :'Object',
+ :'oauth_providers' => :'Object',
:'created_at' => :'Object',
:'updated_at' => :'Object'
}
end
@@ -111,10 +116,16 @@
if (value = attributes[:'user_tags']).is_a?(Array)
self.user_tags = value
end
end
+ if attributes.key?(:'oauth_providers')
+ if (value = attributes[:'oauth_providers']).is_a?(Array)
+ self.oauth_providers = value
+ end
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'updated_at')
@@ -144,10 +155,14 @@
if @user_tags.nil?
invalid_properties.push('invalid value for "user_tags", user_tags cannot be nil.')
end
+ if @oauth_providers.nil?
+ invalid_properties.push('invalid value for "oauth_providers", oauth_providers cannot be nil.')
+ end
+
if @created_at.nil?
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
end
if @updated_at.nil?
@@ -163,10 +178,11 @@
return false if @user_id.nil?
return false if @user_name.nil?
return false if @authenticators.nil?
return false if @api_keys.nil?
return false if @user_tags.nil?
+ return false if @oauth_providers.nil?
return false if @created_at.nil?
return false if @updated_at.nil?
true
end
@@ -179,10 +195,11 @@
user_name == o.user_name &&
user_email == o.user_email &&
authenticators == o.authenticators &&
api_keys == o.api_keys &&
user_tags == o.user_tags &&
+ oauth_providers == o.oauth_providers &&
created_at == o.created_at &&
updated_at == o.updated_at
end
# @see the `==` method
@@ -192,10 +209,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [user_id, user_name, user_email, authenticators, api_keys, user_tags, created_at, updated_at].hash
+ [user_id, user_name, user_email, authenticators, api_keys, user_tags, oauth_providers, created_at, updated_at].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself