Class: CldProvisioning::Models::Shared::CreateRole

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(permission_type:, scope_type:, name:, id: nil, system_policy_ids: nil, description: nil) ⇒ CreateRole

Returns a new instance of CreateRole.



79
80
81
82
83
84
85
86
# File 'lib/cld_provisioning/models/shared/createrole.rb', line 79

def initialize(permission_type:, scope_type:, name:, id: nil, system_policy_ids: nil, description: nil)
  @permission_type = permission_type
  @scope_type = scope_type
  @name = name
  @id = id
  @system_policy_ids = system_policy_ids
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



89
90
91
92
93
94
95
96
97
98
# File 'lib/cld_provisioning/models/shared/createrole.rb', line 89

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @permission_type == other.permission_type
  return false unless @scope_type == other.scope_type
  return false unless @name == other.name
  return false unless @id == other.id
  return false unless @system_policy_ids == other.system_policy_ids
  return false unless @description == other.description
  true
end