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