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 |
Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000. To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design.
See: Google Play EMM API Reference for androidenterprise.products.approve
.
Synopsis
- type ProductsApproveResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("products" :> (Capture "productId" Text :> ("approve" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProductsApproveRequest :> Post '[JSON] ()))))))))
- productsApprove :: Text -> ProductsApproveRequest -> Text -> ProductsApprove
- data ProductsApprove
- paEnterpriseId :: Lens' ProductsApprove Text
- paPayload :: Lens' ProductsApprove ProductsApproveRequest
- paProductId :: Lens' ProductsApprove Text
REST Resource
type ProductsApproveResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("products" :> (Capture "productId" Text :> ("approve" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProductsApproveRequest :> Post '[JSON] ())))))))) Source #
A resource alias for androidenterprise.products.approve
method which the
ProductsApprove
request conforms to.
Creating a Request
Creates a value of ProductsApprove
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductsApprove Source #
Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000. To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design.
See: productsApprove
smart constructor.
Instances
Request Lenses
paEnterpriseId :: Lens' ProductsApprove Text Source #
The ID of the enterprise.
paPayload :: Lens' ProductsApprove ProductsApproveRequest Source #
Multipart request metadata.
paProductId :: Lens' ProductsApprove Text Source #
The ID of the product.