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