Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Sets the access control policy on the specified resource. Replaces any existing policy.
See: Compute Engine API Reference for compute.snapshots.setIamPolicy
.
Synopsis
- type SnapshotsSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetPolicyRequest :> Post '[JSON] Policy)))))))))
- snapshotsSetIAMPolicy :: Text -> GlobalSetPolicyRequest -> Text -> SnapshotsSetIAMPolicy
- data SnapshotsSetIAMPolicy
- ssipProject :: Lens' SnapshotsSetIAMPolicy Text
- ssipPayload :: Lens' SnapshotsSetIAMPolicy GlobalSetPolicyRequest
- ssipResource :: Lens' SnapshotsSetIAMPolicy Text
REST Resource
type SnapshotsSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetPolicyRequest :> Post '[JSON] Policy))))))))) Source #
A resource alias for compute.snapshots.setIamPolicy
method which the
SnapshotsSetIAMPolicy
request conforms to.
Creating a Request
snapshotsSetIAMPolicy Source #
Creates a value of SnapshotsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SnapshotsSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: snapshotsSetIAMPolicy
smart constructor.
Instances
Request Lenses
ssipProject :: Lens' SnapshotsSetIAMPolicy Text Source #
Project ID for this request.
ssipPayload :: Lens' SnapshotsSetIAMPolicy GlobalSetPolicyRequest Source #
Multipart request metadata.
ssipResource :: Lens' SnapshotsSetIAMPolicy Text Source #
Name or id of the resource for this request.