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