Class List Method List File List

# Class: Com::Vmware::Vcenter::Ovf::DiskProvisioningType

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Vcenter::Ovf::DiskProvisioningType
  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::DiskProvisioningType`` enumerated type defines the virtual disk provisioning types that can be set for a disk on the target platform.

## Constant Summary

THIN =

      DiskProvisioningType.new('THIN')

THICK =

      DiskProvisioningType.new('THICK')

EAGER_ZEROED_THICK =

      DiskProvisioningType.new('EAGER_ZEROED_THICK')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Vcenter::Ovf::DiskProvisioningType) eager_zeroed_thick

  An eager zeroed thick provisioned virtual disk has all space allocated and wiped clean of any previous contents on the physical media at creation time.

- - (Com::Vmware::Vcenter::Ovf::DiskProvisioningType) thick

  A thick provisioned virtual disk has all space allocated at creation time and the space is zeroed on demand as the space is used.

- - (Com::Vmware::Vcenter::Ovf::DiskProvisioningType) thin

  A thin provisioned virtual disk has space allocated and zeroed on demand as the space is used.

## Class Method Summary (collapse)

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

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

- + (DiskProvisioningType) from_string(value)

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

## Instance Attribute Details

### - (`Com::Vmware::Vcenter::Ovf::DiskProvisioningType`) eager_zeroed_thick

An eager zeroed thick provisioned virtual disk has all space allocated and wiped clean of any previous contents on the physical media at creation time.

     Disks specified as eager zeroed thick may take longer time to create than disks specified with the other disk provisioning types.

Returns:

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

    2482
    2483
    2484
    2485
    2486
    2487
    2488
    2489
    2490
    2491
    2492
    2493
    2494
    2495
    2496
    2497
    2498
    2499
    2500
    2501
    2502
    2503
    2504
    2505
    2506
    2507
    2508
    2509
    2510
    2511
    2512
    2513
    2514
    2515
    2516
    2517
    2518
    2519
    2520
    2521
    2522
    2523
    2524
    2525
    2526
    2527
    2528
    2529
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 2482

    class DiskProvisioningType < 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.disk_provisioning_type',
                    DiskProvisioningType)
            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 [DiskProvisioningType] 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
                    DiskProvisioningType.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] thin
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thin provisioned virtual disk has space allocated and zeroed on demand as the space is used.
        THIN = DiskProvisioningType.new('THIN')

        # @!attribute [rw] thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thick provisioned virtual disk has all space allocated at creation time and the space is zeroed on demand as the space is used.
        THICK = DiskProvisioningType.new('THICK')

        # @!attribute [rw] eager_zeroed_thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     An eager zeroed thick provisioned virtual disk has all space allocated and wiped clean of any previous contents on the physical media at creation time.
        #
        #      Disks specified as eager zeroed thick may take longer time to create than disks specified with the other disk provisioning types.
        EAGER_ZEROED_THICK = DiskProvisioningType.new('EAGER_ZEROED_THICK')

    end

### - (`Com::Vmware::Vcenter::Ovf::DiskProvisioningType`) thick

A thick provisioned virtual disk has all space allocated at creation time and the space is zeroed on demand as the space is used.

Returns:

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

    2482
    2483
    2484
    2485
    2486
    2487
    2488
    2489
    2490
    2491
    2492
    2493
    2494
    2495
    2496
    2497
    2498
    2499
    2500
    2501
    2502
    2503
    2504
    2505
    2506
    2507
    2508
    2509
    2510
    2511
    2512
    2513
    2514
    2515
    2516
    2517
    2518
    2519
    2520
    2521
    2522
    2523
    2524
    2525
    2526
    2527
    2528
    2529
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 2482

    class DiskProvisioningType < 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.disk_provisioning_type',
                    DiskProvisioningType)
            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 [DiskProvisioningType] 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
                    DiskProvisioningType.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] thin
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thin provisioned virtual disk has space allocated and zeroed on demand as the space is used.
        THIN = DiskProvisioningType.new('THIN')

        # @!attribute [rw] thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thick provisioned virtual disk has all space allocated at creation time and the space is zeroed on demand as the space is used.
        THICK = DiskProvisioningType.new('THICK')

        # @!attribute [rw] eager_zeroed_thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     An eager zeroed thick provisioned virtual disk has all space allocated and wiped clean of any previous contents on the physical media at creation time.
        #
        #      Disks specified as eager zeroed thick may take longer time to create than disks specified with the other disk provisioning types.
        EAGER_ZEROED_THICK = DiskProvisioningType.new('EAGER_ZEROED_THICK')

    end

### - (`Com::Vmware::Vcenter::Ovf::DiskProvisioningType`) thin

A thin provisioned virtual disk has space allocated and zeroed on demand as the space is used.

Returns:

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

    2482
    2483
    2484
    2485
    2486
    2487
    2488
    2489
    2490
    2491
    2492
    2493
    2494
    2495
    2496
    2497
    2498
    2499
    2500
    2501
    2502
    2503
    2504
    2505
    2506
    2507
    2508
    2509
    2510
    2511
    2512
    2513
    2514
    2515
    2516
    2517
    2518
    2519
    2520
    2521
    2522
    2523
    2524
    2525
    2526
    2527
    2528
    2529
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 2482

    class DiskProvisioningType < 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.disk_provisioning_type',
                    DiskProvisioningType)
            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 [DiskProvisioningType] 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
                    DiskProvisioningType.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] thin
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thin provisioned virtual disk has space allocated and zeroed on demand as the space is used.
        THIN = DiskProvisioningType.new('THIN')

        # @!attribute [rw] thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     A thick provisioned virtual disk has all space allocated at creation time and the space is zeroed on demand as the space is used.
        THICK = DiskProvisioningType.new('THICK')

        # @!attribute [rw] eager_zeroed_thick
        #     @return [Com::Vmware::Vcenter::Ovf::DiskProvisioningType]
        #     An eager zeroed thick provisioned virtual disk has all space allocated and wiped clean of any previous contents on the physical media at creation time.
        #
        #      Disks specified as eager zeroed thick may take longer time to create than disks specified with the other disk provisioning types.
        EAGER_ZEROED_THICK = DiskProvisioningType.new('EAGER_ZEROED_THICK')

    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

    2488
    2489
    2490
    2491
    2492
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 2488

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

### + (`DiskProvisioningType`) 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:

- (`DiskProvisioningType`) —

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

    2499
    2500
    2501
    2502
    2503
    2504
    2505
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/ovf.rb', line 2499

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