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