Class: UU::OperationRegistry::Secret
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Secret
- Defined in:
- lib/uu/operation_registry/secret.rb
Overview
Secret.
Class Method Summary collapse
-
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Secret.
-
.delete(secret_uri) ⇒ void
Deletes the specified Secret from the registry.
-
.get_attributes(secret_uri) ⇒ Hash
Gets the attributes of the Secret specified by secret URI.
-
.get_secret_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of Secrets.
-
.set_attributes(secret_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Secret.
Instance Method Summary collapse
-
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Secret.
-
#delete(secret_uri) ⇒ void
Deletes the specified Secret from the registry.
-
#get_attributes(secret_uri) ⇒ Hash
Gets the attributes of the Secret specified by secret URI.
-
#get_secret_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of Secrets for the given Cloud.
-
#initialize(session = nil) ⇒ Secret
constructor
Creates a new instance of
Secret
. -
#set_attributes(secret_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Secret.
Constructor Details
#initialize(session = nil) ⇒ Secret
Creates a new instance of Secret
.
18 19 20 |
# File 'lib/uu/operation_registry/secret.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Secret. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/secret.rb', line 32
|
.delete(secret_uri) ⇒ void
This method returns an undefined value.
Deletes the specified Secret from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/secret.rb', line 81
|
.get_attributes(secret_uri) ⇒ Hash
Gets the attributes of the Secret specified by secret URI. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/secret.rb', line 53
|
.get_secret_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of Secrets. This method is a convenience shortcut for the #get_secret_list instance method.
109 110 111 |
# File 'lib/uu/operation_registry/secret.rb', line 109 def self.get_secret_list(cloud_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_secret_list(cloud_uri, criteria) end |
.set_attributes(secret_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Secret. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/secret.rb', line 70
|
Instance Method Details
#create(cloud_uri, attributes) ⇒ UU::OS::UESURI
Creates a new Secret.
|
# File 'lib/uu/operation_registry/secret.rb', line 22
|
#delete(secret_uri) ⇒ void
This method returns an undefined value.
Deletes the specified Secret from the registry.
|
# File 'lib/uu/operation_registry/secret.rb', line 76
|
#get_attributes(secret_uri) ⇒ Hash
Gets the attributes of the Secret specified by secret URI.
|
# File 'lib/uu/operation_registry/secret.rb', line 48
|
#get_secret_list(cloud_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of Secrets for the given Cloud. Command does not return all Secrets, only a sublist. The list of returned Secrets could be filtered using Mongo Query.
100 101 102 |
# File 'lib/uu/operation_registry/secret.rb', line 100 def get_secret_list(cloud_uri, criteria = {}) @client.invoke(:getSecretList, cloud_uri, parameters: criteria) end |
#set_attributes(secret_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a Secret.
|
# File 'lib/uu/operation_registry/secret.rb', line 60
|