Class: UU::OperationRegistry::NodeSize
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::NodeSize
- Defined in:
- lib/uu/operation_registry/node_size.rb
Overview
Node Size.
Class Method Summary collapse
-
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node size.
-
.delete(node_size_uri) ⇒ void
Deletes the specified node size from the registry.
-
.get_attributes(node_size_uri) ⇒ Hash
Gets the attributes of the node size specified by node size URI and returns its detail.
-
.get_node_size_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of sizes.
-
.set_attributes(node_size_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node size.
Instance Method Summary collapse
-
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node size.
-
#delete(node_size_uri) ⇒ void
Deletes the specified node size from the registry.
-
#get_attributes(node_size_uri) ⇒ Hash
Gets the attributes of the node size specified by node size URI and returns its detail.
-
#get_node_size_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of node sizes in the given cloud.
-
#initialize(session = nil) ⇒ NodeSize
constructor
Creates a new instance of
NodeSize
. -
#set_attributes(node_size_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node size.
Constructor Details
#initialize(session = nil) ⇒ NodeSize
Creates a new instance of NodeSize
.
18 19 20 |
# File 'lib/uu/operation_registry/node_size.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node size. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/node_size.rb', line 36
|
.delete(node_size_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node size from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/node_size.rb', line 77
|
.get_attributes(node_size_uri) ⇒ Hash
Gets the attributes of the node size specified by node size URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/node_size.rb', line 49
|
.get_node_size_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of sizes. This method is a convenience shortcut for the #get_node_size_list instance method.
105 106 107 |
# File 'lib/uu/operation_registry/node_size.rb', line 105 def self.get_node_size_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_size_list(cloud_uri, criteria) end |
.set_attributes(node_size_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node size. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/node_size.rb', line 66
|
Instance Method Details
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node size.
|
# File 'lib/uu/operation_registry/node_size.rb', line 22
|
#delete(node_size_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node size from the registry.
|
# File 'lib/uu/operation_registry/node_size.rb', line 72
|
#get_attributes(node_size_uri) ⇒ Hash
Gets the attributes of the node size specified by node size URI and returns its detail.
|
# File 'lib/uu/operation_registry/node_size.rb', line 43
|
#get_node_size_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of node sizes in the given cloud. Command does not return all sizes, only a sublist. The list of returned sizes could be filtered using Mongo Query.
96 97 98 |
# File 'lib/uu/operation_registry/node_size.rb', line 96 def get_node_size_list(cloud_uri, criteria = {}) client.invoke(:getNodeSizeList, cloud_uri, parameters: criteria) end |
#set_attributes(node_size_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node size.
|
# File 'lib/uu/operation_registry/node_size.rb', line 56
|