Class: Com::Vmware::Appliance::Vmon::Service

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb

Overview

The ``Com::Vmware::Appliance::Vmon::Service`` class provides methods to manage a single/set of services that are managed by vMon.

Defined Under Namespace

Classes: Health, Info, StartupType, State, UpdateSpec

Instance Method Summary (collapse)

Constructor Details

- (Service) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



127
128
129
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 127

def initialize(config)
    super(config, @@service_info)
end

Instance Method Details

- (Com::Vmware::Appliance::Vmon::Service::Info) get(service)

Returns the state of a service.

Parameters:

  • service (String)

    identifier of the service whose state is being queried.

Returns:

Raises:



204
205
206
207
208
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 204

def get(service)
    invoke_with_info(@@get_info, {
        'service' => service,
    })
end

- (Hash<String, Com::Vmware::Appliance::Vmon::Service::Info>) list_details

Lists details of services managed by vMon.

Returns:

Raises:



240
241
242
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 240

def list_details()
    invoke_with_info(@@list_details_info)
end

- (Void) restart(service)

Restarts a service

Parameters:

  • service (String)

    identifier of the service to restart

Returns:

  • (Void)

Raises:



187
188
189
190
191
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 187

def restart(service)
    invoke_with_info(@@restart_info, {
        'service' => service,
    })
end

- (Void) start(service)

Starts a service

Parameters:

  • service (String)

    identifier of the service to start

Returns:

  • (Void)

Raises:



147
148
149
150
151
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 147

def start(service)
    invoke_with_info(@@start_info, {
        'service' => service,
    })
end

- (Void) stop(service)

Stops a service

Parameters:

  • service (String)

    identifier of the service to stop

Returns:

  • (Void)

Raises:



165
166
167
168
169
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 165

def stop(service)
    invoke_with_info(@@stop_info, {
        'service' => service,
    })
end

- (Void) update(service, spec)

Updates the properties of a service.

Parameters:

Returns:

  • (Void)

Raises:



226
227
228
229
230
231
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 226

def update(service, spec)
    invoke_with_info(@@update_info, {
        'service' => service,
        'spec' => spec,
    })
end