{-# 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.File.Projects.Locations.Instances.Delete
(
ProjectsLocationsInstancesDeleteResource
, projectsLocationsInstancesDelete
, ProjectsLocationsInstancesDelete
, plidXgafv
, plidUploadProtocol
, plidAccessToken
, plidUploadType
, plidName
, plidCallback
) where
import Network.Google.File.Types
import Network.Google.Prelude
type ProjectsLocationsInstancesDeleteResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ProjectsLocationsInstancesDelete = ProjectsLocationsInstancesDelete'
{ _plidXgafv :: !(Maybe Xgafv)
, _plidUploadProtocol :: !(Maybe Text)
, _plidAccessToken :: !(Maybe Text)
, _plidUploadType :: !(Maybe Text)
, _plidName :: !Text
, _plidCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsInstancesDelete
:: Text
-> ProjectsLocationsInstancesDelete
projectsLocationsInstancesDelete pPlidName_ =
ProjectsLocationsInstancesDelete'
{ _plidXgafv = Nothing
, _plidUploadProtocol = Nothing
, _plidAccessToken = Nothing
, _plidUploadType = Nothing
, _plidName = pPlidName_
, _plidCallback = Nothing
}
plidXgafv :: Lens' ProjectsLocationsInstancesDelete (Maybe Xgafv)
plidXgafv
= lens _plidXgafv (\ s a -> s{_plidXgafv = a})
plidUploadProtocol :: Lens' ProjectsLocationsInstancesDelete (Maybe Text)
plidUploadProtocol
= lens _plidUploadProtocol
(\ s a -> s{_plidUploadProtocol = a})
plidAccessToken :: Lens' ProjectsLocationsInstancesDelete (Maybe Text)
plidAccessToken
= lens _plidAccessToken
(\ s a -> s{_plidAccessToken = a})
plidUploadType :: Lens' ProjectsLocationsInstancesDelete (Maybe Text)
plidUploadType
= lens _plidUploadType
(\ s a -> s{_plidUploadType = a})
plidName :: Lens' ProjectsLocationsInstancesDelete Text
plidName = lens _plidName (\ s a -> s{_plidName = a})
plidCallback :: Lens' ProjectsLocationsInstancesDelete (Maybe Text)
plidCallback
= lens _plidCallback (\ s a -> s{_plidCallback = a})
instance GoogleRequest
ProjectsLocationsInstancesDelete where
type Rs ProjectsLocationsInstancesDelete = Operation
type Scopes ProjectsLocationsInstancesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsInstancesDelete'{..}
= go _plidName _plidXgafv _plidUploadProtocol
_plidAccessToken
_plidUploadType
_plidCallback
(Just AltJSON)
fileService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsInstancesDeleteResource)
mempty