Class ProjectsResource.SinksResource
The "sinks" collection of methods.
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.SinksResource.DeleteRequest |
Get(string)
Gets a sink.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.SinksResource.GetRequest |
List(string)
Lists sinks.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.SinksResource.UpdateRequest |