(::Boolean) — 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 Cloud 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.
#unique_writer_identity=
defunique_writer_identity=(value)->::Boolean
Parameter
value (::Boolean) — 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 Cloud 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.
Returns
(::Boolean) — 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 Cloud 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.
[[["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-08-28 UTC."],[],[],null,["# Cloud Logging V2 API - Class Google::Cloud::Logging::V2::CreateSinkRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Cloud-Logging-V2-CreateSinkRequest)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Cloud-Logging-V2-CreateSinkRequest) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::CreateSinkRequest.\n\nThe parameters to `CreateSink`. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource in which to create the sink:\n\n \"projects/[PROJECT_ID]\"\n \"organizations/[ORGANIZATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]\"\n \"folders/[FOLDER_ID]\"\n\n For examples:\n\n `\"projects/my-project\"`\n `\"organizations/123456789\"`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource in which to create the sink:\n\n\n \"projects/[PROJECT_ID]\"\n \"organizations/[ORGANIZATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]\"\n \"folders/[FOLDER_ID]\"\n\n For examples:\n\n `\"projects/my-project\"`\n`\"organizations/123456789\"` \n**Returns**\n\n- (::String) --- Required. The resource in which to create the sink:\n\n \"projects/[PROJECT_ID]\"\n \"organizations/[ORGANIZATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]\"\n \"folders/[FOLDER_ID]\"\n\n For examples:\n\n `\"projects/my-project\"`\n `\"organizations/123456789\"`\n\n### #sink\n\n def sink() -\u003e ::Google::Cloud::Logging::V2::LogSink\n\n**Returns**\n\n- ([::Google::Cloud::Logging::V2::LogSink](./Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.\n\n### #sink=\n\n def sink=(value) -\u003e ::Google::Cloud::Logging::V2::LogSink\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Logging::V2::LogSink](./Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use. \n**Returns**\n\n- ([::Google::Cloud::Logging::V2::LogSink](./Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.\n\n### #unique_writer_identity\n\n def unique_writer_identity() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- 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 Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.\n\n\n If this field is set to true, or if the sink is owned by a non-project\n resource such as an organization, then the value of `writer_identity` will\n be a unique service account used only for exports from the new sink. For\n more information, see `writer_identity` in\n [LogSink](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink \"Google::Cloud::Logging::V2::LogSink (class)\").\n\n### #unique_writer_identity=\n\n def unique_writer_identity=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- 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 Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.\n\n\n If this field is set to true, or if the sink is owned by a non-project\n resource such as an organization, then the value of `writer_identity` will\n be a unique service account used only for exports from the new sink. For\n more information, see `writer_identity` in\n[LogSink](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink \"Google::Cloud::Logging::V2::LogSink (class)\"). \n**Returns**\n\n- (::Boolean) --- 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 Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.\n\n\n If this field is set to true, or if the sink is owned by a non-project\n resource such as an organization, then the value of `writer_identity` will\n be a unique service account used only for exports from the new sink. For\n more information, see `writer_identity` in\n [LogSink](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink \"Google::Cloud::Logging::V2::LogSink (class)\")."]]