Class: CldProvisioning::Models::Shared::CustomPolicyResponseData
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::CustomPolicyResponseData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/custompolicyresponsedata.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, policy_statement:, scope_type:, name:, enabled:, created_at:, updated_at:, description: nil, scope_id: nil) ⇒ CustomPolicyResponseData
constructor
A new instance of CustomPolicyResponseData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, policy_statement:, scope_type:, name:, enabled:, created_at:, updated_at:, description: nil, scope_id: nil) ⇒ CustomPolicyResponseData
Returns a new instance of CustomPolicyResponseData.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/cld_provisioning/models/shared/custompolicyresponsedata.rb', line 86 def initialize( id:, policy_statement:, scope_type:, name:, enabled:, created_at:, updated_at:, description: nil, scope_id: nil ) @id = id @policy_statement = policy_statement @scope_type = scope_type @name = name @enabled = enabled @created_at = created_at @updated_at = updated_at @description = description @scope_id = scope_id end |
Instance Method Details
#==(other) ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/cld_provisioning/models/shared/custompolicyresponsedata.rb', line 109 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @policy_statement == other.policy_statement return false unless @scope_type == other.scope_type return false unless @name == other.name return false unless @enabled == other.enabled return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @description == other.description return false unless @scope_id == other.scope_id true end |