Class: UU::OperationRegistry::NodeImage
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::NodeImage
- Defined in:
- lib/uu/operation_registry/node_image.rb
Overview
Node image.
Class Method Summary collapse
-
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node image.
-
.delete(node_image_uri) ⇒ void
Deletes the specified node image from the registry.
-
.get_attributes(node_image_uri) ⇒ Hash
Gets the attributes of the node image specified by node image URI and returns its detail.
-
.get_node_image_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node images.
-
.set_attributes(node_image_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node image.
Instance Method Summary collapse
-
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node image.
-
#delete(node_image_uri) ⇒ void
Deletes the specified node image from the registry.
-
#get_attributes(node_image_uri) ⇒ Hash
Gets the attributes of the node image specified by node image URI and returns its detail.
-
#get_node_image_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of node images in the given cloud.
-
#initialize(session = nil) ⇒ NodeImage
constructor
Creates a new instance of
NodeImage
. -
#set_attributes(node_image_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node image.
Constructor Details
#initialize(session = nil) ⇒ NodeImage
Creates a new instance of NodeImage
.
18 19 20 |
# File 'lib/uu/operation_registry/node_image.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node image. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/node_image.rb', line 40
|
.delete(node_image_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node image from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/node_image.rb', line 83
|
.get_attributes(node_image_uri) ⇒ Hash
Gets the attributes of the node image specified by node image URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/node_image.rb', line 53
|
.get_node_image_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node images. This method is a convenience shortcut for the #get_node_image_list instance method.
111 112 113 |
# File 'lib/uu/operation_registry/node_image.rb', line 111 def self.get_node_image_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_image_list(cloud_uri, criteria) end |
.set_attributes(node_image_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node image. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/node_image.rb', line 72
|
Instance Method Details
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node image.
|
# File 'lib/uu/operation_registry/node_image.rb', line 22
|
#delete(node_image_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node image from the registry.
|
# File 'lib/uu/operation_registry/node_image.rb', line 78
|
#get_attributes(node_image_uri) ⇒ Hash
Gets the attributes of the node image specified by node image URI and returns its detail.
|
# File 'lib/uu/operation_registry/node_image.rb', line 47
|
#get_node_image_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of node images in the given cloud. Command does not return all node images, only a sublist. The list of returned node images could be filtered using Mongo Query.
102 103 104 |
# File 'lib/uu/operation_registry/node_image.rb', line 102 def get_node_image_list(cloud_uri, criteria = {}) @client.invoke(:getNodeImageList, cloud_uri, parameters: criteria) end |
#set_attributes(node_image_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node image.
|
# File 'lib/uu/operation_registry/node_image.rb', line 60
|