Class: CldProvisioning::Models::Shared::UpdateCustomPolicy

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(policy_statement:, scope_type:, name:, description: nil, scope_id: nil, enabled: true) ⇒ UpdateCustomPolicy

Returns a new instance of UpdateCustomPolicy.



73
74
75
76
77
78
79
80
# File 'lib/cld_provisioning/models/shared/updatecustompolicy.rb', line 73

def initialize(policy_statement:, scope_type:, name:, description: nil, scope_id: nil, enabled: true)
  @policy_statement = policy_statement
  @scope_type = scope_type
  @name = name
  @description = description
  @scope_id = scope_id
  @enabled = enabled
end

Instance Method Details

#==(other) ⇒ Object



83
84
85
86
87
88
89
90
91
92
# File 'lib/cld_provisioning/models/shared/updatecustompolicy.rb', line 83

def ==(other)
  return false unless other.is_a?(self.class)
  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 @description == other.description
  return false unless @scope_id == other.scope_id
  return false unless @enabled == other.enabled
  true
end