class CreateSinkRequest extends Message

The parameters to CreateSink.

Protobuf type Google\Logging\V2\CreateSinkRequest

Methods

__construct()

No description

string
getParent()

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

setParent(string $var)

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

getSink()

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

setSink(LogSink $var)

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

bool
getUniqueWriterIdentity()

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.

setUniqueWriterIdentity(bool $var)

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.

Details

at line 52
__construct()

at line 68
string getParent()

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

Generated from protobuf field string parent = 1;

Return Value

string

at line 84
setParent(string $var)

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

Generated from protobuf field string parent = 1;

Parameters

string $var

at line 97
LogSink getSink()

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

Generated from protobuf field .google.logging.v2.LogSink sink = 2;

Return Value

LogSink

at line 109
setSink(LogSink $var)

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

Generated from protobuf field .google.logging.v2.LogSink sink = 2;

Parameters

LogSink $var

at line 130
bool getUniqueWriterIdentity()

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][google.logging.v2.LogSink].

Generated from protobuf field bool unique_writer_identity = 3;

Return Value

bool

at line 150
setUniqueWriterIdentity(bool $var)

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][google.logging.v2.LogSink].

Generated from protobuf field bool unique_writer_identity = 3;

Parameters

bool $var