{-# 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.StartIPRotation
(
ProjectsZonesClustersStartIPRotationResource
, projectsZonesClustersStartIPRotation
, ProjectsZonesClustersStartIPRotation
, pzcsirXgafv
, pzcsirUploadProtocol
, pzcsirAccessToken
, pzcsirUploadType
, pzcsirZone
, pzcsirPayload
, pzcsirClusterId
, pzcsirProjectId
, pzcsirCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersStartIPRotationResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
CaptureMode "clusterId" "startIpRotation" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] StartIPRotationRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersStartIPRotation = ProjectsZonesClustersStartIPRotation'
{ _pzcsirXgafv :: !(Maybe Xgafv)
, _pzcsirUploadProtocol :: !(Maybe Text)
, _pzcsirAccessToken :: !(Maybe Text)
, _pzcsirUploadType :: !(Maybe Text)
, _pzcsirZone :: !Text
, _pzcsirPayload :: !StartIPRotationRequest
, _pzcsirClusterId :: !Text
, _pzcsirProjectId :: !Text
, _pzcsirCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersStartIPRotation
:: Text
-> StartIPRotationRequest
-> Text
-> Text
-> ProjectsZonesClustersStartIPRotation
projectsZonesClustersStartIPRotation pPzcsirZone_ pPzcsirPayload_ pPzcsirClusterId_ pPzcsirProjectId_ =
ProjectsZonesClustersStartIPRotation'
{ _pzcsirXgafv = Nothing
, _pzcsirUploadProtocol = Nothing
, _pzcsirAccessToken = Nothing
, _pzcsirUploadType = Nothing
, _pzcsirZone = pPzcsirZone_
, _pzcsirPayload = pPzcsirPayload_
, _pzcsirClusterId = pPzcsirClusterId_
, _pzcsirProjectId = pPzcsirProjectId_
, _pzcsirCallback = Nothing
}
pzcsirXgafv :: Lens' ProjectsZonesClustersStartIPRotation (Maybe Xgafv)
pzcsirXgafv
= lens _pzcsirXgafv (\ s a -> s{_pzcsirXgafv = a})
pzcsirUploadProtocol :: Lens' ProjectsZonesClustersStartIPRotation (Maybe Text)
pzcsirUploadProtocol
= lens _pzcsirUploadProtocol
(\ s a -> s{_pzcsirUploadProtocol = a})
pzcsirAccessToken :: Lens' ProjectsZonesClustersStartIPRotation (Maybe Text)
pzcsirAccessToken
= lens _pzcsirAccessToken
(\ s a -> s{_pzcsirAccessToken = a})
pzcsirUploadType :: Lens' ProjectsZonesClustersStartIPRotation (Maybe Text)
pzcsirUploadType
= lens _pzcsirUploadType
(\ s a -> s{_pzcsirUploadType = a})
pzcsirZone :: Lens' ProjectsZonesClustersStartIPRotation Text
pzcsirZone
= lens _pzcsirZone (\ s a -> s{_pzcsirZone = a})
pzcsirPayload :: Lens' ProjectsZonesClustersStartIPRotation StartIPRotationRequest
pzcsirPayload
= lens _pzcsirPayload
(\ s a -> s{_pzcsirPayload = a})
pzcsirClusterId :: Lens' ProjectsZonesClustersStartIPRotation Text
pzcsirClusterId
= lens _pzcsirClusterId
(\ s a -> s{_pzcsirClusterId = a})
pzcsirProjectId :: Lens' ProjectsZonesClustersStartIPRotation Text
pzcsirProjectId
= lens _pzcsirProjectId
(\ s a -> s{_pzcsirProjectId = a})
pzcsirCallback :: Lens' ProjectsZonesClustersStartIPRotation (Maybe Text)
pzcsirCallback
= lens _pzcsirCallback
(\ s a -> s{_pzcsirCallback = a})
instance GoogleRequest
ProjectsZonesClustersStartIPRotation where
type Rs ProjectsZonesClustersStartIPRotation =
Operation
type Scopes ProjectsZonesClustersStartIPRotation =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersStartIPRotation'{..}
= go _pzcsirProjectId _pzcsirZone _pzcsirClusterId
_pzcsirXgafv
_pzcsirUploadProtocol
_pzcsirAccessToken
_pzcsirUploadType
_pzcsirCallback
(Just AltJSON)
_pzcsirPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersStartIPRotationResource)
mempty