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 |
Undeletes a dataset by restoring a dataset which was deleted via this API. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics This operation is only possible for a week after the deletion occurred.
See: Genomics API Reference for genomics.datasets.undelete
.
- type DataSetsUndeleteResource = "v1" :> ("datasets" :> (CaptureMode "datasetId" "undelete" 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] UndeleteDataSetRequest :> Post '[JSON] DataSet)))))))))))
- dataSetsUndelete :: UndeleteDataSetRequest -> Text -> DataSetsUndelete
- data DataSetsUndelete
- dsuXgafv :: Lens' DataSetsUndelete (Maybe Xgafv)
- dsuUploadProtocol :: Lens' DataSetsUndelete (Maybe Text)
- dsuPp :: Lens' DataSetsUndelete Bool
- dsuAccessToken :: Lens' DataSetsUndelete (Maybe Text)
- dsuUploadType :: Lens' DataSetsUndelete (Maybe Text)
- dsuPayload :: Lens' DataSetsUndelete UndeleteDataSetRequest
- dsuBearerToken :: Lens' DataSetsUndelete (Maybe Text)
- dsuDataSetId :: Lens' DataSetsUndelete Text
- dsuCallback :: Lens' DataSetsUndelete (Maybe Text)
REST Resource
type DataSetsUndeleteResource = "v1" :> ("datasets" :> (CaptureMode "datasetId" "undelete" 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] UndeleteDataSetRequest :> Post '[JSON] DataSet))))))))))) Source #
A resource alias for genomics.datasets.undelete
method which the
DataSetsUndelete
request conforms to.
Creating a Request
Creates a value of DataSetsUndelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DataSetsUndelete Source #
Undeletes a dataset by restoring a dataset which was deleted via this API. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics This operation is only possible for a week after the deletion occurred.
See: dataSetsUndelete
smart constructor.
Request Lenses
dsuUploadProtocol :: Lens' DataSetsUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dsuAccessToken :: Lens' DataSetsUndelete (Maybe Text) Source #
OAuth access token.
dsuUploadType :: Lens' DataSetsUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dsuPayload :: Lens' DataSetsUndelete UndeleteDataSetRequest Source #
Multipart request metadata.
dsuBearerToken :: Lens' DataSetsUndelete (Maybe Text) Source #
OAuth bearer token.
dsuDataSetId :: Lens' DataSetsUndelete Text Source #
The ID of the dataset to be undeleted.
dsuCallback :: Lens' DataSetsUndelete (Maybe Text) Source #
JSONP