{-# 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.Container.Projects.Locations.Clusters.CompleteIPRotation
(
ProjectsLocationsClustersCompleteIPRotationResource
, projectsLocationsClustersCompleteIPRotation
, ProjectsLocationsClustersCompleteIPRotation
, plccirXgafv
, plccirUploadProtocol
, plccirAccessToken
, plccirUploadType
, plccirPayload
, plccirName
, plccirCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersCompleteIPRotationResource
=
"v1" :>
CaptureMode "name" "completeIpRotation" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CompleteIPRotationRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersCompleteIPRotation = ProjectsLocationsClustersCompleteIPRotation'
{ _plccirXgafv :: !(Maybe Xgafv)
, _plccirUploadProtocol :: !(Maybe Text)
, _plccirAccessToken :: !(Maybe Text)
, _plccirUploadType :: !(Maybe Text)
, _plccirPayload :: !CompleteIPRotationRequest
, _plccirName :: !Text
, _plccirCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersCompleteIPRotation
:: CompleteIPRotationRequest
-> Text
-> ProjectsLocationsClustersCompleteIPRotation
projectsLocationsClustersCompleteIPRotation pPlccirPayload_ pPlccirName_ =
ProjectsLocationsClustersCompleteIPRotation'
{ _plccirXgafv = Nothing
, _plccirUploadProtocol = Nothing
, _plccirAccessToken = Nothing
, _plccirUploadType = Nothing
, _plccirPayload = pPlccirPayload_
, _plccirName = pPlccirName_
, _plccirCallback = Nothing
}
plccirXgafv :: Lens' ProjectsLocationsClustersCompleteIPRotation (Maybe Xgafv)
plccirXgafv
= lens _plccirXgafv (\ s a -> s{_plccirXgafv = a})
plccirUploadProtocol :: Lens' ProjectsLocationsClustersCompleteIPRotation (Maybe Text)
plccirUploadProtocol
= lens _plccirUploadProtocol
(\ s a -> s{_plccirUploadProtocol = a})
plccirAccessToken :: Lens' ProjectsLocationsClustersCompleteIPRotation (Maybe Text)
plccirAccessToken
= lens _plccirAccessToken
(\ s a -> s{_plccirAccessToken = a})
plccirUploadType :: Lens' ProjectsLocationsClustersCompleteIPRotation (Maybe Text)
plccirUploadType
= lens _plccirUploadType
(\ s a -> s{_plccirUploadType = a})
plccirPayload :: Lens' ProjectsLocationsClustersCompleteIPRotation CompleteIPRotationRequest
plccirPayload
= lens _plccirPayload
(\ s a -> s{_plccirPayload = a})
plccirName :: Lens' ProjectsLocationsClustersCompleteIPRotation Text
plccirName
= lens _plccirName (\ s a -> s{_plccirName = a})
plccirCallback :: Lens' ProjectsLocationsClustersCompleteIPRotation (Maybe Text)
plccirCallback
= lens _plccirCallback
(\ s a -> s{_plccirCallback = a})
instance GoogleRequest
ProjectsLocationsClustersCompleteIPRotation where
type Rs ProjectsLocationsClustersCompleteIPRotation =
Operation
type Scopes
ProjectsLocationsClustersCompleteIPRotation
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersCompleteIPRotation'{..}
= go _plccirName _plccirXgafv _plccirUploadProtocol
_plccirAccessToken
_plccirUploadType
_plccirCallback
(Just AltJSON)
_plccirPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersCompleteIPRotationResource)
mempty