Class: Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig

Inherits:
VAPI::Bindings::VapiStruct
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb

Overview

``Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig`` class This structure represents the configuration state used to determine DNS servers.

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

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



585
586
587
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 585

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

Instance Attribute Details

- (Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerMode) mode

Define how to determine the DNS servers. Leave the servers argument empty if the mode argument is “DHCP”. Set the servers argument to a comma-separated list of DNS servers if the mode argument is “static”. The DNS server are assigned from the specified list.



560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 560

class DNSServerConfig < 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.appliance.networking.dns.servers.DNS_server_config',
                {
                    'mode' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerMode'),
                    'servers' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
                },
                DNSServerConfig,
                false,
                nil)
        end
    end

    attr_accessor :mode,
                  :servers

    # 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

- (Array<String>) servers

List of the currently used DNS servers.

Returns:

  • (Array<String>)


560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 560

class DNSServerConfig < 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.appliance.networking.dns.servers.DNS_server_config',
                {
                    'mode' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerMode'),
                    'servers' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
                },
                DNSServerConfig,
                false,
                nil)
        end
    end

    attr_accessor :mode,
                  :servers

    # 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



566
567
568
569
570
571
572
573
574
575
576
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 566

def binding_type
    @binding_type ||= VAPI::Bindings::StructType.new(
        'com.vmware.appliance.networking.dns.servers.DNS_server_config',
        {
            'mode' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerMode'),
            'servers' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
        },
        DNSServerConfig,
        false,
        nil)
end