Class: UU::OperationRegistry::Container
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Container
- Defined in:
- lib/uu/operation_registry/container.rb
Overview
Container for running applications.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(node_uri, attributes)
Creates a new container.
-
+ (void) delete(container_uri)
Deletes the specified container from the registry.
-
+ (Hash) get_attributes(container_uri)
Gets the attributes of the container specified by container URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_container_list(node_uri, criteria = {})
Returns list of containers.
-
+ (UU::OS::UESURI) set_attributes(container_uri, attributes)
Sets attributes of a container.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(node_uri, attributes)
Creates a new container.
-
- (void) delete(container_uri)
Deletes the specified container from the registry.
-
- (Hash) get_attributes(container_uri)
Gets the attributes of the container specified by container URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_container_list(node_uri, criteria = {})
Returns a list of containers on the given node.
-
- (Container) initialize(session = nil)
constructor
Creates a new instance of
Container
. -
- (UU::OS::UESURI) set_attributes(container_uri, attributes)
Sets attributes of a container.
Constructor Details
- (Container) initialize(session = nil)
Creates a new instance of Container
.
18 19 20 |
# File 'lib/uu/operation_registry/container.rb', line 18 def initialize(session = nil) super end |
Class Method Details
+ (UU::OS::UESURI) create(node_uri, attributes)
Creates a new container. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/container.rb', line 39
|
+ (void) delete(container_uri)
This method returns an undefined value.
Deletes the specified container from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/container.rb', line 84
|
+ (Hash) get_attributes(container_uri)
Gets the attributes of the container 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/container.rb', line 52
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_container_list(node_uri, criteria = {})
Returns list of containers. This method is a convenience shortcut for the #get_container_list instance method.
111 112 113 |
# File 'lib/uu/operation_registry/container.rb', line 111 def self.get_container_list(node_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_container_list(node_uri, criteria) end |
+ (UU::OS::UESURI) set_attributes(container_uri, attributes)
Sets attributes of a container. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/container.rb', line 73
|
Instance Method Details
- (UU::OS::UESURI) create(node_uri, attributes)
Creates a new container.
|
# File 'lib/uu/operation_registry/container.rb', line 22
|
- (void) delete(container_uri)
This method returns an undefined value.
Deletes the specified container from the registry.
|
# File 'lib/uu/operation_registry/container.rb', line 79
|
- (Hash) get_attributes(container_uri)
Gets the attributes of the container specified by container URI and returns its detail.
|
# File 'lib/uu/operation_registry/container.rb', line 46
|
- (UU::OS::Persistence::PagedResult<Hash>) get_container_list(node_uri, criteria = {})
Returns a list of containers on the given node. Command does not return all containers, only a sublist. The list of returned containers could be filtered using Mongo Query.
102 103 104 |
# File 'lib/uu/operation_registry/container.rb', line 102 def get_container_list(node_uri, criteria = {}) @client.invoke(:getContainerList, node_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(container_uri, attributes)
Sets attributes of a container.
|
# File 'lib/uu/operation_registry/container.rb', line 59
|