Class: CldProvisioning::Models::Shared::RoleResponseData1

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/cld_provisioning/models/shared/roleresponse_data1.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:, policies: nil, policy_parameters: nil, description: nil) ⇒ RoleResponseData1

Returns a new instance of RoleResponseData1.



107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/cld_provisioning/models/shared/roleresponse_data1.rb', line 107

def initialize(
  id:,
  name:,
  management_type:,
  permission_type:,
  scope_type:,
  created_at:,
  updated_at:,
  policies: nil,
  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
  @policies = policies
  @policy_parameters = policy_parameters
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/cld_provisioning/models/shared/roleresponse_data1.rb', line 132

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 @policies == other.policies
  return false unless @policy_parameters == other.policy_parameters
  return false unless @description == other.description
  true
end