gogol-android-enterprise-0.4.0: Google Play EMM SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Contents

Description

Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.

See: Google Play EMM API Reference for androidenterprise.products.generateApprovalUrl.

Synopsis

REST Resource

type ProductsGenerateApprovalURLResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("products" :> (Capture "productId" Text :> ("generateApprovalUrl" :> (QueryParam "languageCode" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ProductsGenerateApprovalURLResponse)))))))) Source #

A resource alias for androidenterprise.products.generateApprovalUrl method which the ProductsGenerateApprovalURL request conforms to.

Creating a Request

productsGenerateApprovalURL Source #

Creates a value of ProductsGenerateApprovalURL with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProductsGenerateApprovalURL Source #

Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.

See: productsGenerateApprovalURL smart constructor.

Instances
Eq ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Data ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProductsGenerateApprovalURL -> c ProductsGenerateApprovalURL #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProductsGenerateApprovalURL #

toConstr :: ProductsGenerateApprovalURL -> Constr #

dataTypeOf :: ProductsGenerateApprovalURL -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProductsGenerateApprovalURL) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProductsGenerateApprovalURL) #

gmapT :: (forall b. Data b => b -> b) -> ProductsGenerateApprovalURL -> ProductsGenerateApprovalURL #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProductsGenerateApprovalURL -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProductsGenerateApprovalURL -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProductsGenerateApprovalURL -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProductsGenerateApprovalURL -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProductsGenerateApprovalURL -> m ProductsGenerateApprovalURL #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProductsGenerateApprovalURL -> m ProductsGenerateApprovalURL #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProductsGenerateApprovalURL -> m ProductsGenerateApprovalURL #

Show ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Generic ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Associated Types

type Rep ProductsGenerateApprovalURL :: Type -> Type #

GoogleRequest ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

type Rep ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

type Rep ProductsGenerateApprovalURL = D1 (MetaData "ProductsGenerateApprovalURL" "Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "ProductsGenerateApprovalURL'" PrefixI True) (S1 (MetaSel (Just "_pgauLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pgauEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pgauProductId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

type Scopes ProductsGenerateApprovalURL = "https://www.googleapis.com/auth/androidenterprise" ': ([] :: [Symbol])
type Rs ProductsGenerateApprovalURL Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL

Request Lenses

pgauLanguageCode :: Lens' ProductsGenerateApprovalURL (Maybe Text) Source #

The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US".