{-# 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.TPU.Projects.Locations.TensorflowVersions.List
(
ProjectsLocationsTensorflowVersionsListResource
, projectsLocationsTensorflowVersionsList
, ProjectsLocationsTensorflowVersionsList
, pltvlParent
, pltvlXgafv
, pltvlUploadProtocol
, pltvlOrderBy
, pltvlAccessToken
, pltvlUploadType
, pltvlFilter
, pltvlPageToken
, pltvlPageSize
, pltvlCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsTensorflowVersionsListResource
=
"v1" :>
Capture "parent" Text :>
"tensorflowVersions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" 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] ListTensorFlowVersionsResponse
data ProjectsLocationsTensorflowVersionsList = ProjectsLocationsTensorflowVersionsList'
{ _pltvlParent :: !Text
, _pltvlXgafv :: !(Maybe Xgafv)
, _pltvlUploadProtocol :: !(Maybe Text)
, _pltvlOrderBy :: !(Maybe Text)
, _pltvlAccessToken :: !(Maybe Text)
, _pltvlUploadType :: !(Maybe Text)
, _pltvlFilter :: !(Maybe Text)
, _pltvlPageToken :: !(Maybe Text)
, _pltvlPageSize :: !(Maybe (Textual Int32))
, _pltvlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsTensorflowVersionsList
:: Text
-> ProjectsLocationsTensorflowVersionsList
projectsLocationsTensorflowVersionsList pPltvlParent_ =
ProjectsLocationsTensorflowVersionsList'
{ _pltvlParent = pPltvlParent_
, _pltvlXgafv = Nothing
, _pltvlUploadProtocol = Nothing
, _pltvlOrderBy = Nothing
, _pltvlAccessToken = Nothing
, _pltvlUploadType = Nothing
, _pltvlFilter = Nothing
, _pltvlPageToken = Nothing
, _pltvlPageSize = Nothing
, _pltvlCallback = Nothing
}
pltvlParent :: Lens' ProjectsLocationsTensorflowVersionsList Text
pltvlParent
= lens _pltvlParent (\ s a -> s{_pltvlParent = a})
pltvlXgafv :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Xgafv)
pltvlXgafv
= lens _pltvlXgafv (\ s a -> s{_pltvlXgafv = a})
pltvlUploadProtocol :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlUploadProtocol
= lens _pltvlUploadProtocol
(\ s a -> s{_pltvlUploadProtocol = a})
pltvlOrderBy :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlOrderBy
= lens _pltvlOrderBy (\ s a -> s{_pltvlOrderBy = a})
pltvlAccessToken :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlAccessToken
= lens _pltvlAccessToken
(\ s a -> s{_pltvlAccessToken = a})
pltvlUploadType :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlUploadType
= lens _pltvlUploadType
(\ s a -> s{_pltvlUploadType = a})
pltvlFilter :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlFilter
= lens _pltvlFilter (\ s a -> s{_pltvlFilter = a})
pltvlPageToken :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlPageToken
= lens _pltvlPageToken
(\ s a -> s{_pltvlPageToken = a})
pltvlPageSize :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Int32)
pltvlPageSize
= lens _pltvlPageSize
(\ s a -> s{_pltvlPageSize = a})
. mapping _Coerce
pltvlCallback :: Lens' ProjectsLocationsTensorflowVersionsList (Maybe Text)
pltvlCallback
= lens _pltvlCallback
(\ s a -> s{_pltvlCallback = a})
instance GoogleRequest
ProjectsLocationsTensorflowVersionsList where
type Rs ProjectsLocationsTensorflowVersionsList =
ListTensorFlowVersionsResponse
type Scopes ProjectsLocationsTensorflowVersionsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsTensorflowVersionsList'{..}
= go _pltvlParent _pltvlXgafv _pltvlUploadProtocol
_pltvlOrderBy
_pltvlAccessToken
_pltvlUploadType
_pltvlFilter
_pltvlPageToken
_pltvlPageSize
_pltvlCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsTensorflowVersionsListResource)
mempty