Class List Method List File List

# Class: Com::Vmware::Content::Library::StorageBacking::Type

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

## Overview

The ``Com::Vmware::Content::Library::StorageBacking::Type`` enumerated type specifies the type of the :class:`Com::Vmware::Content::Library::StorageBacking` .

## Constant Summary

DATASTORE =

      Type.new('DATASTORE')

OTHER =

      Type.new('OTHER')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Content::Library::StorageBacking::Type) datastore

  The content of the library will be stored on a datastore.

- - (Com::Vmware::Content::Library::StorageBacking::Type) other

  The content of the library will be stored on a remote file system.

## Class Method Summary (collapse)

- + (VAPI::Bindings::EnumType) binding_type

  Holds (gets or creates) the binding type metadata for this enumeration type.

- + (Type) from_string(value)

  Converts from a string value (perhaps off the wire) to an instance of this enum type.

## Instance Attribute Details

### - (`Com::Vmware::Content::Library::StorageBacking::Type`) datastore

The content of the library will be stored on a datastore.

     These are vCenter Server managed datastores, and are logical containers that hide specifics of each storage device. Depending on the type of storage you use, datastores can be backed by the following file system formats:

      *  Virtual Machine File System (VMFS)
       *  Network File System (NFS)

Returns:

- (`Com::Vmware::Content::Library::StorageBacking::Type`)

    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library.rb', line 882

    class Type < VAPI::Bindings::VapiEnum

        class << self
            # Holds (gets or creates) the binding type metadata for this enumeration type.
            # @scope class
            # @return [VAPI::Bindings::EnumType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::EnumType.new(
                    'com.vmware.content.library.storage_backing.type',
                    Type)
            end

            # Converts from a string value (perhaps off the wire) to an instance
            # of this enum type.
            # @param value [String] the actual value of the enum instance
            # @return [Type] the instance found for the value, otherwise
            #         an unknown instance will be built for the value
            def from_string(value)
                begin
                    const_get(value)
                rescue NameError
                    Type.new('UNKNOWN', value)
                end
            end
        end

        private

        # Constructs a new instance.
        # @param value [String] the actual value of the enum instance
        # @param unknown [String] the unknown value when value is 'UKNOWN'
        def initialize(value, unknown=nil)
            super(self.class.binding_type, value, unknown)
        end

        public

        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Content::Library::StorageBacking::Type]
        #     The content of the library will be stored on a datastore.
        #
        #      These are vCenter Server managed datastores, and are logical containers that hide specifics of each storage device. Depending on the type of storage you use, datastores can be backed by the following file system formats:
        #
        #       *  Virtual Machine File System (VMFS)
        #        *  Network File System (NFS)
        #
        #
        DATASTORE = Type.new('DATASTORE')

        # @!attribute [rw] other
        #     @return [Com::Vmware::Content::Library::StorageBacking::Type]
        #     The content of the library will be stored on a remote file system.
        #
        #      Supports the following remote file systems:
        #
        #       *  NFS (on vCenter Server Appliance)
        #        *  SMB (on vCenter Server Appliance and vCenter Server for Windows)
        #
        #
        OTHER = Type.new('OTHER')

    end

### - (`Com::Vmware::Content::Library::StorageBacking::Type`) other

The content of the library will be stored on a remote file system.

     Supports the following remote file systems:

      *  NFS (on vCenter Server Appliance)
       *  SMB (on vCenter Server Appliance and vCenter Server for Windows)

Returns:

- (`Com::Vmware::Content::Library::StorageBacking::Type`)

    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library.rb', line 882

    class Type < VAPI::Bindings::VapiEnum

        class << self
            # Holds (gets or creates) the binding type metadata for this enumeration type.
            # @scope class
            # @return [VAPI::Bindings::EnumType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::EnumType.new(
                    'com.vmware.content.library.storage_backing.type',
                    Type)
            end

            # Converts from a string value (perhaps off the wire) to an instance
            # of this enum type.
            # @param value [String] the actual value of the enum instance
            # @return [Type] the instance found for the value, otherwise
            #         an unknown instance will be built for the value
            def from_string(value)
                begin
                    const_get(value)
                rescue NameError
                    Type.new('UNKNOWN', value)
                end
            end
        end

        private

        # Constructs a new instance.
        # @param value [String] the actual value of the enum instance
        # @param unknown [String] the unknown value when value is 'UKNOWN'
        def initialize(value, unknown=nil)
            super(self.class.binding_type, value, unknown)
        end

        public

        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Content::Library::StorageBacking::Type]
        #     The content of the library will be stored on a datastore.
        #
        #      These are vCenter Server managed datastores, and are logical containers that hide specifics of each storage device. Depending on the type of storage you use, datastores can be backed by the following file system formats:
        #
        #       *  Virtual Machine File System (VMFS)
        #        *  Network File System (NFS)
        #
        #
        DATASTORE = Type.new('DATASTORE')

        # @!attribute [rw] other
        #     @return [Com::Vmware::Content::Library::StorageBacking::Type]
        #     The content of the library will be stored on a remote file system.
        #
        #      Supports the following remote file systems:
        #
        #       *  NFS (on vCenter Server Appliance)
        #        *  SMB (on vCenter Server Appliance and vCenter Server for Windows)
        #
        #
        OTHER = Type.new('OTHER')

    end

## Class Method Details

### + (`VAPI::Bindings::EnumType`) binding_type

Holds (gets or creates) the binding type metadata for this enumeration type.

Returns:

- (`VAPI::Bindings::EnumType`) —

  the binding type

    888
    889
    890
    891
    892
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library.rb', line 888

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.content.library.storage_backing.type',
            Type)
    end

### + (`Type`) from_string(value)

Converts from a string value (perhaps off the wire) to an instance of this enum type.

Parameters:

- value (`String`) —

  the actual value of the enum instance

Returns:

- (`Type`) —

  the instance found for the value, otherwise an unknown instance will be built for the value

    899
    900
    901
    902
    903
    904
    905
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library.rb', line 899

    def from_string(value)
        begin
            const_get(value)
        rescue NameError
            Type.new('UNKNOWN', value)
        end
    end