Show / Hide Table of Contents

Class ExclusionsResource

The "exclusions" collection of methods.

Inheritance
object
ExclusionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ExclusionsResource

Constructors

ExclusionsResource(IClientService)

Constructs a new resource.

Declaration
public ExclusionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(LogExclusion, string)

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.

Declaration
public virtual ExclusionsResource.CreateRequest Create(LogExclusion body, string parent)
Parameters
Type Name Description
LogExclusion body

The body of the request.

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"

Returns
Type Description
ExclusionsResource.CreateRequest

Delete(string)

Deletes an exclusion in the _Default sink.

Declaration
public virtual ExclusionsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
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"

Returns
Type Description
ExclusionsResource.DeleteRequest

Get(string)

Gets the description of an exclusion in the _Default sink.

Declaration
public virtual ExclusionsResource.GetRequest Get(string name)
Parameters
Type Name Description
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"

Returns
Type Description
ExclusionsResource.GetRequest

List(string)

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

Declaration
public virtual ExclusionsResource.ListRequest List(string parent)
Parameters
Type Name Description
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]"

Returns
Type Description
ExclusionsResource.ListRequest

Patch(LogExclusion, string)

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

Declaration
public virtual ExclusionsResource.PatchRequest Patch(LogExclusion body, string name)
Parameters
Type Name Description
LogExclusion body

The body of the request.

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"

Returns
Type Description
ExclusionsResource.PatchRequest
In this article
Back to top Generated by DocFX