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