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