class FoldersLocationsSavedQueries extends Resource (View source)

The "savedQueries" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $savedQueries = $loggingService->folders_locations_savedQueries;

Methods

create(string $parent, SavedQuery $postBody, array $optParams = [])

Creates a new SavedQuery for the user making the request.

delete(string $name, array $optParams = [])

Deletes an existing SavedQuery that was created by the user making the request. (savedQueries.delete)

get(string $name, array $optParams = [])

Returns all data associated with the requested query. (savedQueries.get)

listFoldersLocationsSavedQueries(string $parent, array $optParams = [])

Lists the SavedQueries that were created by the user making the request.

patch(string $name, SavedQuery $postBody, array $optParams = [])

Updates an existing SavedQuery. (savedQueries.patch)

Details

SavedQuery create(string $parent, SavedQuery $postBody, array $optParams = [])

Creates a new SavedQuery for the user making the request.

(savedQueries.create)

Parameters

string $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"

SavedQuery $postBody
array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception

LoggingEmpty delete(string $name, array $optParams = [])

Deletes an existing SavedQuery that was created by the user making the request. (savedQueries.delete)

Parameters

string $name

Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q UERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

array $optParams

Optional parameters.

Return Value

LoggingEmpty

Exceptions

Exception

SavedQuery get(string $name, array $optParams = [])

Returns all data associated with the requested query. (savedQueries.get)

Parameters

string $name

Required. The resource name of the saved query. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q UERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception

ListSavedQueriesResponse listFoldersLocationsSavedQueries(string $parent, array $optParams = [])

Lists the SavedQueries that were created by the user making the request.

(savedQueries.listFoldersLocationsSavedQueries)

Parameters

string $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/-"

array $optParams

Optional parameters.

Return Value

ListSavedQueriesResponse

Exceptions

Exception

SavedQuery patch(string $name, SavedQuery $postBody, array $optParams = [])

Updates an existing SavedQuery. (savedQueries.patch)

Parameters

string $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.

SavedQuery $postBody
array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception