[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\DataplexEmpty;
|
---|
| 21 | use Google\Service\CloudDataplex\GoogleCloudDataplexV1Entity;
|
---|
| 22 | use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListEntitiesResponse;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "entities" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $dataplexService = new Google\Service\CloudDataplex(...);
|
---|
| 29 | * $entities = $dataplexService->projects_locations_lakes_zones_entities;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsLakesZonesEntities extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Create a metadata entity. (entities.create)
|
---|
| 36 | *
|
---|
| 37 | * @param string $parent Required. The resource name of the parent zone: project
|
---|
| 38 | * s/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
|
---|
| 39 | * @param GoogleCloudDataplexV1Entity $postBody
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | *
|
---|
| 42 | * @opt_param bool validateOnly Optional. Only validate the request, but do not
|
---|
| 43 | * perform mutations. The default is false.
|
---|
| 44 | * @return GoogleCloudDataplexV1Entity
|
---|
| 45 | * @throws \Google\Service\Exception
|
---|
| 46 | */
|
---|
| 47 | public function create($parent, GoogleCloudDataplexV1Entity $postBody, $optParams = [])
|
---|
| 48 | {
|
---|
| 49 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 50 | $params = array_merge($params, $optParams);
|
---|
| 51 | return $this->call('create', [$params], GoogleCloudDataplexV1Entity::class);
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * Delete a metadata entity. (entities.delete)
|
---|
| 55 | *
|
---|
| 56 | * @param string $name Required. The resource name of the entity: projects/{proj
|
---|
| 57 | * ect_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/
|
---|
| 58 | * {entity_id}.
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | *
|
---|
| 61 | * @opt_param string etag Required. The etag associated with the entity, which
|
---|
| 62 | * can be retrieved with a GetEntity request.
|
---|
| 63 | * @return DataplexEmpty
|
---|
| 64 | * @throws \Google\Service\Exception
|
---|
| 65 | */
|
---|
| 66 | public function delete($name, $optParams = [])
|
---|
| 67 | {
|
---|
| 68 | $params = ['name' => $name];
|
---|
| 69 | $params = array_merge($params, $optParams);
|
---|
| 70 | return $this->call('delete', [$params], DataplexEmpty::class);
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * Get a metadata entity. (entities.get)
|
---|
| 74 | *
|
---|
| 75 | * @param string $name Required. The resource name of the entity: projects/{proj
|
---|
| 76 | * ect_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/
|
---|
| 77 | * {entity_id}.
|
---|
| 78 | * @param array $optParams Optional parameters.
|
---|
| 79 | *
|
---|
| 80 | * @opt_param string view Optional. Used to select the subset of entity
|
---|
| 81 | * information to return. Defaults to BASIC.
|
---|
| 82 | * @return GoogleCloudDataplexV1Entity
|
---|
| 83 | * @throws \Google\Service\Exception
|
---|
| 84 | */
|
---|
| 85 | public function get($name, $optParams = [])
|
---|
| 86 | {
|
---|
| 87 | $params = ['name' => $name];
|
---|
| 88 | $params = array_merge($params, $optParams);
|
---|
| 89 | return $this->call('get', [$params], GoogleCloudDataplexV1Entity::class);
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * List metadata entities in a zone.
|
---|
| 93 | * (entities.listProjectsLocationsLakesZonesEntities)
|
---|
| 94 | *
|
---|
| 95 | * @param string $parent Required. The resource name of the parent zone: project
|
---|
| 96 | * s/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
|
---|
| 97 | * @param array $optParams Optional parameters.
|
---|
| 98 | *
|
---|
| 99 | * @opt_param string filter Optional. The following filter parameters can be
|
---|
| 100 | * added to the URL to limit the entities returned by the API: Entity ID:
|
---|
| 101 | * ?filter="id=entityID" Asset ID: ?filter="asset=assetID" Data path
|
---|
| 102 | * ?filter="data_path=gs://my-bucket" Is HIVE compatible:
|
---|
| 103 | * ?filter="hive_compatible=true" Is BigQuery compatible:
|
---|
| 104 | * ?filter="bigquery_compatible=true"
|
---|
| 105 | * @opt_param int pageSize Optional. Maximum number of entities to return. The
|
---|
| 106 | * service may return fewer than this value. If unspecified, 100 entities will
|
---|
| 107 | * be returned by default. The maximum value is 500; larger values will will be
|
---|
| 108 | * truncated to 500.
|
---|
| 109 | * @opt_param string pageToken Optional. Page token received from a previous
|
---|
| 110 | * ListEntities call. Provide this to retrieve the subsequent page. When
|
---|
| 111 | * paginating, all other parameters provided to ListEntities must match the call
|
---|
| 112 | * that provided the page token.
|
---|
| 113 | * @opt_param string view Required. Specify the entity view to make a partial
|
---|
| 114 | * list request.
|
---|
| 115 | * @return GoogleCloudDataplexV1ListEntitiesResponse
|
---|
| 116 | * @throws \Google\Service\Exception
|
---|
| 117 | */
|
---|
| 118 | public function listProjectsLocationsLakesZonesEntities($parent, $optParams = [])
|
---|
| 119 | {
|
---|
| 120 | $params = ['parent' => $parent];
|
---|
| 121 | $params = array_merge($params, $optParams);
|
---|
| 122 | return $this->call('list', [$params], GoogleCloudDataplexV1ListEntitiesResponse::class);
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * Update a metadata entity. Only supports full resource update.
|
---|
| 126 | * (entities.update)
|
---|
| 127 | *
|
---|
| 128 | * @param string $name Output only. The resource name of the entity, of the
|
---|
| 129 | * form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones
|
---|
| 130 | * /{zone_id}/entities/{id}.
|
---|
| 131 | * @param GoogleCloudDataplexV1Entity $postBody
|
---|
| 132 | * @param array $optParams Optional parameters.
|
---|
| 133 | *
|
---|
| 134 | * @opt_param bool validateOnly Optional. Only validate the request, but do not
|
---|
| 135 | * perform mutations. The default is false.
|
---|
| 136 | * @return GoogleCloudDataplexV1Entity
|
---|
| 137 | * @throws \Google\Service\Exception
|
---|
| 138 | */
|
---|
| 139 | public function update($name, GoogleCloudDataplexV1Entity $postBody, $optParams = [])
|
---|
| 140 | {
|
---|
| 141 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 142 | $params = array_merge($params, $optParams);
|
---|
| 143 | return $this->call('update', [$params], GoogleCloudDataplexV1Entity::class);
|
---|
| 144 | }
|
---|
| 145 | }
|
---|
| 146 |
|
---|
| 147 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 148 | class_alias(ProjectsLocationsLakesZonesEntities::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsLakesZonesEntities');
|
---|