Class: CldProvisioning::Models::Operations::CreateUserRequestBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/cld_provisioning/models/operations/createuser_requestbody.rb

Overview

User details.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(name:, email:, role: nil, sub_account_ids: nil, enabled: nil) ⇒ CreateUserRequestBody

Returns a new instance of CreateUserRequestBody.



64
65
66
67
68
69
70
# File 'lib/cld_provisioning/models/operations/createuser_requestbody.rb', line 64

def initialize(name:, email:, role: nil, sub_account_ids: nil, enabled: nil)
  @name = name
  @email = email
  @role = role
  @sub_account_ids = 
  @enabled = enabled
end

Instance Method Details

#==(other) ⇒ Object



73
74
75
76
77
78
79
80
81
# File 'lib/cld_provisioning/models/operations/createuser_requestbody.rb', line 73

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @name == other.name
  return false unless @email == other.email
  return false unless @role == other.role
  return false unless @sub_account_ids == other.
  return false unless @enabled == other.enabled
  true
end