Class: CldProvisioning::Models::Shared::RoleResponseData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, name:, management_type:, permission_type:, scope_type:, created_at:, updated_at:, policy_parameters: nil, description: nil) ⇒ RoleResponseData

Returns a new instance of RoleResponseData.



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/cld_provisioning/models/shared/roleresponsedata.rb', line 100

def initialize(
  id:,
  name:,
  management_type:,
  permission_type:,
  scope_type:,
  created_at:,
  updated_at:,
  policy_parameters: nil,
  description: nil
)
  @id = id
  @name = name
  @management_type = management_type
  @permission_type = permission_type
  @scope_type = scope_type
  @created_at = created_at
  @updated_at = updated_at
  @policy_parameters = policy_parameters
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/cld_provisioning/models/shared/roleresponsedata.rb', line 123

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