{-# 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.Get
(
ProjectsInstancesAppProFilesGetResource
, projectsInstancesAppProFilesGet
, ProjectsInstancesAppProFilesGet
, piapfgXgafv
, piapfgUploadProtocol
, piapfgAccessToken
, piapfgUploadType
, piapfgName
, piapfgCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesAppProFilesGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] AppProFile
data ProjectsInstancesAppProFilesGet = ProjectsInstancesAppProFilesGet'
{ _piapfgXgafv :: !(Maybe Xgafv)
, _piapfgUploadProtocol :: !(Maybe Text)
, _piapfgAccessToken :: !(Maybe Text)
, _piapfgUploadType :: !(Maybe Text)
, _piapfgName :: !Text
, _piapfgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesAppProFilesGet
:: Text
-> ProjectsInstancesAppProFilesGet
projectsInstancesAppProFilesGet pPiapfgName_ =
ProjectsInstancesAppProFilesGet'
{ _piapfgXgafv = Nothing
, _piapfgUploadProtocol = Nothing
, _piapfgAccessToken = Nothing
, _piapfgUploadType = Nothing
, _piapfgName = pPiapfgName_
, _piapfgCallback = Nothing
}
piapfgXgafv :: Lens' ProjectsInstancesAppProFilesGet (Maybe Xgafv)
piapfgXgafv
= lens _piapfgXgafv (\ s a -> s{_piapfgXgafv = a})
piapfgUploadProtocol :: Lens' ProjectsInstancesAppProFilesGet (Maybe Text)
piapfgUploadProtocol
= lens _piapfgUploadProtocol
(\ s a -> s{_piapfgUploadProtocol = a})
piapfgAccessToken :: Lens' ProjectsInstancesAppProFilesGet (Maybe Text)
piapfgAccessToken
= lens _piapfgAccessToken
(\ s a -> s{_piapfgAccessToken = a})
piapfgUploadType :: Lens' ProjectsInstancesAppProFilesGet (Maybe Text)
piapfgUploadType
= lens _piapfgUploadType
(\ s a -> s{_piapfgUploadType = a})
piapfgName :: Lens' ProjectsInstancesAppProFilesGet Text
piapfgName
= lens _piapfgName (\ s a -> s{_piapfgName = a})
piapfgCallback :: Lens' ProjectsInstancesAppProFilesGet (Maybe Text)
piapfgCallback
= lens _piapfgCallback
(\ s a -> s{_piapfgCallback = a})
instance GoogleRequest
ProjectsInstancesAppProFilesGet where
type Rs ProjectsInstancesAppProFilesGet = AppProFile
type Scopes ProjectsInstancesAppProFilesGet =
'["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 ProjectsInstancesAppProFilesGet'{..}
= go _piapfgName _piapfgXgafv _piapfgUploadProtocol
_piapfgAccessToken
_piapfgUploadType
_piapfgCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesAppProFilesGetResource)
mempty