{-# 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.AndroidEnterprise.Products.GetAppRestrictionsSchema
(
ProductsGetAppRestrictionsSchemaResource
, productsGetAppRestrictionsSchema
, ProductsGetAppRestrictionsSchema
, pgarsEnterpriseId
, pgarsLanguage
, pgarsProductId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ProductsGetAppRestrictionsSchemaResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"products" :>
Capture "productId" Text :>
"appRestrictionsSchema" :>
QueryParam "language" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] AppRestrictionsSchema
data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema'
{ _pgarsEnterpriseId :: !Text
, _pgarsLanguage :: !(Maybe Text)
, _pgarsProductId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
productsGetAppRestrictionsSchema
:: Text
-> Text
-> ProductsGetAppRestrictionsSchema
productsGetAppRestrictionsSchema pPgarsEnterpriseId_ pPgarsProductId_ =
ProductsGetAppRestrictionsSchema'
{ _pgarsEnterpriseId = pPgarsEnterpriseId_
, _pgarsLanguage = Nothing
, _pgarsProductId = pPgarsProductId_
}
pgarsEnterpriseId :: Lens' ProductsGetAppRestrictionsSchema Text
pgarsEnterpriseId
= lens _pgarsEnterpriseId
(\ s a -> s{_pgarsEnterpriseId = a})
pgarsLanguage :: Lens' ProductsGetAppRestrictionsSchema (Maybe Text)
pgarsLanguage
= lens _pgarsLanguage
(\ s a -> s{_pgarsLanguage = a})
pgarsProductId :: Lens' ProductsGetAppRestrictionsSchema Text
pgarsProductId
= lens _pgarsProductId
(\ s a -> s{_pgarsProductId = a})
instance GoogleRequest
ProductsGetAppRestrictionsSchema where
type Rs ProductsGetAppRestrictionsSchema =
AppRestrictionsSchema
type Scopes ProductsGetAppRestrictionsSchema =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ProductsGetAppRestrictionsSchema'{..}
= go _pgarsEnterpriseId _pgarsProductId
_pgarsLanguage
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ProductsGetAppRestrictionsSchemaResource)
mempty