gogol-cloudsearch-0.4.0: Google Cloud Search 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.CloudSearch.Indexing.Datasources.Items.Upload

Contents

Description

Creates an upload session for uploading item content. For items smaller than 100 KiB, it's easier to embed the content inline within update.

See: Cloud Search API Reference for cloudsearch.indexing.datasources.items.upload.

Synopsis

REST Resource

type IndexingDatasourcesItemsUploadResource = "v1" :> ("indexing" :> (CaptureMode "name" "upload" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StartUploadItemRequest :> Post '[JSON] UploadItemRef))))))))) Source #

A resource alias for cloudsearch.indexing.datasources.items.upload method which the IndexingDatasourcesItemsUpload request conforms to.

Creating a Request

indexingDatasourcesItemsUpload Source #

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

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

data IndexingDatasourcesItemsUpload Source #

Creates an upload session for uploading item content. For items smaller than 100 KiB, it's easier to embed the content inline within update.

See: indexingDatasourcesItemsUpload smart constructor.

Instances
Eq IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

Data IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

Methods

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

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

toConstr :: IndexingDatasourcesItemsUpload -> Constr #

dataTypeOf :: IndexingDatasourcesItemsUpload -> DataType #

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

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

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

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

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

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

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

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

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

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

Show IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

Generic IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

Associated Types

type Rep IndexingDatasourcesItemsUpload :: Type -> Type #

GoogleRequest IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

type Rep IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

type Rep IndexingDatasourcesItemsUpload = D1 (MetaData "IndexingDatasourcesItemsUpload" "Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload" "gogol-cloudsearch-0.4.0-5yB3RjcJJrULTqYmbhTTen" False) (C1 (MetaCons "IndexingDatasourcesItemsUpload'" PrefixI True) ((S1 (MetaSel (Just "_indXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_indUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_indAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_indUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_indPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StartUploadItemRequest)) :*: (S1 (MetaSel (Just "_indName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_indCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

type Scopes IndexingDatasourcesItemsUpload = "https://www.googleapis.com/auth/cloud_search" ': ("https://www.googleapis.com/auth/cloud_search.indexing" ': ([] :: [Symbol]))
type Rs IndexingDatasourcesItemsUpload Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Indexing.Datasources.Items.Upload

Request Lenses

indUploadProtocol :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #

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

indUploadType :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #

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

indName :: Lens' IndexingDatasourcesItemsUpload Text Source #

Name of the Data Source to start a resumable upload. Format: datasources/{source_id}