Class: Rafflesia::RegistryMount

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/registry_mount.rb

Constant Summary collapse

HASH_ATTRS =
{
  access_policy_id: :access_policy_id,
  id: :id,
  mounted_at: :mounted_at,
  object: :object,
  organization_id: :organization_id,
  resource_group_id: :resource_group_id,
  schema_version: :schema_version,
  signature: :signature,
  signing_key_id: :signing_key_id,
  signing_public_key: :signing_public_key,
  snapshot_digest: :snapshot_digest,
  snapshot_uri: :snapshot_uri,
  status: :status,
  updated_at: :updated_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RegistryMount

Returns a new instance of RegistryMount.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/registry/registry_mount.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @access_policy_id = hash[:access_policy_id]
  @id = hash[:id]
  @mounted_at = hash[:mounted_at]
  @object = hash[:object]
  @organization_id = hash[:organization_id]
  @resource_group_id = hash[:resource_group_id]
  @schema_version = hash[:schema_version]
  @signature = hash[:signature]
  @signing_key_id = hash[:signing_key_id]
  @signing_public_key = hash[:signing_public_key]
  @snapshot_digest = hash[:snapshot_digest]
  @snapshot_uri = hash[:snapshot_uri]
  @status = hash[:status]
  @updated_at = hash[:updated_at]
end

Instance Attribute Details

#access_policy_idObject

Returns the value of attribute access_policy_id.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def access_policy_id
  @access_policy_id
end

#idObject

Returns the value of attribute id.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def id
  @id
end

#mounted_atObject

Returns the value of attribute mounted_at.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def mounted_at
  @mounted_at
end

#objectObject

Returns the value of attribute object.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def organization_id
  @organization_id
end

#resource_group_idObject

Returns the value of attribute resource_group_id.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def resource_group_id
  @resource_group_id
end

#schema_versionObject

Returns the value of attribute schema_version.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def schema_version
  @schema_version
end

#signatureObject

Returns the value of attribute signature.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def signature
  @signature
end

#signing_key_idObject

Returns the value of attribute signing_key_id.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def signing_key_id
  @signing_key_id
end

#signing_public_keyObject

Returns the value of attribute signing_public_key.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def signing_public_key
  @signing_public_key
end

#snapshot_digestObject

Returns the value of attribute snapshot_digest.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def snapshot_digest
  @snapshot_digest
end

#snapshot_uriObject

Returns the value of attribute snapshot_uri.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def snapshot_uri
  @snapshot_uri
end

#statusObject

Returns the value of attribute status.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



25
26
27
# File 'lib/rafflesia/registry/registry_mount.rb', line 25

def updated_at
  @updated_at
end