Stackdriver Logging V2 Client - Class CreateExclusionRequest (1.24.10)

Reference documentation and code samples for the Stackdriver Logging V2 Client class CreateExclusionRequest.

The parameters to CreateExclusion.

Generated from protobuf message google.logging.v2.CreateExclusionRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

↳ exclusion Google\Cloud\Logging\V2\LogExclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

getParent

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setParent

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

Generated from protobuf field .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Cloud\Logging\V2\LogExclusion|null

hasExclusion

clearExclusion

setExclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

Generated from protobuf field .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\Logging\V2\LogExclusion
Returns
TypeDescription
$this