Class: UU::OperationRegistry::Host
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Host
- Defined in:
- lib/uu/operation_registry/host.rb
Overview
Host.
Class Method Summary collapse
-
.create(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Creates a new host.
-
.delete(host_uri) ⇒ void
Deletes the specified host from the registry.
-
.get_attributes(host_uri) ⇒ Hash
Gets the attributes of the host specified by host URI and returns its detail.
-
.get_host_list(resource_group_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of hosts.
-
.set_attributes(host_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a host.
Instance Method Summary collapse
-
#create(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Creates a new host.
-
#delete(host_uri) ⇒ void
Deletes the specified host from the registry.
-
#get_attributes(host_uri) ⇒ Hash
Gets the attributes of the host specified by host URI and returns its detail.
-
#get_host_list(resource_group_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of hosts in the given resource group.
-
#initialize(session = nil) ⇒ Host
constructor
Creates a new instance of
Host
. -
#set_attributes(host_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a host.
Constructor Details
#initialize(session = nil) ⇒ Host
Creates a new instance of Host
.
18 19 20 |
# File 'lib/uu/operation_registry/host.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Creates a new host. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/host.rb', line 44
|
.delete(host_uri) ⇒ void
This method returns an undefined value.
Deletes the specified host from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/host.rb', line 116
|
.get_attributes(host_uri) ⇒ Hash
Gets the attributes of the host specified by host URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/host.rb', line 57
|
.get_host_list(resource_group_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of hosts. This method is a convenience shortcut for the #get_host_list instance method.
145 146 147 |
# File 'lib/uu/operation_registry/host.rb', line 145 def self.get_host_list(resource_group_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_host_list(resource_group_uri, criteria) end |
.set_attributes(host_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a host. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/host.rb', line 105
|
Instance Method Details
#create(resource_group_uri, attributes) ⇒ UU::OS::UESURI
Creates a new host.
|
# File 'lib/uu/operation_registry/host.rb', line 22
|
#delete(host_uri) ⇒ void
This method returns an undefined value.
Deletes the specified host from the registry.
|
# File 'lib/uu/operation_registry/host.rb', line 111
|
#get_attributes(host_uri) ⇒ Hash
Gets the attributes of the host specified by host URI and returns its detail.
|
# File 'lib/uu/operation_registry/host.rb', line 51
|
#get_host_list(resource_group_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of hosts in the given resource group. Command does not return all hosts, only a sublist. The list of returned hosts could be filtered using Mongo Query.
136 137 138 |
# File 'lib/uu/operation_registry/host.rb', line 136 def get_host_list(resource_group_uri, criteria = {}) @client.invoke(:getHostList, resource_group_uri, parameters: criteria) end |
#set_attributes(host_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a host.
|
# File 'lib/uu/operation_registry/host.rb', line 64
|