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