gogol-runtimeconfig-0.3.0: Google Cloud RuntimeConfig 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.RuntimeConfig.Operations.Cancel

Contents

Description

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

See: Google Cloud RuntimeConfig API Reference for runtimeconfig.operations.cancel.

Synopsis

REST Resource

type OperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" 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] CancelOperationRequest :> Post '[JSON] Empty)))))))))) Source #

A resource alias for runtimeconfig.operations.cancel method which the OperationsCancel request conforms to.

Creating a Request

operationsCancel Source #

Creates a value of OperationsCancel with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data OperationsCancel Source #

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

See: operationsCancel smart constructor.

Instances

Eq OperationsCancel Source # 
Data OperationsCancel Source # 

Methods

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

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

toConstr :: OperationsCancel -> Constr #

dataTypeOf :: OperationsCancel -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OperationsCancel Source # 
Generic OperationsCancel Source # 
GoogleRequest OperationsCancel Source # 
type Rep OperationsCancel Source # 
type Scopes OperationsCancel Source # 
type Scopes OperationsCancel = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/cloudruntimeconfig" ([] Symbol))
type Rs OperationsCancel Source # 

Request Lenses

ocUploadProtocol :: Lens' OperationsCancel (Maybe Text) Source #

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

ocPp :: Lens' OperationsCancel Bool Source #

Pretty-print response.

ocUploadType :: Lens' OperationsCancel (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

ocName :: Lens' OperationsCancel Text Source #

The name of the operation resource to be cancelled.