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

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

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






Logging.Organizations.Locations.SavedQueries (Cloud Logging API v2-rev20240908-2.0.0)












com.google.api.services.logging.v2

Class Logging.Organizations.Locations.SavedQueries

  • java.lang.Object
    • com.google.api.services.logging.v2.Logging.Organizations.Locations.SavedQueries
    • Constructor Detail

      • SavedQueries

        public SavedQueries()
    • Method Detail

      • create

        public Logging.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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