Class: Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type

Inherits:
VAPI::Bindings::VapiEnum
  • Object
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::LibraryItem::StorageGroupMapping::Type`` enumerated type defines the supported types of storage targets for sections of type vmw:StroageGroupSection in the OVF descriptor.

Constant Summary

DATASTORE =
Type.new('DATASTORE')
STORAGE_PROFILE =
Type.new('STORAGE_PROFILE')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type) datastore

Storage deployment target is a datastore.



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 637

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.vcenter.ovf.library_item.storage_group_mapping.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::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
    #     Storage deployment target is a datastore.
    DATASTORE = Type.new('DATASTORE')

    # @!attribute [rw] storage_profile
    #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
    #     Storage deployment target is a storage profile.
    STORAGE_PROFILE = Type.new('STORAGE_PROFILE')

end

- (Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type) storage_profile

Storage deployment target is a storage profile.



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 637

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.vcenter.ovf.library_item.storage_group_mapping.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::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
    #     Storage deployment target is a datastore.
    DATASTORE = Type.new('DATASTORE')

    # @!attribute [rw] storage_profile
    #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
    #     Storage deployment target is a storage profile.
    STORAGE_PROFILE = Type.new('STORAGE_PROFILE')

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



643
644
645
646
647
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 643

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.vcenter.ovf.library_item.storage_group_mapping.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



654
655
656
657
658
659
660
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 654

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