1.3.0 (latest) 1.2.0 1.1.0 1.0.0

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

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

The \[CreateVersion\]\[google.cloud.apihub.v1.ApiHub.CreateVersion\] method's
request.

## Inheritance

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

## Implements

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

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

### CreateVersionRequest()

    public CreateVersionRequest()

### CreateVersionRequest(CreateVersionRequest)

    public CreateVersionRequest(CreateVersionRequest other)

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

## Properties

### Parent

    public string Parent { get; set; }

Required. The parent resource for API version.
Format: `projects/{project}/locations/{location}/apis/{api}`

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

### ParentAsApiName

    public ApiName ParentAsApiName { get; set; }

[ApiName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateVersionRequest.md.txt#Google_Cloud_ApiHub_V1_CreateVersionRequest_Parent) resource name property.

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

### Version

    public Version Version { get; set; }

Required. The version to create.

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

### VersionId

    public string VersionId { get; set; }

Optional. The ID to use for the API version, which will become the final
component of the version's resource name. This field is optional.

- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used.

This value should be 4-500 characters, overall resource name which will be
of format
`projects/{project}/locations/{location}/apis/{api}/versions/{version}`,
its length is limited to 700 characters and valid characters are
/\[a-z\]\[A-Z\]\[0-9\]-_/.

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