Class: Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingInfo

Inherits:
VAPI::Bindings::VapiStruct
  • Object
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::Ethernet::BackingInfo`` class contains information about the physical resource backing a virtual Ethernet adapter.

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (BackingInfo) 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)



2790
2791
2792
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2790

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

Instance Attribute Details

Server-generated cookie that identifies the connection to the port. This ookie may be used to verify that the virtual machine is the rightful owner of the port. This field will be nil if the virtual Ethernet device is not bound to a distributed virtual port; this can happen if the virtual machine is powered off or the virtual Ethernet device is not connected.

Returns:

  • (Fixnum, nil)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String?) distributed_port

Key of the distributed virtual port that backs the virtual Ethernet adapter. This field will be nil if the virtual Ethernet device is not bound to a distributed virtual port; this can happen if the virtual machine is powered off or the virtual Ethernet device is not connected.

Returns:

  • (String, nil)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String) distributed_switch_uuid

UUID of the distributed virtual switch that backs the virtual Ethernet adapter. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType.DISTRIBUTED_PORTGROUP` .

Returns:

  • (String)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String) host_device

Name of the device backing the virtual Ethernet adapter. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType.HOST_DEVICE` .

Returns:

  • (String)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String?) network

Identifier of the network backing the virtual Ethernet adapter. If nil , the identifier of the network backing could not be determined.

Returns:

  • (String, nil)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String) network_name

Name of the standard portgroup backing the virtual Ethernet adapter. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType.STANDARD_PORTGROUP` .

Returns:

  • (String)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String) opaque_network_id

Identifier of the opaque network that backs the virtual Ethernet adapter. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType.OPAQUE_NETWORK` .

Returns:

  • (String)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (String) opaque_network_type

Type of the opaque network that backs the virtual Ethernet adapter. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType.OPAQUE_NETWORK` .

Returns:

  • (String)


2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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

- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType) type

Backing type for the virtual Ethernet adapter.



2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2751

class BackingInfo < 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.ethernet.backing_info',
                {
                    'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
                    'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
                    'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                    'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
                },
                BackingInfo,
                false,
                nil)
        end
    end

    attr_accessor :type,
                  :network,
                  :network_name,
                  :host_device,
                  :distributed_switch_uuid,
                  :distributed_port,
                  :connection_cookie,
                  :opaque_network_type,
                  :opaque_network_id

    # 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



2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2757

def binding_type
    @binding_type ||= VAPI::Bindings::StructType.new(
        'com.vmware.vcenter.vm.hardware.ethernet.backing_info',
        {
            'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType'),
            'network' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IdType.new),
            'network_name' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
            'host_device' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
            'distributed_switch_uuid' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
            'distributed_port' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
            'connection_cookie' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
            'opaque_network_type' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
            'opaque_network_id' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance),
        },
        BackingInfo,
        false,
        nil)
end