Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiStruct
  - Object
  - VAPI::Bindings::VapiStruct
  - Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping
  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`` class defines the storage deployment target and storage provisioning type for a section of type vmw:StorageGroupSection in the OVF descriptor.

## Defined Under Namespace

Classes: Type

## Instance Attribute Summary (collapse)

- - (String) datastore_id

  Target datastore to be used for the storage group.

- - (Com::Vmware::Vcenter::Ovf::DiskProvisioningType?) provisioning

  Target provisioning type to use for the storage group.

- - (String) storage_profile_id

  Target storage profile to be used for the storage group.

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

  Type of storage deployment target to use for the vmw:StorageGroupSection section.

## Class Method Summary (collapse)

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

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

## Instance Method Summary (collapse)

- - (StorageGroupMapping) initialize(ruby_values = nil, struct_value = nil) constructor

  Constructs a new instance.

## Constructor Details

### - (`StorageGroupMapping`) initialize(ruby_values = nil, struct_value = nil)

Constructs a new instance.

Parameters:

- ruby_values (`Hash`) (defaults to: `nil`) —

  a map of initial property values (optional)

- struct_value (`VAPI::Data::StructValue`) (defaults to: `nil`) —

  a raw StructValue from the wire (optional)

    625
    626
    627
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 625

    def initialize(ruby_values=nil, struct_value=nil)
        super(self.class.binding_type, ruby_values, struct_value)
    end

## Instance Attribute Details

### - (`String`) datastore_id

Target datastore to be used for the storage group. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type.DATASTORE` .

Returns:

- (`String`)

    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    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
    685
    686
    687
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 596

    class StorageGroupMapping < VAPI::Bindings::VapiStruct

        class << self
            # Holds (gets or creates) the binding type metadata for this structure type.
            # @scope class
            # @return [VAPI::Bindings::StructType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::StructType.new(
                    'com.vmware.vcenter.ovf.library_item.storage_group_mapping',
                    {
                        'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type'),
                        'datastore_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'storage_profile_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'provisioning' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::DiskProvisioningType')),
                    },
                    StorageGroupMapping,
                    false,
                    nil)
            end
        end

        attr_accessor :type,
                      :datastore_id,
                      :storage_profile_id,
                      :provisioning

        # Constructs a new instance.
        # @param ruby_values [Hash] a map of initial property values (optional)
        # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional)
        def initialize(ruby_values=nil, struct_value=nil)
            super(self.class.binding_type, ruby_values, struct_value)
        end

        # 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.
        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a datastore.
        # @!attribute [rw] storage_profile
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a storage profile.
        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

    end

### - (`Com::Vmware::Vcenter::Ovf::DiskProvisioningType`?) provisioning

Target provisioning type to use for the storage group. If nil , :attr:`Com::Vmware::Vcenter::Ovf::LibraryItem::ResourcePoolDeploymentSpec.storage_provisioning` will be used.

Returns:

- (`Com::Vmware::Vcenter::Ovf::DiskProvisioningType`, `nil`)

    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    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
    685
    686
    687
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 596

    class StorageGroupMapping < VAPI::Bindings::VapiStruct

        class << self
            # Holds (gets or creates) the binding type metadata for this structure type.
            # @scope class
            # @return [VAPI::Bindings::StructType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::StructType.new(
                    'com.vmware.vcenter.ovf.library_item.storage_group_mapping',
                    {
                        'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type'),
                        'datastore_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'storage_profile_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'provisioning' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::DiskProvisioningType')),
                    },
                    StorageGroupMapping,
                    false,
                    nil)
            end
        end

        attr_accessor :type,
                      :datastore_id,
                      :storage_profile_id,
                      :provisioning

        # Constructs a new instance.
        # @param ruby_values [Hash] a map of initial property values (optional)
        # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional)
        def initialize(ruby_values=nil, struct_value=nil)
            super(self.class.binding_type, ruby_values, struct_value)
        end

        # 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.
        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a datastore.
        # @!attribute [rw] storage_profile
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a storage profile.
        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

    end

### - (`String`) storage_profile_id

Target storage profile to be used for the storage group. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type.STORAGE_PROFILE` .

Returns:

- (`String`)

    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    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
    685
    686
    687
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 596

    class StorageGroupMapping < VAPI::Bindings::VapiStruct

        class << self
            # Holds (gets or creates) the binding type metadata for this structure type.
            # @scope class
            # @return [VAPI::Bindings::StructType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::StructType.new(
                    'com.vmware.vcenter.ovf.library_item.storage_group_mapping',
                    {
                        'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type'),
                        'datastore_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'storage_profile_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'provisioning' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::DiskProvisioningType')),
                    },
                    StorageGroupMapping,
                    false,
                    nil)
            end
        end

        attr_accessor :type,
                      :datastore_id,
                      :storage_profile_id,
                      :provisioning

        # Constructs a new instance.
        # @param ruby_values [Hash] a map of initial property values (optional)
        # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional)
        def initialize(ruby_values=nil, struct_value=nil)
            super(self.class.binding_type, ruby_values, struct_value)
        end

        # 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.
        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a datastore.
        # @!attribute [rw] storage_profile
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a storage profile.
        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

    end

### - (`Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type`) type

Type of storage deployment target to use for the vmw:StorageGroupSection section. The specified value must be :attr:`Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type.DATASTORE` or :attr:`Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type.STORAGE_PROFILE` .

Returns:

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

    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    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
    685
    686
    687
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 596

    class StorageGroupMapping < VAPI::Bindings::VapiStruct

        class << self
            # Holds (gets or creates) the binding type metadata for this structure type.
            # @scope class
            # @return [VAPI::Bindings::StructType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::StructType.new(
                    'com.vmware.vcenter.ovf.library_item.storage_group_mapping',
                    {
                        'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type'),
                        'datastore_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'storage_profile_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                        'provisioning' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::DiskProvisioningType')),
                    },
                    StorageGroupMapping,
                    false,
                    nil)
            end
        end

        attr_accessor :type,
                      :datastore_id,
                      :storage_profile_id,
                      :provisioning

        # Constructs a new instance.
        # @param ruby_values [Hash] a map of initial property values (optional)
        # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional)
        def initialize(ruby_values=nil, struct_value=nil)
            super(self.class.binding_type, ruby_values, struct_value)
        end

        # 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.
        # @!attribute [rw] datastore
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a datastore.
        # @!attribute [rw] storage_profile
        #     @return [Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type]
        #     Storage deployment target is a storage profile.
        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

    end

## Class Method Details

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

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

Returns:

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

  the binding type

    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 602

    def binding_type
        @binding_type ||= VAPI::Bindings::StructType.new(
            'com.vmware.vcenter.ovf.library_item.storage_group_mapping',
            {
                'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::LibraryItem::StorageGroupMapping::Type'),
                'datastore_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                'storage_profile_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                'provisioning' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Ovf::DiskProvisioningType')),
            },
            StorageGroupMapping,
            false,
            nil)
    end