Class: UU::OperationRegistry::ResourcePool
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::ResourcePool
- Defined in:
- lib/uu/operation_registry/resource_pool.rb
Overview
Resource pool.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(tenant_uri, attributes)
Creates a new resource pool.
-
+ (void) delete(resource_pool_uri)
Deletes the specified pool from the registry.
-
+ (Hash) get_attributes(resource_pool_uri)
Gets the attributes of the pool specified by pool URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_resource_pool_list(tenant_uri, criteria = {})
Returns list of resource pools.
-
+ (UU::OS::UESURI) set_attributes(resource_pool_uri, attributes)
Sets attributes of an pool.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(tenant_uri, attributes)
Creates a new resource pool.
-
- (void) delete(resource_pool_uri)
Deletes the specified pool from the registry.
-
- (Hash) get_attributes(resource_pool_uri)
Gets the attributes of the pool specified by pool URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_resource_pool_list(tenant_uri, criteria = {})
Returns a list of resource pools in the given tenant.
-
- (ResourcePool) initialize(session = nil)
constructor
Creates a new instance of Resource pool.
-
- (UU::OS::UESURI) set_attributes(resource_pool_uri, attributes)
Sets attributes of an pool.
Constructor Details
- (ResourcePool) initialize(session = nil)
Creates a new instance of Resource pool.
18 19 20 |
# File 'lib/uu/operation_registry/resource_pool.rb', line 18 def initialize(session = nil) super end |
Class Method Details
+ (UU::OS::UESURI) create(tenant_uri, attributes)
Creates a new resource pool. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 44
|
+ (void) delete(resource_pool_uri)
This method returns an undefined value.
Deletes the specified pool from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 95
|
+ (Hash) get_attributes(resource_pool_uri)
Gets the attributes of the pool specified by pool URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 57
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_resource_pool_list(tenant_uri, criteria = {})
Returns list of resource pools. This method is a convenience shortcut for the #get_resource_pool_list instance method.
122 123 124 |
# File 'lib/uu/operation_registry/resource_pool.rb', line 122 def self.get_resource_pool_list(tenant_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_pool_list(tenant_uri, criteria) end |
+ (UU::OS::UESURI) set_attributes(resource_pool_uri, attributes)
Sets attributes of an pool. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 84
|
Instance Method Details
- (UU::OS::UESURI) create(tenant_uri, attributes)
Creates a new resource pool.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 22
|
- (void) delete(resource_pool_uri)
This method returns an undefined value.
Deletes the specified pool from the registry.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 90
|
- (Hash) get_attributes(resource_pool_uri)
Gets the attributes of the pool specified by pool URI and returns its detail.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 51
|
- (UU::OS::Persistence::PagedResult<Hash>) get_resource_pool_list(tenant_uri, criteria = {})
Returns a list of resource pools in the given tenant. Command does not return all resource pools, only a sublist. The list of returned resource pools could be filtered using Mongo Query.
113 114 115 |
# File 'lib/uu/operation_registry/resource_pool.rb', line 113 def get_resource_pool_list(tenant_uri, criteria = {}) @client.invoke(:getResourcePoolList, tenant_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(resource_pool_uri, attributes)
Sets attributes of an pool.
|
# File 'lib/uu/operation_registry/resource_pool.rb', line 64
|