{-# 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.Versions.Get
(
ProjectsModelsVersionsGetResource
, projectsModelsVersionsGet
, ProjectsModelsVersionsGet
, pmvgXgafv
, pmvgUploadProtocol
, pmvgAccessToken
, pmvgUploadType
, pmvgName
, pmvgCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsVersionsGetResource =
"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__Version
data ProjectsModelsVersionsGet = ProjectsModelsVersionsGet'
{ _pmvgXgafv :: !(Maybe Xgafv)
, _pmvgUploadProtocol :: !(Maybe Text)
, _pmvgAccessToken :: !(Maybe Text)
, _pmvgUploadType :: !(Maybe Text)
, _pmvgName :: !Text
, _pmvgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsModelsVersionsGet
:: Text
-> ProjectsModelsVersionsGet
projectsModelsVersionsGet pPmvgName_ =
ProjectsModelsVersionsGet'
{ _pmvgXgafv = Nothing
, _pmvgUploadProtocol = Nothing
, _pmvgAccessToken = Nothing
, _pmvgUploadType = Nothing
, _pmvgName = pPmvgName_
, _pmvgCallback = Nothing
}
pmvgXgafv :: Lens' ProjectsModelsVersionsGet (Maybe Xgafv)
pmvgXgafv
= lens _pmvgXgafv (\ s a -> s{_pmvgXgafv = a})
pmvgUploadProtocol :: Lens' ProjectsModelsVersionsGet (Maybe Text)
pmvgUploadProtocol
= lens _pmvgUploadProtocol
(\ s a -> s{_pmvgUploadProtocol = a})
pmvgAccessToken :: Lens' ProjectsModelsVersionsGet (Maybe Text)
pmvgAccessToken
= lens _pmvgAccessToken
(\ s a -> s{_pmvgAccessToken = a})
pmvgUploadType :: Lens' ProjectsModelsVersionsGet (Maybe Text)
pmvgUploadType
= lens _pmvgUploadType
(\ s a -> s{_pmvgUploadType = a})
pmvgName :: Lens' ProjectsModelsVersionsGet Text
pmvgName = lens _pmvgName (\ s a -> s{_pmvgName = a})
pmvgCallback :: Lens' ProjectsModelsVersionsGet (Maybe Text)
pmvgCallback
= lens _pmvgCallback (\ s a -> s{_pmvgCallback = a})
instance GoogleRequest ProjectsModelsVersionsGet
where
type Rs ProjectsModelsVersionsGet =
GoogleCloudMlV1__Version
type Scopes ProjectsModelsVersionsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsVersionsGet'{..}
= go _pmvgName _pmvgXgafv _pmvgUploadProtocol
_pmvgAccessToken
_pmvgUploadType
_pmvgCallback
(Just AltJSON)
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsModelsVersionsGetResource)
mempty