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