Class: UU::OperationRegistry::Volume
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Volume
- Defined in:
- lib/uu/operation_registry/volume.rb
Overview
Volume.
Class Method Summary collapse
-
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Volume.
-
.delete(volume_uri) ⇒ void
Deletes the specified Volume from the registry.
-
.get_attributes(volume_uri) ⇒ Hash
Gets the attributes of the Volume specified by volume URI.
-
.get_volume_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of Volumes.
-
.set_attributes(volume_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Volume.
Instance Method Summary collapse
-
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Volume.
-
#delete(volume_uri) ⇒ void
Deletes the specified Volume from the registry.
-
#get_attributes(volume_uri) ⇒ Hash
Gets the attributes of the Volume specified by volume URI.
-
#get_volume_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of Volumes for the given Cloud.
-
#initialize(session = nil) ⇒ Volume
constructor
Creates a new instance of
Volume
. -
#set_attributes(volume_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Volume.
Constructor Details
#initialize(session = nil) ⇒ Volume
Creates a new instance of Volume
.
18 19 20 |
# File 'lib/uu/operation_registry/volume.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Volume. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/volume.rb', line 37
|
.delete(volume_uri) ⇒ void
This method returns an undefined value.
Deletes the specified Volume from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/volume.rb', line 107
|
.get_attributes(volume_uri) ⇒ Hash
Gets the attributes of the Volume specified by volume URI. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/volume.rb', line 70
|
.get_volume_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of Volumes. This method is a convenience shortcut for the #get_volume_list instance method.
135 136 137 |
# File 'lib/uu/operation_registry/volume.rb', line 135 def self.get_volume_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_volume_list(cloud_uri, criteria) end |
.set_attributes(volume_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Volume. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/volume.rb', line 89
|
Instance Method Details
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Volume.
|
# File 'lib/uu/operation_registry/volume.rb', line 22
|
#delete(volume_uri) ⇒ void
This method returns an undefined value.
Deletes the specified Volume from the registry.
|
# File 'lib/uu/operation_registry/volume.rb', line 102
|
#get_attributes(volume_uri) ⇒ Hash
Gets the attributes of the Volume specified by volume URI.
|
# File 'lib/uu/operation_registry/volume.rb', line 65
|
#get_volume_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of Volumes for the given Cloud. Command does not return all Volumes, only a sublist. The list of returned Volumes could be filtered using Mongo Query.
126 127 128 |
# File 'lib/uu/operation_registry/volume.rb', line 126 def get_volume_list(cloud_uri, criteria = {}) @client.invoke(:getVolumeList, cloud_uri, parameters: criteria) end |
#set_attributes(volume_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Volume.
|
# File 'lib/uu/operation_registry/volume.rb', line 77
|