Show / Hide Table of Contents

Class FoldersResource.SinksResource

The "sinks" collection of methods.

Inheritance
object
FoldersResource.SinksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class FoldersResource.SinksResource

Constructors

SinksResource(IClientService)

Constructs a new resource.

Declaration
public SinksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(LogSink, string)

Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

Declaration
public virtual FoldersResource.SinksResource.CreateRequest Create(LogSink body, string parent)
Parameters
Type Name Description
LogSink body

The body of the request.

string parent

Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/123456789"

Returns
Type Description
FoldersResource.SinksResource.CreateRequest

Delete(string)

Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

Declaration
public virtual FoldersResource.SinksResource.DeleteRequest Delete(string sinkName)
Parameters
Type Name Description
string sinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-project/sinks/my-sink"

Returns
Type Description
FoldersResource.SinksResource.DeleteRequest

Get(string)

Gets a sink.

Declaration
public virtual FoldersResource.SinksResource.GetRequest Get(string sinkName)
Parameters
Type Name Description
string sinkName

Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-project/sinks/my-sink"

Returns
Type Description
FoldersResource.SinksResource.GetRequest

List(string)

Lists sinks.

Declaration
public virtual FoldersResource.SinksResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent resource whose sinks are to be listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Returns
Type Description
FoldersResource.SinksResource.ListRequest

Patch(LogSink, string)

Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Declaration
public virtual FoldersResource.SinksResource.PatchRequest Patch(LogSink body, string sinkName)
Parameters
Type Name Description
LogSink body

The body of the request.

string sinkName

Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-project/sinks/my-sink"

Returns
Type Description
FoldersResource.SinksResource.PatchRequest

Update(LogSink, string)

Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Declaration
public virtual FoldersResource.SinksResource.UpdateRequest Update(LogSink body, string sinkName)
Parameters
Type Name Description
LogSink body

The body of the request.

string sinkName

Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-project/sinks/my-sink"

Returns
Type Description
FoldersResource.SinksResource.UpdateRequest
In this article
Back to top Generated by DocFX