Class: CldProvisioning::Models::Shared::PrincipalResponseData
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::PrincipalResponseData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/principalresponsedata.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, type:, role_id: nil, policy_parameters: nil, scope_type: nil, created_at: nil, updated_at: nil, scope_id: nil) ⇒ PrincipalResponseData
constructor
A new instance of PrincipalResponseData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, type:, role_id: nil, policy_parameters: nil, scope_type: nil, created_at: nil, updated_at: nil, scope_id: nil) ⇒ PrincipalResponseData
Returns a new instance of PrincipalResponseData.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/cld_provisioning/models/shared/principalresponsedata.rb', line 84 def initialize( id:, type:, role_id: nil, policy_parameters: nil, scope_type: nil, created_at: nil, updated_at: nil, scope_id: nil ) @id = id @type = type @role_id = role_id @policy_parameters = policy_parameters @scope_type = scope_type @created_at = created_at @updated_at = updated_at @scope_id = scope_id end |
Instance Method Details
#==(other) ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/cld_provisioning/models/shared/principalresponsedata.rb', line 105 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @type == other.type return false unless @role_id == other.role_id return false unless @policy_parameters == other.policy_parameters 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 @scope_id == other.scope_id true end |