{-# 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.ResourceLabels
(
ProjectsZonesClustersResourceLabelsResource
, projectsZonesClustersResourceLabels
, ProjectsZonesClustersResourceLabels
, pzcrlXgafv
, pzcrlUploadProtocol
, pzcrlAccessToken
, pzcrlUploadType
, pzcrlZone
, pzcrlPayload
, pzcrlClusterId
, pzcrlProjectId
, pzcrlCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersResourceLabelsResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"resourceLabels" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetLabelsRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersResourceLabels = ProjectsZonesClustersResourceLabels'
{ _pzcrlXgafv :: !(Maybe Xgafv)
, _pzcrlUploadProtocol :: !(Maybe Text)
, _pzcrlAccessToken :: !(Maybe Text)
, _pzcrlUploadType :: !(Maybe Text)
, _pzcrlZone :: !Text
, _pzcrlPayload :: !SetLabelsRequest
, _pzcrlClusterId :: !Text
, _pzcrlProjectId :: !Text
, _pzcrlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersResourceLabels
:: Text
-> SetLabelsRequest
-> Text
-> Text
-> ProjectsZonesClustersResourceLabels
projectsZonesClustersResourceLabels pPzcrlZone_ pPzcrlPayload_ pPzcrlClusterId_ pPzcrlProjectId_ =
ProjectsZonesClustersResourceLabels'
{ _pzcrlXgafv = Nothing
, _pzcrlUploadProtocol = Nothing
, _pzcrlAccessToken = Nothing
, _pzcrlUploadType = Nothing
, _pzcrlZone = pPzcrlZone_
, _pzcrlPayload = pPzcrlPayload_
, _pzcrlClusterId = pPzcrlClusterId_
, _pzcrlProjectId = pPzcrlProjectId_
, _pzcrlCallback = Nothing
}
pzcrlXgafv :: Lens' ProjectsZonesClustersResourceLabels (Maybe Xgafv)
pzcrlXgafv
= lens _pzcrlXgafv (\ s a -> s{_pzcrlXgafv = a})
pzcrlUploadProtocol :: Lens' ProjectsZonesClustersResourceLabels (Maybe Text)
pzcrlUploadProtocol
= lens _pzcrlUploadProtocol
(\ s a -> s{_pzcrlUploadProtocol = a})
pzcrlAccessToken :: Lens' ProjectsZonesClustersResourceLabels (Maybe Text)
pzcrlAccessToken
= lens _pzcrlAccessToken
(\ s a -> s{_pzcrlAccessToken = a})
pzcrlUploadType :: Lens' ProjectsZonesClustersResourceLabels (Maybe Text)
pzcrlUploadType
= lens _pzcrlUploadType
(\ s a -> s{_pzcrlUploadType = a})
pzcrlZone :: Lens' ProjectsZonesClustersResourceLabels Text
pzcrlZone
= lens _pzcrlZone (\ s a -> s{_pzcrlZone = a})
pzcrlPayload :: Lens' ProjectsZonesClustersResourceLabels SetLabelsRequest
pzcrlPayload
= lens _pzcrlPayload (\ s a -> s{_pzcrlPayload = a})
pzcrlClusterId :: Lens' ProjectsZonesClustersResourceLabels Text
pzcrlClusterId
= lens _pzcrlClusterId
(\ s a -> s{_pzcrlClusterId = a})
pzcrlProjectId :: Lens' ProjectsZonesClustersResourceLabels Text
pzcrlProjectId
= lens _pzcrlProjectId
(\ s a -> s{_pzcrlProjectId = a})
pzcrlCallback :: Lens' ProjectsZonesClustersResourceLabels (Maybe Text)
pzcrlCallback
= lens _pzcrlCallback
(\ s a -> s{_pzcrlCallback = a})
instance GoogleRequest
ProjectsZonesClustersResourceLabels where
type Rs ProjectsZonesClustersResourceLabels =
Operation
type Scopes ProjectsZonesClustersResourceLabels =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersResourceLabels'{..}
= go _pzcrlProjectId _pzcrlZone _pzcrlClusterId
_pzcrlXgafv
_pzcrlUploadProtocol
_pzcrlAccessToken
_pzcrlUploadType
_pzcrlCallback
(Just AltJSON)
_pzcrlPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersResourceLabelsResource)
mempty