{-# 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.Indexing.URLNotifications.GetMetadata
    (
    
      URLNotificationsGetMetadataResource
    
    , urlNotificationsGetMetadata
    , URLNotificationsGetMetadata
    
    , ungmXgafv
    , ungmUploadProtocol
    , ungmAccessToken
    , ungmURL
    , ungmUploadType
    , ungmCallback
    ) where
import           Network.Google.Indexing.Types
import           Network.Google.Prelude
type URLNotificationsGetMetadataResource =
     "v3" :>
       "urlNotifications" :>
         "metadata" :>
           QueryParam "$.xgafv" Xgafv :>
             QueryParam "upload_protocol" Text :>
               QueryParam "access_token" Text :>
                 QueryParam "url" Text :>
                   QueryParam "uploadType" Text :>
                     QueryParam "callback" Text :>
                       QueryParam "alt" AltJSON :>
                         Get '[JSON] URLNotificationMetadata
data URLNotificationsGetMetadata = URLNotificationsGetMetadata'
    { _ungmXgafv          :: !(Maybe Xgafv)
    , _ungmUploadProtocol :: !(Maybe Text)
    , _ungmAccessToken    :: !(Maybe Text)
    , _ungmURL            :: !(Maybe Text)
    , _ungmUploadType     :: !(Maybe Text)
    , _ungmCallback       :: !(Maybe Text)
    } deriving (Eq,Show,Data,Typeable,Generic)
urlNotificationsGetMetadata
    :: URLNotificationsGetMetadata
urlNotificationsGetMetadata =
    URLNotificationsGetMetadata'
    { _ungmXgafv = Nothing
    , _ungmUploadProtocol = Nothing
    , _ungmAccessToken = Nothing
    , _ungmURL = Nothing
    , _ungmUploadType = Nothing
    , _ungmCallback = Nothing
    }
ungmXgafv :: Lens' URLNotificationsGetMetadata (Maybe Xgafv)
ungmXgafv
  = lens _ungmXgafv (\ s a -> s{_ungmXgafv = a})
ungmUploadProtocol :: Lens' URLNotificationsGetMetadata (Maybe Text)
ungmUploadProtocol
  = lens _ungmUploadProtocol
      (\ s a -> s{_ungmUploadProtocol = a})
ungmAccessToken :: Lens' URLNotificationsGetMetadata (Maybe Text)
ungmAccessToken
  = lens _ungmAccessToken
      (\ s a -> s{_ungmAccessToken = a})
ungmURL :: Lens' URLNotificationsGetMetadata (Maybe Text)
ungmURL = lens _ungmURL (\ s a -> s{_ungmURL = a})
ungmUploadType :: Lens' URLNotificationsGetMetadata (Maybe Text)
ungmUploadType
  = lens _ungmUploadType
      (\ s a -> s{_ungmUploadType = a})
ungmCallback :: Lens' URLNotificationsGetMetadata (Maybe Text)
ungmCallback
  = lens _ungmCallback (\ s a -> s{_ungmCallback = a})
instance GoogleRequest URLNotificationsGetMetadata
         where
        type Rs URLNotificationsGetMetadata =
             URLNotificationMetadata
        type Scopes URLNotificationsGetMetadata =
             '["https://www.googleapis.com/auth/indexing"]
        requestClient URLNotificationsGetMetadata'{..}
          = go _ungmXgafv _ungmUploadProtocol _ungmAccessToken
              _ungmURL
              _ungmUploadType
              _ungmCallback
              (Just AltJSON)
              indexingService
          where go
                  = buildClient
                      (Proxy :: Proxy URLNotificationsGetMetadataResource)
                      mempty