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 database resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.testIamPermissions
.
Synopsis
- type ProjectsInstancesDatabasesTestIAMPermissionsResource = "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))))))))
- projectsInstancesDatabasesTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsInstancesDatabasesTestIAMPermissions
- data ProjectsInstancesDatabasesTestIAMPermissions
- pidtipXgafv :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Xgafv)
- pidtipUploadProtocol :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text)
- pidtipAccessToken :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text)
- pidtipUploadType :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text)
- pidtipPayload :: Lens' ProjectsInstancesDatabasesTestIAMPermissions TestIAMPermissionsRequest
- pidtipResource :: Lens' ProjectsInstancesDatabasesTestIAMPermissions Text
- pidtipCallback :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesTestIAMPermissionsResource = "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.databases.testIamPermissions
method which the
ProjectsInstancesDatabasesTestIAMPermissions
request conforms to.
Creating a Request
projectsInstancesDatabasesTestIAMPermissions Source #
Creates a value of ProjectsInstancesDatabasesTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesTestIAMPermissions Source #
Returns permissions that the caller has on the specified database resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions.
See: projectsInstancesDatabasesTestIAMPermissions
smart constructor.
Instances
Request Lenses
pidtipXgafv :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pidtipUploadProtocol :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidtipAccessToken :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pidtipUploadType :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidtipPayload :: Lens' ProjectsInstancesDatabasesTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
pidtipResource :: Lens' ProjectsInstancesDatabasesTestIAMPermissions 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.