Class: UU::OperationRegistry::Region
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Region
- Defined in:
- lib/uu/operation_registry/region.rb
Overview
Region.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new region.
-
+ (void) delete(region_uri)
Deletes the specified region from the registry.
-
+ (Hash) get_attributes(region_uri)
Gets the attributes of the region specified by region URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_region_list(cloud_uri, criteria = {})
Returns list of regions.
-
+ (UU::OS::UESURI) set_attributes(region_uri, attributes)
Sets attributes of an region.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new region.
-
- (void) delete(region_uri)
Deletes the specified region from the registry.
-
- (Hash) get_attributes(region_uri)
Gets the attributes of the region specified by region URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_region_list(cloud_uri, criteria = {})
Returns a list of regions in the given cloud.
-
- (Region) initialize(session = nil)
constructor
Creates a new instance of
Region
. -
- (UU::OS::UESURI) set_attributes(region_uri, attributes)
Sets attributes of an region.
Constructor Details
- (Region) initialize(session = nil)
Creates a new instance of Region
.
18 19 20 |
# File 'lib/uu/operation_registry/region.rb', line 18 def initialize(session = nil) super end |
Class Method Details
+ (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new region. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/region.rb', line 32
|
+ (void) delete(region_uri)
This method returns an undefined value.
Deletes the specified region from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/region.rb', line 73
|
+ (Hash) get_attributes(region_uri)
Gets the attributes of the region specified by region URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/region.rb', line 45
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_region_list(cloud_uri, criteria = {})
Returns list of regions. This method is a convenience shortcut for the #get_region_list instance method.
100 101 102 |
# File 'lib/uu/operation_registry/region.rb', line 100 def self.get_region_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_region_list(cloud_uri, criteria) end |
+ (UU::OS::UESURI) set_attributes(region_uri, attributes)
Sets attributes of an region. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/region.rb', line 62
|
Instance Method Details
- (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new region.
|
# File 'lib/uu/operation_registry/region.rb', line 22
|
- (void) delete(region_uri)
This method returns an undefined value.
Deletes the specified region from the registry.
|
# File 'lib/uu/operation_registry/region.rb', line 68
|
- (Hash) get_attributes(region_uri)
Gets the attributes of the region specified by region URI and returns its detail.
|
# File 'lib/uu/operation_registry/region.rb', line 39
|
- (UU::OS::Persistence::PagedResult<Hash>) get_region_list(cloud_uri, criteria = {})
Returns a list of regions in the given cloud. Command does not return all regions, only a sublist. The list of returned regions could be filtered using Mongo Query.
91 92 93 |
# File 'lib/uu/operation_registry/region.rb', line 91 def get_region_list(cloud_uri, criteria = {}) @client.invoke(:getRegionList, cloud_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(region_uri, attributes)
Sets attributes of an region.
|
# File 'lib/uu/operation_registry/region.rb', line 52
|