Class: Google::Logging::V2::CreateSinkRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb

Overview

The parameters to +CreateSink+.

Instance Attribute Summary collapse

Instance Attribute Details

#parentString

Returns Required. The resource in which to create the sink:

"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"

Examples: +"projects/my-logging-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]"
    

    Examples: +"projects/my-logging-project"+, +"organizations/123456789"+.



177
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 177

class CreateSinkRequest; end

#sinkGoogle::Logging::V2::LogSink

Returns Required. The new sink, whose +name+ parameter is a sink identifier that is not already in use.

Returns:



177
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 177

class CreateSinkRequest; end

#unique_writer_identitytrue, false

Returns 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 Stackdriver 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:

  • (true, false)

    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 Stackdriver 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.



177
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 177

class CreateSinkRequest; end