Class: Com::Vmware::Vapi::Metadata::Cli::Namespace

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb

Overview

The ``Com::Vmware::Vapi::Metadata::Cli::Namespace`` class provides methods to get information about command line interface (CLI) namespaces.

Defined Under Namespace

Classes: Identity, Info

Instance Method Summary (collapse)

Constructor Details

- (Namespace) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



588
589
590
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 588

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

Instance Method Details

- (String) fingerprint

Returns the aggregate fingerprint of all the namespace metadata from all the metadata sources.


 The fingerprint provides clients an efficient way to check if the metadata for namespaces has been modified on the server.

Returns:

  • (String)

    Fingerprint of all the namespace metadata present on the server.



623
624
625
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 623

def fingerprint()
    invoke_with_info(@@fingerprint_info)
end

- (Com::Vmware::Vapi::Metadata::Cli::Namespace::Info) get(identity)

Retreives information about a namespace including information about children of that namespace.

Parameters:

Returns:

Raises:



610
611
612
613
614
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 610

def get(identity)
    invoke_with_info(@@get_info, {
        'identity' => identity,
    })
end

- (Array<Com::Vmware::Vapi::Metadata::Cli::Namespace::Identity>) list

Returns the identifiers of all namespaces registered with the infrastructure.

Returns:



597
598
599
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/cli.rb', line 597

def list()
    invoke_with_info(@@list_info)
end