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