{-# 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.Script.Projects.Deployments.List
(
ProjectsDeploymentsListResource
, projectsDeploymentsList
, ProjectsDeploymentsList
, pdlXgafv
, pdlUploadProtocol
, pdlAccessToken
, pdlUploadType
, pdlScriptId
, pdlPageToken
, pdlPageSize
, pdlCallback
) where
import Network.Google.Prelude
import Network.Google.Script.Types
type ProjectsDeploymentsListResource =
"v1" :>
"projects" :>
Capture "scriptId" Text :>
"deployments" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDeploymentsResponse
data ProjectsDeploymentsList = ProjectsDeploymentsList'
{ _pdlXgafv :: !(Maybe Xgafv)
, _pdlUploadProtocol :: !(Maybe Text)
, _pdlAccessToken :: !(Maybe Text)
, _pdlUploadType :: !(Maybe Text)
, _pdlScriptId :: !Text
, _pdlPageToken :: !(Maybe Text)
, _pdlPageSize :: !(Maybe (Textual Int32))
, _pdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeploymentsList
:: Text
-> ProjectsDeploymentsList
projectsDeploymentsList pPdlScriptId_ =
ProjectsDeploymentsList'
{ _pdlXgafv = Nothing
, _pdlUploadProtocol = Nothing
, _pdlAccessToken = Nothing
, _pdlUploadType = Nothing
, _pdlScriptId = pPdlScriptId_
, _pdlPageToken = Nothing
, _pdlPageSize = Nothing
, _pdlCallback = Nothing
}
pdlXgafv :: Lens' ProjectsDeploymentsList (Maybe Xgafv)
pdlXgafv = lens _pdlXgafv (\ s a -> s{_pdlXgafv = a})
pdlUploadProtocol :: Lens' ProjectsDeploymentsList (Maybe Text)
pdlUploadProtocol
= lens _pdlUploadProtocol
(\ s a -> s{_pdlUploadProtocol = a})
pdlAccessToken :: Lens' ProjectsDeploymentsList (Maybe Text)
pdlAccessToken
= lens _pdlAccessToken
(\ s a -> s{_pdlAccessToken = a})
pdlUploadType :: Lens' ProjectsDeploymentsList (Maybe Text)
pdlUploadType
= lens _pdlUploadType
(\ s a -> s{_pdlUploadType = a})
pdlScriptId :: Lens' ProjectsDeploymentsList Text
pdlScriptId
= lens _pdlScriptId (\ s a -> s{_pdlScriptId = a})
pdlPageToken :: Lens' ProjectsDeploymentsList (Maybe Text)
pdlPageToken
= lens _pdlPageToken (\ s a -> s{_pdlPageToken = a})
pdlPageSize :: Lens' ProjectsDeploymentsList (Maybe Int32)
pdlPageSize
= lens _pdlPageSize (\ s a -> s{_pdlPageSize = a}) .
mapping _Coerce
pdlCallback :: Lens' ProjectsDeploymentsList (Maybe Text)
pdlCallback
= lens _pdlCallback (\ s a -> s{_pdlCallback = a})
instance GoogleRequest ProjectsDeploymentsList where
type Rs ProjectsDeploymentsList =
ListDeploymentsResponse
type Scopes ProjectsDeploymentsList =
'["https://www.googleapis.com/auth/script.deployments",
"https://www.googleapis.com/auth/script.deployments.readonly"]
requestClient ProjectsDeploymentsList'{..}
= go _pdlScriptId _pdlXgafv _pdlUploadProtocol
_pdlAccessToken
_pdlUploadType
_pdlPageToken
_pdlPageSize
_pdlCallback
(Just AltJSON)
scriptService
where go
= buildClient
(Proxy :: Proxy ProjectsDeploymentsListResource)
mempty