Class List Method List File List

# Class: Com::Vmware::Vcenter::Ovf::ImportFlag

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vcenter::Ovf::ImportFlag
  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::ImportFlag`` class provides methods for retrieving information about the import flags supported by the deployment platform. Import flags can be specified in a :class:`Com::Vmware::Vcenter::Ovf::LibraryItem::ResourcePoolDeploymentSpec` to customize an OVF deployment.

## Defined Under Namespace

Classes: Info

## Instance Method Summary (collapse)

- - (ImportFlag) initialize(config) constructor

  Constructs a new instance.

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

  Returns information about the import flags supported by the deployment platform.

## Constructor Details

### - (`ImportFlag`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    148
    149
    150
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 148

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

## Instance Method Details

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

Returns information about the import flags supported by the deployment platform.

     The supported flags are:
      LAX
           Lax mode parsing of the OVF descriptor.

     Future server versions might support additional flags.

Parameters:

- rp (`String`) —

  The identifier of resource pool target for retrieving the import flag(s).

Returns:

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

  A list of supported import flags.

Raises:

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

  If the resource pool associated with ``rp`` does not exist.

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

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

  System.Read

    172
    173
    174
    175
    176
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 172

    def list(rp)
        invoke_with_info(@@list_info, {
            'rp' => rp,
        })
    end