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 CreateGoogleApiSourceRequest : IMessage<CreateGoogleApiSourceRequest>, IEquatable<CreateGoogleApiSourceRequest>, IDeepCloneable<CreateGoogleApiSourceRequest>, IBufferMessage, IMessage

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

The request message for the CreateGoogleApiSource method.

## Inheritance

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

## Implements

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

### CreateGoogleApiSourceRequest()

    public CreateGoogleApiSourceRequest()

### CreateGoogleApiSourceRequest(CreateGoogleApiSourceRequest)

    public CreateGoogleApiSourceRequest(CreateGoogleApiSourceRequest other)

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

## Properties

### GoogleApiSource

    public GoogleApiSource GoogleApiSource { get; set; }

Required. The google api source to create.

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

### GoogleApiSourceId

    public string GoogleApiSourceId { get; set; }

Required. The user-provided ID to be assigned to the GoogleApiSource. 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 google api source.

| **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.CreateGoogleApiSourceRequest.md.txt#Google_Cloud_Eventarc_V1_CreateGoogleApiSourceRequest_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` |   |