Class: UU::OperationRegistry::Tenant
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Tenant
- Defined in:
- lib/uu/operation_registry/tenant.rb
Overview
Tenant.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new tenant.
-
+ (void) delete(tenant_uri)
Deletes the specified tenant from the registry.
-
+ (Hash) get_attributes(tenant_uri)
Gets the attributes of the tenant specified by tenant URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_tenant_list(cloud_uri, criteria = {})
Returns list of tenants.
-
+ (UU::OS::UESURI) set_attributes(tenant_uri, attributes)
Sets attributes of an tenant.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new tenant.
-
- (void) delete(tenant_uri)
Deletes the specified tenant from the registry.
-
- (Hash) get_attributes(tenant_uri)
Gets the attributes of the tenant specified by tenant URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_tenant_list(cloud_uri, criteria = {})
Returns a list of tenants in the given cloud.
-
- (Tenant) initialize(session = nil)
constructor
Creates a new instance of
Tenant
. -
- (UU::OS::UESURI) set_attributes(tenant_uri, attributes)
Sets attributes of an tenant.
Constructor Details
- (Tenant) initialize(session = nil)
Creates a new instance of Tenant
.
18 19 20 |
# File 'lib/uu/operation_registry/tenant.rb', line 18 def initialize(session = nil) super end |
Class Method Details
+ (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new tenant. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/tenant.rb', line 33
|
+ (void) delete(tenant_uri)
This method returns an undefined value.
Deletes the specified tenant from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/tenant.rb', line 75
|
+ (Hash) get_attributes(tenant_uri)
Gets the attributes of the tenant specified by tenant URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/tenant.rb', line 46
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_tenant_list(cloud_uri, criteria = {})
Returns list of tenants. This method is a convenience shortcut for the #get_tenant_list instance method.
102 103 104 |
# File 'lib/uu/operation_registry/tenant.rb', line 102 def self.get_tenant_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_tenant_list(cloud_uri, criteria) end |
+ (UU::OS::UESURI) set_attributes(tenant_uri, attributes)
Sets attributes of an tenant. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/tenant.rb', line 64
|
Instance Method Details
- (UU::OS::UESURI) create(cloud_uri, attributes)
Creates a new tenant. Tenant is a representation of territory in operation registry.
|
# File 'lib/uu/operation_registry/tenant.rb', line 22
|
- (void) delete(tenant_uri)
This method returns an undefined value.
Deletes the specified tenant from the registry.
|
# File 'lib/uu/operation_registry/tenant.rb', line 70
|
- (Hash) get_attributes(tenant_uri)
Gets the attributes of the tenant specified by tenant URI and returns its detail.
|
# File 'lib/uu/operation_registry/tenant.rb', line 40
|
- (UU::OS::Persistence::PagedResult<Hash>) get_tenant_list(cloud_uri, criteria = {})
Returns a list of tenants in the given cloud. Command does not return all tenants, only a sublist. The list of returned tenants could be filtered using Mongo Query.
93 94 95 |
# File 'lib/uu/operation_registry/tenant.rb', line 93 def get_tenant_list(cloud_uri, criteria = {}) @client.invoke(:getTenantList, cloud_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(tenant_uri, attributes)
Sets attributes of an tenant.
|
# File 'lib/uu/operation_registry/tenant.rb', line 53
|