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 the caller has on the specified instance resource. Attempting this RPC on a non-existent Cloud Spanner instance resource will result in a NOT_FOUND error if the user has `spanner.instances.list` permission on the containing Google Cloud Project. Otherwise returns an empty set of permissions.
See: Cloud Spanner API Reference for spanner.projects.instances.testIamPermissions
.
Synopsis
- type ProjectsInstancesTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))
- projectsInstancesTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsInstancesTestIAMPermissions
- data ProjectsInstancesTestIAMPermissions
- pitipXgafv :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Xgafv)
- pitipUploadProtocol :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text)
- pitipAccessToken :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text)
- pitipUploadType :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text)
- pitipPayload :: Lens' ProjectsInstancesTestIAMPermissions TestIAMPermissionsRequest
- pitipResource :: Lens' ProjectsInstancesTestIAMPermissions Text
- pitipCallback :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsInstancesTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #
A resource alias for spanner.projects.instances.testIamPermissions
method which the
ProjectsInstancesTestIAMPermissions
request conforms to.
Creating a Request
projectsInstancesTestIAMPermissions Source #
Creates a value of ProjectsInstancesTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesTestIAMPermissions Source #
Returns permissions that the caller has on the specified instance resource. Attempting this RPC on a non-existent Cloud Spanner instance resource will result in a NOT_FOUND error if the user has `spanner.instances.list` permission on the containing Google Cloud Project. Otherwise returns an empty set of permissions.
See: projectsInstancesTestIAMPermissions
smart constructor.
Instances
Request Lenses
pitipXgafv :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pitipUploadProtocol :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pitipAccessToken :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pitipUploadType :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pitipPayload :: Lens' ProjectsInstancesTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
pitipResource :: Lens' ProjectsInstancesTestIAMPermissions Text Source #
REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.