Class: UU::OperationRegistry::AppShare
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::AppShare
- Defined in:
- lib/uu/operation_registry/app_share.rb
Overview
AppShare allows to share one AppDeployment among multiple tenants, allowing to install an deployment to one AppDeployment (belonging to the tenant which has contracted capacity for the AppDeployment) and share it with other tenants.
Class Method Summary collapse
-
.bulk_create(app_deployment_uri, attributes) ⇒ Array
Creates multiple shares in one command.
-
.bulk_delete(app_deployment_uri, attributes) ⇒ Array
Removes multiple shares in one command.
-
.create(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Creates a new app share.
-
.delete(app_share_uri) ⇒ void
Deletes the specified app share from the registry.
-
.get_app_share_list(app_deployment_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of app shares.
-
.get_attributes(app_share_uri) ⇒ Hash
Gets the attributes of the app share specified by app share URI and returns its detail.
-
.set_attributes(app_share_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an app share.
Instance Method Summary collapse
-
#bulk_create(app_deployment_uri, attributes) ⇒ Array
Creates multiple shares in one command.
-
#bulk_delete(app_deployment_uri, attributes) ⇒ Array
Removes multiple shares in one command.
-
#create(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Creates a new app share.
-
#delete(app_share_uri) ⇒ void
Deletes the specified app share from the registry.
-
#get_app_share_list(app_deployment_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of app shares for the given app deployment.
-
#get_attributes(app_share_uri) ⇒ Hash
Gets the attributes of the app share specified by app share URI and returns its detail.
-
#initialize(session = nil) ⇒ AppShare
constructor
Creates a new instance of
AppShare
. -
#set_attributes(app_share_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an app share.
Constructor Details
#initialize(session = nil) ⇒ AppShare
Creates a new instance of AppShare
.
21 22 23 |
# File 'lib/uu/operation_registry/app_share.rb', line 21 def initialize(session = nil) super end |
Class Method Details
.bulk_create(app_deployment_uri, attributes) ⇒ Array
Creates multiple shares in one command.
143 144 145 |
# File 'lib/uu/operation_registry/app_share.rb', line 143 def self.bulk_create(app_deployment_uri, attributes) self.new(UU::OS::Security::Session.current_session).bulk_create(app_deployment_uri, attributes) end |
.bulk_delete(app_deployment_uri, attributes) ⇒ Array
Removes multiple shares in one command.
172 173 174 |
# File 'lib/uu/operation_registry/app_share.rb', line 172 def self.bulk_delete(app_deployment_uri, attributes) self.new(UU::OS::Security::Session.current_session).bulk_delete(app_deployment_uri, attributes) end |
.create(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Creates a new app share. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/app_share.rb', line 37
|
.delete(app_share_uri) ⇒ void
This method returns an undefined value.
Deletes the specified app share from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/app_share.rb', line 76
|
.get_app_share_list(app_deployment_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.
104 105 106 |
# File 'lib/uu/operation_registry/app_share.rb', line 104 def self.get_app_share_list(app_deployment_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_app_share_list(app_deployment_uri, criteria) end |
.get_attributes(app_share_uri) ⇒ Hash
Gets the attributes of the app share specified by app share URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/app_share.rb', line 50
|
.set_attributes(app_share_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an app share. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/app_share.rb', line 65
|
Instance Method Details
#bulk_create(app_deployment_uri, attributes) ⇒ Array
Creates multiple shares in one command.
120 121 122 |
# File 'lib/uu/operation_registry/app_share.rb', line 120 def bulk_create(app_deployment_uri, attributes) @client.invoke(:bulkCreate, app_deployment_uri, parameters: attributes) end |
#bulk_delete(app_deployment_uri, attributes) ⇒ Array
Removes multiple shares in one command.
154 155 156 |
# File 'lib/uu/operation_registry/app_share.rb', line 154 def bulk_delete(app_deployment_uri, attributes) @client.invoke(:bulkDelete, app_deployment_uri, parameters: attributes) end |
#create(app_deployment_uri, attributes) ⇒ UU::OS::UESURI
Creates a new app share.
|
# File 'lib/uu/operation_registry/app_share.rb', line 25
|
#delete(app_share_uri) ⇒ void
This method returns an undefined value.
Deletes the specified app share from the registry.
|
# File 'lib/uu/operation_registry/app_share.rb', line 71
|
#get_app_share_list(app_deployment_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of app shares for the given app deployment. Command does not return all app shares, only a sublist. The list of returned app shares could be filtered using Mongo Query.
95 96 97 |
# File 'lib/uu/operation_registry/app_share.rb', line 95 def get_app_share_list(app_deployment_uri, criteria = {}) @client.invoke(:getAppShareList, app_deployment_uri, parameters: criteria) end |
#get_attributes(app_share_uri) ⇒ Hash
Gets the attributes of the app share specified by app share URI and returns its detail.
|
# File 'lib/uu/operation_registry/app_share.rb', line 44
|
#set_attributes(app_share_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of an app share.
|
# File 'lib/uu/operation_registry/app_share.rb', line 57
|