{-# 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.Locations
(
ProjectsZonesClustersLocationsResource
, projectsZonesClustersLocations
, ProjectsZonesClustersLocations
, pXgafv
, pUploadProtocol
, pAccessToken
, pUploadType
, pZone
, pPayload
, pClusterId
, pProjectId
, pCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersLocationsResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"locations" :>
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 ProjectsZonesClustersLocations = ProjectsZonesClustersLocations'
{ _pXgafv :: !(Maybe Xgafv)
, _pUploadProtocol :: !(Maybe Text)
, _pAccessToken :: !(Maybe Text)
, _pUploadType :: !(Maybe Text)
, _pZone :: !Text
, _pPayload :: !SetLocationsRequest
, _pClusterId :: !Text
, _pProjectId :: !Text
, _pCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersLocations
:: Text
-> SetLocationsRequest
-> Text
-> Text
-> ProjectsZonesClustersLocations
projectsZonesClustersLocations pPZone_ pPPayload_ pPClusterId_ pPProjectId_ =
ProjectsZonesClustersLocations'
{ _pXgafv = Nothing
, _pUploadProtocol = Nothing
, _pAccessToken = Nothing
, _pUploadType = Nothing
, _pZone = pPZone_
, _pPayload = pPPayload_
, _pClusterId = pPClusterId_
, _pProjectId = pPProjectId_
, _pCallback = Nothing
}
pXgafv :: Lens' ProjectsZonesClustersLocations (Maybe Xgafv)
pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})
pUploadProtocol :: Lens' ProjectsZonesClustersLocations (Maybe Text)
pUploadProtocol
= lens _pUploadProtocol
(\ s a -> s{_pUploadProtocol = a})
pAccessToken :: Lens' ProjectsZonesClustersLocations (Maybe Text)
pAccessToken
= lens _pAccessToken (\ s a -> s{_pAccessToken = a})
pUploadType :: Lens' ProjectsZonesClustersLocations (Maybe Text)
pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a})
pZone :: Lens' ProjectsZonesClustersLocations Text
pZone = lens _pZone (\ s a -> s{_pZone = a})
pPayload :: Lens' ProjectsZonesClustersLocations SetLocationsRequest
pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
pClusterId :: Lens' ProjectsZonesClustersLocations Text
pClusterId
= lens _pClusterId (\ s a -> s{_pClusterId = a})
pProjectId :: Lens' ProjectsZonesClustersLocations Text
pProjectId
= lens _pProjectId (\ s a -> s{_pProjectId = a})
pCallback :: Lens' ProjectsZonesClustersLocations (Maybe Text)
pCallback
= lens _pCallback (\ s a -> s{_pCallback = a})
instance GoogleRequest ProjectsZonesClustersLocations
where
type Rs ProjectsZonesClustersLocations = Operation
type Scopes ProjectsZonesClustersLocations =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersLocations'{..}
= go _pProjectId _pZone _pClusterId _pXgafv
_pUploadProtocol
_pAccessToken
_pUploadType
_pCallback
(Just AltJSON)
_pPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersLocationsResource)
mempty