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 |
Returns permissions that a caller has on the specified resource.
See: Compute Engine API Reference for compute.subnetworks.testIamPermissions
.
Synopsis
- type SubnetworksTestIAMPermissionsResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("subnetworks" :> (Capture "resource" Text :> ("testIamPermissions" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestPermissionsRequest :> Post '[JSON] TestPermissionsResponse))))))))))
- subnetworksTestIAMPermissions :: Text -> TestPermissionsRequest -> Text -> Text -> SubnetworksTestIAMPermissions
- data SubnetworksTestIAMPermissions
- stiampProject :: Lens' SubnetworksTestIAMPermissions Text
- stiampPayload :: Lens' SubnetworksTestIAMPermissions TestPermissionsRequest
- stiampResource :: Lens' SubnetworksTestIAMPermissions Text
- stiampRegion :: Lens' SubnetworksTestIAMPermissions Text
REST Resource
type SubnetworksTestIAMPermissionsResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("subnetworks" :> (Capture "resource" Text :> ("testIamPermissions" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestPermissionsRequest :> Post '[JSON] TestPermissionsResponse)))))))))) Source #
A resource alias for compute.subnetworks.testIamPermissions
method which the
SubnetworksTestIAMPermissions
request conforms to.
Creating a Request
subnetworksTestIAMPermissions Source #
Creates a value of SubnetworksTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubnetworksTestIAMPermissions Source #
Returns permissions that a caller has on the specified resource.
See: subnetworksTestIAMPermissions
smart constructor.
Instances
Request Lenses
stiampProject :: Lens' SubnetworksTestIAMPermissions Text Source #
Project ID for this request.
stiampPayload :: Lens' SubnetworksTestIAMPermissions TestPermissionsRequest Source #
Multipart request metadata.
stiampResource :: Lens' SubnetworksTestIAMPermissions Text Source #
Name or id of the resource for this request.
stiampRegion :: Lens' SubnetworksTestIAMPermissions Text Source #
The name of the region for this request.