{-# 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.CloudAsset.Organizations.Operations.Get
(
OrganizationsOperationsGetResource
, organizationsOperationsGet
, OrganizationsOperationsGet
, oogXgafv
, oogUploadProtocol
, oogAccessToken
, oogUploadType
, oogName
, oogCallback
) where
import Network.Google.CloudAsset.Types
import Network.Google.Prelude
type OrganizationsOperationsGetResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data OrganizationsOperationsGet = OrganizationsOperationsGet'
{ _oogXgafv :: !(Maybe Xgafv)
, _oogUploadProtocol :: !(Maybe Text)
, _oogAccessToken :: !(Maybe Text)
, _oogUploadType :: !(Maybe Text)
, _oogName :: !Text
, _oogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsOperationsGet
:: Text
-> OrganizationsOperationsGet
organizationsOperationsGet pOogName_ =
OrganizationsOperationsGet'
{ _oogXgafv = Nothing
, _oogUploadProtocol = Nothing
, _oogAccessToken = Nothing
, _oogUploadType = Nothing
, _oogName = pOogName_
, _oogCallback = Nothing
}
oogXgafv :: Lens' OrganizationsOperationsGet (Maybe Xgafv)
oogXgafv = lens _oogXgafv (\ s a -> s{_oogXgafv = a})
oogUploadProtocol :: Lens' OrganizationsOperationsGet (Maybe Text)
oogUploadProtocol
= lens _oogUploadProtocol
(\ s a -> s{_oogUploadProtocol = a})
oogAccessToken :: Lens' OrganizationsOperationsGet (Maybe Text)
oogAccessToken
= lens _oogAccessToken
(\ s a -> s{_oogAccessToken = a})
oogUploadType :: Lens' OrganizationsOperationsGet (Maybe Text)
oogUploadType
= lens _oogUploadType
(\ s a -> s{_oogUploadType = a})
oogName :: Lens' OrganizationsOperationsGet Text
oogName = lens _oogName (\ s a -> s{_oogName = a})
oogCallback :: Lens' OrganizationsOperationsGet (Maybe Text)
oogCallback
= lens _oogCallback (\ s a -> s{_oogCallback = a})
instance GoogleRequest OrganizationsOperationsGet
where
type Rs OrganizationsOperationsGet = Operation
type Scopes OrganizationsOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsOperationsGet'{..}
= go _oogName _oogXgafv _oogUploadProtocol
_oogAccessToken
_oogUploadType
_oogCallback
(Just AltJSON)
cloudAssetService
where go
= buildClient
(Proxy :: Proxy OrganizationsOperationsGetResource)
mempty