| 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 |
Network.Google.Resource.Compute.Subnetworks.SetIAMPolicy
Description
Sets the access control policy on the specified resource. Replaces any existing policy.
See: Compute Engine API Reference for compute.subnetworks.setIamPolicy.
Synopsis
- type SubnetworksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("subnetworks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionSetPolicyRequest :> Post '[JSON] Policy))))))))))
- subnetworksSetIAMPolicy :: Text -> RegionSetPolicyRequest -> Text -> Text -> SubnetworksSetIAMPolicy
- data SubnetworksSetIAMPolicy
- ssiampProject :: Lens' SubnetworksSetIAMPolicy Text
- ssiampPayload :: Lens' SubnetworksSetIAMPolicy RegionSetPolicyRequest
- ssiampResource :: Lens' SubnetworksSetIAMPolicy Text
- ssiampRegion :: Lens' SubnetworksSetIAMPolicy Text
REST Resource
type SubnetworksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("subnetworks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionSetPolicyRequest :> Post '[JSON] Policy)))))))))) Source #
A resource alias for compute.subnetworks.setIamPolicy method which the
SubnetworksSetIAMPolicy request conforms to.
Creating a Request
subnetworksSetIAMPolicy Source #
Arguments
| :: Text | |
| -> RegionSetPolicyRequest | |
| -> Text | |
| -> Text | |
| -> SubnetworksSetIAMPolicy |
Creates a value of SubnetworksSetIAMPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubnetworksSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: subnetworksSetIAMPolicy smart constructor.
Instances
Request Lenses
ssiampProject :: Lens' SubnetworksSetIAMPolicy Text Source #
Project ID for this request.
ssiampPayload :: Lens' SubnetworksSetIAMPolicy RegionSetPolicyRequest Source #
Multipart request metadata.
ssiampResource :: Lens' SubnetworksSetIAMPolicy Text Source #
Name or id of the resource for this request.
ssiampRegion :: Lens' SubnetworksSetIAMPolicy Text Source #
The name of the region for this request.