class Exclusions extends Resource (View source)

The "exclusions" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $exclusions = $loggingService->exclusions;

Methods

create(string $parent, LogExclusion $postBody, array $optParams = [])

Creates a new exclusion in the _Default sink in a specified parent resource.

delete(string $name, array $optParams = [])

Deletes an exclusion in the _Default sink. (exclusions.delete)

get(string $name, array $optParams = [])

Gets the description of an exclusion in the _Default sink. (exclusions.get)

listExclusions(string $parent, array $optParams = [])

Lists all the exclusions on the _Default sink in a parent resource.

patch(string $name, LogExclusion $postBody, array $optParams = [])

Changes one or more properties of an existing exclusion in the _Default sink.

Details

LogExclusion create(string $parent, LogExclusion $postBody, array $optParams = [])

Creates a new exclusion in the _Default sink in a specified parent resource.

Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. (exclusions.create)

Parameters

string $parent

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"

LogExclusion $postBody
array $optParams

Optional parameters.

Return Value

LogExclusion

Exceptions

Exception

LoggingEmpty delete(string $name, array $optParams = [])

Deletes an exclusion in the _Default sink. (exclusions.delete)

Parameters

string $name

Required. The resource name of an existing exclusion to delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my- project/exclusions/my-exclusion"

array $optParams

Optional parameters.

Return Value

LoggingEmpty

Exceptions

Exception

LogExclusion get(string $name, array $optParams = [])

Gets the description of an exclusion in the _Default sink. (exclusions.get)

Parameters

string $name

Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my- project/exclusions/my-exclusion"

array $optParams

Optional parameters.

Return Value

LogExclusion

Exceptions

Exception

ListExclusionsResponse listExclusions(string $parent, array $optParams = [])

Lists all the exclusions on the _Default sink in a parent resource.

(exclusions.listExclusions)

Parameters

string $parent

Required. The parent resource whose exclusions are to be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

array $optParams

Optional parameters.

Return Value

ListExclusionsResponse

Exceptions

Exception

LogExclusion patch(string $name, LogExclusion $postBody, array $optParams = [])

Changes one or more properties of an existing exclusion in the _Default sink.

(exclusions.patch)

Parameters

string $name

Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my- project/exclusions/my-exclusion"

LogExclusion $postBody
array $optParams

Optional parameters.

Return Value

LogExclusion

Exceptions

Exception