[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Logging\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Logging\ListRecentQueriesResponse;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * The "recentQueries" collection of methods.
|
---|
| 24 | * Typical usage is:
|
---|
| 25 | * <code>
|
---|
| 26 | * $loggingService = new Google\Service\Logging(...);
|
---|
| 27 | * $recentQueries = $loggingService->projects_locations_recentQueries;
|
---|
| 28 | * </code>
|
---|
| 29 | */
|
---|
| 30 | class ProjectsLocationsRecentQueries extends \Google\Service\Resource
|
---|
| 31 | {
|
---|
| 32 | /**
|
---|
| 33 | * Lists the RecentQueries that were created by the user making the request.
|
---|
| 34 | * (recentQueries.listProjectsLocationsRecentQueries)
|
---|
| 35 | *
|
---|
| 36 | * @param string $parent Required. The resource to which the listed queries
|
---|
| 37 | * belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
---|
| 38 | * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
---|
| 39 | * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
---|
| 40 | * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-
|
---|
| 41 | * project/locations/us-central1Note: The location portion of the resource must
|
---|
| 42 | * be specified, but supplying the character - in place of LOCATION_ID will
|
---|
| 43 | * return all recent queries.
|
---|
| 44 | * @param array $optParams Optional parameters.
|
---|
| 45 | *
|
---|
| 46 | * @opt_param string filter Optional. Specifies the type ("Logging" or
|
---|
| 47 | * "OpsAnalytics") of the recent queries to list. The only valid value for this
|
---|
| 48 | * field is one of the two allowable type function calls, which are the
|
---|
| 49 | * following: type("Logging") type("OpsAnalytics")
|
---|
| 50 | * @opt_param int pageSize Optional. The maximum number of results to return
|
---|
| 51 | * from this request. Non-positive values are ignored. The presence of
|
---|
| 52 | * nextPageToken in the response indicates that more results might be available.
|
---|
| 53 | * @opt_param string pageToken Optional. If present, then retrieve the next
|
---|
| 54 | * batch of results from the preceding call to this method. pageToken must be
|
---|
| 55 | * the value of nextPageToken from the previous response. The values of other
|
---|
| 56 | * method parameters should be identical to those in the previous call.
|
---|
| 57 | * @return ListRecentQueriesResponse
|
---|
| 58 | * @throws \Google\Service\Exception
|
---|
| 59 | */
|
---|
| 60 | public function listProjectsLocationsRecentQueries($parent, $optParams = [])
|
---|
| 61 | {
|
---|
| 62 | $params = ['parent' => $parent];
|
---|
| 63 | $params = array_merge($params, $optParams);
|
---|
| 64 | return $this->call('list', [$params], ListRecentQueriesResponse::class);
|
---|
| 65 | }
|
---|
| 66 | }
|
---|
| 67 |
|
---|
| 68 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 69 | class_alias(ProjectsLocationsRecentQueries::class, 'Google_Service_Logging_Resource_ProjectsLocationsRecentQueries');
|
---|