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