Class: Rafflesia::MountUpsertRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  signature: :signature,
  signing_key_id: :signing_key_id,
  signing_public_key: :signing_public_key,
  snapshot: :snapshot
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MountUpsertRequest

Returns a new instance of MountUpsertRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @signature = hash[:signature]
  @signing_key_id = hash[:signing_key_id]
  @signing_public_key = hash[:signing_public_key]
  @snapshot = hash[:snapshot] ? Rafflesia::Snapshot.new(hash[:snapshot]) : nil
end

Instance Attribute Details

#signatureObject

Returns the value of attribute signature.



15
16
17
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15

def signature
  @signature
end

#signing_key_idObject

Returns the value of attribute signing_key_id.



15
16
17
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15

def signing_key_id
  @signing_key_id
end

#signing_public_keyObject

Returns the value of attribute signing_public_key.



15
16
17
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15

def signing_public_key
  @signing_public_key
end

#snapshotObject

Returns the value of attribute snapshot.



15
16
17
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15

def snapshot
  @snapshot
end