Class: Com::Vmware::Vapi::Metadata::Privilege::ServiceService

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

Overview

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


 A service element is said to contain privilege information if one of the operation elements contained in this service element has privilege 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.



248
249
250
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 248

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

Instance Method Details

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

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

Parameters:

  • service_id (String)

    Identifier of the service element.

Returns:

Raises:



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

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 privilege information.

Returns:

  • (Array<String>)

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



259
260
261
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 259

def list()
    invoke_with_info(@@list_info)
end