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