All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.logging.v2.Logging.Projects.Locations.SavedQueries.html Maven / Gradle / Ivy

There is a newer version: v2-rev20241018-2.0.0
Show newest version






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
    • Constructor Detail

      • SavedQueries

        public SavedQueries()
    • 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