{-# 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.AndroidDeviceProvisioning.Customers.Devices.ApplyConfiguration
(
CustomersDevicesApplyConfigurationResource
, customersDevicesApplyConfiguration
, CustomersDevicesApplyConfiguration
, cdacParent
, cdacXgafv
, cdacUploadProtocol
, cdacAccessToken
, cdacUploadType
, cdacPayload
, cdacCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDevicesApplyConfigurationResource =
"v1" :>
Capture "parent" Text :>
"devices:applyConfiguration" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CustomerApplyConfigurationRequest :>
Post '[JSON] Empty
data CustomersDevicesApplyConfiguration = CustomersDevicesApplyConfiguration'
{ _cdacParent :: !Text
, _cdacXgafv :: !(Maybe Xgafv)
, _cdacUploadProtocol :: !(Maybe Text)
, _cdacAccessToken :: !(Maybe Text)
, _cdacUploadType :: !(Maybe Text)
, _cdacPayload :: !CustomerApplyConfigurationRequest
, _cdacCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDevicesApplyConfiguration
:: Text
-> CustomerApplyConfigurationRequest
-> CustomersDevicesApplyConfiguration
customersDevicesApplyConfiguration pCdacParent_ pCdacPayload_ =
CustomersDevicesApplyConfiguration'
{ _cdacParent = pCdacParent_
, _cdacXgafv = Nothing
, _cdacUploadProtocol = Nothing
, _cdacAccessToken = Nothing
, _cdacUploadType = Nothing
, _cdacPayload = pCdacPayload_
, _cdacCallback = Nothing
}
cdacParent :: Lens' CustomersDevicesApplyConfiguration Text
cdacParent
= lens _cdacParent (\ s a -> s{_cdacParent = a})
cdacXgafv :: Lens' CustomersDevicesApplyConfiguration (Maybe Xgafv)
cdacXgafv
= lens _cdacXgafv (\ s a -> s{_cdacXgafv = a})
cdacUploadProtocol :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
cdacUploadProtocol
= lens _cdacUploadProtocol
(\ s a -> s{_cdacUploadProtocol = a})
cdacAccessToken :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
cdacAccessToken
= lens _cdacAccessToken
(\ s a -> s{_cdacAccessToken = a})
cdacUploadType :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
cdacUploadType
= lens _cdacUploadType
(\ s a -> s{_cdacUploadType = a})
cdacPayload :: Lens' CustomersDevicesApplyConfiguration CustomerApplyConfigurationRequest
cdacPayload
= lens _cdacPayload (\ s a -> s{_cdacPayload = a})
cdacCallback :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
cdacCallback
= lens _cdacCallback (\ s a -> s{_cdacCallback = a})
instance GoogleRequest
CustomersDevicesApplyConfiguration where
type Rs CustomersDevicesApplyConfiguration = Empty
type Scopes CustomersDevicesApplyConfiguration = '[]
requestClient CustomersDevicesApplyConfiguration'{..}
= go _cdacParent _cdacXgafv _cdacUploadProtocol
_cdacAccessToken
_cdacUploadType
_cdacCallback
(Just AltJSON)
_cdacPayload
androidDeviceProvisioningService
where go
= buildClient
(Proxy ::
Proxy CustomersDevicesApplyConfigurationResource)
mempty