Class: Com::Vmware::Appliance::Vmon::Service
- Inherits:
-
VAPI::Bindings::VapiService
- Object
- VAPI::Bindings::VapiService
- Com::Vmware::Appliance::Vmon::Service
- 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)
-
- (Com::Vmware::Appliance::Vmon::Service::Info) get(service)
Returns the state of a service.
-
- (Service) initialize(config)
constructor
Constructs a new instance.
-
- (Hash<String, Com::Vmware::Appliance::Vmon::Service::Info>) list_details
Lists details of services managed by vMon.
-
- (Void) restart(service)
Restarts a service.
-
- (Void) start(service)
Starts a service.
-
- (Void) stop(service)
Stops a service.
-
- (Void) update(service, spec)
Updates the properties of a service.
Constructor Details
- (Service) initialize(config)
Constructs a new instance.
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.
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.
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
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
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
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.
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 |