Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vapi::Metadata::Privilege::ServiceService
  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)

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

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

- - (ServiceService) initialize(config) constructor

  Constructs a new instance.

- - (Array<String>) list

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

## 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:

- (`Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo`) —

  The :class:`Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo` instance that corresponds to ``service_id``

Raises:

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

  if the service element associated with ``service_id`` does not have any privilege information.

    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