{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Ml.Projects.Models.Get
(
ProjectsModelsGetResource
, projectsModelsGet
, ProjectsModelsGet
, pmgXgafv
, pmgUploadProtocol
, pmgAccessToken
, pmgUploadType
, pmgName
, pmgCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleCloudMlV1__Model
data ProjectsModelsGet = ProjectsModelsGet'
{ _pmgXgafv :: !(Maybe Xgafv)
, _pmgUploadProtocol :: !(Maybe Text)
, _pmgAccessToken :: !(Maybe Text)
, _pmgUploadType :: !(Maybe Text)
, _pmgName :: !Text
, _pmgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsModelsGet
:: Text
-> ProjectsModelsGet
projectsModelsGet pPmgName_ =
ProjectsModelsGet'
{ _pmgXgafv = Nothing
, _pmgUploadProtocol = Nothing
, _pmgAccessToken = Nothing
, _pmgUploadType = Nothing
, _pmgName = pPmgName_
, _pmgCallback = Nothing
}
pmgXgafv :: Lens' ProjectsModelsGet (Maybe Xgafv)
pmgXgafv = lens _pmgXgafv (\ s a -> s{_pmgXgafv = a})
pmgUploadProtocol :: Lens' ProjectsModelsGet (Maybe Text)
pmgUploadProtocol
= lens _pmgUploadProtocol
(\ s a -> s{_pmgUploadProtocol = a})
pmgAccessToken :: Lens' ProjectsModelsGet (Maybe Text)
pmgAccessToken
= lens _pmgAccessToken
(\ s a -> s{_pmgAccessToken = a})
pmgUploadType :: Lens' ProjectsModelsGet (Maybe Text)
pmgUploadType
= lens _pmgUploadType
(\ s a -> s{_pmgUploadType = a})
pmgName :: Lens' ProjectsModelsGet Text
pmgName = lens _pmgName (\ s a -> s{_pmgName = a})
pmgCallback :: Lens' ProjectsModelsGet (Maybe Text)
pmgCallback
= lens _pmgCallback (\ s a -> s{_pmgCallback = a})
instance GoogleRequest ProjectsModelsGet where
type Rs ProjectsModelsGet = GoogleCloudMlV1__Model
type Scopes ProjectsModelsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsGet'{..}
= go _pmgName _pmgXgafv _pmgUploadProtocol
_pmgAccessToken
_pmgUploadType
_pmgCallback
(Just AltJSON)
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsModelsGetResource)
mempty