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