Class: UU::OperationRegistry::Host
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Host
- Defined in:
- lib/uu/operation_registry/host.rb
Overview
Host.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(resource_group_uri, attributes)
Creates a new host.
-
+ (void) delete(host_uri)
Deletes the specified host from the registry.
-
+ (Hash) get_attributes(host_uri)
Gets the attributes of the host specified by host URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_host_list(resource_group_uri, criteria = {})
Returns list of hosts.
-
+ (UU::OS::UESURI) set_attributes(host_uri, attributes)
Sets attributes of a host.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(resource_group_uri, attributes)
Creates a new host.
-
- (void) delete(host_uri)
Deletes the specified host from the registry.
-
- (Hash) get_attributes(host_uri)
Gets the attributes of the host specified by host URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_host_list(resource_group_uri, criteria = {})
Returns a list of hosts in the given resource group.
-
- (Host) initialize(session = nil)
constructor
Creates a new instance of
Host
. -
- (UU::OS::UESURI) set_attributes(host_uri, attributes)
Sets attributes of a host.
Constructor Details
- (Host) initialize(session = nil)
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
+ (UU::OS::UESURI) create(resource_group_uri, attributes)
Creates a new host. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/host.rb', line 40
|
+ (void) delete(host_uri)
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 90
|
+ (Hash) get_attributes(host_uri)
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 53
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_host_list(resource_group_uri, criteria = {})
Returns list of hosts. This method is a convenience shortcut for the #get_host_list instance method.
117 118 119 |
# File 'lib/uu/operation_registry/host.rb', line 117 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 |
+ (UU::OS::UESURI) set_attributes(host_uri, attributes)
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 79
|
Instance Method Details
- (UU::OS::UESURI) create(resource_group_uri, attributes)
Creates a new host.
|
# File 'lib/uu/operation_registry/host.rb', line 22
|
- (void) delete(host_uri)
This method returns an undefined value.
Deletes the specified host from the registry.
|
# File 'lib/uu/operation_registry/host.rb', line 85
|
- (Hash) get_attributes(host_uri)
Gets the attributes of the host specified by host URI and returns its detail.
|
# File 'lib/uu/operation_registry/host.rb', line 47
|
- (UU::OS::Persistence::PagedResult<Hash>) get_host_list(resource_group_uri, criteria = {})
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.
108 109 110 |
# File 'lib/uu/operation_registry/host.rb', line 108 def get_host_list(resource_group_uri, criteria = {}) @client.invoke(:getHostList, resource_group_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(host_uri, attributes)
Sets attributes of a host.
|
# File 'lib/uu/operation_registry/host.rb', line 60
|