Class: Fog::Proxmox::Compute::Storage

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/proxmox/compute/models/storage.rb

Overview

class Storage model: pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/node/storage/storage

Instance Method Summary collapse

Constructor Details

#initialize(new_attributes = {}) ⇒ Storage

Returns a new instance of Storage.



47
48
49
50
51
52
53
54
# File 'lib/fog/proxmox/compute/models/storage.rb', line 47

def initialize(new_attributes = {})
  prepare_service_value(new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('node_id', attributes, new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('storage', attributes, new_attributes)
  requires :node_id, :storage
  initialize_volumes
  super(new_attributes)
end