{-# 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.Zones.Clusters.CompleteIPRotation
(
ProjectsZonesClustersCompleteIPRotationResource
, projectsZonesClustersCompleteIPRotation
, ProjectsZonesClustersCompleteIPRotation
, pzccirXgafv
, pzccirUploadProtocol
, pzccirAccessToken
, pzccirUploadType
, pzccirZone
, pzccirPayload
, pzccirClusterId
, pzccirProjectId
, pzccirCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersCompleteIPRotationResource
=
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
CaptureMode "clusterId" "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 ProjectsZonesClustersCompleteIPRotation = ProjectsZonesClustersCompleteIPRotation'
{ _pzccirXgafv :: !(Maybe Xgafv)
, _pzccirUploadProtocol :: !(Maybe Text)
, _pzccirAccessToken :: !(Maybe Text)
, _pzccirUploadType :: !(Maybe Text)
, _pzccirZone :: !Text
, _pzccirPayload :: !CompleteIPRotationRequest
, _pzccirClusterId :: !Text
, _pzccirProjectId :: !Text
, _pzccirCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersCompleteIPRotation
:: Text
-> CompleteIPRotationRequest
-> Text
-> Text
-> ProjectsZonesClustersCompleteIPRotation
projectsZonesClustersCompleteIPRotation pPzccirZone_ pPzccirPayload_ pPzccirClusterId_ pPzccirProjectId_ =
ProjectsZonesClustersCompleteIPRotation'
{ _pzccirXgafv = Nothing
, _pzccirUploadProtocol = Nothing
, _pzccirAccessToken = Nothing
, _pzccirUploadType = Nothing
, _pzccirZone = pPzccirZone_
, _pzccirPayload = pPzccirPayload_
, _pzccirClusterId = pPzccirClusterId_
, _pzccirProjectId = pPzccirProjectId_
, _pzccirCallback = Nothing
}
pzccirXgafv :: Lens' ProjectsZonesClustersCompleteIPRotation (Maybe Xgafv)
pzccirXgafv
= lens _pzccirXgafv (\ s a -> s{_pzccirXgafv = a})
pzccirUploadProtocol :: Lens' ProjectsZonesClustersCompleteIPRotation (Maybe Text)
pzccirUploadProtocol
= lens _pzccirUploadProtocol
(\ s a -> s{_pzccirUploadProtocol = a})
pzccirAccessToken :: Lens' ProjectsZonesClustersCompleteIPRotation (Maybe Text)
pzccirAccessToken
= lens _pzccirAccessToken
(\ s a -> s{_pzccirAccessToken = a})
pzccirUploadType :: Lens' ProjectsZonesClustersCompleteIPRotation (Maybe Text)
pzccirUploadType
= lens _pzccirUploadType
(\ s a -> s{_pzccirUploadType = a})
pzccirZone :: Lens' ProjectsZonesClustersCompleteIPRotation Text
pzccirZone
= lens _pzccirZone (\ s a -> s{_pzccirZone = a})
pzccirPayload :: Lens' ProjectsZonesClustersCompleteIPRotation CompleteIPRotationRequest
pzccirPayload
= lens _pzccirPayload
(\ s a -> s{_pzccirPayload = a})
pzccirClusterId :: Lens' ProjectsZonesClustersCompleteIPRotation Text
pzccirClusterId
= lens _pzccirClusterId
(\ s a -> s{_pzccirClusterId = a})
pzccirProjectId :: Lens' ProjectsZonesClustersCompleteIPRotation Text
pzccirProjectId
= lens _pzccirProjectId
(\ s a -> s{_pzccirProjectId = a})
pzccirCallback :: Lens' ProjectsZonesClustersCompleteIPRotation (Maybe Text)
pzccirCallback
= lens _pzccirCallback
(\ s a -> s{_pzccirCallback = a})
instance GoogleRequest
ProjectsZonesClustersCompleteIPRotation where
type Rs ProjectsZonesClustersCompleteIPRotation =
Operation
type Scopes ProjectsZonesClustersCompleteIPRotation =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersCompleteIPRotation'{..}
= go _pzccirProjectId _pzccirZone _pzccirClusterId
_pzccirXgafv
_pzccirUploadProtocol
_pzccirAccessToken
_pzccirUploadType
_pzccirCallback
(Just AltJSON)
_pzccirPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsZonesClustersCompleteIPRotationResource)
mempty