gogol-datastore-0.4.0: Google Cloud Datastore 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.Datastore.Projects.Import

Contents

Description

Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.

See: Cloud Datastore API Reference for datastore.projects.import.

Synopsis

REST Resource

type ProjectsImportResource = "v1" :> ("projects" :> (CaptureMode "projectId" "import" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleDatastoreAdminV1ImportEntitiesRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #

A resource alias for datastore.projects.import method which the ProjectsImport request conforms to.

Creating a Request

projectsImport Source #

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

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

data ProjectsImport Source #

Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.

See: projectsImport smart constructor.

Instances
Eq ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Data ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Methods

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

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

toConstr :: ProjectsImport -> Constr #

dataTypeOf :: ProjectsImport -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Generic ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Associated Types

type Rep ProjectsImport :: Type -> Type #

GoogleRequest ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Associated Types

type Rs ProjectsImport :: Type #

type Scopes ProjectsImport :: [Symbol] #

type Rep ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

type Scopes ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

type Scopes ProjectsImport = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/datastore" ': ([] :: [Symbol]))
type Rs ProjectsImport Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.Import

Request Lenses

pUploadProtocol :: Lens' ProjectsImport (Maybe Text) Source #

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

pUploadType :: Lens' ProjectsImport (Maybe Text) Source #

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

pProjectId :: Lens' ProjectsImport Text Source #

Project ID against which to make the request.