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 whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must 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 any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the `Check` method having the latest policy information. 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 Cloud IAM.
See: Service Control API Reference for servicecontrol.services.check
.
Synopsis
- type ServicesCheckResource = "v1" :> ("services" :> (CaptureMode "serviceName" "check" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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)
- scAccessToken :: Lens' ServicesCheck (Maybe Text)
- scUploadType :: Lens' ServicesCheck (Maybe Text)
- scPayload :: Lens' ServicesCheck CheckRequest
- 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 "access_token" Text :> (QueryParam "uploadType" 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 whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must 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 any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the `Check` method having the latest policy information. 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 Cloud IAM.
See: servicesCheck
smart constructor.
Instances
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.
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