source: vendor/google/apiclient-services/src/CloudDataplex/Resource/ProjectsLocationsLakesZonesEntitiesPartitions.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 3 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 5.8 KB
Line 
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
18namespace Google\Service\CloudDataplex\Resource;
19
20use Google\Service\CloudDataplex\DataplexEmpty;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListPartitionsResponse;
22use Google\Service\CloudDataplex\GoogleCloudDataplexV1Partition;
23
24/**
25 * The "partitions" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $dataplexService = new Google\Service\CloudDataplex(...);
29 * $partitions = $dataplexService->projects_locations_lakes_zones_entities_partitions;
30 * </code>
31 */
32class ProjectsLocationsLakesZonesEntitiesPartitions extends \Google\Service\Resource
33{
34 /**
35 * Create a metadata partition. (partitions.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}/en
39 * tities/{entity_id}.
40 * @param GoogleCloudDataplexV1Partition $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param bool validateOnly Optional. Only validate the request, but do not
44 * perform mutations. The default is false.
45 * @return GoogleCloudDataplexV1Partition
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, GoogleCloudDataplexV1Partition $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], GoogleCloudDataplexV1Partition::class);
53 }
54 /**
55 * Delete a metadata partition. (partitions.delete)
56 *
57 * @param string $name Required. The resource name of the partition. format: pro
58 * jects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id
59 * }/entities/{entity_id}/partitions/{partition_value_path}. The
60 * {partition_value_path} segment consists of an ordered sequence of partition
61 * values separated by "/". All values must be provided.
62 * @param array $optParams Optional parameters.
63 *
64 * @opt_param string etag Optional. The etag associated with the partition.
65 * @return DataplexEmpty
66 * @throws \Google\Service\Exception
67 */
68 public function delete($name, $optParams = [])
69 {
70 $params = ['name' => $name];
71 $params = array_merge($params, $optParams);
72 return $this->call('delete', [$params], DataplexEmpty::class);
73 }
74 /**
75 * Get a metadata partition of an entity. (partitions.get)
76 *
77 * @param string $name Required. The resource name of the partition: projects/{p
78 * roject_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entiti
79 * es/{entity_id}/partitions/{partition_value_path}. The {partition_value_path}
80 * segment consists of an ordered sequence of partition values separated by "/".
81 * All values must be provided.
82 * @param array $optParams Optional parameters.
83 * @return GoogleCloudDataplexV1Partition
84 * @throws \Google\Service\Exception
85 */
86 public function get($name, $optParams = [])
87 {
88 $params = ['name' => $name];
89 $params = array_merge($params, $optParams);
90 return $this->call('get', [$params], GoogleCloudDataplexV1Partition::class);
91 }
92 /**
93 * List metadata partitions of an entity.
94 * (partitions.listProjectsLocationsLakesZonesEntitiesPartitions)
95 *
96 * @param string $parent Required. The resource name of the parent entity: proje
97 * cts/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/
98 * entities/{entity_id}.
99 * @param array $optParams Optional parameters.
100 *
101 * @opt_param string filter Optional. Filter the partitions returned to the
102 * caller using a key value pair expression. Supported operators and syntax:
103 * logic operators: AND, OR comparison operators: <, >, >=, <= ,=, != LIKE
104 * operators: The right hand of a LIKE operator supports "." and "*" for
105 * wildcard searches, for example "value1 LIKE ".*oo.*" parenthetical grouping:
106 * ( )Sample filter expression: `?filter="key1 < value1 OR key2 > value2"Notes:
107 * Keys to the left of operators are case insensitive. Partition results are
108 * sorted first by creation time, then by lexicographic order. Up to 20 key
109 * value filter pairs are allowed, but due to performance considerations, only
110 * the first 10 will be used as a filter.
111 * @opt_param int pageSize Optional. Maximum number of partitions to return. The
112 * service may return fewer than this value. If unspecified, 100 partitions will
113 * be returned by default. The maximum page size is 500; larger values will will
114 * be truncated to 500.
115 * @opt_param string pageToken Optional. Page token received from a previous
116 * ListPartitions call. Provide this to retrieve the subsequent page. When
117 * paginating, all other parameters provided to ListPartitions must match the
118 * call that provided the page token.
119 * @return GoogleCloudDataplexV1ListPartitionsResponse
120 * @throws \Google\Service\Exception
121 */
122 public function listProjectsLocationsLakesZonesEntitiesPartitions($parent, $optParams = [])
123 {
124 $params = ['parent' => $parent];
125 $params = array_merge($params, $optParams);
126 return $this->call('list', [$params], GoogleCloudDataplexV1ListPartitionsResponse::class);
127 }
128}
129
130// Adding a class alias for backwards compatibility with the previous class name.
131class_alias(ProjectsLocationsLakesZonesEntitiesPartitions::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsLakesZonesEntitiesPartitions');
Note: See TracBrowser for help on using the repository browser.