{-# 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.ProximityBeacon.Namespaces.Update
(
NamespacesUpdateResource
, namespacesUpdate
, NamespacesUpdate
, nuXgafv
, nuUploadProtocol
, nuAccessToken
, nuUploadType
, nuPayload
, nuNamespaceName
, nuProjectId
, nuCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type NamespacesUpdateResource =
"v1beta1" :>
Capture "namespaceName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Namespace :> Put '[JSON] Namespace
data NamespacesUpdate = NamespacesUpdate'
{ _nuXgafv :: !(Maybe Xgafv)
, _nuUploadProtocol :: !(Maybe Text)
, _nuAccessToken :: !(Maybe Text)
, _nuUploadType :: !(Maybe Text)
, _nuPayload :: !Namespace
, _nuNamespaceName :: !Text
, _nuProjectId :: !(Maybe Text)
, _nuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
namespacesUpdate
:: Namespace
-> Text
-> NamespacesUpdate
namespacesUpdate pNuPayload_ pNuNamespaceName_ =
NamespacesUpdate'
{ _nuXgafv = Nothing
, _nuUploadProtocol = Nothing
, _nuAccessToken = Nothing
, _nuUploadType = Nothing
, _nuPayload = pNuPayload_
, _nuNamespaceName = pNuNamespaceName_
, _nuProjectId = Nothing
, _nuCallback = Nothing
}
nuXgafv :: Lens' NamespacesUpdate (Maybe Xgafv)
nuXgafv = lens _nuXgafv (\ s a -> s{_nuXgafv = a})
nuUploadProtocol :: Lens' NamespacesUpdate (Maybe Text)
nuUploadProtocol
= lens _nuUploadProtocol
(\ s a -> s{_nuUploadProtocol = a})
nuAccessToken :: Lens' NamespacesUpdate (Maybe Text)
nuAccessToken
= lens _nuAccessToken
(\ s a -> s{_nuAccessToken = a})
nuUploadType :: Lens' NamespacesUpdate (Maybe Text)
nuUploadType
= lens _nuUploadType (\ s a -> s{_nuUploadType = a})
nuPayload :: Lens' NamespacesUpdate Namespace
nuPayload
= lens _nuPayload (\ s a -> s{_nuPayload = a})
nuNamespaceName :: Lens' NamespacesUpdate Text
nuNamespaceName
= lens _nuNamespaceName
(\ s a -> s{_nuNamespaceName = a})
nuProjectId :: Lens' NamespacesUpdate (Maybe Text)
nuProjectId
= lens _nuProjectId (\ s a -> s{_nuProjectId = a})
nuCallback :: Lens' NamespacesUpdate (Maybe Text)
nuCallback
= lens _nuCallback (\ s a -> s{_nuCallback = a})
instance GoogleRequest NamespacesUpdate where
type Rs NamespacesUpdate = Namespace
type Scopes NamespacesUpdate =
'["https://www.googleapis.com/auth/userlocation.beacon.registry"]
requestClient NamespacesUpdate'{..}
= go _nuNamespaceName _nuXgafv _nuUploadProtocol
_nuAccessToken
_nuUploadType
_nuProjectId
_nuCallback
(Just AltJSON)
_nuPayload
proximityBeaconService
where go
= buildClient
(Proxy :: Proxy NamespacesUpdateResource)
mempty