[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\CloudDataplex\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\CloudDataplex\GoogleCloudDataplexV1Entry;
|
---|
| 21 | use Google\Service\CloudDataplex\GoogleCloudDataplexV1SearchEntriesResponse;
|
---|
| 22 | use Google\Service\CloudDataplex\GoogleCloudLocationListLocationsResponse;
|
---|
| 23 | use Google\Service\CloudDataplex\GoogleCloudLocationLocation;
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * The "locations" collection of methods.
|
---|
| 27 | * Typical usage is:
|
---|
| 28 | * <code>
|
---|
| 29 | * $dataplexService = new Google\Service\CloudDataplex(...);
|
---|
| 30 | * $locations = $dataplexService->projects_locations;
|
---|
| 31 | * </code>
|
---|
| 32 | */
|
---|
| 33 | class ProjectsLocations extends \Google\Service\Resource
|
---|
| 34 | {
|
---|
| 35 | /**
|
---|
| 36 | * Gets information about a location. (locations.get)
|
---|
| 37 | *
|
---|
| 38 | * @param string $name Resource name for the location.
|
---|
| 39 | * @param array $optParams Optional parameters.
|
---|
| 40 | * @return GoogleCloudLocationLocation
|
---|
| 41 | * @throws \Google\Service\Exception
|
---|
| 42 | */
|
---|
| 43 | public function get($name, $optParams = [])
|
---|
| 44 | {
|
---|
| 45 | $params = ['name' => $name];
|
---|
| 46 | $params = array_merge($params, $optParams);
|
---|
| 47 | return $this->call('get', [$params], GoogleCloudLocationLocation::class);
|
---|
| 48 | }
|
---|
| 49 | /**
|
---|
| 50 | * Lists information about the supported locations for this service.
|
---|
| 51 | * (locations.listProjectsLocations)
|
---|
| 52 | *
|
---|
| 53 | * @param string $name The resource that owns the locations collection, if
|
---|
| 54 | * applicable.
|
---|
| 55 | * @param array $optParams Optional parameters.
|
---|
| 56 | *
|
---|
| 57 | * @opt_param string filter A filter to narrow down results to a preferred
|
---|
| 58 | * subset. The filtering language accepts strings like "displayName=tokyo", and
|
---|
| 59 | * is documented in more detail in AIP-160 (https://google.aip.dev/160).
|
---|
| 60 | * @opt_param int pageSize The maximum number of results to return. If not set,
|
---|
| 61 | * the service selects a default.
|
---|
| 62 | * @opt_param string pageToken A page token received from the next_page_token
|
---|
| 63 | * field in the response. Send that page token to receive the subsequent page.
|
---|
| 64 | * @return GoogleCloudLocationListLocationsResponse
|
---|
| 65 | * @throws \Google\Service\Exception
|
---|
| 66 | */
|
---|
| 67 | public function listProjectsLocations($name, $optParams = [])
|
---|
| 68 | {
|
---|
| 69 | $params = ['name' => $name];
|
---|
| 70 | $params = array_merge($params, $optParams);
|
---|
| 71 | return $this->call('list', [$params], GoogleCloudLocationListLocationsResponse::class);
|
---|
| 72 | }
|
---|
| 73 | /**
|
---|
| 74 | * Looks up a single Entry by name using the permission on the source
|
---|
| 75 | * system.Caution: The BigQuery metadata that is stored in Dataplex Catalog is
|
---|
| 76 | * changing. For more information, see Changes to BigQuery metadata stored in
|
---|
| 77 | * Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-metadata-
|
---|
| 78 | * changes). (locations.lookupEntry)
|
---|
| 79 | *
|
---|
| 80 | * @param string $name Required. The project to which the request should be
|
---|
| 81 | * attributed in the following form: projects/{project}/locations/{location}.
|
---|
| 82 | * @param array $optParams Optional parameters.
|
---|
| 83 | *
|
---|
| 84 | * @opt_param string aspectTypes Optional. Limits the aspects returned to the
|
---|
| 85 | * provided aspect types. It only works for CUSTOM view.
|
---|
| 86 | * @opt_param string entry Required. The resource name of the Entry: projects/{p
|
---|
| 87 | * roject}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
|
---|
| 88 | * @opt_param string paths Optional. Limits the aspects returned to those
|
---|
| 89 | * associated with the provided paths within the Entry. It only works for CUSTOM
|
---|
| 90 | * view.
|
---|
| 91 | * @opt_param string view Optional. View to control which parts of an entry the
|
---|
| 92 | * service should return.
|
---|
| 93 | * @return GoogleCloudDataplexV1Entry
|
---|
| 94 | * @throws \Google\Service\Exception
|
---|
| 95 | */
|
---|
| 96 | public function lookupEntry($name, $optParams = [])
|
---|
| 97 | {
|
---|
| 98 | $params = ['name' => $name];
|
---|
| 99 | $params = array_merge($params, $optParams);
|
---|
| 100 | return $this->call('lookupEntry', [$params], GoogleCloudDataplexV1Entry::class);
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * Searches for Entries matching the given query and scope.
|
---|
| 104 | * (locations.searchEntries)
|
---|
| 105 | *
|
---|
| 106 | * @param string $name Required. The project to which the request should be
|
---|
| 107 | * attributed in the following form: projects/{project}/locations/{location}.
|
---|
| 108 | * @param array $optParams Optional parameters.
|
---|
| 109 | *
|
---|
| 110 | * @opt_param string orderBy Optional. Specifies the ordering of results.
|
---|
| 111 | * @opt_param int pageSize Optional. Number of results in the search page. If
|
---|
| 112 | * <=0, then defaults to 10. Max limit for page_size is 1000. Throws an invalid
|
---|
| 113 | * argument for page_size > 1000.
|
---|
| 114 | * @opt_param string pageToken Optional. Page token received from a previous
|
---|
| 115 | * SearchEntries call. Provide this to retrieve the subsequent page.
|
---|
| 116 | * @opt_param string query Required. The query against which entries in scope
|
---|
| 117 | * should be matched.
|
---|
| 118 | * @opt_param string scope Optional. The scope under which the search should be
|
---|
| 119 | * operating. It must either be organizations/ or projects/. If it is
|
---|
| 120 | * unspecified, it defaults to the organization where the project provided in
|
---|
| 121 | * name is located.
|
---|
| 122 | * @return GoogleCloudDataplexV1SearchEntriesResponse
|
---|
| 123 | * @throws \Google\Service\Exception
|
---|
| 124 | */
|
---|
| 125 | public function searchEntries($name, $optParams = [])
|
---|
| 126 | {
|
---|
| 127 | $params = ['name' => $name];
|
---|
| 128 | $params = array_merge($params, $optParams);
|
---|
| 129 | return $this->call('searchEntries', [$params], GoogleCloudDataplexV1SearchEntriesResponse::class);
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 134 | class_alias(ProjectsLocations::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocations');
|
---|