Class: UU::OperationRegistry::Container
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Container
- Defined in:
- lib/uu/operation_registry/container.rb
Overview
Container for running applications.
Class Method Summary collapse
-
.create(node_uri, attributes) ⇒ UU::OS::UESURI
Creates a new container.
-
.delete(container_uri) ⇒ void
Deletes the specified container from the registry.
-
.get_attributes(container_uri) ⇒ Hash
Gets the attributes of the container specified by container URI and returns its detail.
-
.get_container_list(node_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of containers.
-
.set_attributes(container_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a container.
Instance Method Summary collapse
-
#create(node_uri, attributes) ⇒ UU::OS::UESURI
Creates a new container.
-
#delete(container_uri) ⇒ void
Deletes the specified container from the registry.
-
#get_attributes(container_uri) ⇒ Hash
Gets the attributes of the container specified by container URI and returns its detail.
-
#get_container_list(node_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of containers on the given node.
-
#initialize(session = nil) ⇒ Container
constructor
Creates a new instance of
Container
. -
#set_attributes(container_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a container.
Constructor Details
#initialize(session = nil) ⇒ Container
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
.create(node_uri, attributes) ⇒ UU::OS::UESURI
Creates a new container. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/container.rb', line 39
|
.delete(container_uri) ⇒ void
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 86
|
.get_attributes(container_uri) ⇒ Hash
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
|
.get_container_list(node_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of containers. This method is a convenience shortcut for the #get_container_list instance method.
114 115 116 |
# File 'lib/uu/operation_registry/container.rb', line 114 def self.get_container_list(node_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_container_list(node_uri, criteria) end |
.set_attributes(container_uri, attributes) ⇒ UU::OS::UESURI
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 75
|
Instance Method Details
#create(node_uri, attributes) ⇒ UU::OS::UESURI
Creates a new container.
|
# File 'lib/uu/operation_registry/container.rb', line 22
|
#delete(container_uri) ⇒ void
This method returns an undefined value.
Deletes the specified container from the registry.
|
# File 'lib/uu/operation_registry/container.rb', line 81
|
#get_attributes(container_uri) ⇒ Hash
Gets the attributes of the container specified by container URI and returns its detail.
|
# File 'lib/uu/operation_registry/container.rb', line 46
|
#get_container_list(node_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
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.
105 106 107 |
# File 'lib/uu/operation_registry/container.rb', line 105 def get_container_list(node_uri, criteria = {}) @client.invoke(:getContainerList, node_uri, parameters: criteria) end |
#set_attributes(container_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a container.
|
# File 'lib/uu/operation_registry/container.rb', line 59
|