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.disks.setIamPolicy
.
Synopsis
- type DisksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("disks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ZoneSetPolicyRequest :> Post '[JSON] Policy))))))))))
- disksSetIAMPolicy :: Text -> Text -> ZoneSetPolicyRequest -> Text -> DisksSetIAMPolicy
- data DisksSetIAMPolicy
- dsipProject :: Lens' DisksSetIAMPolicy Text
- dsipZone :: Lens' DisksSetIAMPolicy Text
- dsipPayload :: Lens' DisksSetIAMPolicy ZoneSetPolicyRequest
- dsipResource :: Lens' DisksSetIAMPolicy Text
REST Resource
type DisksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("disks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ZoneSetPolicyRequest :> Post '[JSON] Policy)))))))))) Source #
A resource alias for compute.disks.setIamPolicy
method which the
DisksSetIAMPolicy
request conforms to.
Creating a Request
:: Text | |
-> Text | |
-> ZoneSetPolicyRequest | |
-> Text | |
-> DisksSetIAMPolicy |
Creates a value of DisksSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DisksSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: disksSetIAMPolicy
smart constructor.
Instances
Request Lenses
dsipProject :: Lens' DisksSetIAMPolicy Text Source #
Project ID for this request.
dsipPayload :: Lens' DisksSetIAMPolicy ZoneSetPolicyRequest Source #
Multipart request metadata.
dsipResource :: Lens' DisksSetIAMPolicy Text Source #
Name or id of the resource for this request.