Class: Rafflesia::RegistryScope

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/registry_scope.rb

Constant Summary collapse

HASH_ATTRS =
{
  access_policy_id: :access_policy_id,
  classification: :classification,
  organization_id: :organization_id,
  resource_group_id: :resource_group_id,
  storage_scope_id: :storage_scope_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RegistryScope

Returns a new instance of RegistryScope.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/foundry/registry_scope.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @access_policy_id = hash[:access_policy_id]
  @classification = hash[:classification]
  @organization_id = hash[:organization_id]
  @resource_group_id = hash[:resource_group_id]
  @storage_scope_id = hash[:storage_scope_id]
end

Instance Attribute Details

#access_policy_idObject

Returns the value of attribute access_policy_id.



16
17
18
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16

def access_policy_id
  @access_policy_id
end

#classificationObject

Returns the value of attribute classification.



16
17
18
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16

def classification
  @classification
end

#organization_idObject

Returns the value of attribute organization_id.



16
17
18
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16

def organization_id
  @organization_id
end

#resource_group_idObject

Returns the value of attribute resource_group_id.



16
17
18
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16

def resource_group_id
  @resource_group_id
end

#storage_scope_idObject

Returns the value of attribute storage_scope_id.



16
17
18
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16

def storage_scope_id
  @storage_scope_id
end