# Apigee Registry v1 API - Class CreateApiVersionRequest (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.CreateApiVersionRequest)
- [1.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/1.0.0-beta07/Google.Cloud.ApigeeRegistry.V1.CreateApiVersionRequest)

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

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

Request message for CreateApiVersion.

## Inheritance

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

## Implements

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

### CreateApiVersionRequest()

    public CreateApiVersionRequest()

### CreateApiVersionRequest(CreateApiVersionRequest)

    public CreateApiVersionRequest(CreateApiVersionRequest other)

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

## Properties

### ApiVersion

    public ApiVersion ApiVersion { get; set; }

Required. The version to create.

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

### ApiVersionId

    public string ApiVersionId { get; set; }

Required. The ID to use for the version, which will become the final component of
the version's resource name.

This value should be 1-63 characters, and valid characters
are /\[a-z\]\[0-9\]-/.

Following AIP-162, IDs must not have the form of a UUID.

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

### Parent

    public string Parent { get; set; }

Required. The parent, which owns this collection of versions.
Format: `projects/*/locations/*/apis/*`

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

### ParentAsApiName

    public ApiName ParentAsApiName { get; set; }

[ApiName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ApiName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiVersionRequest#Google_Cloud_ApigeeRegistry_V1_CreateApiVersionRequest_Parent) resource name property.

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