{-# 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.Get
(
ProjectsInstancesGetResource
, projectsInstancesGet
, ProjectsInstancesGet
, pigXgafv
, pigUploadProtocol
, pigAccessToken
, pigUploadType
, pigName
, pigCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesGetResource =
"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] Instance
data ProjectsInstancesGet = ProjectsInstancesGet'
{ _pigXgafv :: !(Maybe Xgafv)
, _pigUploadProtocol :: !(Maybe Text)
, _pigAccessToken :: !(Maybe Text)
, _pigUploadType :: !(Maybe Text)
, _pigName :: !Text
, _pigCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesGet
:: Text
-> ProjectsInstancesGet
projectsInstancesGet pPigName_ =
ProjectsInstancesGet'
{ _pigXgafv = Nothing
, _pigUploadProtocol = Nothing
, _pigAccessToken = Nothing
, _pigUploadType = Nothing
, _pigName = pPigName_
, _pigCallback = Nothing
}
pigXgafv :: Lens' ProjectsInstancesGet (Maybe Xgafv)
pigXgafv = lens _pigXgafv (\ s a -> s{_pigXgafv = a})
pigUploadProtocol :: Lens' ProjectsInstancesGet (Maybe Text)
pigUploadProtocol
= lens _pigUploadProtocol
(\ s a -> s{_pigUploadProtocol = a})
pigAccessToken :: Lens' ProjectsInstancesGet (Maybe Text)
pigAccessToken
= lens _pigAccessToken
(\ s a -> s{_pigAccessToken = a})
pigUploadType :: Lens' ProjectsInstancesGet (Maybe Text)
pigUploadType
= lens _pigUploadType
(\ s a -> s{_pigUploadType = a})
pigName :: Lens' ProjectsInstancesGet Text
pigName = lens _pigName (\ s a -> s{_pigName = a})
pigCallback :: Lens' ProjectsInstancesGet (Maybe Text)
pigCallback
= lens _pigCallback (\ s a -> s{_pigCallback = a})
instance GoogleRequest ProjectsInstancesGet where
type Rs ProjectsInstancesGet = Instance
type Scopes ProjectsInstancesGet =
'["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",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient ProjectsInstancesGet'{..}
= go _pigName _pigXgafv _pigUploadProtocol
_pigAccessToken
_pigUploadType
_pigCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesGetResource)
mempty