gogol-sheets-0.4.0: 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.Create

Contents

Description

Creates a spreadsheet, returning the newly created spreadsheet.

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

Synopsis

REST Resource

type SpreadsheetsCreateResource = "v4" :> ("spreadsheets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Spreadsheet :> Post '[JSON] Spreadsheet)))))))) Source #

A resource alias for sheets.spreadsheets.create method which the SpreadsheetsCreate request conforms to.

Creating a Request

spreadsheetsCreate Source #

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

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

data SpreadsheetsCreate Source #

Creates a spreadsheet, returning the newly created spreadsheet.

See: spreadsheetsCreate smart constructor.

Instances
Eq SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Data SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Methods

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

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

toConstr :: SpreadsheetsCreate -> Constr #

dataTypeOf :: SpreadsheetsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Generic SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Associated Types

type Rep SpreadsheetsCreate :: Type -> Type #

GoogleRequest SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Associated Types

type Rs SpreadsheetsCreate :: Type #

type Scopes SpreadsheetsCreate :: [Symbol] #

type Rep SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

type Rep SpreadsheetsCreate = D1 (MetaData "SpreadsheetsCreate" "Network.Google.Resource.Sheets.Spreadsheets.Create" "gogol-sheets-0.4.0-DWkMVDpj7ZbHiXYeCjugGu" False) (C1 (MetaCons "SpreadsheetsCreate'" PrefixI True) ((S1 (MetaSel (Just "_scXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_scUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_scAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_scUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_scPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Spreadsheet) :*: S1 (MetaSel (Just "_scCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

type Scopes SpreadsheetsCreate = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.file" ': ("https://www.googleapis.com/auth/spreadsheets" ': ([] :: [Symbol])))
type Rs SpreadsheetsCreate Source # 
Instance details

Defined in Network.Google.Resource.Sheets.Spreadsheets.Create

Request Lenses

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

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

scUploadType :: Lens' SpreadsheetsCreate (Maybe Text) Source #

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

scPayload :: Lens' SpreadsheetsCreate Spreadsheet Source #

Multipart request metadata.