gogol-servicecontrol-0.2.0: Google Service Control SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.ServiceControl.Services.Check

Contents

Description

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.

Synopsis

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

servicesCheck Source #

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.

Instances

Eq ServicesCheck Source # 
Data ServicesCheck Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ServicesCheck -> c ServicesCheck #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ServicesCheck #

toConstr :: ServicesCheck -> Constr #

dataTypeOf :: ServicesCheck -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ServicesCheck) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ServicesCheck) #

gmapT :: (forall b. Data b => b -> b) -> ServicesCheck -> ServicesCheck #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ServicesCheck -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ServicesCheck -> r #

gmapQ :: (forall d. Data d => d -> u) -> ServicesCheck -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ServicesCheck -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ServicesCheck -> m ServicesCheck #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ServicesCheck -> m ServicesCheck #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ServicesCheck -> m ServicesCheck #

Show ServicesCheck Source # 
Generic ServicesCheck Source # 

Associated Types

type Rep ServicesCheck :: * -> * #

GoogleRequest ServicesCheck Source # 

Associated Types

type Rs ServicesCheck :: * #

type Scopes ServicesCheck :: [Symbol] #

type Rep ServicesCheck Source # 
type Scopes ServicesCheck Source # 
type Scopes ServicesCheck = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/servicecontrol" ([] Symbol))
type Rs ServicesCheck Source # 

Request Lenses

scUploadProtocol :: Lens' ServicesCheck (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

scPp :: Lens' ServicesCheck Bool Source #

Pretty-print response.

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.