Class List Method List File List

# Class: Com::Vmware::Vcenter::Ovf::ExportFlag

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vcenter::Ovf::ExportFlag
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb

## Overview

The ``Com::Vmware::Vcenter::Ovf::ExportFlag`` class provides methods for retrieving information about the export flags supported by the server. Export flags can be specified in a :class:`Com::Vmware::Vcenter::Ovf::LibraryItem::CreateSpec` to customize an OVF export.

## Defined Under Namespace

Classes: Info

## Instance Method Summary (collapse)

- - (ExportFlag) initialize(config) constructor

  Constructs a new instance.

- - (Array<Com::Vmware::Vcenter::Ovf::ExportFlag::Info>) list

  Returns information about the supported export flags by the server.

## Constructor Details

### - (`ExportFlag`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    49
    50
    51
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 49

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

## Instance Method Details

### - (`Array<Com::Vmware::Vcenter::Ovf::ExportFlag::Info>`) list

Returns information about the supported export flags by the server.

     The supported flags are:
      PRESERVE_MAC
           Include MAC addresses for network adapters.
       EXTRA_CONFIG
           Include extra configuration in OVF export.

     Future server versions might support additional flags.

Returns:

- (`Array<Com::Vmware::Vcenter::Ovf::ExportFlag::Info>`) —

  A list of supported export flags.

Raises:

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

  If you do not have all of the privileges described in the following list:

  System.Read

    71
    72
    73
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 71

    def list()
        invoke_with_info(@@list_info)
    end