{-# 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.SetLocations
(
ProjectsLocationsClustersSetLocationsResource
, projectsLocationsClustersSetLocations
, ProjectsLocationsClustersSetLocations
, plcslsXgafv
, plcslsUploadProtocol
, plcslsAccessToken
, plcslsUploadType
, plcslsPayload
, plcslsName
, plcslsCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetLocationsResource =
"v1" :>
CaptureMode "name" "setLocations" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetLocationsRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersSetLocations = ProjectsLocationsClustersSetLocations'
{ _plcslsXgafv :: !(Maybe Xgafv)
, _plcslsUploadProtocol :: !(Maybe Text)
, _plcslsAccessToken :: !(Maybe Text)
, _plcslsUploadType :: !(Maybe Text)
, _plcslsPayload :: !SetLocationsRequest
, _plcslsName :: !Text
, _plcslsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetLocations
:: SetLocationsRequest
-> Text
-> ProjectsLocationsClustersSetLocations
projectsLocationsClustersSetLocations pPlcslsPayload_ pPlcslsName_ =
ProjectsLocationsClustersSetLocations'
{ _plcslsXgafv = Nothing
, _plcslsUploadProtocol = Nothing
, _plcslsAccessToken = Nothing
, _plcslsUploadType = Nothing
, _plcslsPayload = pPlcslsPayload_
, _plcslsName = pPlcslsName_
, _plcslsCallback = Nothing
}
plcslsXgafv :: Lens' ProjectsLocationsClustersSetLocations (Maybe Xgafv)
plcslsXgafv
= lens _plcslsXgafv (\ s a -> s{_plcslsXgafv = a})
plcslsUploadProtocol :: Lens' ProjectsLocationsClustersSetLocations (Maybe Text)
plcslsUploadProtocol
= lens _plcslsUploadProtocol
(\ s a -> s{_plcslsUploadProtocol = a})
plcslsAccessToken :: Lens' ProjectsLocationsClustersSetLocations (Maybe Text)
plcslsAccessToken
= lens _plcslsAccessToken
(\ s a -> s{_plcslsAccessToken = a})
plcslsUploadType :: Lens' ProjectsLocationsClustersSetLocations (Maybe Text)
plcslsUploadType
= lens _plcslsUploadType
(\ s a -> s{_plcslsUploadType = a})
plcslsPayload :: Lens' ProjectsLocationsClustersSetLocations SetLocationsRequest
plcslsPayload
= lens _plcslsPayload
(\ s a -> s{_plcslsPayload = a})
plcslsName :: Lens' ProjectsLocationsClustersSetLocations Text
plcslsName
= lens _plcslsName (\ s a -> s{_plcslsName = a})
plcslsCallback :: Lens' ProjectsLocationsClustersSetLocations (Maybe Text)
plcslsCallback
= lens _plcslsCallback
(\ s a -> s{_plcslsCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetLocations where
type Rs ProjectsLocationsClustersSetLocations =
Operation
type Scopes ProjectsLocationsClustersSetLocations =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetLocations'{..}
= go _plcslsName _plcslsXgafv _plcslsUploadProtocol
_plcslsAccessToken
_plcslsUploadType
_plcslsCallback
(Just AltJSON)
_plcslsPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetLocationsResource)
mempty