{-# 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.StartIPRotation
(
ProjectsLocationsClustersStartIPRotationResource
, projectsLocationsClustersStartIPRotation
, ProjectsLocationsClustersStartIPRotation
, plcsirXgafv
, plcsirUploadProtocol
, plcsirAccessToken
, plcsirUploadType
, plcsirPayload
, plcsirName
, plcsirCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersStartIPRotationResource
=
"v1" :>
CaptureMode "name" "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 ProjectsLocationsClustersStartIPRotation = ProjectsLocationsClustersStartIPRotation'
{ _plcsirXgafv :: !(Maybe Xgafv)
, _plcsirUploadProtocol :: !(Maybe Text)
, _plcsirAccessToken :: !(Maybe Text)
, _plcsirUploadType :: !(Maybe Text)
, _plcsirPayload :: !StartIPRotationRequest
, _plcsirName :: !Text
, _plcsirCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersStartIPRotation
:: StartIPRotationRequest
-> Text
-> ProjectsLocationsClustersStartIPRotation
projectsLocationsClustersStartIPRotation pPlcsirPayload_ pPlcsirName_ =
ProjectsLocationsClustersStartIPRotation'
{ _plcsirXgafv = Nothing
, _plcsirUploadProtocol = Nothing
, _plcsirAccessToken = Nothing
, _plcsirUploadType = Nothing
, _plcsirPayload = pPlcsirPayload_
, _plcsirName = pPlcsirName_
, _plcsirCallback = Nothing
}
plcsirXgafv :: Lens' ProjectsLocationsClustersStartIPRotation (Maybe Xgafv)
plcsirXgafv
= lens _plcsirXgafv (\ s a -> s{_plcsirXgafv = a})
plcsirUploadProtocol :: Lens' ProjectsLocationsClustersStartIPRotation (Maybe Text)
plcsirUploadProtocol
= lens _plcsirUploadProtocol
(\ s a -> s{_plcsirUploadProtocol = a})
plcsirAccessToken :: Lens' ProjectsLocationsClustersStartIPRotation (Maybe Text)
plcsirAccessToken
= lens _plcsirAccessToken
(\ s a -> s{_plcsirAccessToken = a})
plcsirUploadType :: Lens' ProjectsLocationsClustersStartIPRotation (Maybe Text)
plcsirUploadType
= lens _plcsirUploadType
(\ s a -> s{_plcsirUploadType = a})
plcsirPayload :: Lens' ProjectsLocationsClustersStartIPRotation StartIPRotationRequest
plcsirPayload
= lens _plcsirPayload
(\ s a -> s{_plcsirPayload = a})
plcsirName :: Lens' ProjectsLocationsClustersStartIPRotation Text
plcsirName
= lens _plcsirName (\ s a -> s{_plcsirName = a})
plcsirCallback :: Lens' ProjectsLocationsClustersStartIPRotation (Maybe Text)
plcsirCallback
= lens _plcsirCallback
(\ s a -> s{_plcsirCallback = a})
instance GoogleRequest
ProjectsLocationsClustersStartIPRotation where
type Rs ProjectsLocationsClustersStartIPRotation =
Operation
type Scopes ProjectsLocationsClustersStartIPRotation
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersStartIPRotation'{..}
= go _plcsirName _plcsirXgafv _plcsirUploadProtocol
_plcsirAccessToken
_plcsirUploadType
_plcsirCallback
(Just AltJSON)
_plcsirPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersStartIPRotationResource)
mempty