Copyright 2016 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package iam supports the resource-specific operations of Google Cloud IAM (Identity and Access Management) for the Google Cloud Libraries. See https://cloud.google.com/iam for more about IAM. Users of the Google Cloud Libraries will typically not use this package directly. Instead they will begin with some resource that supports IAM, like a pubsub topic, and call its IAM method to get a Handle for that resource.
InternalNewHandle is for use by the Google Cloud Libraries only. InternalNewHandle returns a Handle for resource. The conn parameter refers to a server that must support the IAMPolicy service.
InternalNewHandleGRPCClient is for use by the Google Cloud Libraries only. InternalNewHandleClient returns a Handle for resource using the given grpc service that implements IAM as a mixin
InternalNewHandleClient is for use by the Google Cloud Libraries only. InternalNewHandleClient returns a Handle for resource using the given client implementation.
V3 returns a Handle3, which is like Handle except it sets requestedPolicyVersion to 3 when retrieving a policy and policy.version to 3 when storing a policy.
SetPolicy replaces the resource's current policy with the supplied Policy. If policy was created from a prior call to Get, then the modification will only succeed if the policy has not changed since the Get.
Members returns the list of members with the supplied role. The return value should not be modified. Use Add and Remove to modify the members of a role.
A Policy3 is a list of Bindings representing roles granted to members. The zero Policy3 is a valid policy with no bindings. It is similar to a Policy, except a Policy3 provides direct access to the list of Bindings. The policy version is always set to 3.
SetPolicy replaces the resource's current policy with the supplied Policy. If policy was created from a prior call to Get, then the modification will only succeed if the policy has not changed since the Get.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.