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 |
Returns a list of supported languages for translation.
See: Google Cloud Translation API Reference for language.languages.list
.
Synopsis
- type LanguagesListResource = "language" :> ("translate" :> ("v2" :> ("languages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "model" Text :> (QueryParam "target" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LanguagesListResponse)))))))))))))
- languagesList :: LanguagesList
- data LanguagesList
- llXgafv :: Lens' LanguagesList (Maybe Xgafv)
- llUploadProtocol :: Lens' LanguagesList (Maybe Text)
- llPp :: Lens' LanguagesList Bool
- llAccessToken :: Lens' LanguagesList (Maybe Text)
- llUploadType :: Lens' LanguagesList (Maybe Text)
- llBearerToken :: Lens' LanguagesList (Maybe Text)
- llModel :: Lens' LanguagesList (Maybe Text)
- llTarget :: Lens' LanguagesList (Maybe Text)
- llCallback :: Lens' LanguagesList (Maybe Text)
REST Resource
type LanguagesListResource = "language" :> ("translate" :> ("v2" :> ("languages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "model" Text :> (QueryParam "target" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LanguagesListResponse))))))))))))) Source #
A resource alias for language.languages.list
method which the
LanguagesList
request conforms to.
Creating a Request
languagesList :: LanguagesList Source #
Creates a value of LanguagesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data LanguagesList Source #
Returns a list of supported languages for translation.
See: languagesList
smart constructor.
Instances
Request Lenses
llUploadProtocol :: Lens' LanguagesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
llAccessToken :: Lens' LanguagesList (Maybe Text) Source #
OAuth access token.
llUploadType :: Lens' LanguagesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
llBearerToken :: Lens' LanguagesList (Maybe Text) Source #
OAuth bearer token.
llModel :: Lens' LanguagesList (Maybe Text) Source #
The model type for which supported languages should be returned.
llTarget :: Lens' LanguagesList (Maybe Text) Source #
The language to use to return localized, human readable names of supported languages.
llCallback :: Lens' LanguagesList (Maybe Text) Source #
JSONP