Class: UU::OperationRegistry::Cloud
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Cloud
- Defined in:
- lib/uu/operation_registry/cloud.rb
Overview
Cloud.
Class Method Summary collapse
-
.get_app_deployment_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app deployments.
-
.get_app_share_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app shares.
-
.get_attributes(cloud_uri) ⇒ Hash
Gets the attributes of the cloud specified by cloud URI and returns its detail.
-
.get_container_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of containers.
-
.get_host_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of hosts.
-
.get_msg_bus_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message busses.
-
.get_node_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of nodes.
-
.get_node_set_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node sets.
-
.get_resource_group_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resource groups.
-
.get_resource_group_stats(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of statistics for resource groups in the given cloud.
-
.get_resource_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resources.
-
.get_resource_pool_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resource pools.
-
.set_attributes(cloud_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Cloud.
Instance Method Summary collapse
-
#get_app_deployment_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app deployments in the given cloud.
-
#get_app_share_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app shares in the given cloud.
-
#get_attributes(cloud_uri) ⇒ Hash
Gets the attributes of the cloud specified by cloud URI and returns its detail.
-
#get_container_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of containers in the given cloud.
-
#get_host_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of hosts in the given cloud.
-
#get_msg_bus_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message busses in the given cloud.
-
#get_node_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of nodes in the given cloud.
-
#get_node_set_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node sets in the given cloud.
-
#get_resource_group_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource groups in the given cloud.
-
#get_resource_group_stats(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of statistics for resource groups in the given cloud.
-
#get_resource_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resources in the given cloud.
-
#get_resource_pool_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource pools in the given cloud.
-
#initialize(session = nil) ⇒ Cloud
constructor
Creates a new instance of
Cloud
. -
#set_attributes(cloud_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Cloud.
Constructor Details
#initialize(session = nil) ⇒ Cloud
Creates a new instance of Cloud
.
18 19 20 |
# File 'lib/uu/operation_registry/cloud.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.get_app_deployment_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app deployments. This method is a convenience shortcut for the #get_app_deployment_list instance method.
370 371 372 |
# File 'lib/uu/operation_registry/cloud.rb', line 370 def self.get_app_deployment_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_app_deployment_list(cloud_uri, criteria) end |
.get_app_share_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app shares. This method is a convenience shortcut for the #get_app_share_list instance method.
397 398 399 |
# File 'lib/uu/operation_registry/cloud.rb', line 397 def self.get_app_share_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_app_share_list(cloud_uri, criteria) end |
.get_attributes(cloud_uri) ⇒ Hash
Gets the attributes of the cloud specified by cloud URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/cloud.rb', line 38
|
.get_container_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of containers. This method is a convenience shortcut for the #get_container_list instance method.
121 122 123 |
# File 'lib/uu/operation_registry/cloud.rb', line 121 def self.get_container_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_container_list(cloud_uri, criteria) end |
.get_host_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of hosts. This method is a convenience shortcut for the #get_host_list instance method.
291 292 293 |
# File 'lib/uu/operation_registry/cloud.rb', line 291 def self.get_host_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_host_list(cloud_uri, criteria) end |
.get_msg_bus_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message busses. This method is a convenience shortcut for the #get_msg_bus_list instance method.
318 319 320 |
# File 'lib/uu/operation_registry/cloud.rb', line 318 def self.get_msg_bus_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_msg_bus_list(cloud_uri, criteria) end |
.get_node_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of nodes. This method is a convenience shortcut for the #get_node_list instance method.
344 345 346 |
# File 'lib/uu/operation_registry/cloud.rb', line 344 def self.get_node_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_list(cloud_uri, criteria) end |
.get_node_set_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of node sets. This method is a convenience shortcut for the #get_node_set_list instance method.
424 425 426 |
# File 'lib/uu/operation_registry/cloud.rb', line 424 def self.get_node_set_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_set_list(cloud_uri, criteria) end |
.get_resource_group_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resource groups. This method is a convenience shortcut for the #get_resource_group_list instance method.
147 148 149 |
# File 'lib/uu/operation_registry/cloud.rb', line 147 def self.get_resource_group_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_group_list(cloud_uri, criteria) end |
.get_resource_group_stats(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of statistics for resource groups in the given cloud. This method is a convenience shortcut for the #get_resource_group_stats instance method.
238 239 240 |
# File 'lib/uu/operation_registry/cloud.rb', line 238 def self.get_resource_group_stats(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_group_stats(cloud_uri, criteria) end |
.get_resource_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resources. This method is a convenience shortcut for the #get_resource_list instance method.
451 452 453 |
# File 'lib/uu/operation_registry/cloud.rb', line 451 def self.get_resource_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_list(cloud_uri, criteria) end |
.get_resource_pool_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resource pools. This method is a convenience shortcut for the #get_resource_pool_list instance method.
264 265 266 |
# File 'lib/uu/operation_registry/cloud.rb', line 264 def self.get_resource_pool_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_pool_list(cloud_uri, criteria) end |
.set_attributes(cloud_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Cloud. This method is a convenience shortcut for the #set_attributes instance method.
95 96 97 |
# File 'lib/uu/operation_registry/cloud.rb', line 95 def self.set_attributes(cloud_uri, attributes) self.new(UU::OS::Security::Session.current_session).set_attributes(cloud_uri, attributes) end |
Instance Method Details
#get_app_deployment_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app deployments in the given cloud. Command does not return all nodes, only a sublist. The list of returned nodes could be filtered using Mongo Query.
361 362 363 |
# File 'lib/uu/operation_registry/cloud.rb', line 361 def get_app_deployment_list(cloud_uri, criteria = {}) @client.invoke(:getAppDeploymentList, cloud_uri, parameters: criteria) end |
#get_app_share_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app shares in the given cloud. Command does not return all nodes, only a sublist. The list of returned nodes could be filtered using Mongo Query.
388 389 390 |
# File 'lib/uu/operation_registry/cloud.rb', line 388 def get_app_share_list(cloud_uri, criteria = {}) @client.invoke(:getAppShareList, cloud_uri, parameters: criteria) end |
#get_attributes(cloud_uri) ⇒ Hash
Gets the attributes of the cloud specified by cloud URI and returns its detail.
|
# File 'lib/uu/operation_registry/cloud.rb', line 22
|
#get_container_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of containers in the given cloud. Command does not return all containers, only a sublist. The list of returned containers could be filtered using Mongo Query.
112 113 114 |
# File 'lib/uu/operation_registry/cloud.rb', line 112 def get_container_list(cloud_uri, criteria = {}) @client.invoke(:getContainerList, cloud_uri, parameters: criteria) end |
#get_host_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of hosts in the given cloud. Command does not return all hosts, only a sublist. The list of returned hosts could be filtered using Mongo Query.
282 283 284 |
# File 'lib/uu/operation_registry/cloud.rb', line 282 def get_host_list(cloud_uri, criteria = {}) @client.invoke(:getHostList, cloud_uri, parameters: criteria) end |
#get_msg_bus_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message busses in the given cloud. Command does not return all message busses, only a sublist. The list of returned message busses could be filtered using Mongo Query.
309 310 311 |
# File 'lib/uu/operation_registry/cloud.rb', line 309 def get_msg_bus_list(cloud_uri, criteria = {}) @client.invoke(:getMsgBusList, cloud_uri, parameters: criteria) end |
#get_node_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of nodes in the given cloud. Command does not return all nodes, only a sublist. The list of returned nodes could be filtered using Mongo Query.
335 336 337 |
# File 'lib/uu/operation_registry/cloud.rb', line 335 def get_node_list(cloud_uri, criteria = {}) @client.invoke(:getNodeList, cloud_uri, parameters: criteria) end |
#get_node_set_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Attributes “nodeSizeUri”, “nodeCount” and “inboundPorts” are set only for ResourceGroup of type “SWARM”.
Returns list of node sets in the given cloud. Command does not return all nodes, only a sublist. The list of returned nodes could be filtered using Mongo Query.
415 416 417 |
# File 'lib/uu/operation_registry/cloud.rb', line 415 def get_node_set_list(cloud_uri, criteria = {}) @client.invoke(:getNodeSetList, cloud_uri, parameters: criteria) end |
#get_resource_group_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource groups in the given cloud. Command does not return all resource groups, only a sublist. The list of returned resource groups could be filtered using Mongo Query.
138 139 140 |
# File 'lib/uu/operation_registry/cloud.rb', line 138 def get_resource_group_list(cloud_uri, criteria = {}) @client.invoke(:getResourceGroupList, cloud_uri, parameters: criteria) end |
#get_resource_group_stats(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
This command returns canonical form of ResourceGroup UESURI (i.e. UESURI containing only IDs, not codes).
Returns a list of statistics for resource groups in the given cloud. The list of returned statistics could be filtered using Mongo Query.
229 230 231 |
# File 'lib/uu/operation_registry/cloud.rb', line 229 def get_resource_group_stats(cloud_uri, criteria = {}) @client.invoke(:getResourceGroupStats, cloud_uri, parameters: criteria) end |
#get_resource_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resources in the given cloud. Command does not return all resources, only a sublist. The list of returned resources could be filtered using Mongo Query.
442 443 444 |
# File 'lib/uu/operation_registry/cloud.rb', line 442 def get_resource_list(cloud_uri, criteria = {}) @client.invoke(:getResourceList, cloud_uri, parameters: criteria) end |
#get_resource_pool_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource pools in the given cloud. Command does not return all resource pools, only a sublist. The list of returned resource pools could be filtered using Mongo Query.
255 256 257 |
# File 'lib/uu/operation_registry/cloud.rb', line 255 def get_resource_pool_list(cloud_uri, criteria = {}) @client.invoke(:getResourcePoolList, cloud_uri, parameters: criteria) end |
#set_attributes(cloud_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Cloud.
86 87 88 |
# File 'lib/uu/operation_registry/cloud.rb', line 86 def set_attributes(cloud_uri, attributes) @client.invoke(:setAttributes, cloud_uri, parameters: attributes) end |