target.apidocs.com.google.api.services.logging.v2.Logging.Projects.Locations.SavedQueries.html Maven / Gradle / Ivy
Logging.Projects.Locations.SavedQueries (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging.Projects.Locations.SavedQueries
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Projects.Locations.SavedQueries
-
- Enclosing class:
- Logging.Projects.Locations
public class Logging.Projects.Locations.SavedQueries
extends Object
The "savedQueries" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Projects.Locations.SavedQueries.Create
class
Logging.Projects.Locations.SavedQueries.Delete
class
Logging.Projects.Locations.SavedQueries.List
-
Constructor Summary
Constructors
Constructor and Description
SavedQueries()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Projects.Locations.SavedQueries.Create
create(String parent,
SavedQuery content)
Creates a new SavedQuery for the user making the request.
Logging.Projects.Locations.SavedQueries.Delete
delete(String name)
Deletes an existing SavedQuery that was created by the user making the request.
Logging.Projects.Locations.SavedQueries.List
list(String parent)
Lists the SavedQueries that were created by the user making the request.
-
-
Method Detail
-
create
public Logging.Projects.Locations.SavedQueries.Create create(String parent,
SavedQuery content)
throws IOException
Creates a new SavedQuery for the user making the request.
Create a request for the method "savedQueries.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 saved query:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-
project/locations/global" "organizations/123456789/locations/us-central1"
content
- the SavedQuery
- Returns:
- the request
- Throws:
IOException
-
delete
public Logging.Projects.Locations.SavedQueries.Delete delete(String name)
throws IOException
Deletes an existing SavedQuery that was created by the user making the request.
Create a request for the method "savedQueries.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 full resource name of the saved query to delete.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example:
"projects/my-project/locations/global/savedQueries/my-saved-query"
- Returns:
- the request
- Throws:
IOException
-
list
public Logging.Projects.Locations.SavedQueries.List list(String parent)
throws IOException
Lists the SavedQueries that were created by the user making the request.
Create a request for the method "savedQueries.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 resource to which the listed queries belong.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations
/us-central1" Note: The locations portion of the resource must be specified. To get a list
of all saved queries, a wildcard character - can be used for LOCATION_ID, for example:
"projects/my-project/locations/-"
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy