1.2.0 (latest) 1.1.0 1.0.0

    public sealed class ApiOperation : IMessage<ApiOperation>, IEquatable<ApiOperation>, IDeepCloneable<ApiOperation>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class ApiOperation.

Represents an operation contained in an API version in the API Hub.
An operation is added/updated/deleted in an API version when a new spec is
added or an existing spec is updated/deleted in a version.
Currently, an operation will be created only corresponding to OpenAPI spec as
parsing is supported for OpenAPI spec.
Alternatively operations can be managed via create,update and delete APIs,
creation of apiOperation can be possible only for version with no parsed
operations and update/delete can be possible only for operations created via
create API.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ApiOperation

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperation.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperation.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### ApiOperation()

    public ApiOperation()

### ApiOperation(ApiOperation)

    public ApiOperation(ApiOperation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ApiOperation` |

## Properties

### ApiOperationName

    public ApiOperationName ApiOperationName { get; set; }

[ApiOperationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperation.md.txt#Google_Cloud_ApiHub_V1_ApiOperation_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiOperationName` |   |

### Attributes

    public MapField<string, AttributeValues> Attributes { get; }

Optional. The list of user defined attributes associated with the API
operation resource. The key is the attribute name. It will be of the
format: `projects/{project}/locations/{location}/attributes/{attribute}`.
The value is the attribute values associated with the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringAttributeValues` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which the operation was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Details

    public OperationDetails Details { get; set; }

Optional. Operation details.
Note: Even though this field is optional, it is required for
\[CreateApiOperation\]\[google.cloud.apihub.v1.ApiHub.CreateApiOperation\]
API and we will fail the request if not provided.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationDetails` |   |

### Name

    public string Name { get; set; }

Identifier. The name of the operation.

Format:
`projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SourceMetadata

    public RepeatedField<SourceMetadata> SourceMetadata { get; }

Output only. The list of sources and metadata from the sources of the API
operation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldSourceMetadata` |   |

### Spec

    public string Spec { get; set; }

Output only. The name of the spec will be of the format:
`projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Note:The name of the spec will be empty if the operation is created via
\[CreateApiOperation\]\[google.cloud.apihub.v1.ApiHub.CreateApiOperation\] API.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SpecAsSpecName

    public SpecName SpecAsSpecName { get; set; }

[SpecName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.SpecName.md.txt)-typed view over the [Spec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiOperation.md.txt#Google_Cloud_ApiHub_V1_ApiOperation_Spec) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SpecName` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time at which the operation was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |