{-# 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.List
(
ProjectsModelsVersionsListResource
, projectsModelsVersionsList
, ProjectsModelsVersionsList
, pmvlParent
, pmvlXgafv
, pmvlUploadProtocol
, pmvlAccessToken
, pmvlUploadType
, pmvlFilter
, pmvlPageToken
, pmvlPageSize
, pmvlCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsVersionsListResource =
"v1" :>
Capture "parent" Text :>
"versions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleCloudMlV1__ListVersionsResponse
data ProjectsModelsVersionsList = ProjectsModelsVersionsList'
{ _pmvlParent :: !Text
, _pmvlXgafv :: !(Maybe Xgafv)
, _pmvlUploadProtocol :: !(Maybe Text)
, _pmvlAccessToken :: !(Maybe Text)
, _pmvlUploadType :: !(Maybe Text)
, _pmvlFilter :: !(Maybe Text)
, _pmvlPageToken :: !(Maybe Text)
, _pmvlPageSize :: !(Maybe (Textual Int32))
, _pmvlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsModelsVersionsList
:: Text
-> ProjectsModelsVersionsList
projectsModelsVersionsList pPmvlParent_ =
ProjectsModelsVersionsList'
{ _pmvlParent = pPmvlParent_
, _pmvlXgafv = Nothing
, _pmvlUploadProtocol = Nothing
, _pmvlAccessToken = Nothing
, _pmvlUploadType = Nothing
, _pmvlFilter = Nothing
, _pmvlPageToken = Nothing
, _pmvlPageSize = Nothing
, _pmvlCallback = Nothing
}
pmvlParent :: Lens' ProjectsModelsVersionsList Text
pmvlParent
= lens _pmvlParent (\ s a -> s{_pmvlParent = a})
pmvlXgafv :: Lens' ProjectsModelsVersionsList (Maybe Xgafv)
pmvlXgafv
= lens _pmvlXgafv (\ s a -> s{_pmvlXgafv = a})
pmvlUploadProtocol :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlUploadProtocol
= lens _pmvlUploadProtocol
(\ s a -> s{_pmvlUploadProtocol = a})
pmvlAccessToken :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlAccessToken
= lens _pmvlAccessToken
(\ s a -> s{_pmvlAccessToken = a})
pmvlUploadType :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlUploadType
= lens _pmvlUploadType
(\ s a -> s{_pmvlUploadType = a})
pmvlFilter :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlFilter
= lens _pmvlFilter (\ s a -> s{_pmvlFilter = a})
pmvlPageToken :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlPageToken
= lens _pmvlPageToken
(\ s a -> s{_pmvlPageToken = a})
pmvlPageSize :: Lens' ProjectsModelsVersionsList (Maybe Int32)
pmvlPageSize
= lens _pmvlPageSize (\ s a -> s{_pmvlPageSize = a})
. mapping _Coerce
pmvlCallback :: Lens' ProjectsModelsVersionsList (Maybe Text)
pmvlCallback
= lens _pmvlCallback (\ s a -> s{_pmvlCallback = a})
instance GoogleRequest ProjectsModelsVersionsList
where
type Rs ProjectsModelsVersionsList =
GoogleCloudMlV1__ListVersionsResponse
type Scopes ProjectsModelsVersionsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsVersionsList'{..}
= go _pmvlParent _pmvlXgafv _pmvlUploadProtocol
_pmvlAccessToken
_pmvlUploadType
_pmvlFilter
_pmvlPageToken
_pmvlPageSize
_pmvlCallback
(Just AltJSON)
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsModelsVersionsListResource)
mempty