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

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

Upload new project files

  • Property mode set to 100644
File size: 9.7 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\GoogleCloudDataplexV1Lake;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListLakesResponse;
22use Google\Service\CloudDataplex\GoogleIamV1Policy;
23use Google\Service\CloudDataplex\GoogleIamV1SetIamPolicyRequest;
24use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsRequest;
25use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsResponse;
26use Google\Service\CloudDataplex\GoogleLongrunningOperation;
27
28/**
29 * The "lakes" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $dataplexService = new Google\Service\CloudDataplex(...);
33 * $lakes = $dataplexService->projects_locations_lakes;
34 * </code>
35 */
36class ProjectsLocationsLakes extends \Google\Service\Resource
37{
38 /**
39 * Creates a lake resource. (lakes.create)
40 *
41 * @param string $parent Required. The resource name of the lake location, of
42 * the form: projects/{project_number}/locations/{location_id} where location_id
43 * refers to a GCP region.
44 * @param GoogleCloudDataplexV1Lake $postBody
45 * @param array $optParams Optional parameters.
46 *
47 * @opt_param string lakeId Required. Lake identifier. This ID will be used to
48 * generate names such as database and dataset names when publishing metadata to
49 * Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers
50 * and hyphens. * Must start with a letter. * Must end with a number or a
51 * letter. * Must be between 1-63 characters. * Must be unique within the
52 * customer project / location.
53 * @opt_param bool validateOnly Optional. Only validate the request, but do not
54 * perform mutations. The default is false.
55 * @return GoogleLongrunningOperation
56 * @throws \Google\Service\Exception
57 */
58 public function create($parent, GoogleCloudDataplexV1Lake $postBody, $optParams = [])
59 {
60 $params = ['parent' => $parent, 'postBody' => $postBody];
61 $params = array_merge($params, $optParams);
62 return $this->call('create', [$params], GoogleLongrunningOperation::class);
63 }
64 /**
65 * Deletes a lake resource. All zones within the lake must be deleted before the
66 * lake can be deleted. (lakes.delete)
67 *
68 * @param string $name Required. The resource name of the lake:
69 * projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
70 * @param array $optParams Optional parameters.
71 * @return GoogleLongrunningOperation
72 * @throws \Google\Service\Exception
73 */
74 public function delete($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
79 }
80 /**
81 * Retrieves a lake resource. (lakes.get)
82 *
83 * @param string $name Required. The resource name of the lake:
84 * projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
85 * @param array $optParams Optional parameters.
86 * @return GoogleCloudDataplexV1Lake
87 * @throws \Google\Service\Exception
88 */
89 public function get($name, $optParams = [])
90 {
91 $params = ['name' => $name];
92 $params = array_merge($params, $optParams);
93 return $this->call('get', [$params], GoogleCloudDataplexV1Lake::class);
94 }
95 /**
96 * Gets the access control policy for a resource. Returns an empty policy if the
97 * resource exists and does not have a policy set. (lakes.getIamPolicy)
98 *
99 * @param string $resource REQUIRED: The resource for which the policy is being
100 * requested. See Resource names
101 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
102 * value for this field.
103 * @param array $optParams Optional parameters.
104 *
105 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
106 * version that will be used to format the policy.Valid values are 0, 1, and 3.
107 * Requests specifying an invalid value will be rejected.Requests for policies
108 * with any conditional role bindings must specify version 3. Policies with no
109 * conditional role bindings may specify any valid value or leave the field
110 * unset.The policy in the response might use the policy version that you
111 * specified, or it might use a lower policy version. For example, if you
112 * specify version 3, but the policy has no conditional role bindings, the
113 * response uses version 1.To learn which resources support conditions in their
114 * IAM policies, see the IAM documentation
115 * (https://cloud.google.com/iam/help/conditions/resource-policies).
116 * @return GoogleIamV1Policy
117 * @throws \Google\Service\Exception
118 */
119 public function getIamPolicy($resource, $optParams = [])
120 {
121 $params = ['resource' => $resource];
122 $params = array_merge($params, $optParams);
123 return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
124 }
125 /**
126 * Lists lake resources in a project and location.
127 * (lakes.listProjectsLocationsLakes)
128 *
129 * @param string $parent Required. The resource name of the lake location, of
130 * the form: projects/{project_number}/locations/{location_id} where location_id
131 * refers to a GCP region.
132 * @param array $optParams Optional parameters.
133 *
134 * @opt_param string filter Optional. Filter request.
135 * @opt_param string orderBy Optional. Order by fields for the result.
136 * @opt_param int pageSize Optional. Maximum number of Lakes to return. The
137 * service may return fewer than this value. If unspecified, at most 10 lakes
138 * will be returned. The maximum value is 1000; values above 1000 will be
139 * coerced to 1000.
140 * @opt_param string pageToken Optional. Page token received from a previous
141 * ListLakes call. Provide this to retrieve the subsequent page. When
142 * paginating, all other parameters provided to ListLakes must match the call
143 * that provided the page token.
144 * @return GoogleCloudDataplexV1ListLakesResponse
145 * @throws \Google\Service\Exception
146 */
147 public function listProjectsLocationsLakes($parent, $optParams = [])
148 {
149 $params = ['parent' => $parent];
150 $params = array_merge($params, $optParams);
151 return $this->call('list', [$params], GoogleCloudDataplexV1ListLakesResponse::class);
152 }
153 /**
154 * Updates a lake resource. (lakes.patch)
155 *
156 * @param string $name Output only. The relative resource name of the lake, of
157 * the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
158 * @param GoogleCloudDataplexV1Lake $postBody
159 * @param array $optParams Optional parameters.
160 *
161 * @opt_param string updateMask Required. Mask of fields to update.
162 * @opt_param bool validateOnly Optional. Only validate the request, but do not
163 * perform mutations. The default is false.
164 * @return GoogleLongrunningOperation
165 * @throws \Google\Service\Exception
166 */
167 public function patch($name, GoogleCloudDataplexV1Lake $postBody, $optParams = [])
168 {
169 $params = ['name' => $name, 'postBody' => $postBody];
170 $params = array_merge($params, $optParams);
171 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
172 }
173 /**
174 * Sets the access control policy on the specified resource. Replaces any
175 * existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
176 * errors. (lakes.setIamPolicy)
177 *
178 * @param string $resource REQUIRED: The resource for which the policy is being
179 * specified. See Resource names
180 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
181 * value for this field.
182 * @param GoogleIamV1SetIamPolicyRequest $postBody
183 * @param array $optParams Optional parameters.
184 * @return GoogleIamV1Policy
185 * @throws \Google\Service\Exception
186 */
187 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
188 {
189 $params = ['resource' => $resource, 'postBody' => $postBody];
190 $params = array_merge($params, $optParams);
191 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
192 }
193 /**
194 * Returns permissions that a caller has on the specified resource. If the
195 * resource does not exist, this will return an empty set of permissions, not a
196 * NOT_FOUND error.Note: This operation is designed to be used for building
197 * permission-aware UIs and command-line tools, not for authorization checking.
198 * This operation may "fail open" without warning. (lakes.testIamPermissions)
199 *
200 * @param string $resource REQUIRED: The resource for which the policy detail is
201 * being requested. See Resource names
202 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
203 * value for this field.
204 * @param GoogleIamV1TestIamPermissionsRequest $postBody
205 * @param array $optParams Optional parameters.
206 * @return GoogleIamV1TestIamPermissionsResponse
207 * @throws \Google\Service\Exception
208 */
209 public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
210 {
211 $params = ['resource' => $resource, 'postBody' => $postBody];
212 $params = array_merge($params, $optParams);
213 return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
214 }
215}
216
217// Adding a class alias for backwards compatibility with the previous class name.
218class_alias(ProjectsLocationsLakes::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsLakes');
Note: See TracBrowser for help on using the repository browser.