Class: Com::Vmware::Vapi::Metadata::Authentication::ServiceService

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

Overview

The ``Com::Vmware::Vapi::Metadata::Authentication::Service`` class provides methods to retrieve authentication information of a service element.


 A service element is said to contain authentication information if there is a default authentication assigned to all operation elements contained in a service element or if one of the operation elements contained in this service element has authentication information.

Constant Summary

RESOURCE_TYPE =
'com.vmware.vapi.service'

Instance Method Summary (collapse)

Constructor Details

- (ServiceService) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



246
247
248
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/authentication.rb', line 246

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

Instance Method Details

- (Com::Vmware::Vapi::Metadata::Authentication::ServiceInfo) get(service_id)

Retrieves authentication information about the service element corresponding to ``service_id`` .

Parameters:

  • service_id (String)

    Identifier of the service element.

Returns:

Raises:



270
271
272
273
274
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/authentication.rb', line 270

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

- (Array<String>) list

Returns the identifiers for the service elements that have authentication information.

Returns:

  • (Array<String>)

    The list of identifiers for the service elements that have authentication information.



257
258
259
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/authentication.rb', line 257

def list()
    invoke_with_info(@@list_info)
end