{-# 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.Patch
(
ProjectsInstancesAppProFilesPatchResource
, projectsInstancesAppProFilesPatch
, ProjectsInstancesAppProFilesPatch
, piapfpXgafv
, piapfpUploadProtocol
, piapfpUpdateMask
, piapfpAccessToken
, piapfpUploadType
, piapfpPayload
, piapfpIgnoreWarnings
, piapfpName
, piapfpCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesAppProFilesPatchResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "ignoreWarnings" Bool :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AppProFile :> Patch '[JSON] Operation
data ProjectsInstancesAppProFilesPatch = ProjectsInstancesAppProFilesPatch'
{ _piapfpXgafv :: !(Maybe Xgafv)
, _piapfpUploadProtocol :: !(Maybe Text)
, _piapfpUpdateMask :: !(Maybe GFieldMask)
, _piapfpAccessToken :: !(Maybe Text)
, _piapfpUploadType :: !(Maybe Text)
, _piapfpPayload :: !AppProFile
, _piapfpIgnoreWarnings :: !(Maybe Bool)
, _piapfpName :: !Text
, _piapfpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesAppProFilesPatch
:: AppProFile
-> Text
-> ProjectsInstancesAppProFilesPatch
projectsInstancesAppProFilesPatch pPiapfpPayload_ pPiapfpName_ =
ProjectsInstancesAppProFilesPatch'
{ _piapfpXgafv = Nothing
, _piapfpUploadProtocol = Nothing
, _piapfpUpdateMask = Nothing
, _piapfpAccessToken = Nothing
, _piapfpUploadType = Nothing
, _piapfpPayload = pPiapfpPayload_
, _piapfpIgnoreWarnings = Nothing
, _piapfpName = pPiapfpName_
, _piapfpCallback = Nothing
}
piapfpXgafv :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Xgafv)
piapfpXgafv
= lens _piapfpXgafv (\ s a -> s{_piapfpXgafv = a})
piapfpUploadProtocol :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Text)
piapfpUploadProtocol
= lens _piapfpUploadProtocol
(\ s a -> s{_piapfpUploadProtocol = a})
piapfpUpdateMask :: Lens' ProjectsInstancesAppProFilesPatch (Maybe GFieldMask)
piapfpUpdateMask
= lens _piapfpUpdateMask
(\ s a -> s{_piapfpUpdateMask = a})
piapfpAccessToken :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Text)
piapfpAccessToken
= lens _piapfpAccessToken
(\ s a -> s{_piapfpAccessToken = a})
piapfpUploadType :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Text)
piapfpUploadType
= lens _piapfpUploadType
(\ s a -> s{_piapfpUploadType = a})
piapfpPayload :: Lens' ProjectsInstancesAppProFilesPatch AppProFile
piapfpPayload
= lens _piapfpPayload
(\ s a -> s{_piapfpPayload = a})
piapfpIgnoreWarnings :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Bool)
piapfpIgnoreWarnings
= lens _piapfpIgnoreWarnings
(\ s a -> s{_piapfpIgnoreWarnings = a})
piapfpName :: Lens' ProjectsInstancesAppProFilesPatch Text
piapfpName
= lens _piapfpName (\ s a -> s{_piapfpName = a})
piapfpCallback :: Lens' ProjectsInstancesAppProFilesPatch (Maybe Text)
piapfpCallback
= lens _piapfpCallback
(\ s a -> s{_piapfpCallback = a})
instance GoogleRequest
ProjectsInstancesAppProFilesPatch where
type Rs ProjectsInstancesAppProFilesPatch = Operation
type Scopes ProjectsInstancesAppProFilesPatch =
'["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 ProjectsInstancesAppProFilesPatch'{..}
= go _piapfpName _piapfpXgafv _piapfpUploadProtocol
_piapfpUpdateMask
_piapfpAccessToken
_piapfpUploadType
_piapfpIgnoreWarnings
_piapfpCallback
(Just AltJSON)
_piapfpPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesAppProFilesPatchResource)
mempty