Class List Method List File List

# Class: Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info

Inherits:
  VAPI::Bindings::VapiStruct
  - Object
  - VAPI::Bindings::VapiStruct
  - Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb

## Overview

The ``Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info`` class contains CPU-related information about a virtual machine.

## Instance Attribute Summary (collapse)

- - (Fixnum) cores_per_socket

  Number of CPU cores per socket.

- - (Fixnum) count

  Number of CPU cores.

- - (Boolean) hot_add_enabled

  Flag indicating whether adding CPUs while the virtual machine is running is enabled.

- - (Boolean) hot_remove_enabled

  Flag indicating whether removing CPUs while the virtual machine is running is enabled.

## 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)

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

  Constructs a new instance.

## Constructor Details

### - (`Info`) 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)

    1525
    1526
    1527
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1525

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

## Instance Attribute Details

### - (`Fixnum`) cores_per_socket

Number of CPU cores per socket.

Returns:

- (`Fixnum`)

    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1496

    class Info < 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.vm.hardware.cpu.info',
                    {
                        'count' => VAPI::Bindings::IntegerType.instance,
                        'cores_per_socket' => VAPI::Bindings::IntegerType.instance,
                        'hot_add_enabled' => VAPI::Bindings::BooleanType.instance,
                        'hot_remove_enabled' => VAPI::Bindings::BooleanType.instance,
                    },
                    Info,
                    false,
                    nil)
            end
        end

        attr_accessor :count,
                      :cores_per_socket,
                      :hot_add_enabled,
                      :hot_remove_enabled

        # 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
    end

### - (`Fixnum`) count

Number of CPU cores.

Returns:

- (`Fixnum`)

    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1496

    class Info < 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.vm.hardware.cpu.info',
                    {
                        'count' => VAPI::Bindings::IntegerType.instance,
                        'cores_per_socket' => VAPI::Bindings::IntegerType.instance,
                        'hot_add_enabled' => VAPI::Bindings::BooleanType.instance,
                        'hot_remove_enabled' => VAPI::Bindings::BooleanType.instance,
                    },
                    Info,
                    false,
                    nil)
            end
        end

        attr_accessor :count,
                      :cores_per_socket,
                      :hot_add_enabled,
                      :hot_remove_enabled

        # 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
    end

### - (`Boolean`) hot_add_enabled

Flag indicating whether adding CPUs while the virtual machine is running is enabled.

Returns:

- (`Boolean`)

    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1496

    class Info < 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.vm.hardware.cpu.info',
                    {
                        'count' => VAPI::Bindings::IntegerType.instance,
                        'cores_per_socket' => VAPI::Bindings::IntegerType.instance,
                        'hot_add_enabled' => VAPI::Bindings::BooleanType.instance,
                        'hot_remove_enabled' => VAPI::Bindings::BooleanType.instance,
                    },
                    Info,
                    false,
                    nil)
            end
        end

        attr_accessor :count,
                      :cores_per_socket,
                      :hot_add_enabled,
                      :hot_remove_enabled

        # 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
    end

### - (`Boolean`) hot_remove_enabled

Flag indicating whether removing CPUs while the virtual machine is running is enabled.

Returns:

- (`Boolean`)

    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1496

    class Info < 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.vm.hardware.cpu.info',
                    {
                        'count' => VAPI::Bindings::IntegerType.instance,
                        'cores_per_socket' => VAPI::Bindings::IntegerType.instance,
                        'hot_add_enabled' => VAPI::Bindings::BooleanType.instance,
                        'hot_remove_enabled' => VAPI::Bindings::BooleanType.instance,
                    },
                    Info,
                    false,
                    nil)
            end
        end

        attr_accessor :count,
                      :cores_per_socket,
                      :hot_add_enabled,
                      :hot_remove_enabled

        # 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
    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

    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1502

    def binding_type
        @binding_type ||= VAPI::Bindings::StructType.new(
            'com.vmware.vcenter.vm.hardware.cpu.info',
            {
                'count' => VAPI::Bindings::IntegerType.instance,
                'cores_per_socket' => VAPI::Bindings::IntegerType.instance,
                'hot_add_enabled' => VAPI::Bindings::BooleanType.instance,
                'hot_remove_enabled' => VAPI::Bindings::BooleanType.instance,
            },
            Info,
            false,
            nil)
    end