target.apidocs.com.google.api.services.logging.v2.Logging.Folders.Locations.SavedQueries.html Maven / Gradle / Ivy
Logging.Folders.Locations.SavedQueries (Cloud Logging API v2-rev20240908-2.0.0)
com.google.api.services.logging.v2
Class Logging.Folders.Locations.SavedQueries
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Folders.Locations.SavedQueries
-
- Enclosing class:
- Logging.Folders.Locations
public class Logging.Folders.Locations.SavedQueries
extends Object
The "savedQueries" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Folders.Locations.SavedQueries.Create
class
Logging.Folders.Locations.SavedQueries.Delete
class
Logging.Folders.Locations.SavedQueries.Get
class
Logging.Folders.Locations.SavedQueries.List
class
Logging.Folders.Locations.SavedQueries.Patch
-
Constructor Summary
Constructors
Constructor and Description
SavedQueries()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Folders.Locations.SavedQueries.Create
create(String parent,
SavedQuery content)
Creates a new SavedQuery for the user making the request.
Logging.Folders.Locations.SavedQueries.Delete
delete(String name)
Deletes an existing SavedQuery that was created by the user making the request.
Logging.Folders.Locations.SavedQueries.Get
get(String name)
Returns all data associated with the requested query.
Logging.Folders.Locations.SavedQueries.List
list(String parent)
Lists the SavedQueries that were created by the user making the request.
Logging.Folders.Locations.SavedQueries.Patch
patch(String name,
SavedQuery content)
Updates an existing SavedQuery.
-
-
Method Detail
-
create
public Logging.Folders.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.Folders.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
-
get
public Logging.Folders.Locations.SavedQueries.Get get(String name)
throws IOException
Returns all data associated with the requested query.
Create a request for the method "savedQueries.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 the saved query.
"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.Folders.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
-
patch
public Logging.Folders.Locations.SavedQueries.Patch patch(String name,
SavedQuery content)
throws IOException
Updates an existing SavedQuery.
Create a request for the method "savedQueries.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
- Output only. Resource name of the saved query.In the format:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of
supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-
support#bucket-regions)After the saved query is created, the location cannot be changed.If
the user doesn't provide a QUERY_ID, the system will generate an alphanumeric ID.
content
- the SavedQuery
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy