Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- type ProductsGenerateApprovalURLResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("products" :> (Capture "productId" Text :> ("generateApprovalUrl" :> (QueryParam "languageCode" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ProductsGenerateApprovalURLResponse))))))))
- productsGenerateApprovalURL :: Text -> Text -> ProductsGenerateApprovalURL
- data ProductsGenerateApprovalURL
- pgauLanguageCode :: Lens' ProductsGenerateApprovalURL (Maybe Text)
- pgauEnterpriseId :: Lens' ProductsGenerateApprovalURL Text
- pgauProductId :: Lens' ProductsGenerateApprovalURL Text
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
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".
pgauEnterpriseId :: Lens' ProductsGenerateApprovalURL Text Source #
The ID of the enterprise.
pgauProductId :: Lens' ProductsGenerateApprovalURL Text Source #
The ID of the product.