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. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
See: Google Cloud Pub/Sub API Reference for pubsub.projects.snapshots.testIamPermissions
.
- type ProjectsSnapshotsTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))))
- projectsSnapshotsTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsSnapshotsTestIAMPermissions
- data ProjectsSnapshotsTestIAMPermissions
- pstipXgafv :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Xgafv)
- pstipUploadProtocol :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
- pstipPp :: Lens' ProjectsSnapshotsTestIAMPermissions Bool
- pstipAccessToken :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
- pstipUploadType :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
- pstipPayload :: Lens' ProjectsSnapshotsTestIAMPermissions TestIAMPermissionsRequest
- pstipBearerToken :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
- pstipResource :: Lens' ProjectsSnapshotsTestIAMPermissions Text
- pstipCallback :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsSnapshotsTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))))) Source #
A resource alias for pubsub.projects.snapshots.testIamPermissions
method which the
ProjectsSnapshotsTestIAMPermissions
request conforms to.
Creating a Request
projectsSnapshotsTestIAMPermissions Source #
Creates a value of ProjectsSnapshotsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSnapshotsTestIAMPermissions Source #
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
See: projectsSnapshotsTestIAMPermissions
smart constructor.
Request Lenses
pstipXgafv :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pstipUploadProtocol :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pstipAccessToken :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pstipUploadType :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pstipPayload :: Lens' ProjectsSnapshotsTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
pstipBearerToken :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #
OAuth bearer token.
pstipResource :: Lens' ProjectsSnapshotsTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.