Class CreateSinkRequest (3.4.0)

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

The parameters to CreateSink.

Inheritance

System.Object > CreateSinkRequest

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Constructors

CreateSinkRequest()

public CreateSinkRequest()

CreateSinkRequest(CreateSinkRequest)

public CreateSinkRequest(CreateSinkRequest other)
Parameter
NameDescription
otherCreateSinkRequest

Properties

Parent

public string Parent { get; set; }

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

Property Value
TypeDescription
String

ParentAsBillingAccountName

public BillingAccountName ParentAsBillingAccountName { get; set; }

BillingAccountName-typed view over the Parent resource name property.

Property Value
TypeDescription
BillingAccountName

ParentAsFolderName

public FolderName ParentAsFolderName { get; set; }

FolderName-typed view over the Parent resource name property.

Property Value
TypeDescription
FolderName

ParentAsOrganizationName

public OrganizationName ParentAsOrganizationName { get; set; }

OrganizationName-typed view over the Parent resource name property.

Property Value
TypeDescription
OrganizationName

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
TypeDescription
IResourceName

Sink

public LogSink Sink { get; set; }

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

Property Value
TypeDescription
LogSink

UniqueWriterIdentity

public bool UniqueWriterIdentity { get; set; }

Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.

If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in [LogSink][google.logging.v2.LogSink].

Property Value
TypeDescription
Boolean