Class List Method List File List

# Class: Com::Vmware::Appliance::Recovery::BackupService

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

## Overview

``Com::Vmware::Appliance::Recovery::Backup`` class provides methods Performs backup restore operations

## Defined Under Namespace

Classes: BackupRequest, LocalizableMessage, LocationType, ReturnResult, ReturnStatus

## Instance Method Summary (collapse)

- - (BackupService) initialize(config) constructor

  Constructs a new instance.

- - (Com::Vmware::Appliance::Recovery::Backup::ReturnResult) validate(piece)

  Check for backup errors without starting backup.

## Constructor Details

### - (`BackupService`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    52
    53
    54
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 52

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

## Instance Method Details

### - (`Com::Vmware::Appliance::Recovery::Backup::ReturnResult`) validate(piece)

Check for backup errors without starting backup.

Parameters:

- piece (`Com::Vmware::Appliance::Recovery::Backup::BackupRequest`) —

  BackupRequest Structure

Returns:

- (`Com::Vmware::Appliance::Recovery::Backup::ReturnResult`) —

  ReturnResult Structure

Raises:

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

  A backup or restore is already in progress

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

  Generic error

    67
    68
    69
    70
    71
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 67

    def validate(piece)
        invoke_with_info(@@validate_info, {
            'piece' => piece,
        })
    end