Class List Method List File List

# Class: Com::Vmware::Appliance::Networking::Dns::Domains

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::Networking::Dns::Domains
  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::Domains`` class provides methods DNS search domains.

## Instance Method Summary (collapse)

- - (Void) add(domain)

  Add domain to DNS search domains.

- - (Domains) initialize(config) constructor

  Constructs a new instance.

- - (Array<String>) list

  Get list of DNS search domains.

- - (Void) set(domains)

  Set DNS search domains.

## Constructor Details

### - (`Domains`) initialize(config)

Constructs a new instance.

Parameters:

- config (`VAPI::Bindings::StubConfig`) —

  A hash with the api provider details.

    77
    78
    79
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 77

    def initialize(config)
        super(config, @@service_info)
    end

## Instance Method Details

### - (`Void`) add(domain)

Add domain to DNS search domains.

Parameters:

- domain (`String`) —

  Domain to add.

Returns:

- (`Void`)

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    89
    90
    91
    92
    93
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 89

    def add(domain)
        invoke_with_info(@@add_info, {
            'domain' => domain,
        })
    end

### - (`Array<String>`) list

Get list of DNS search domains.

Returns:

- (`Array<String>`) —

  List of domains.

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    116
    117
    118
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 116

    def list()
        invoke_with_info(@@list_info)
    end

### - (`Void`) set(domains)

Set DNS search domains.

Parameters:

- domains (`Array<String>`) —

  List of domains.

Returns:

- (`Void`)

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    103
    104
    105
    106
    107
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 103

    def set(domains)
        invoke_with_info(@@set_info, {
            'domains' => domains,
        })
    end