{-# 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.BigtableAdmin.Projects.Instances.AppProFiles.List
(
ProjectsInstancesAppProFilesListResource
, projectsInstancesAppProFilesList
, ProjectsInstancesAppProFilesList
, piapflParent
, piapflXgafv
, piapflUploadProtocol
, piapflAccessToken
, piapflUploadType
, piapflPageToken
, piapflPageSize
, piapflCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesAppProFilesListResource =
"v2" :>
Capture "parent" Text :>
"appProfiles" :>
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] ListAppProFilesResponse
data ProjectsInstancesAppProFilesList = ProjectsInstancesAppProFilesList'
{ _piapflParent :: !Text
, _piapflXgafv :: !(Maybe Xgafv)
, _piapflUploadProtocol :: !(Maybe Text)
, _piapflAccessToken :: !(Maybe Text)
, _piapflUploadType :: !(Maybe Text)
, _piapflPageToken :: !(Maybe Text)
, _piapflPageSize :: !(Maybe (Textual Int32))
, _piapflCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesAppProFilesList
:: Text
-> ProjectsInstancesAppProFilesList
projectsInstancesAppProFilesList pPiapflParent_ =
ProjectsInstancesAppProFilesList'
{ _piapflParent = pPiapflParent_
, _piapflXgafv = Nothing
, _piapflUploadProtocol = Nothing
, _piapflAccessToken = Nothing
, _piapflUploadType = Nothing
, _piapflPageToken = Nothing
, _piapflPageSize = Nothing
, _piapflCallback = Nothing
}
piapflParent :: Lens' ProjectsInstancesAppProFilesList Text
piapflParent
= lens _piapflParent (\ s a -> s{_piapflParent = a})
piapflXgafv :: Lens' ProjectsInstancesAppProFilesList (Maybe Xgafv)
piapflXgafv
= lens _piapflXgafv (\ s a -> s{_piapflXgafv = a})
piapflUploadProtocol :: Lens' ProjectsInstancesAppProFilesList (Maybe Text)
piapflUploadProtocol
= lens _piapflUploadProtocol
(\ s a -> s{_piapflUploadProtocol = a})
piapflAccessToken :: Lens' ProjectsInstancesAppProFilesList (Maybe Text)
piapflAccessToken
= lens _piapflAccessToken
(\ s a -> s{_piapflAccessToken = a})
piapflUploadType :: Lens' ProjectsInstancesAppProFilesList (Maybe Text)
piapflUploadType
= lens _piapflUploadType
(\ s a -> s{_piapflUploadType = a})
piapflPageToken :: Lens' ProjectsInstancesAppProFilesList (Maybe Text)
piapflPageToken
= lens _piapflPageToken
(\ s a -> s{_piapflPageToken = a})
piapflPageSize :: Lens' ProjectsInstancesAppProFilesList (Maybe Int32)
piapflPageSize
= lens _piapflPageSize
(\ s a -> s{_piapflPageSize = a})
. mapping _Coerce
piapflCallback :: Lens' ProjectsInstancesAppProFilesList (Maybe Text)
piapflCallback
= lens _piapflCallback
(\ s a -> s{_piapflCallback = a})
instance GoogleRequest
ProjectsInstancesAppProFilesList where
type Rs ProjectsInstancesAppProFilesList =
ListAppProFilesResponse
type Scopes ProjectsInstancesAppProFilesList =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.cluster",
"https://www.googleapis.com/auth/bigtable.admin.instance",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
"https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsInstancesAppProFilesList'{..}
= go _piapflParent _piapflXgafv _piapflUploadProtocol
_piapflAccessToken
_piapflUploadType
_piapflPageToken
_piapflPageSize
_piapflCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesAppProFilesListResource)
mempty