Class: Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme

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::IpAllocationParams::IpAllocationScheme`` enumerated type defines the possible IP allocation schemes that can be supported by the guest software.

Constant Summary

DHCP =
IpAllocationScheme.new('DHCP')
OVF_ENVIRONMENT =
IpAllocationScheme.new('OVF_ENVIRONMENT')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme) dhcp

It supports DHCP to acquire IP configuration.



1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 1440

class IpAllocationScheme < 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.ip_allocation_params.ip_allocation_scheme',
                IpAllocationScheme)
        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 [IpAllocationScheme] 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
                IpAllocationScheme.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] dhcp
    #     @return [Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme]
    #     It supports DHCP to acquire IP configuration.
    DHCP = IpAllocationScheme.new('DHCP')

    # @!attribute [rw] ovf_environment
    #     @return [Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme]
    #     It supports setting the IP configuration through the properties provided in the OVF environment.
    OVF_ENVIRONMENT = IpAllocationScheme.new('OVF_ENVIRONMENT')

end

- (Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme) ovf_environment

It supports setting the IP configuration through the properties provided in the OVF environment.



1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 1440

class IpAllocationScheme < 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.ip_allocation_params.ip_allocation_scheme',
                IpAllocationScheme)
        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 [IpAllocationScheme] 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
                IpAllocationScheme.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] dhcp
    #     @return [Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme]
    #     It supports DHCP to acquire IP configuration.
    DHCP = IpAllocationScheme.new('DHCP')

    # @!attribute [rw] ovf_environment
    #     @return [Com::Vmware::Vcenter::Ovf::IpAllocationParams::IpAllocationScheme]
    #     It supports setting the IP configuration through the properties provided in the OVF environment.
    OVF_ENVIRONMENT = IpAllocationScheme.new('OVF_ENVIRONMENT')

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



1446
1447
1448
1449
1450
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 1446

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.vcenter.ovf.ip_allocation_params.ip_allocation_scheme',
        IpAllocationScheme)
end

+ (IpAllocationScheme) 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:

  • (IpAllocationScheme)

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



1457
1458
1459
1460
1461
1462
1463
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 1457

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