Class List Method List File List

# Class: Com::Vmware::Appliance::Techpreview::Timesync

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::Techpreview::Timesync
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb

## Overview

``Com::Vmware::Appliance::Techpreview::Timesync`` class provides methods Performs time synchronization configuration.

## Defined Under Namespace

Classes: TimeSyncConfig, TimeSyncMode

## Instance Method Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncConfig) get

  Get time synchronization configuration.

- - (Timesync) initialize(config) constructor

  Constructs a new instance.

- - (Void) set(config)

  Set time synchronization configuration.

## Constructor Details

### - (`Timesync`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    906
    907
    908
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 906

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

## Instance Method Details

### - (`Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncConfig`) get

Get time synchronization configuration.

Returns:

- (`Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncConfig`) —

  Time synchronization configuration.

Raises:

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

  Generic error

    931
    932
    933
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 931

    def get()
        invoke_with_info(@@get_info)
    end

### - (`Void`) set(config)

Set time synchronization configuration.

Parameters:

- config (`Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncConfig`) —

  Time synchronization configuration.

Returns:

- (`Void`)

Raises:

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

  Generic error

    918
    919
    920
    921
    922
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 918

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