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