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: Google Cloud Deployment Manager API Reference for deploymentmanager.deployments.setIamPolicy
.
Synopsis
- type DeploymentsSetIAMPolicyResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetPolicyRequest :> Post '[JSON] Policy)))))))))
- deploymentsSetIAMPolicy :: Text -> GlobalSetPolicyRequest -> Text -> DeploymentsSetIAMPolicy
- data DeploymentsSetIAMPolicy
- dsipProject :: Lens' DeploymentsSetIAMPolicy Text
- dsipPayload :: Lens' DeploymentsSetIAMPolicy GlobalSetPolicyRequest
- dsipResource :: Lens' DeploymentsSetIAMPolicy Text
REST Resource
type DeploymentsSetIAMPolicyResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetPolicyRequest :> Post '[JSON] Policy))))))))) Source #
A resource alias for deploymentmanager.deployments.setIamPolicy
method which the
DeploymentsSetIAMPolicy
request conforms to.
Creating a Request
deploymentsSetIAMPolicy Source #
Creates a value of DeploymentsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeploymentsSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: deploymentsSetIAMPolicy
smart constructor.
Instances
Request Lenses
dsipProject :: Lens' DeploymentsSetIAMPolicy Text Source #
Project ID for this request.
dsipPayload :: Lens' DeploymentsSetIAMPolicy GlobalSetPolicyRequest Source #
Multipart request metadata.
dsipResource :: Lens' DeploymentsSetIAMPolicy Text Source #
Name or id of the resource for this request.