{-# 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.PartialUpdateInstance
(
ProjectsInstancesPartialUpdateInstanceResource
, projectsInstancesPartialUpdateInstance
, ProjectsInstancesPartialUpdateInstance
, pipuiXgafv
, pipuiUploadProtocol
, pipuiUpdateMask
, pipuiAccessToken
, pipuiUploadType
, pipuiPayload
, pipuiName
, pipuiCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesPartialUpdateInstanceResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Instance :> Patch '[JSON] Operation
data ProjectsInstancesPartialUpdateInstance = ProjectsInstancesPartialUpdateInstance'
{ _pipuiXgafv :: !(Maybe Xgafv)
, _pipuiUploadProtocol :: !(Maybe Text)
, _pipuiUpdateMask :: !(Maybe GFieldMask)
, _pipuiAccessToken :: !(Maybe Text)
, _pipuiUploadType :: !(Maybe Text)
, _pipuiPayload :: !Instance
, _pipuiName :: !Text
, _pipuiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesPartialUpdateInstance
:: Instance
-> Text
-> ProjectsInstancesPartialUpdateInstance
projectsInstancesPartialUpdateInstance pPipuiPayload_ pPipuiName_ =
ProjectsInstancesPartialUpdateInstance'
{ _pipuiXgafv = Nothing
, _pipuiUploadProtocol = Nothing
, _pipuiUpdateMask = Nothing
, _pipuiAccessToken = Nothing
, _pipuiUploadType = Nothing
, _pipuiPayload = pPipuiPayload_
, _pipuiName = pPipuiName_
, _pipuiCallback = Nothing
}
pipuiXgafv :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe Xgafv)
pipuiXgafv
= lens _pipuiXgafv (\ s a -> s{_pipuiXgafv = a})
pipuiUploadProtocol :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe Text)
pipuiUploadProtocol
= lens _pipuiUploadProtocol
(\ s a -> s{_pipuiUploadProtocol = a})
pipuiUpdateMask :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe GFieldMask)
pipuiUpdateMask
= lens _pipuiUpdateMask
(\ s a -> s{_pipuiUpdateMask = a})
pipuiAccessToken :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe Text)
pipuiAccessToken
= lens _pipuiAccessToken
(\ s a -> s{_pipuiAccessToken = a})
pipuiUploadType :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe Text)
pipuiUploadType
= lens _pipuiUploadType
(\ s a -> s{_pipuiUploadType = a})
pipuiPayload :: Lens' ProjectsInstancesPartialUpdateInstance Instance
pipuiPayload
= lens _pipuiPayload (\ s a -> s{_pipuiPayload = a})
pipuiName :: Lens' ProjectsInstancesPartialUpdateInstance Text
pipuiName
= lens _pipuiName (\ s a -> s{_pipuiName = a})
pipuiCallback :: Lens' ProjectsInstancesPartialUpdateInstance (Maybe Text)
pipuiCallback
= lens _pipuiCallback
(\ s a -> s{_pipuiCallback = a})
instance GoogleRequest
ProjectsInstancesPartialUpdateInstance where
type Rs ProjectsInstancesPartialUpdateInstance =
Operation
type Scopes ProjectsInstancesPartialUpdateInstance =
'["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
ProjectsInstancesPartialUpdateInstance'{..}
= go _pipuiName _pipuiXgafv _pipuiUploadProtocol
_pipuiUpdateMask
_pipuiAccessToken
_pipuiUploadType
_pipuiCallback
(Just AltJSON)
_pipuiPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesPartialUpdateInstanceResource)
mempty