{-# 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.SetResourceLabels
(
ProjectsLocationsClustersSetResourceLabelsResource
, projectsLocationsClustersSetResourceLabels
, ProjectsLocationsClustersSetResourceLabels
, plcsrlXgafv
, plcsrlUploadProtocol
, plcsrlAccessToken
, plcsrlUploadType
, plcsrlPayload
, plcsrlName
, plcsrlCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetResourceLabelsResource
=
"v1" :>
CaptureMode "name" "setResourceLabels" Text :>
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 ProjectsLocationsClustersSetResourceLabels = ProjectsLocationsClustersSetResourceLabels'
{ _plcsrlXgafv :: !(Maybe Xgafv)
, _plcsrlUploadProtocol :: !(Maybe Text)
, _plcsrlAccessToken :: !(Maybe Text)
, _plcsrlUploadType :: !(Maybe Text)
, _plcsrlPayload :: !SetLabelsRequest
, _plcsrlName :: !Text
, _plcsrlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetResourceLabels
:: SetLabelsRequest
-> Text
-> ProjectsLocationsClustersSetResourceLabels
projectsLocationsClustersSetResourceLabels pPlcsrlPayload_ pPlcsrlName_ =
ProjectsLocationsClustersSetResourceLabels'
{ _plcsrlXgafv = Nothing
, _plcsrlUploadProtocol = Nothing
, _plcsrlAccessToken = Nothing
, _plcsrlUploadType = Nothing
, _plcsrlPayload = pPlcsrlPayload_
, _plcsrlName = pPlcsrlName_
, _plcsrlCallback = Nothing
}
plcsrlXgafv :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Xgafv)
plcsrlXgafv
= lens _plcsrlXgafv (\ s a -> s{_plcsrlXgafv = a})
plcsrlUploadProtocol :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
plcsrlUploadProtocol
= lens _plcsrlUploadProtocol
(\ s a -> s{_plcsrlUploadProtocol = a})
plcsrlAccessToken :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
plcsrlAccessToken
= lens _plcsrlAccessToken
(\ s a -> s{_plcsrlAccessToken = a})
plcsrlUploadType :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
plcsrlUploadType
= lens _plcsrlUploadType
(\ s a -> s{_plcsrlUploadType = a})
plcsrlPayload :: Lens' ProjectsLocationsClustersSetResourceLabels SetLabelsRequest
plcsrlPayload
= lens _plcsrlPayload
(\ s a -> s{_plcsrlPayload = a})
plcsrlName :: Lens' ProjectsLocationsClustersSetResourceLabels Text
plcsrlName
= lens _plcsrlName (\ s a -> s{_plcsrlName = a})
plcsrlCallback :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
plcsrlCallback
= lens _plcsrlCallback
(\ s a -> s{_plcsrlCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetResourceLabels where
type Rs ProjectsLocationsClustersSetResourceLabels =
Operation
type Scopes
ProjectsLocationsClustersSetResourceLabels
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetResourceLabels'{..}
= go _plcsrlName _plcsrlXgafv _plcsrlUploadProtocol
_plcsrlAccessToken
_plcsrlUploadType
_plcsrlCallback
(Just AltJSON)
_plcsrlPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersSetResourceLabelsResource)
mempty