[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\BigtableAdmin\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\BigtableAdmin\GetIamPolicyRequest;
|
---|
| 21 | use Google\Service\BigtableAdmin\Policy;
|
---|
| 22 | use Google\Service\BigtableAdmin\SetIamPolicyRequest;
|
---|
| 23 | use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
|
---|
| 24 | use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * The "views" collection of methods.
|
---|
| 28 | * Typical usage is:
|
---|
| 29 | * <code>
|
---|
| 30 | * $bigtableadminService = new Google\Service\BigtableAdmin(...);
|
---|
| 31 | * $views = $bigtableadminService->projects_instances_tables_views;
|
---|
| 32 | * </code>
|
---|
| 33 | */
|
---|
| 34 | class ProjectsInstancesTablesViews extends \Google\Service\Resource
|
---|
| 35 | {
|
---|
| 36 | /**
|
---|
| 37 | * Gets the access control policy for a Table resource. Returns an empty policy
|
---|
| 38 | * if the resource exists but does not have a policy set. (views.getIamPolicy)
|
---|
| 39 | *
|
---|
| 40 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
| 41 | * requested. See [Resource
|
---|
| 42 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 43 | * appropriate value for this field.
|
---|
| 44 | * @param GetIamPolicyRequest $postBody
|
---|
| 45 | * @param array $optParams Optional parameters.
|
---|
| 46 | * @return Policy
|
---|
| 47 | */
|
---|
| 48 | public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
|
---|
| 49 | {
|
---|
| 50 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
| 51 | $params = array_merge($params, $optParams);
|
---|
| 52 | return $this->call('getIamPolicy', [$params], Policy::class);
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * Sets the access control policy on a Table resource. Replaces any existing
|
---|
| 56 | * policy. (views.setIamPolicy)
|
---|
| 57 | *
|
---|
| 58 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
| 59 | * specified. See [Resource
|
---|
| 60 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 61 | * appropriate value for this field.
|
---|
| 62 | * @param SetIamPolicyRequest $postBody
|
---|
| 63 | * @param array $optParams Optional parameters.
|
---|
| 64 | * @return Policy
|
---|
| 65 | */
|
---|
| 66 | public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
|
---|
| 67 | {
|
---|
| 68 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
| 69 | $params = array_merge($params, $optParams);
|
---|
| 70 | return $this->call('setIamPolicy', [$params], Policy::class);
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * Returns permissions that the caller has on the specified table resource.
|
---|
| 74 | * (views.testIamPermissions)
|
---|
| 75 | *
|
---|
| 76 | * @param string $resource REQUIRED: The resource for which the policy detail is
|
---|
| 77 | * being requested. See [Resource
|
---|
| 78 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 79 | * appropriate value for this field.
|
---|
| 80 | * @param TestIamPermissionsRequest $postBody
|
---|
| 81 | * @param array $optParams Optional parameters.
|
---|
| 82 | * @return TestIamPermissionsResponse
|
---|
| 83 | */
|
---|
| 84 | public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
|
---|
| 85 | {
|
---|
| 86 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
| 87 | $params = array_merge($params, $optParams);
|
---|
| 88 | return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
|
---|
| 89 | }
|
---|
| 90 | }
|
---|
| 91 |
|
---|
| 92 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 93 | class_alias(ProjectsInstancesTablesViews::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesTablesViews');
|
---|