1.3.0 (latest) 1.2.0 1.1.0 1.0.0

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

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

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

## Inheritance

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

## Implements

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

### CreateSpecRequest()

    public CreateSpecRequest()

### CreateSpecRequest(CreateSpecRequest)

    public CreateSpecRequest(CreateSpecRequest other)

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

## Properties

### Parent

    public string Parent { get; set; }

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

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

### ParentAsVersionName

    public VersionName ParentAsVersionName { get; set; }

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

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

### Spec

    public Spec Spec { get; set; }

Required. The spec to create.

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

### SpecId

    public string SpecId { get; set; }

Optional. The ID to use for the spec, which will become the final component
of the spec'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 spec 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}/specs/{spec}`,
its length is limited to 1000 characters and valid characters are
/\[a-z\]\[A-Z\]\[0-9\]-_/.

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