# GDC Hardware Management v1alpha API - Class CreateSiteRequest (1.0.0-alpha08)

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

- [1.0.0-alpha08 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GdcHardwareManagement.V1Alpha/latest/Google.Cloud.GdcHardwareManagement.V1Alpha.CreateSiteRequest)
- [1.0.0-alpha07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GdcHardwareManagement.V1Alpha/1.0.0-alpha07/Google.Cloud.GdcHardwareManagement.V1Alpha.CreateSiteRequest)

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

Reference documentation and code samples for the GDC Hardware Management v1alpha API class CreateSiteRequest.

A request to create a site.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.GdcHardwareManagement.V1Alpha.dll

## Constructors

### CreateSiteRequest()

    public CreateSiteRequest()

### CreateSiteRequest(CreateSiteRequest)

    public CreateSiteRequest(CreateSiteRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GdcHardwareManagement.V1Alpha/latest/Google.Cloud.GdcHardwareManagement.V1Alpha.CreateSiteRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. The project and location to create the site in.
Format: `projects/{project}/locations/{location}`

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GdcHardwareManagement.V1Alpha/latest/Google.Cloud.GdcHardwareManagement.V1Alpha.CreateSiteRequest#Google_Cloud_GdcHardwareManagement_V1Alpha_CreateSiteRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### RequestId

    public string RequestId { get; set; }

Optional. An optional unique identifier for this request. See
[AIP-155](https://google.aip.dev/155).

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

### Site

    public Site Site { get; set; }

Required. The site to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GdcHardwareManagement.V1Alpha/latest/Google.Cloud.GdcHardwareManagement.V1Alpha.Site` |   |

### SiteId

    public string SiteId { get; set; }

Optional. ID used to uniquely identify the Site within its parent scope.
This field should contain at most 63 characters and must start with
lowercase characters.
Only lowercase characters, numbers and `-` are accepted.
The `-` character cannot be the first or the last one.
A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

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