2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Eventarc v1 API class CreateEnrollmentRequest.

The request message for the CreateEnrollment method.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Eventarc.V1.dll

## Constructors

### CreateEnrollmentRequest()

    public CreateEnrollmentRequest()

### CreateEnrollmentRequest(CreateEnrollmentRequest)

    public CreateEnrollmentRequest(CreateEnrollmentRequest other)

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

## Properties

### Enrollment

    public Enrollment Enrollment { get; set; }

Required. The enrollment to create.

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

### EnrollmentId

    public string EnrollmentId { get; set; }

Required. The user-provided ID to be assigned to the Enrollment. It should
match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.

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

### Parent

    public string Parent { get; set; }

Required. The parent collection in which to add this enrollment.

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.CreateEnrollmentRequest.md.txt#Google_Cloud_Eventarc_V1_CreateEnrollmentRequest_Parent) resource name property.

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

### ValidateOnly

    public bool ValidateOnly { get; set; }

Optional. If set, validate the request and preview the review, but do not
post it.

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