Class: Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig
- 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)
-
- (Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerMode) mode
Define how to determine the DNS servers.
-
- (Array<String>) servers
List of the currently used DNS servers.
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)
-
- (DNSServerConfig) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (DNSServerConfig) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
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.
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.
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 |