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 |
Updates a data source.
See: Cloud Search API Reference for cloudsearch.settings.datasources.update
.
Synopsis
- type SettingsDatasourcesUpdateResource = "v1" :> ("settings" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateDataSourceRequest :> Put '[JSON] Operation)))))))))
- settingsDatasourcesUpdate :: UpdateDataSourceRequest -> Text -> SettingsDatasourcesUpdate
- data SettingsDatasourcesUpdate
- sduXgafv :: Lens' SettingsDatasourcesUpdate (Maybe Xgafv)
- sduUploadProtocol :: Lens' SettingsDatasourcesUpdate (Maybe Text)
- sduAccessToken :: Lens' SettingsDatasourcesUpdate (Maybe Text)
- sduUploadType :: Lens' SettingsDatasourcesUpdate (Maybe Text)
- sduPayload :: Lens' SettingsDatasourcesUpdate UpdateDataSourceRequest
- sduName :: Lens' SettingsDatasourcesUpdate Text
- sduCallback :: Lens' SettingsDatasourcesUpdate (Maybe Text)
REST Resource
type SettingsDatasourcesUpdateResource = "v1" :> ("settings" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateDataSourceRequest :> Put '[JSON] Operation))))))))) Source #
A resource alias for cloudsearch.settings.datasources.update
method which the
SettingsDatasourcesUpdate
request conforms to.
Creating a Request
settingsDatasourcesUpdate Source #
Creates a value of SettingsDatasourcesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SettingsDatasourcesUpdate Source #
Updates a data source.
See: settingsDatasourcesUpdate
smart constructor.
Instances
Request Lenses
sduUploadProtocol :: Lens' SettingsDatasourcesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sduAccessToken :: Lens' SettingsDatasourcesUpdate (Maybe Text) Source #
OAuth access token.
sduUploadType :: Lens' SettingsDatasourcesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sduPayload :: Lens' SettingsDatasourcesUpdate UpdateDataSourceRequest Source #
Multipart request metadata.
sduName :: Lens' SettingsDatasourcesUpdate Text Source #
Name of the data source resource. Format: datasources/{source_id}. The name is ignored when creating a data source.
sduCallback :: Lens' SettingsDatasourcesUpdate (Maybe Text) Source #
JSONP