Class: UU::OperationRegistry::AppDeployment
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::AppDeployment
- Defined in:
- lib/uu/operation_registry/app_deployment.rb
Overview
App deployment.
Class Method Summary collapse
-
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new deployment.
-
.delete(app_deployment_uri) ⇒ void
Deletes the specified deployment from the registry.
-
.get_app_deployment_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of deployments.
-
.get_attributes(app_deployment) ⇒ Hash
Returns attributes of the deployment specified by deployment URI or
tid-asid
string and returns its detail. -
.set_attributes(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an deployment.
Instance Method Summary collapse
-
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new deployment.
-
#delete(app_deployment_uri) ⇒ void
Deletes the specified deployment from the registry.
-
#get_app_deployment_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of deployments in the given pool.
-
#get_attributes(app_deployment) ⇒ Hash
Returns attributes of the deployment specified by deployment URI or
tid-asid
string and returns its detail. -
#initialize(session = nil) ⇒ AppDeployment
constructor
Creates a new instance of
AppDeployment
. -
#set_attributes(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an deployment.
Constructor Details
#initialize(session = nil) ⇒ AppDeployment
Creates a new instance of AppDeployment
.
18 19 20 |
# File 'lib/uu/operation_registry/app_deployment.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new deployment. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 60
|
.delete(app_deployment_uri) ⇒ void
This method returns an undefined value.
Deletes the specified deployment from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 132
|
.get_app_deployment_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of deployments. This method is a convenience shortcut for the #get_app_deployment_list instance method.
160 161 162 |
# File 'lib/uu/operation_registry/app_deployment.rb', line 160 def self.get_app_deployment_list(resource_pool_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_app_deployment_list(resource_pool_uri, criteria) end |
.get_attributes(app_deployment) ⇒ Hash
Returns attributes of the deployment specified by deployment URI or
tid-asid
string and returns its detail. This method is a
convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 74
|
.set_attributes(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an deployment. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 121
|
Instance Method Details
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new deployment.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 22
|
#delete(app_deployment_uri) ⇒ void
This method returns an undefined value.
Deletes the specified deployment from the registry.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 127
|
#get_app_deployment_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of deployments in the given pool. Command does not return all deployments, only a sublist. The list of returned deployments could be filtered using Mongo Query.
151 152 153 |
# File 'lib/uu/operation_registry/app_deployment.rb', line 151 def get_app_deployment_list(resource_pool_uri, criteria = {}) client.invoke(:getAppDeploymentList, resource_pool_uri, parameters: criteria) end |
#get_attributes(app_deployment) ⇒ Hash
Returns attributes of the deployment specified by deployment URI or
tid-asid
string and returns its detail.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 67
|
#set_attributes(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an deployment.
|
# File 'lib/uu/operation_registry/app_deployment.rb', line 82
|