Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::Networking::Dns::Hostname
  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::Hostname`` class provides methods Performs operations on Fully Qualified Doman Name.

## Defined Under Namespace

Classes: Message, MessageStatus, TestStatus, TestStatusInfo

## Instance Method Summary (collapse)

- - (String) get

  Get the Fully Qualified Doman Name.

- - (Hostname) initialize(config) constructor

  Constructs a new instance.

- - (Void) set(name)

  Set the Fully Qualified Domain Name.

- - (Com::Vmware::Appliance::Networking::Dns::Hostname::TestStatusInfo) test(name)

  Test the Fully Qualified Domain Name.

## Constructor Details

### - (`Hostname`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    178
    179
    180
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 178

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

## Instance Method Details

### - (`String`) get

Get the Fully Qualified Doman Name.

Returns:

- (`String`) —

  FQDN.

Raises:

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

  Generic error

    218
    219
    220
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 218

    def get()
        invoke_with_info(@@get_info)
    end

### - (`Void`) set(name)

Set the Fully Qualified Domain Name.

Parameters:

- name (`String`) —

  FQDN.

Returns:

- (`Void`)

Raises:

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

  Generic error

    205
    206
    207
    208
    209
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 205

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

### - (`Com::Vmware::Appliance::Networking::Dns::Hostname::TestStatusInfo`) test(name)

Test the Fully Qualified Domain Name.

Parameters:

- name (`String`) —

  FQDN.

Returns:

- (`Com::Vmware::Appliance::Networking::Dns::Hostname::TestStatusInfo`) —

  FQDN status

Raises:

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

  Generic error

    191
    192
    193
    194
    195
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 191

    def test(name)
        invoke_with_info(@@test_info, {
            'name' => name,
        })
    end