{-# 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.AndroidManagement.SignupURLs.Create
(
SignupURLsCreateResource
, signupURLsCreate
, SignupURLsCreate
, sucXgafv
, sucUploadProtocol
, sucCallbackURL
, sucAccessToken
, sucUploadType
, sucProjectId
, sucCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type SignupURLsCreateResource =
"v1" :>
"signupUrls" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "callbackUrl" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] SignupURL
data SignupURLsCreate = SignupURLsCreate'
{ _sucXgafv :: !(Maybe Xgafv)
, _sucUploadProtocol :: !(Maybe Text)
, _sucCallbackURL :: !(Maybe Text)
, _sucAccessToken :: !(Maybe Text)
, _sucUploadType :: !(Maybe Text)
, _sucProjectId :: !(Maybe Text)
, _sucCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
signupURLsCreate
:: SignupURLsCreate
signupURLsCreate =
SignupURLsCreate'
{ _sucXgafv = Nothing
, _sucUploadProtocol = Nothing
, _sucCallbackURL = Nothing
, _sucAccessToken = Nothing
, _sucUploadType = Nothing
, _sucProjectId = Nothing
, _sucCallback = Nothing
}
sucXgafv :: Lens' SignupURLsCreate (Maybe Xgafv)
sucXgafv = lens _sucXgafv (\ s a -> s{_sucXgafv = a})
sucUploadProtocol :: Lens' SignupURLsCreate (Maybe Text)
sucUploadProtocol
= lens _sucUploadProtocol
(\ s a -> s{_sucUploadProtocol = a})
sucCallbackURL :: Lens' SignupURLsCreate (Maybe Text)
sucCallbackURL
= lens _sucCallbackURL
(\ s a -> s{_sucCallbackURL = a})
sucAccessToken :: Lens' SignupURLsCreate (Maybe Text)
sucAccessToken
= lens _sucAccessToken
(\ s a -> s{_sucAccessToken = a})
sucUploadType :: Lens' SignupURLsCreate (Maybe Text)
sucUploadType
= lens _sucUploadType
(\ s a -> s{_sucUploadType = a})
sucProjectId :: Lens' SignupURLsCreate (Maybe Text)
sucProjectId
= lens _sucProjectId (\ s a -> s{_sucProjectId = a})
sucCallback :: Lens' SignupURLsCreate (Maybe Text)
sucCallback
= lens _sucCallback (\ s a -> s{_sucCallback = a})
instance GoogleRequest SignupURLsCreate where
type Rs SignupURLsCreate = SignupURL
type Scopes SignupURLsCreate =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient SignupURLsCreate'{..}
= go _sucXgafv _sucUploadProtocol _sucCallbackURL
_sucAccessToken
_sucUploadType
_sucProjectId
_sucCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy SignupURLsCreateResource)
mempty