|
24 | 24 | use Google\Service\Dataform\FetchRemoteBranchesResponse; |
25 | 25 | use Google\Service\Dataform\FetchRepositoryHistoryResponse; |
26 | 26 | use Google\Service\Dataform\ListRepositoriesResponse; |
27 | | -use Google\Service\Dataform\Policy; |
28 | 27 | use Google\Service\Dataform\QueryRepositoryDirectoryContentsResponse; |
29 | 28 | use Google\Service\Dataform\ReadRepositoryFileResponse; |
30 | 29 | use Google\Service\Dataform\Repository; |
31 | | -use Google\Service\Dataform\SetIamPolicyRequest; |
32 | | -use Google\Service\Dataform\TestIamPermissionsRequest; |
33 | | -use Google\Service\Dataform\TestIamPermissionsResponse; |
34 | 30 |
|
35 | 31 | /** |
36 | 32 | * The "repositories" collection of methods. |
@@ -166,37 +162,6 @@ public function get($name, $optParams = []) |
166 | 162 | $params = array_merge($params, $optParams); |
167 | 163 | return $this->call('get', [$params], Repository::class); |
168 | 164 | } |
169 | | - /** |
170 | | - * Gets the access control policy for a resource. Returns an empty policy if the |
171 | | - * resource exists and does not have a policy set. (repositories.getIamPolicy) |
172 | | - * |
173 | | - * @param string $resource REQUIRED: The resource for which the policy is being |
174 | | - * requested. See [Resource |
175 | | - * names](https://cloud.google.com/apis/design/resource_names) for the |
176 | | - * appropriate value for this field. |
177 | | - * @param array $optParams Optional parameters. |
178 | | - * |
179 | | - * @opt_param int options.requestedPolicyVersion Optional. The maximum policy |
180 | | - * version that will be used to format the policy. Valid values are 0, 1, and 3. |
181 | | - * Requests specifying an invalid value will be rejected. Requests for policies |
182 | | - * with any conditional role bindings must specify version 3. Policies with no |
183 | | - * conditional role bindings may specify any valid value or leave the field |
184 | | - * unset. The policy in the response might use the policy version that you |
185 | | - * specified, or it might use a lower policy version. For example, if you |
186 | | - * specify version 3, but the policy has no conditional role bindings, the |
187 | | - * response uses version 1. To learn which resources support conditions in their |
188 | | - * IAM policies, see the [IAM |
189 | | - * documentation](https://cloud.google.com/iam/help/conditions/resource- |
190 | | - * policies). |
191 | | - * @return Policy |
192 | | - * @throws \Google\Service\Exception |
193 | | - */ |
194 | | - public function getIamPolicy($resource, $optParams = []) |
195 | | - { |
196 | | - $params = ['resource' => $resource]; |
197 | | - $params = array_merge($params, $optParams); |
198 | | - return $this->call('getIamPolicy', [$params], Policy::class); |
199 | | - } |
200 | 165 | /** |
201 | 166 | * Lists Repositories in a given project and location. **Note:** *This method |
202 | 167 | * can return repositories not shown in the [Dataform |
@@ -297,49 +262,6 @@ public function readFile($name, $optParams = []) |
297 | 262 | $params = array_merge($params, $optParams); |
298 | 263 | return $this->call('readFile', [$params], ReadRepositoryFileResponse::class); |
299 | 264 | } |
300 | | - /** |
301 | | - * Sets the access control policy on the specified resource. Replaces any |
302 | | - * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and |
303 | | - * `PERMISSION_DENIED` errors. (repositories.setIamPolicy) |
304 | | - * |
305 | | - * @param string $resource REQUIRED: The resource for which the policy is being |
306 | | - * specified. See [Resource |
307 | | - * names](https://cloud.google.com/apis/design/resource_names) for the |
308 | | - * appropriate value for this field. |
309 | | - * @param SetIamPolicyRequest $postBody |
310 | | - * @param array $optParams Optional parameters. |
311 | | - * @return Policy |
312 | | - * @throws \Google\Service\Exception |
313 | | - */ |
314 | | - public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = []) |
315 | | - { |
316 | | - $params = ['resource' => $resource, 'postBody' => $postBody]; |
317 | | - $params = array_merge($params, $optParams); |
318 | | - return $this->call('setIamPolicy', [$params], Policy::class); |
319 | | - } |
320 | | - /** |
321 | | - * Returns permissions that a caller has on the specified resource. If the |
322 | | - * resource does not exist, this will return an empty set of permissions, not a |
323 | | - * `NOT_FOUND` error. Note: This operation is designed to be used for building |
324 | | - * permission-aware UIs and command-line tools, not for authorization checking. |
325 | | - * This operation may "fail open" without warning. |
326 | | - * (repositories.testIamPermissions) |
327 | | - * |
328 | | - * @param string $resource REQUIRED: The resource for which the policy detail is |
329 | | - * being requested. See [Resource |
330 | | - * names](https://cloud.google.com/apis/design/resource_names) for the |
331 | | - * appropriate value for this field. |
332 | | - * @param TestIamPermissionsRequest $postBody |
333 | | - * @param array $optParams Optional parameters. |
334 | | - * @return TestIamPermissionsResponse |
335 | | - * @throws \Google\Service\Exception |
336 | | - */ |
337 | | - public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = []) |
338 | | - { |
339 | | - $params = ['resource' => $resource, 'postBody' => $postBody]; |
340 | | - $params = array_merge($params, $optParams); |
341 | | - return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class); |
342 | | - } |
343 | 265 | } |
344 | 266 |
|
345 | 267 | // Adding a class alias for backwards compatibility with the previous class name. |
|
0 commit comments