Class: UU::CloudRuntime::Resource
- Inherits:
-
RuntimeBaseClass
- Object
- RuntimeBaseClass
- UU::CloudRuntime::Resource
- Defined in:
- lib/uu/cloud_runtime/resource.rb
Overview
Resource represents a service or other resource assigned to an application on demand, especially in the area of persistence (e.g. MongoDB, PostgreSQL, ...) or messaging.
Defined Under Namespace
Classes: ResourceType
Class Method Summary collapse
-
.get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) ⇒ Hash
Returns a paged list of Resources filterable by resource type.
Instance Method Summary collapse
-
#get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) ⇒ Hash
Returns a paged list of Resources filterable by resource type.
-
#initialize(session = nil) ⇒ Resource
constructor
Creates a new instance of
Resource
.
Constructor Details
Class Method Details
.get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) ⇒ Hash
Returns a paged list of Resources filterable by resource type. This method is a convenience shortcut for the #get_resource_list instance method.
92 93 94 |
# File 'lib/uu/cloud_runtime/resource.rb', line 92 def self.get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) self.new(UU::OS::Security::Session.current_session).get_resource_list(app_deployment_uri_or_tid_asid, parameters) end |
Instance Method Details
#get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) ⇒ Hash
Returns a paged list of Resources filterable by resource type.
76 77 78 |
# File 'lib/uu/cloud_runtime/resource.rb', line 76 def get_resource_list(app_deployment_uri_or_tid_asid, parameters = {}) @client.invoke(:getResourceList, app_deployment_uri_or_tid_asid, parameters: parameters) end |