Class List Method List File List

# Class: Com::Vmware::Appliance::Health::Swap

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::Health::Swap
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb

## Overview

``Com::Vmware::Appliance::Health::Swap`` class provides methods Get swap health.

## Defined Under Namespace

Classes: HealthLevel

## Instance Method Summary (collapse)

- - (Com::Vmware::Appliance::Health::Swap::HealthLevel) get

  Get swap health.

- - (Swap) initialize(config) constructor

  Constructs a new instance.

## Constructor Details

### - (`Swap`) initialize(config)

Constructs a new instance.

Parameters:

- config (`VAPI::Bindings::StubConfig`) —

  A hash with the api provider details.

    741
    742
    743
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 741

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

## Instance Method Details

### - (`Com::Vmware::Appliance::Health::Swap::HealthLevel`) get

Get swap health.

Returns:

- (`Com::Vmware::Appliance::Health::Swap::HealthLevel`) —

  Swap health.

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    752
    753
    754
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 752

    def get()
        invoke_with_info(@@get_info)
    end