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]"

Returns:

  • (String)

    Required. The resource in which to create the sink:

    "projects/[PROJECT_ID]"
    "organizations/[ORGANIZATION_ID]"
    


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

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:



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

class CreateSinkRequest; end

#unique_writer_identitytrue, false

Returns Optional. Whether the sink will have a dedicated service account returned in the sink's writer_identity. Set this field to be true to export logs from one project to a different project. This field is ignored for non-project sinks (e.g. organization sinks) because those sinks are required to have dedicated service accounts.

Returns:

  • (true, false)

    Optional. Whether the sink will have a dedicated service account returned in the sink's writer_identity. Set this field to be true to export logs from one project to a different project. This field is ignored for non-project sinks (e.g. organization sinks) because those sinks are required to have dedicated service accounts.



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

class CreateSinkRequest; end