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