1.9.0 (latest) 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.6 Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::CreateSinkRequest.

The parameters to `CreateSink`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- 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"`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- 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**

- (::String) --- 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"`

### #sink

    def sink() -> ::Google::Cloud::Logging::V2::LogSink

**Returns**

- ([::Google::Cloud::Logging::V2::LogSink](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.

### #sink=

    def sink=(value) -> ::Google::Cloud::Logging::V2::LogSink

**Parameter**

- **value** ([::Google::Cloud::Logging::V2::LogSink](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
**Returns**

- ([::Google::Cloud::Logging::V2::LogSink](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink)) --- Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.

### #unique_writer_identity

    def unique_writer_identity() -> ::Boolean

**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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink "Google::Cloud::Logging::V2::LogSink (class)").

### #unique_writer_identity=

    def unique_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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink "Google::Cloud::Logging::V2::LogSink (class)").
**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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-LogSink "Google::Cloud::Logging::V2::LogSink (class)").