[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\Iam\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Iam\LintPolicyRequest;
|
---|
| 21 | use Google\Service\Iam\LintPolicyResponse;
|
---|
| 22 | use Google\Service\Iam\QueryAuditableServicesRequest;
|
---|
| 23 | use Google\Service\Iam\QueryAuditableServicesResponse;
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * The "iamPolicies" collection of methods.
|
---|
| 27 | * Typical usage is:
|
---|
| 28 | * <code>
|
---|
| 29 | * $iamService = new Google\Service\Iam(...);
|
---|
| 30 | * $iamPolicies = $iamService->iamPolicies;
|
---|
| 31 | * </code>
|
---|
| 32 | */
|
---|
| 33 | class IamPolicies extends \Google\Service\Resource
|
---|
| 34 | {
|
---|
| 35 | /**
|
---|
| 36 | * Lints, or validates, an IAM policy. Currently checks the
|
---|
| 37 | * google.iam.v1.Binding.condition field, which contains a condition expression
|
---|
| 38 | * for a role binding. Successful calls to this method always return an HTTP
|
---|
| 39 | * `200 OK` status code, even if the linter detects an issue in the IAM policy.
|
---|
| 40 | * (iamPolicies.lintPolicy)
|
---|
| 41 | *
|
---|
| 42 | * @param LintPolicyRequest $postBody
|
---|
| 43 | * @param array $optParams Optional parameters.
|
---|
| 44 | * @return LintPolicyResponse
|
---|
| 45 | */
|
---|
| 46 | public function lintPolicy(LintPolicyRequest $postBody, $optParams = [])
|
---|
| 47 | {
|
---|
| 48 | $params = ['postBody' => $postBody];
|
---|
| 49 | $params = array_merge($params, $optParams);
|
---|
| 50 | return $this->call('lintPolicy', [$params], LintPolicyResponse::class);
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * Returns a list of services that allow you to opt into audit logs that are not
|
---|
| 54 | * generated by default. To learn more about audit logs, see the [Logging
|
---|
| 55 | * documentation](https://cloud.google.com/logging/docs/audit).
|
---|
| 56 | * (iamPolicies.queryAuditableServices)
|
---|
| 57 | *
|
---|
| 58 | * @param QueryAuditableServicesRequest $postBody
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | * @return QueryAuditableServicesResponse
|
---|
| 61 | */
|
---|
| 62 | public function queryAuditableServices(QueryAuditableServicesRequest $postBody, $optParams = [])
|
---|
| 63 | {
|
---|
| 64 | $params = ['postBody' => $postBody];
|
---|
| 65 | $params = array_merge($params, $optParams);
|
---|
| 66 | return $this->call('queryAuditableServices', [$params], QueryAuditableServicesResponse::class);
|
---|
| 67 | }
|
---|
| 68 | }
|
---|
| 69 |
|
---|
| 70 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 71 | class_alias(IamPolicies::class, 'Google_Service_Iam_Resource_IamPolicies');
|
---|