Class: UU::OperationRegistry::ResourceGroup
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::ResourceGroup
- Defined in:
- lib/uu/operation_registry/resource_group.rb
Overview
Resource group.
Defined Under Namespace
Classes: NodeProviderType
Class Method Summary collapse
-
.create(region_uri, attributes) ⇒ UU::OS::UESURI
Creates a new resource group.
-
.delete(resource_group_uri) ⇒ void
Deletes the specified resource group from the registry.
-
.get_attributes(resource_group_uri) ⇒ Hash
Gets the attributes of the resource group specified by resource group URI and returns its detail.
-
.get_resource_group_list(region_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of resource groups.
-
.set_attributes(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a resource group.
Instance Method Summary collapse
-
#create(region_uri, attributes) ⇒ UU::OS::UESURI
Creates a new resource group.
-
#delete(resource_group_uri) ⇒ void
Deletes the specified resource group from the registry.
-
#get_attributes(resource_group_uri) ⇒ Hash
Gets the attributes of the resource group specified by resource group URI and returns its detail.
-
#get_resource_group_list(region_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource groups in the given region.
-
#initialize(session = nil) ⇒ ResourceGroup
constructor
Creates a new instance of
ResourceGroup
. -
#set_attributes(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a resource group.
Constructor Details
#initialize(session = nil) ⇒ ResourceGroup
Creates a new instance of ResourceGroup
.
26 27 28 |
# File 'lib/uu/operation_registry/resource_group.rb', line 26 def initialize(session = nil) super end |
Class Method Details
.create(region_uri, attributes) ⇒ UU::OS::UESURI
Creates a new resource group. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 53
|
.delete(resource_group_uri) ⇒ void
This method returns an undefined value.
Deletes the specified resource group from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 156
|
.get_attributes(resource_group_uri) ⇒ Hash
Gets the attributes of the resource group specified by resource group URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 66
|
.get_resource_group_list(region_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.
183 184 185 |
# File 'lib/uu/operation_registry/resource_group.rb', line 183 def self.get_resource_group_list(region_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_resource_group_list(region_uri, criteria) end |
.set_attributes(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a resource group. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 145
|
Instance Method Details
#create(region_uri, attributes) ⇒ UU::OS::UESURI
Creates a new resource group.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 30
|
#delete(resource_group_uri) ⇒ void
This method returns an undefined value.
Deletes the specified resource group from the registry.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 151
|
#get_attributes(resource_group_uri) ⇒ Hash
Gets the attributes of the resource group specified by resource group URI and returns its detail.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 60
|
#get_resource_group_list(region_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of resource groups in the given region. Command does not return all resource groups, only a sublist. The list of returned resource groups could be filtered using Mongo Query.
174 175 176 |
# File 'lib/uu/operation_registry/resource_group.rb', line 174 def get_resource_group_list(region_uri, criteria = {}) client.invoke(:getResourceGroupList, region_uri, parameters: criteria) end |
#set_attributes(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a resource group.
|
# File 'lib/uu/operation_registry/resource_group.rb', line 73
|