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 |
Creates data source.
See: Cloud Search API Reference for cloudsearch.settings.datasources.create
.
Synopsis
- type SettingsDatasourcesCreateResource = "v1" :> ("settings" :> ("datasources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Post '[JSON] Operation)))))))))
- settingsDatasourcesCreate :: DataSource -> SettingsDatasourcesCreate
- data SettingsDatasourcesCreate
- sdcXgafv :: Lens' SettingsDatasourcesCreate (Maybe Xgafv)
- sdcUploadProtocol :: Lens' SettingsDatasourcesCreate (Maybe Text)
- sdcAccessToken :: Lens' SettingsDatasourcesCreate (Maybe Text)
- sdcUploadType :: Lens' SettingsDatasourcesCreate (Maybe Text)
- sdcPayload :: Lens' SettingsDatasourcesCreate DataSource
- sdcCallback :: Lens' SettingsDatasourcesCreate (Maybe Text)
REST Resource
type SettingsDatasourcesCreateResource = "v1" :> ("settings" :> ("datasources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Post '[JSON] Operation))))))))) Source #
A resource alias for cloudsearch.settings.datasources.create
method which the
SettingsDatasourcesCreate
request conforms to.
Creating a Request
settingsDatasourcesCreate Source #
Creates a value of SettingsDatasourcesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SettingsDatasourcesCreate Source #
Creates data source.
See: settingsDatasourcesCreate
smart constructor.
Instances
Request Lenses
sdcUploadProtocol :: Lens' SettingsDatasourcesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sdcAccessToken :: Lens' SettingsDatasourcesCreate (Maybe Text) Source #
OAuth access token.
sdcUploadType :: Lens' SettingsDatasourcesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sdcPayload :: Lens' SettingsDatasourcesCreate DataSource Source #
Multipart request metadata.
sdcCallback :: Lens' SettingsDatasourcesCreate (Maybe Text) Source #
JSONP