gogol-sheets-0.1.1: Google Sheets 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.Sheets.Spreadsheets.BatchUpdate

Contents

Description

Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your changes after this completes, however it is guaranteed that the updates in the request will be applied together atomically. Your changes may be altered with respect to collaborator changes. If there are no collaborators, the spreadsheet should reflect your changes.

See: Google Sheets API Reference for sheets.spreadsheets.batchUpdate.

Synopsis

REST Resource

type SpreadsheetsBatchUpdateResource = "v4" :> ("spreadsheets" :> (CaptureMode "spreadsheetId" "batchUpdate" 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] BatchUpdateSpreadsheetRequest :> Post '[JSON] BatchUpdateSpreadsheetResponse))))))))))) Source #

A resource alias for sheets.spreadsheets.batchUpdate method which the SpreadsheetsBatchUpdate request conforms to.

Creating a Request

data SpreadsheetsBatchUpdate Source #

Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your changes after this completes, however it is guaranteed that the updates in the request will be applied together atomically. Your changes may be altered with respect to collaborator changes. If there are no collaborators, the spreadsheet should reflect your changes.

See: spreadsheetsBatchUpdate smart constructor.

Instances

Eq SpreadsheetsBatchUpdate Source # 
Data SpreadsheetsBatchUpdate Source # 

Methods

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

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

toConstr :: SpreadsheetsBatchUpdate -> Constr #

dataTypeOf :: SpreadsheetsBatchUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SpreadsheetsBatchUpdate Source # 
Generic SpreadsheetsBatchUpdate Source # 
GoogleRequest SpreadsheetsBatchUpdate Source # 
type Rep SpreadsheetsBatchUpdate Source # 
type Scopes SpreadsheetsBatchUpdate Source # 
type Scopes SpreadsheetsBatchUpdate = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/spreadsheets" ([] Symbol))
type Rs SpreadsheetsBatchUpdate Source # 

Request Lenses

sbuUploadProtocol :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #

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

sbuPp :: Lens' SpreadsheetsBatchUpdate Bool Source #

Pretty-print response.

sbuSpreadsheetId :: Lens' SpreadsheetsBatchUpdate Text Source #

The spreadsheet to apply the updates to.

sbuUploadType :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #

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