Class List Method List File List

# Class: Com::Vmware::Appliance::Recovery::Backup::Parts

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

## Overview

``Com::Vmware::Appliance::Recovery::Backup::Parts`` class provides methods Provides list of parts optional for the backup

## Defined Under Namespace

Classes: LocalizableMessage, Part

## Instance Method Summary (collapse)

- - (Fixnum) get(id)

  Get size of the optional part.

- - (Parts) initialize(config) constructor

  Constructs a new instance.

- - (Array<Com::Vmware::Appliance::Recovery::Backup::Parts::Part>) list

  Get a list of the backup parts.

## Constructor Details

### - (`Parts`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    632
    633
    634
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery/backup.rb', line 632

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

## Instance Method Details

### - (`Fixnum`) get(id)

Get size of the optional part

Parameters:

- id (`String`) —

  part id

Returns:

- (`Fixnum`) —

  int size

Raises:

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

  Generic error

    656
    657
    658
    659
    660
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery/backup.rb', line 656

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

### - (`Array<Com::Vmware::Appliance::Recovery::Backup::Parts::Part>`) list

Get a list of the backup parts

Returns:

- (`Array<Com::Vmware::Appliance::Recovery::Backup::Parts::Part>`) —

  list of parts

Raises:

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

  Generic error

    643
    644
    645
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery/backup.rb', line 643

    def list()
        invoke_with_info(@@list_info)
    end