Reference documentation and code samples for the Stackdriver Logging V2 Client class DeleteSinkRequest.
The parameters toDeleteSink.
Generated from protobuf messagegoogle.logging.v2.DeleteSinkRequest
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ sink_name
string
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"
getSinkName
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
string
setSinkName
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"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
sinkName
string
Required. The full resource name of the sink to delete, including the
parent resource and the sink identifier:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class DeleteSinkRequest (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.DeleteSinkRequest)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.DeleteSinkRequest)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.DeleteSinkRequest)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.DeleteSinkRequest)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.DeleteSinkRequest)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.DeleteSinkRequest)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.DeleteSinkRequest)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.DeleteSinkRequest)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.DeleteSinkRequest)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.DeleteSinkRequest) \nReference documentation and code samples for the Stackdriver Logging V2 Client class DeleteSinkRequest.\n\nThe parameters to `DeleteSink`.\n\nGenerated from protobuf message `google.logging.v2.DeleteSinkRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSinkName\n\nRequired. The full resource name of the sink to delete, including the\nparent resource and the sink identifier:\n\"projects/\\[PROJECT_ID\\]/sinks/\\[SINK_ID\\]\"\n\"organizations/\\[ORGANIZATION_ID\\]/sinks/\\[SINK_ID\\]\"\n\"billingAccounts/\\[BILLING_ACCOUNT_ID\\]/sinks/\\[SINK_ID\\]\"\n\"folders/\\[FOLDER_ID\\]/sinks/\\[SINK_ID\\]\"\nFor example:\n`\"projects/my-project/sinks/my-sink\"`\n\n### setSinkName\n\nRequired. The full resource name of the sink to delete, including the\nparent resource and the sink identifier:\n\"projects/\\[PROJECT_ID\\]/sinks/\\[SINK_ID\\]\"\n\"organizations/\\[ORGANIZATION_ID\\]/sinks/\\[SINK_ID\\]\"\n\"billingAccounts/\\[BILLING_ACCOUNT_ID\\]/sinks/\\[SINK_ID\\]\"\n\"folders/\\[FOLDER_ID\\]/sinks/\\[SINK_ID\\]\"\nFor example:\n`\"projects/my-project/sinks/my-sink\"`\n\n### static::build"]]