target.apidocs.com.google.api.services.logging.v2.Logging.Exclusions.html Maven / Gradle / Ivy
Logging.Exclusions (Cloud Logging API v2-rev20240908-2.0.0)
com.google.api.services.logging.v2
Class Logging.Exclusions
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Exclusions
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Exclusions.Create
class
Logging.Exclusions.Delete
class
Logging.Exclusions.Get
class
Logging.Exclusions.List
class
Logging.Exclusions.Patch
-
Constructor Summary
Constructors
Constructor and Description
Exclusions()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Exclusions.Create
create(String parent,
LogExclusion content)
Creates a new exclusion in the _Default sink in a specified parent resource.
Logging.Exclusions.Delete
delete(String name)
Deletes an exclusion in the _Default sink.
Logging.Exclusions.Get
get(String name)
Gets the description of an exclusion in the _Default sink.
Logging.Exclusions.List
list(String parent)
Lists all the exclusions on the _Default sink in a parent resource.
Logging.Exclusions.Patch
patch(String name,
LogExclusion content)
Changes one or more properties of an existing exclusion in the _Default sink.
-
-
Method Detail
-
create
public Logging.Exclusions.Create create(String parent,
LogExclusion content)
throws IOException
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.
Create a request for the method "exclusions.create".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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"
content
- the LogExclusion
- Returns:
- the request
- Throws:
IOException
-
delete
public Logging.Exclusions.Delete delete(String name)
throws IOException
Deletes an exclusion in the _Default sink.
Create a request for the method "exclusions.delete".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
get
public Logging.Exclusions.Get get(String name)
throws IOException
Gets the description of an exclusion in the _Default sink.
Create a request for the method "exclusions.get".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
list
public Logging.Exclusions.List list(String parent)
throws IOException
Lists all the exclusions on the _Default sink in a parent resource.
Create a request for the method "exclusions.list".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
patch
public Logging.Exclusions.Patch patch(String name,
LogExclusion content)
throws IOException
Changes one or more properties of an existing exclusion in the _Default sink.
Create a request for the method "exclusions.patch".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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"
content
- the LogExclusion
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy