Class List Method List File List

# Class: Com::Vmware::Vapi::Metadata::Metamodel::Service::Operation

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vapi::Metadata::Metamodel::Service::Operation
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/service.rb

## Overview

The ``Com::Vmware::Vapi::Metadata::Metamodel::Service::Operation`` class provides methods to retrieve metamodel information of an operation element in the interface definition language.

## Constant Summary

RESOURCE_TYPE =

      'com.vmware.vapi.operation'

## Instance Method Summary (collapse)

- - (Com::Vmware::Vapi::Metadata::Metamodel::OperationInfo) get(service_id, operation_id)

  Retrieves the metamodel information about an operation element corresponding to ``operation_id`` contained in the service element corresponding to ``service_id`` .

- - (Operation) initialize(config) constructor

  Constructs a new instance.

- - (Array<String>) list(service_id)

  Returns the identifiers for the operation elements that are defined in the scope of ``service_id`` .

## Constructor Details

### - (`Operation`) initialize(config)

Constructs a new instance.

Parameters:

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

  A hash with the api provider details.

    69
    70
    71
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/service.rb', line 69

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

## Instance Method Details

### - (`Com::Vmware::Vapi::Metadata::Metamodel::OperationInfo`) get(service_id, operation_id)

Retrieves the metamodel information about an operation element corresponding to ``operation_id`` contained in the service element corresponding to ``service_id`` .

Parameters:

- service_id (`String`) —

  Identifier of the service element.

- operation_id (`String`) —

  Identifier of the operation element.

Returns:

- (`Com::Vmware::Vapi::Metadata::Metamodel::OperationInfo`) —

  The :class:`Com::Vmware::Vapi::Metadata::Metamodel::OperationInfo` instance that corresponds to ``operation_id`` defined in scope ``service_id`` .

Raises:

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

  if the service element associated with ``service_id`` does not exist in any of the package elements.

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

  if the operation element associated with ``operation_id`` does not exist in the service element.

    103
    104
    105
    106
    107
    108
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/service.rb', line 103

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

### - (`Array<String>`) list(service_id)

Returns the identifiers for the operation elements that are defined in the scope of ``service_id`` .

Parameters:

- service_id (`String`) —

  Identifier of the service element.

Returns:

- (`Array<String>`) —

  The list of identifiers for the operation elements that are defined in the scope of ``service_id`` .

Raises:

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

  if the service element associated with ``service_id`` does not exist in any of the package elements.

    84
    85
    86
    87
    88
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/service.rb', line 84

    def list(service_id)
        invoke_with_info(@@list_info, {
            'service_id' => service_id,
        })
    end