# Apigee Registry v1 API - Class UpdateApiSpecRequest (1.0.0-beta08)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta08 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest)
- [1.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/1.0.0-beta07/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest)

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

Reference documentation and code samples for the Apigee Registry v1 API class UpdateApiSpecRequest.

Request message for UpdateApiSpec.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateApiSpecRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateApiSpecRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateApiSpecRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest), [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.ApigeeRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1)

## Assembly

Google.Cloud.ApigeeRegistry.V1.dll

## Constructors

### UpdateApiSpecRequest()

    public UpdateApiSpecRequest()

### UpdateApiSpecRequest(UpdateApiSpecRequest)

    public UpdateApiSpecRequest(UpdateApiSpecRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.UpdateApiSpecRequest` |

## Properties

### AllowMissing

    public bool AllowMissing { get; set; }

If set to true, and the spec is not found, a new spec will be created.
In this situation, `update_mask` is ignored.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ApiSpec

    public ApiSpec ApiSpec { get; set; }

Required. The spec to update.

The `name` field is used to identify the spec to update.
Format: `projects/*/locations/*/apis/*/versions/*/specs/*`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ApiSpec` |   |

### UpdateMask

    public FieldMask UpdateMask { get; set; }

The list of fields to be updated. If omitted, all fields are updated that
are set in the request message (fields set to default values are ignored).
If an asterisk "\*" is specified, all fields are updated, including fields
that are unspecified/default in the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` |   |