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.subscriptions.testIamPermissions
.
- type ProjectsSubscriptionsTestIAMPermissionsResource = "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))))))))))
- projectsSubscriptionsTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsSubscriptionsTestIAMPermissions
- data ProjectsSubscriptionsTestIAMPermissions
- pstiampXgafv :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Xgafv)
- pstiampUploadProtocol :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
- pstiampPp :: Lens' ProjectsSubscriptionsTestIAMPermissions Bool
- pstiampAccessToken :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
- pstiampUploadType :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
- pstiampPayload :: Lens' ProjectsSubscriptionsTestIAMPermissions TestIAMPermissionsRequest
- pstiampBearerToken :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
- pstiampResource :: Lens' ProjectsSubscriptionsTestIAMPermissions Text
- pstiampCallback :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsSubscriptionsTestIAMPermissionsResource = "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.subscriptions.testIamPermissions
method which the
ProjectsSubscriptionsTestIAMPermissions
request conforms to.
Creating a Request
projectsSubscriptionsTestIAMPermissions Source #
Creates a value of ProjectsSubscriptionsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSubscriptionsTestIAMPermissions 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: projectsSubscriptionsTestIAMPermissions
smart constructor.
Request Lenses
pstiampXgafv :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pstiampUploadProtocol :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pstiampAccessToken :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pstiampUploadType :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pstiampPayload :: Lens' ProjectsSubscriptionsTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
pstiampBearerToken :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text) Source #
OAuth bearer token.
pstiampResource :: Lens' ProjectsSubscriptionsTestIAMPermissions 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}`.