{-# 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.BinaryAuthorization.Projects.Attestors.List
(
ProjectsAttestorsListResource
, projectsAttestorsList
, ProjectsAttestorsList
, palParent
, palXgafv
, palUploadProtocol
, palAccessToken
, palUploadType
, palPageToken
, palPageSize
, palCallback
) where
import Network.Google.BinaryAuthorization.Types
import Network.Google.Prelude
type ProjectsAttestorsListResource =
"v1beta1" :>
Capture "parent" Text :>
"attestors" :>
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] ListAttestorsResponse
data ProjectsAttestorsList = ProjectsAttestorsList'
{ _palParent :: !Text
, _palXgafv :: !(Maybe Xgafv)
, _palUploadProtocol :: !(Maybe Text)
, _palAccessToken :: !(Maybe Text)
, _palUploadType :: !(Maybe Text)
, _palPageToken :: !(Maybe Text)
, _palPageSize :: !(Maybe (Textual Int32))
, _palCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAttestorsList
:: Text
-> ProjectsAttestorsList
projectsAttestorsList pPalParent_ =
ProjectsAttestorsList'
{ _palParent = pPalParent_
, _palXgafv = Nothing
, _palUploadProtocol = Nothing
, _palAccessToken = Nothing
, _palUploadType = Nothing
, _palPageToken = Nothing
, _palPageSize = Nothing
, _palCallback = Nothing
}
palParent :: Lens' ProjectsAttestorsList Text
palParent
= lens _palParent (\ s a -> s{_palParent = a})
palXgafv :: Lens' ProjectsAttestorsList (Maybe Xgafv)
palXgafv = lens _palXgafv (\ s a -> s{_palXgafv = a})
palUploadProtocol :: Lens' ProjectsAttestorsList (Maybe Text)
palUploadProtocol
= lens _palUploadProtocol
(\ s a -> s{_palUploadProtocol = a})
palAccessToken :: Lens' ProjectsAttestorsList (Maybe Text)
palAccessToken
= lens _palAccessToken
(\ s a -> s{_palAccessToken = a})
palUploadType :: Lens' ProjectsAttestorsList (Maybe Text)
palUploadType
= lens _palUploadType
(\ s a -> s{_palUploadType = a})
palPageToken :: Lens' ProjectsAttestorsList (Maybe Text)
palPageToken
= lens _palPageToken (\ s a -> s{_palPageToken = a})
palPageSize :: Lens' ProjectsAttestorsList (Maybe Int32)
palPageSize
= lens _palPageSize (\ s a -> s{_palPageSize = a}) .
mapping _Coerce
palCallback :: Lens' ProjectsAttestorsList (Maybe Text)
palCallback
= lens _palCallback (\ s a -> s{_palCallback = a})
instance GoogleRequest ProjectsAttestorsList where
type Rs ProjectsAttestorsList = ListAttestorsResponse
type Scopes ProjectsAttestorsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsAttestorsList'{..}
= go _palParent _palXgafv _palUploadProtocol
_palAccessToken
_palUploadType
_palPageToken
_palPageSize
_palCallback
(Just AltJSON)
binaryAuthorizationService
where go
= buildClient
(Proxy :: Proxy ProjectsAttestorsListResource)
mempty