Class: UU::OperationRegistry::NodeSet
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::NodeSet
- Defined in:
- lib/uu/operation_registry/node_set.rb
Overview
Node set.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(resource_pool_uri, attributes)
Creates a new node set.
-
+ (void) delete(node_set_uri)
Deletes the specified node set from the registry.
-
+ (Hash) get_attributes(node_set_uri)
Gets the attributes of the node set specified by container URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_node_set_list(resource_pool_uri, criteria = {})
Returns list of node sets.
-
+ (UU::OS::UESURI) set_attributes(node_set_uri, attributes)
Sets attributes of a node set.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(resource_pool_uri, attributes)
Creates a new container.
-
- (void) delete(node_set_uri)
Deletes the specified node set from the registry.
-
- (Hash) get_attributes(node_set_uri)
Gets the attributes of the node set specified by container URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_node_set_list(resource_pool_uri, criteria = {})
Returns a list of node sets in the given resource pool.
-
- (NodeSet) initialize(session = nil)
constructor
Creates a new instance of
NodeSet
. -
- (UU::OS::UESURI) set_attributes(node_set_uri, attributes)
Sets attributes of a node set.
Constructor Details
- (NodeSet) initialize(session = nil)
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
+ (UU::OS::UESURI) create(resource_pool_uri, attributes)
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 35
|
+ (void) delete(node_set_uri)
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 79
|
+ (Hash) get_attributes(node_set_uri)
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 48
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_node_set_list(resource_pool_uri, criteria = {})
Returns list of node sets. This method is a convenience shortcut for the #get_node_set_list instance method.
106 107 108 |
# File 'lib/uu/operation_registry/node_set.rb', line 106 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 |
+ (UU::OS::UESURI) set_attributes(node_set_uri, attributes)
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 68
|
Instance Method Details
- (UU::OS::UESURI) create(resource_pool_uri, attributes)
Creates a new container.
|
# File 'lib/uu/operation_registry/node_set.rb', line 22
|
- (void) delete(node_set_uri)
This method returns an undefined value.
Deletes the specified node set from the registry.
|
# File 'lib/uu/operation_registry/node_set.rb', line 74
|
- (Hash) get_attributes(node_set_uri)
Gets the attributes of the node set specified by container URI and returns its detail.
|
# File 'lib/uu/operation_registry/node_set.rb', line 42
|
- (UU::OS::Persistence::PagedResult<Hash>) get_node_set_list(resource_pool_uri, criteria = {})
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.
97 98 99 |
# File 'lib/uu/operation_registry/node_set.rb', line 97 def get_node_set_list(resource_pool_uri, criteria = {}) @client.invoke(:getNodeSetList, resource_pool_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(node_set_uri, attributes)
Sets attributes of a node set.
|
# File 'lib/uu/operation_registry/node_set.rb', line 55
|