Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet.
See: Google Sheets API Reference for sheets.spreadsheets.sheets.copyTo
.
Synopsis
- type SpreadsheetsSheetsCopyToResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("sheets" :> (CaptureMode "sheetId" "copyTo" (Textual Int32) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CopySheetToAnotherSpreadsheetRequest :> Post '[JSON] SheetProperties)))))))))))
- spreadsheetsSheetsCopyTo :: Text -> CopySheetToAnotherSpreadsheetRequest -> Int32 -> SpreadsheetsSheetsCopyTo
- data SpreadsheetsSheetsCopyTo
- ssctXgafv :: Lens' SpreadsheetsSheetsCopyTo (Maybe Xgafv)
- ssctUploadProtocol :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text)
- ssctAccessToken :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text)
- ssctSpreadsheetId :: Lens' SpreadsheetsSheetsCopyTo Text
- ssctUploadType :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text)
- ssctPayload :: Lens' SpreadsheetsSheetsCopyTo CopySheetToAnotherSpreadsheetRequest
- ssctSheetId :: Lens' SpreadsheetsSheetsCopyTo Int32
- ssctCallback :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text)
REST Resource
type SpreadsheetsSheetsCopyToResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("sheets" :> (CaptureMode "sheetId" "copyTo" (Textual Int32) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CopySheetToAnotherSpreadsheetRequest :> Post '[JSON] SheetProperties))))))))))) Source #
A resource alias for sheets.spreadsheets.sheets.copyTo
method which the
SpreadsheetsSheetsCopyTo
request conforms to.
Creating a Request
spreadsheetsSheetsCopyTo Source #
Creates a value of SpreadsheetsSheetsCopyTo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsSheetsCopyTo Source #
Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet.
See: spreadsheetsSheetsCopyTo
smart constructor.
Instances
Request Lenses
ssctUploadProtocol :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ssctAccessToken :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text) Source #
OAuth access token.
ssctSpreadsheetId :: Lens' SpreadsheetsSheetsCopyTo Text Source #
The ID of the spreadsheet containing the sheet to copy.
ssctUploadType :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ssctPayload :: Lens' SpreadsheetsSheetsCopyTo CopySheetToAnotherSpreadsheetRequest Source #
Multipart request metadata.
ssctSheetId :: Lens' SpreadsheetsSheetsCopyTo Int32 Source #
The ID of the sheet to copy.
ssctCallback :: Lens' SpreadsheetsSheetsCopyTo (Maybe Text) Source #
JSONP