Show / Hide Table of Contents

Class BillingAccountsResource.SinksResource

The "sinks" collection of methods.

Inheritance
object
BillingAccountsResource.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 BillingAccountsResource.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 BillingAccountsResource.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
BillingAccountsResource.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 BillingAccountsResource.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
BillingAccountsResource.SinksResource.DeleteRequest

Get(string)

Gets a sink.

Declaration
public virtual BillingAccountsResource.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
BillingAccountsResource.SinksResource.GetRequest

List(string)

Lists sinks.

Declaration
public virtual BillingAccountsResource.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
BillingAccountsResource.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 BillingAccountsResource.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
BillingAccountsResource.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 BillingAccountsResource.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
BillingAccountsResource.SinksResource.UpdateRequest
In this article
Back to top Generated by DocFX