gogol-androidmanagement-0.4.0: Google Android Management 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.AndroidManagement.Enterprises.Devices.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: Android Management API Reference for androidmanagement.enterprises.devices.operations.cancel.

Synopsis

REST Resource

type EnterprisesDevicesOperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty))))))) Source #

A resource alias for androidmanagement.enterprises.devices.operations.cancel method which the EnterprisesDevicesOperationsCancel request conforms to.

Creating a Request

enterprisesDevicesOperationsCancel Source #

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

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

data EnterprisesDevicesOperationsCancel 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: enterprisesDevicesOperationsCancel smart constructor.

Instances
Eq EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

Data EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

Methods

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

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

toConstr :: EnterprisesDevicesOperationsCancel -> Constr #

dataTypeOf :: EnterprisesDevicesOperationsCancel -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

Generic EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

Associated Types

type Rep EnterprisesDevicesOperationsCancel :: Type -> Type #

GoogleRequest EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

type Rep EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

type Rep EnterprisesDevicesOperationsCancel = D1 (MetaData "EnterprisesDevicesOperationsCancel" "Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel" "gogol-androidmanagement-0.4.0-Fw3CwgJUt5jG9Vgn9TvuqA" False) (C1 (MetaCons "EnterprisesDevicesOperationsCancel'" PrefixI True) ((S1 (MetaSel (Just "_edocXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_edocUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_edocAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_edocUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_edocName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_edocCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

type Scopes EnterprisesDevicesOperationsCancel = "https://www.googleapis.com/auth/androidmanagement" ': ([] :: [Symbol])
type Rs EnterprisesDevicesOperationsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel

Request Lenses

edocUploadProtocol :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text) Source #

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

edocUploadType :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text) Source #

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

edocName :: Lens' EnterprisesDevicesOperationsCancel Text Source #

The name of the operation resource to be cancelled.