Class List Method List File List

# Class: Com::Vmware::Content::Type

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Content::Type
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb

## Overview

The ``Com::Vmware::Content::Type`` class exposes the :class:`Com::Vmware::Content::Library::ItemModel` types that this Content Library Service supports.

     A library item has an optional type which can be specified with the   :attr:`Com::Vmware::Content::Library::ItemModel.type`    field . For items with a type that is supported by a plugin, the Content Library Service may understand the files which are part of the library item and can produce metadata for the item.

     In other cases, uploads may require a process in which one upload implies subsequent uploads. For example, an Open Virtualization Format (OVF) package is composed of an OVF descriptor file and the associated virtual disk files. Uploading an OVF descriptor can enable the Content Library Service to understand that the complete OVF package requires additional disk files, and it can set up the transfers for the disks automatically by adding the file entries for the disks when the OVF descriptor is uploaded.

     When a type is not supported by a plugin, or the type is not specified, the Content Library Service can handle a library item in a default way, without adding metadata to the item or guiding the upload process.

## Defined Under Namespace

Classes: Info

## Instance Method Summary (collapse)

- - (Type) initialize(config) constructor

  Constructs a new instance.

- - (Array<Com::Vmware::Content::Type::Info>) list

  Returns a list of :class:`Com::Vmware::Content::Type::Info` instances which describe the type support plugins in this Content Library.

## Constructor Details

### - (`Type`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    931
    932
    933
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 931

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

## Instance Method Details

### - (`Array<Com::Vmware::Content::Type::Info>`) list

Returns a list of :class:`Com::Vmware::Content::Type::Info` instances which describe the type support plugins in this Content Library.

Returns:

- (`Array<Com::Vmware::Content::Type::Info>`) —

  The list of :class:`Com::Vmware::Content::Type::Info` instances which describe the type support plugins in this Content Library.

    940
    941
    942
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 940

    def list()
        invoke_with_info(@@list_info)
    end