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 |
Checks an operation with Google Service Control to decide whether the given operation should proceed. It should be called before the operation is executed. If feasible, the client should cache the check results and reuse them for 60 seconds. In case of server errors, the client can rely on the cached results for longer time. NOTE: the `CheckRequest` has the size limit of 64KB. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see Google Cloud IAM.
See: Google Service Control API Reference for servicecontrol.services.check
.
- type ServicesCheckResource = "v1" :> ("services" :> (CaptureMode "serviceName" "check" 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] CheckRequest :> Post '[JSON] CheckResponse)))))))))))
- servicesCheck :: CheckRequest -> Text -> ServicesCheck
- data ServicesCheck
- scXgafv :: Lens' ServicesCheck (Maybe Xgafv)
- scUploadProtocol :: Lens' ServicesCheck (Maybe Text)
- scPp :: Lens' ServicesCheck Bool
- scAccessToken :: Lens' ServicesCheck (Maybe Text)
- scUploadType :: Lens' ServicesCheck (Maybe Text)
- scPayload :: Lens' ServicesCheck CheckRequest
- scBearerToken :: Lens' ServicesCheck (Maybe Text)
- scServiceName :: Lens' ServicesCheck Text
- scCallback :: Lens' ServicesCheck (Maybe Text)
REST Resource
type ServicesCheckResource = "v1" :> ("services" :> (CaptureMode "serviceName" "check" 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] CheckRequest :> Post '[JSON] CheckResponse))))))))))) Source #
A resource alias for servicecontrol.services.check
method which the
ServicesCheck
request conforms to.
Creating a Request
Creates a value of ServicesCheck
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesCheck Source #
Checks an operation with Google Service Control to decide whether the given operation should proceed. It should be called before the operation is executed. If feasible, the client should cache the check results and reuse them for 60 seconds. In case of server errors, the client can rely on the cached results for longer time. NOTE: the `CheckRequest` has the size limit of 64KB. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see Google Cloud IAM.
See: servicesCheck
smart constructor.
Request Lenses
scUploadProtocol :: Lens' ServicesCheck (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
scAccessToken :: Lens' ServicesCheck (Maybe Text) Source #
OAuth access token.
scUploadType :: Lens' ServicesCheck (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
scPayload :: Lens' ServicesCheck CheckRequest Source #
Multipart request metadata.
scBearerToken :: Lens' ServicesCheck (Maybe Text) Source #
OAuth bearer token.
scServiceName :: Lens' ServicesCheck Text Source #
The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See google.api.Service for the definition of a service name.
scCallback :: Lens' ServicesCheck (Maybe Text) Source #
JSONP