Class: UU::OperationRegistry::NodeSet
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::NodeSet
- Defined in:
- lib/uu/operation_registry/node_set.rb,
lib/uu/operation_registry/node_set_slot.rb
Overview
Node set.
Defined Under Namespace
Classes: Slot
Class Method Summary collapse
-
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node set.
-
.delete(node_set_uri) ⇒ void
Deletes the specified node set from the registry.
-
.get_attributes(node_set_uri) ⇒ Hash
Gets the attributes of the node set specified by container URI and returns its detail.
-
.get_node_set_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node sets.
-
.set_attributes(node_set_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node set.
Instance Method Summary collapse
-
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new NodeSet.
-
#delete(node_set_uri) ⇒ void
Deletes the specified node set from the registry.
-
#get_attributes(node_set_uri) ⇒ Hash
Gets the attributes of the node set specified by container URI and returns its detail.
-
#get_node_set_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of node sets in the given resource pool.
-
#initialize(session = nil) ⇒ NodeSet
constructor
Creates a new instance of
NodeSet
. -
#set_attributes(node_set_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node set.
Constructor Details
#initialize(session = nil) ⇒ NodeSet
Creates a new instance of NodeSet
.
18 19 20 |
# File 'lib/uu/operation_registry/node_set.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new node set. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/node_set.rb', line 46
|
.delete(node_set_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node set from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/node_set.rb', line 103
|
.get_attributes(node_set_uri) ⇒ Hash
Gets the attributes of the node set specified by container URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/node_set.rb', line 62
|
.get_node_set_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node sets. This method is a convenience shortcut for the #get_node_set_list instance method.
133 134 135 |
# File 'lib/uu/operation_registry/node_set.rb', line 133 def self.get_node_set_list(resource_pool_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_set_list(resource_pool_uri, criteria) end |
.set_attributes(node_set_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node set. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/node_set.rb', line 92
|
Instance Method Details
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new NodeSet.
|
# File 'lib/uu/operation_registry/node_set.rb', line 22
|
#delete(node_set_uri) ⇒ void
This method returns an undefined value.
Deletes the specified node set from the registry.
|
# File 'lib/uu/operation_registry/node_set.rb', line 98
|
#get_attributes(node_set_uri) ⇒ Hash
Attributes “nodeSizeUri”, “nodeCount”, “inboundPorts” and “networkCidr” are set only for ResourceGroup of type “SWARM”.
Gets the attributes of the node set specified by container URI and returns its detail.
|
# File 'lib/uu/operation_registry/node_set.rb', line 53
|
#get_node_set_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Attributes “nodeSizeUri”, “nodeCount”, “inboundPorts” and “networkCidr” are set only for ResourceGroup of type “SWARM”.
Returns a list of node sets in the given resource pool. Command does not return all node sets, only a sublist. The list of returned node sets could be filtered using Mongo Query.
124 125 126 |
# File 'lib/uu/operation_registry/node_set.rb', line 124 def get_node_set_list(resource_pool_uri, criteria = {}) @client.invoke(:getNodeSetList, resource_pool_uri, parameters: criteria) end |
#set_attributes(node_set_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a node set.
|
# File 'lib/uu/operation_registry/node_set.rb', line 69
|