gogol-android-enterprise 0.0.1 → 0.1.0
raw patch · 70 files changed
+3043/−450 lines, 70 filesdep ~gogol-core
Dependency ranges changed: gogol-core
Files
- README.md +3/−3
- gen/Network/Google/AndroidEnterprise.hs +147/−6
- gen/Network/Google/AndroidEnterprise/Types.hs +70/−5
- gen/Network/Google/AndroidEnterprise/Types/Product.hs +738/−157
- gen/Network/Google/AndroidEnterprise/Types/Sum.hs +1/−1
- gen/Network/Google/Resource/AndroidEnterprise/Collections/Delete.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collections/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collections/Insert.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collections/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collections/Patch.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collections/Update.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Delete.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Patch.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Update.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Devices/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Devices/GetState.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Devices/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Devices/SetState.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Delete.hs +9/−7
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Enroll.hs +10/−8
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetStoreLayout.hs +89/−0
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Insert.hs +10/−8
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SendTestPushNotification.hs +10/−7
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetAccount.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs +102/−0
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Unenroll.hs +9/−7
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Delete.hs +9/−6
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Get.hs +9/−6
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Patch.hs +9/−6
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Update.hs +9/−6
- gen/Network/Google/Resource/AndroidEnterprise/GrouplicenseUsers/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Delete.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Installs/List.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Patch.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Update.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Permissions/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs +17/−9
- gen/Network/Google/Resource/AndroidEnterprise/Products/GenerateApprovalURL.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Products/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Products/GetPermissions.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs +156/−0
- gen/Network/Google/Resource/AndroidEnterprise/Products/UpdatePermissions.hs +19/−9
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Delete.hs +116/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Get.hs +115/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Insert.hs +114/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/List.hs +104/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Patch.hs +129/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Update.hs +130/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Delete.hs +100/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Get.hs +100/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Insert.hs +101/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/List.hs +91/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Patch.hs +115/−0
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Update.hs +113/−0
- gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs +9/−7
- gen/Network/Google/Resource/AndroidEnterprise/Users/Get.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Users/GetAvailableProductSet.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Users/List.hs +9/−7
- gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeToken.hs +7/−5
- gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs +7/−5
- gogol-android-enterprise.cabal +19/−5
README.md view
@@ -8,7 +8,7 @@ ## Version -`0.0.1`+`0.1.0` ## Description@@ -18,9 +18,9 @@ ## Contribute -For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).+For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/gogol/issues). -> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+> _Note:_ this library is an auto-generated Haskell package. Please see `gogol-gen` for more information. ## Licence
gen/Network/Google/AndroidEnterprise.hs view
@@ -7,21 +7,23 @@ -- | -- Module : Network.Google.AndroidEnterprise--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Allows MDMs\/EMMs and enterprises to manage the deployment of apps to--- Android for Work users.+-- Manages the deployment of apps to Android for Work users. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference>+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> module Network.Google.AndroidEnterprise ( -- * Service Configuration androidEnterpriseService + -- * OAuth Scopes+ , androidEnterpriseScope+ -- * API Declaration , AndroidEnterpriseAPI @@ -81,6 +83,9 @@ -- ** androidenterprise.enterprises.get , module Network.Google.Resource.AndroidEnterprise.Enterprises.Get + -- ** androidenterprise.enterprises.getStoreLayout+ , module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout+ -- ** androidenterprise.enterprises.insert , module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert @@ -93,6 +98,9 @@ -- ** androidenterprise.enterprises.setAccount , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount + -- ** androidenterprise.enterprises.setStoreLayout+ , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout+ -- ** androidenterprise.enterprises.unenroll , module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll @@ -153,9 +161,48 @@ -- ** androidenterprise.products.getPermissions , module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions + -- ** androidenterprise.products.list+ , module Network.Google.Resource.AndroidEnterprise.Products.List+ -- ** androidenterprise.products.updatePermissions , module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions + -- ** androidenterprise.storelayoutclusters.delete+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete++ -- ** androidenterprise.storelayoutclusters.get+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get++ -- ** androidenterprise.storelayoutclusters.insert+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert++ -- ** androidenterprise.storelayoutclusters.list+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List++ -- ** androidenterprise.storelayoutclusters.patch+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch++ -- ** androidenterprise.storelayoutclusters.update+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update++ -- ** androidenterprise.storelayoutpages.delete+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete++ -- ** androidenterprise.storelayoutpages.get+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get++ -- ** androidenterprise.storelayoutpages.insert+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert++ -- ** androidenterprise.storelayoutpages.list+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List++ -- ** androidenterprise.storelayoutpages.patch+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch++ -- ** androidenterprise.storelayoutpages.update+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update+ -- ** androidenterprise.users.generateToken , module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken @@ -186,6 +233,12 @@ , glProductId , glAcquisitionKind + -- ** StoreLayoutPagesListResponse+ , StoreLayoutPagesListResponse+ , storeLayoutPagesListResponse+ , slplrKind+ , slplrPage+ -- ** EnterpriseAccount , EnterpriseAccount , enterpriseAccount@@ -219,12 +272,40 @@ , glulrKind , glulrUser + -- ** TokenPagination+ , TokenPagination+ , tokenPagination+ , tpNextPageToken+ , tpPreviousPageToken+ -- ** ApprovalURLInfo , ApprovalURLInfo , approvalURLInfo , auiApprovalURL , auiKind + -- ** StoreLayoutClustersListResponse+ , StoreLayoutClustersListResponse+ , storeLayoutClustersListResponse+ , slclrCluster+ , slclrKind++ -- ** StoreCluster+ , StoreCluster+ , storeCluster+ , scKind+ , scName+ , scOrderInPage+ , scId+ , scProductId++ -- ** PageInfo+ , PageInfo+ , pageInfo+ , piResultPerPage+ , piTotalResults+ , piStartIndex+ -- ** ProductPermission , ProductPermission , productPermission@@ -308,6 +389,14 @@ , productsGenerateApprovalURLResponse , pgaurURL + -- ** StorePage+ , StorePage+ , storePage+ , spKind+ , spLink+ , spName+ , spId+ -- ** EnterprisesSendTestPushNotificationResponse , EnterprisesSendTestPushNotificationResponse , enterprisesSendTestPushNotificationResponse@@ -326,6 +415,12 @@ , arsKind , arsRestrictions + -- ** LocalizedText+ , LocalizedText+ , localizedText+ , ltText+ , ltLocale+ -- ** UserToken , UserToken , userToken@@ -347,14 +442,22 @@ , eName , eId + -- ** StoreLayout+ , StoreLayout+ , storeLayout+ , slKind+ , slHomepageId+ -- ** Product , Product , product+ , pSmallIconURL , pAuthorName , pKind , pWorkDetailsURL , pRequiresContainerApp , pAppVersion+ , pProductPricing , pDistributionChannel , pIconURL , pTitle@@ -399,6 +502,14 @@ , eeKind , eeReason , eeProductId++ -- ** ProductsListResponse+ , ProductsListResponse+ , productsListResponse+ , plrTokenPagination+ , plrPageInfo+ , plrKind+ , plrProduct ) where import Network.Google.AndroidEnterprise.Types@@ -421,10 +532,12 @@ import Network.Google.Resource.AndroidEnterprise.Enterprises.Delete import Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll import Network.Google.Resource.AndroidEnterprise.Enterprises.Get+import Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout import Network.Google.Resource.AndroidEnterprise.Enterprises.Insert import Network.Google.Resource.AndroidEnterprise.Enterprises.List import Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification import Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount+import Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout import Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll import Network.Google.Resource.AndroidEnterprise.Entitlements.Delete import Network.Google.Resource.AndroidEnterprise.Entitlements.Get@@ -445,7 +558,20 @@ import Network.Google.Resource.AndroidEnterprise.Products.Get import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions+import Network.Google.Resource.AndroidEnterprise.Products.List import Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update import Network.Google.Resource.AndroidEnterprise.Users.GenerateToken import Network.Google.Resource.AndroidEnterprise.Users.Get import Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet@@ -459,8 +585,14 @@ -- | Represents the entirety of the methods and resources available for the Google Play EMM API service. type AndroidEnterpriseAPI =- CollectionviewersListResource :<|>- CollectionviewersPatchResource+ StorelayoutclustersInsertResource :<|>+ StorelayoutclustersListResource+ :<|> StorelayoutclustersPatchResource+ :<|> StorelayoutclustersGetResource+ :<|> StorelayoutclustersDeleteResource+ :<|> StorelayoutclustersUpdateResource+ :<|> CollectionviewersListResource+ :<|> CollectionviewersPatchResource :<|> CollectionviewersGetResource :<|> CollectionviewersDeleteResource :<|> CollectionviewersUpdateResource@@ -475,6 +607,12 @@ :<|> InstallsGetResource :<|> InstallsDeleteResource :<|> InstallsUpdateResource+ :<|> StorelayoutpagesInsertResource+ :<|> StorelayoutpagesListResource+ :<|> StorelayoutpagesPatchResource+ :<|> StorelayoutpagesGetResource+ :<|> StorelayoutpagesDeleteResource+ :<|> StorelayoutpagesUpdateResource :<|> CollectionsInsertResource :<|> CollectionsListResource :<|> CollectionsPatchResource@@ -484,10 +622,12 @@ :<|> EnterprisesInsertResource :<|> EnterprisesListResource :<|> EnterprisesUnenrollResource+ :<|> EnterprisesGetStoreLayoutResource :<|> EnterprisesSetAccountResource :<|> EnterprisesEnrollResource :<|> EnterprisesGetResource :<|> EnterprisesSendTestPushNotificationResource+ :<|> EnterprisesSetStoreLayoutResource :<|> EnterprisesDeleteResource :<|> GrouplicensesListResource :<|> GrouplicensesGetResource@@ -498,6 +638,7 @@ :<|> EntitlementsUpdateResource :<|> PermissionsGetResource :<|> ProductsGenerateApprovalURLResource+ :<|> ProductsListResource :<|> ProductsGetResource :<|> ProductsGetAppRestrictionsSchemaResource :<|> ProductsApproveResource
gen/Network/Google/AndroidEnterprise/Types.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-}@@ -7,7 +8,7 @@ -- | -- Module : Network.Google.AndroidEnterprise.Types--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -19,7 +20,7 @@ androidEnterpriseService -- * OAuth Scopes- , androidenterpriseScope+ , androidEnterpriseScope -- * GroupLicense , GroupLicense@@ -31,6 +32,12 @@ , glProductId , glAcquisitionKind + -- * StoreLayoutPagesListResponse+ , StoreLayoutPagesListResponse+ , storeLayoutPagesListResponse+ , slplrKind+ , slplrPage+ -- * EnterpriseAccount , EnterpriseAccount , enterpriseAccount@@ -64,12 +71,40 @@ , glulrKind , glulrUser + -- * TokenPagination+ , TokenPagination+ , tokenPagination+ , tpNextPageToken+ , tpPreviousPageToken+ -- * ApprovalURLInfo , ApprovalURLInfo , approvalURLInfo , auiApprovalURL , auiKind + -- * StoreLayoutClustersListResponse+ , StoreLayoutClustersListResponse+ , storeLayoutClustersListResponse+ , slclrCluster+ , slclrKind++ -- * StoreCluster+ , StoreCluster+ , storeCluster+ , scKind+ , scName+ , scOrderInPage+ , scId+ , scProductId++ -- * PageInfo+ , PageInfo+ , pageInfo+ , piResultPerPage+ , piTotalResults+ , piStartIndex+ -- * ProductPermission , ProductPermission , productPermission@@ -153,6 +188,14 @@ , productsGenerateApprovalURLResponse , pgaurURL + -- * StorePage+ , StorePage+ , storePage+ , spKind+ , spLink+ , spName+ , spId+ -- * EnterprisesSendTestPushNotificationResponse , EnterprisesSendTestPushNotificationResponse , enterprisesSendTestPushNotificationResponse@@ -171,6 +214,12 @@ , arsKind , arsRestrictions + -- * LocalizedText+ , LocalizedText+ , localizedText+ , ltText+ , ltLocale+ -- * UserToken , UserToken , userToken@@ -192,14 +241,22 @@ , eName , eId + -- * StoreLayout+ , StoreLayout+ , storeLayout+ , slKind+ , slHomepageId+ -- * Product , Product , product+ , pSmallIconURL , pAuthorName , pKind , pWorkDetailsURL , pRequiresContainerApp , pAppVersion+ , pProductPricing , pDistributionChannel , pIconURL , pTitle@@ -244,6 +301,14 @@ , eeKind , eeReason , eeProductId++ -- * ProductsListResponse+ , ProductsListResponse+ , productsListResponse+ , plrTokenPagination+ , plrPageInfo+ , plrKind+ , plrProduct ) where import Network.Google.AndroidEnterprise.Types.Product@@ -251,11 +316,11 @@ import Network.Google.Prelude -- | Default request referring to version 'v1' of the Google Play EMM API. This contains the host and root path used as a starting point for constructing service requests.-androidEnterpriseService :: Service+androidEnterpriseService :: ServiceConfig androidEnterpriseService = defaultService (ServiceId "androidenterprise:v1") "www.googleapis.com" -- | Manage corporate Android devices-androidenterpriseScope :: OAuthScope-androidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise";+androidEnterpriseScope :: Proxy '["https://www.googleapis.com/auth/androidenterprise"]+androidEnterpriseScope = Proxy;
gen/Network/Google/AndroidEnterprise/Types/Product.hs view
@@ -9,7 +9,7 @@ -- | -- Module : Network.Google.AndroidEnterprise.Types.Product--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -39,7 +39,7 @@ -- marking it as unapproved in Google Play. -- -- /See:/ 'groupLicense' smart constructor.-data GroupLicense = GroupLicense+data GroupLicense = GroupLicense' { _glKind :: !Text , _glNumProvisioned :: !(Maybe (Textual Int32)) , _glNumPurchased :: !(Maybe (Textual Int32))@@ -66,7 +66,7 @@ groupLicense :: GroupLicense groupLicense =- GroupLicense+ GroupLicense' { _glKind = "androidenterprise#groupLicense" , _glNumProvisioned = Nothing , _glNumPurchased = Nothing@@ -126,7 +126,7 @@ parseJSON = withObject "GroupLicense" (\ o ->- GroupLicense <$>+ GroupLicense' <$> (o .:? "kind" .!= "androidenterprise#groupLicense") <*> (o .:? "numProvisioned") <*> (o .:? "numPurchased")@@ -135,7 +135,7 @@ <*> (o .:? "acquisitionKind")) instance ToJSON GroupLicense where- toJSON GroupLicense{..}+ toJSON GroupLicense'{..} = object (catMaybes [Just ("kind" .= _glKind),@@ -145,11 +145,63 @@ ("productId" .=) <$> _glProductId, ("acquisitionKind" .=) <$> _glAcquisitionKind]) +-- | The store page resources for the enterprise.+--+-- /See:/ 'storeLayoutPagesListResponse' smart constructor.+data StoreLayoutPagesListResponse = StoreLayoutPagesListResponse'+ { _slplrKind :: !Text+ , _slplrPage :: !(Maybe [StorePage])+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StoreLayoutPagesListResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slplrKind'+--+-- * 'slplrPage'+storeLayoutPagesListResponse+ :: StoreLayoutPagesListResponse+storeLayoutPagesListResponse =+ StoreLayoutPagesListResponse'+ { _slplrKind = "androidenterprise#storeLayoutPagesListResponse"+ , _slplrPage = Nothing+ }++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#storeLayoutPagesListResponse\".+slplrKind :: Lens' StoreLayoutPagesListResponse Text+slplrKind+ = lens _slplrKind (\ s a -> s{_slplrKind = a})++-- | A store page of an enterprise.+slplrPage :: Lens' StoreLayoutPagesListResponse [StorePage]+slplrPage+ = lens _slplrPage (\ s a -> s{_slplrPage = a}) .+ _Default+ . _Coerce++instance FromJSON StoreLayoutPagesListResponse where+ parseJSON+ = withObject "StoreLayoutPagesListResponse"+ (\ o ->+ StoreLayoutPagesListResponse' <$>+ (o .:? "kind" .!=+ "androidenterprise#storeLayoutPagesListResponse")+ <*> (o .:? "page" .!= mempty))++instance ToJSON StoreLayoutPagesListResponse where+ toJSON StoreLayoutPagesListResponse'{..}+ = object+ (catMaybes+ [Just ("kind" .= _slplrKind),+ ("page" .=) <$> _slplrPage])+ -- | A service account that can be used to authenticate as the enterprise to -- API calls that require such authentication. -- -- /See:/ 'enterpriseAccount' smart constructor.-data EnterpriseAccount = EnterpriseAccount+data EnterpriseAccount = EnterpriseAccount' { _eaKind :: !Text , _eaAccountEmail :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic)@@ -164,7 +216,7 @@ enterpriseAccount :: EnterpriseAccount enterpriseAccount =- EnterpriseAccount+ EnterpriseAccount' { _eaKind = "androidenterprise#enterpriseAccount" , _eaAccountEmail = Nothing }@@ -184,13 +236,13 @@ parseJSON = withObject "EnterpriseAccount" (\ o ->- EnterpriseAccount <$>+ EnterpriseAccount' <$> (o .:? "kind" .!= "androidenterprise#enterpriseAccount") <*> (o .:? "accountEmail")) instance ToJSON EnterpriseAccount where- toJSON EnterpriseAccount{..}+ toJSON EnterpriseAccount'{..} = object (catMaybes [Just ("kind" .= _eaKind),@@ -199,7 +251,7 @@ -- | The collection resources for the enterprise. -- -- /See:/ 'collectionsListResponse' smart constructor.-data CollectionsListResponse = CollectionsListResponse+data CollectionsListResponse = CollectionsListResponse' { _clrKind :: !Text , _clrCollection :: !(Maybe [Collection]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -214,7 +266,7 @@ collectionsListResponse :: CollectionsListResponse collectionsListResponse =- CollectionsListResponse+ CollectionsListResponse' { _clrKind = "androidenterprise#collectionsListResponse" , _clrCollection = Nothing }@@ -237,13 +289,13 @@ parseJSON = withObject "CollectionsListResponse" (\ o ->- CollectionsListResponse <$>+ CollectionsListResponse' <$> (o .:? "kind" .!= "androidenterprise#collectionsListResponse") <*> (o .:? "collection" .!= mempty)) instance ToJSON CollectionsListResponse where- toJSON CollectionsListResponse{..}+ toJSON CollectionsListResponse'{..} = object (catMaybes [Just ("kind" .= _clrKind),@@ -252,7 +304,7 @@ -- | A typed value for the restriction. -- -- /See:/ 'appRestrictionsSchemaRestrictionRestrictionValue' smart constructor.-data AppRestrictionsSchemaRestrictionRestrictionValue = AppRestrictionsSchemaRestrictionRestrictionValue+data AppRestrictionsSchemaRestrictionRestrictionValue = AppRestrictionsSchemaRestrictionRestrictionValue' { _arsrrvValueMultiselect :: !(Maybe [Text]) , _arsrrvValueBool :: !(Maybe Bool) , _arsrrvValueInteger :: !(Maybe (Textual Int32))@@ -276,7 +328,7 @@ appRestrictionsSchemaRestrictionRestrictionValue :: AppRestrictionsSchemaRestrictionRestrictionValue appRestrictionsSchemaRestrictionRestrictionValue =- AppRestrictionsSchemaRestrictionRestrictionValue+ AppRestrictionsSchemaRestrictionRestrictionValue' { _arsrrvValueMultiselect = Nothing , _arsrrvValueBool = Nothing , _arsrrvValueInteger = Nothing@@ -325,7 +377,7 @@ = withObject "AppRestrictionsSchemaRestrictionRestrictionValue" (\ o ->- AppRestrictionsSchemaRestrictionRestrictionValue <$>+ AppRestrictionsSchemaRestrictionRestrictionValue' <$> (o .:? "valueMultiselect" .!= mempty) <*> (o .:? "valueBool") <*> (o .:? "valueInteger")@@ -336,7 +388,7 @@ AppRestrictionsSchemaRestrictionRestrictionValue where toJSON- AppRestrictionsSchemaRestrictionRestrictionValue{..}+ AppRestrictionsSchemaRestrictionRestrictionValue'{..} = object (catMaybes [("valueMultiselect" .=) <$> _arsrrvValueMultiselect,@@ -349,7 +401,7 @@ -- methods on device resources. -- -- /See:/ 'deviceState' smart constructor.-data DeviceState = DeviceState+data DeviceState = DeviceState' { _dsKind :: !Text , _dsAccountState :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic)@@ -364,7 +416,7 @@ deviceState :: DeviceState deviceState =- DeviceState+ DeviceState' { _dsKind = "androidenterprise#deviceState" , _dsAccountState = Nothing }@@ -387,12 +439,12 @@ parseJSON = withObject "DeviceState" (\ o ->- DeviceState <$>+ DeviceState' <$> (o .:? "kind" .!= "androidenterprise#deviceState") <*> (o .:? "accountState")) instance ToJSON DeviceState where- toJSON DeviceState{..}+ toJSON DeviceState'{..} = object (catMaybes [Just ("kind" .= _dsKind),@@ -401,7 +453,7 @@ -- | The user resources for the group license. -- -- /See:/ 'groupLicenseUsersListResponse' smart constructor.-data GroupLicenseUsersListResponse = GroupLicenseUsersListResponse+data GroupLicenseUsersListResponse = GroupLicenseUsersListResponse' { _glulrKind :: !Text , _glulrUser :: !(Maybe [User]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -416,7 +468,7 @@ groupLicenseUsersListResponse :: GroupLicenseUsersListResponse groupLicenseUsersListResponse =- GroupLicenseUsersListResponse+ GroupLicenseUsersListResponse' { _glulrKind = "androidenterprise#groupLicenseUsersListResponse" , _glulrUser = Nothing }@@ -438,22 +490,69 @@ parseJSON = withObject "GroupLicenseUsersListResponse" (\ o ->- GroupLicenseUsersListResponse <$>+ GroupLicenseUsersListResponse' <$> (o .:? "kind" .!= "androidenterprise#groupLicenseUsersListResponse") <*> (o .:? "user" .!= mempty)) instance ToJSON GroupLicenseUsersListResponse where- toJSON GroupLicenseUsersListResponse{..}+ toJSON GroupLicenseUsersListResponse'{..} = object (catMaybes [Just ("kind" .= _glulrKind), ("user" .=) <$> _glulrUser]) +--+-- /See:/ 'tokenPagination' smart constructor.+data TokenPagination = TokenPagination'+ { _tpNextPageToken :: !(Maybe Text)+ , _tpPreviousPageToken :: !(Maybe Text)+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'TokenPagination' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tpNextPageToken'+--+-- * 'tpPreviousPageToken'+tokenPagination+ :: TokenPagination+tokenPagination =+ TokenPagination'+ { _tpNextPageToken = Nothing+ , _tpPreviousPageToken = Nothing+ }++tpNextPageToken :: Lens' TokenPagination (Maybe Text)+tpNextPageToken+ = lens _tpNextPageToken+ (\ s a -> s{_tpNextPageToken = a})++tpPreviousPageToken :: Lens' TokenPagination (Maybe Text)+tpPreviousPageToken+ = lens _tpPreviousPageToken+ (\ s a -> s{_tpPreviousPageToken = a})++instance FromJSON TokenPagination where+ parseJSON+ = withObject "TokenPagination"+ (\ o ->+ TokenPagination' <$>+ (o .:? "nextPageToken") <*>+ (o .:? "previousPageToken"))++instance ToJSON TokenPagination where+ toJSON TokenPagination'{..}+ = object+ (catMaybes+ [("nextPageToken" .=) <$> _tpNextPageToken,+ ("previousPageToken" .=) <$> _tpPreviousPageToken])+ -- | Information on an approval URL. -- -- /See:/ 'approvalURLInfo' smart constructor.-data ApprovalURLInfo = ApprovalURLInfo+data ApprovalURLInfo = ApprovalURLInfo' { _auiApprovalURL :: !(Maybe Text) , _auiKind :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -468,7 +567,7 @@ approvalURLInfo :: ApprovalURLInfo approvalURLInfo =- ApprovalURLInfo+ ApprovalURLInfo' { _auiApprovalURL = Nothing , _auiKind = "androidenterprise#approvalUrlInfo" }@@ -489,18 +588,223 @@ parseJSON = withObject "ApprovalURLInfo" (\ o ->- ApprovalURLInfo <$>+ ApprovalURLInfo' <$> (o .:? "approvalUrl") <*> (o .:? "kind" .!= "androidenterprise#approvalUrlInfo")) instance ToJSON ApprovalURLInfo where- toJSON ApprovalURLInfo{..}+ toJSON ApprovalURLInfo'{..} = object (catMaybes [("approvalUrl" .=) <$> _auiApprovalURL, Just ("kind" .= _auiKind)]) +-- | The store page resources for the enterprise.+--+-- /See:/ 'storeLayoutClustersListResponse' smart constructor.+data StoreLayoutClustersListResponse = StoreLayoutClustersListResponse'+ { _slclrCluster :: !(Maybe [StoreCluster])+ , _slclrKind :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StoreLayoutClustersListResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slclrCluster'+--+-- * 'slclrKind'+storeLayoutClustersListResponse+ :: StoreLayoutClustersListResponse+storeLayoutClustersListResponse =+ StoreLayoutClustersListResponse'+ { _slclrCluster = Nothing+ , _slclrKind = "androidenterprise#storeLayoutClustersListResponse"+ }++-- | A store cluster of an enterprise.+slclrCluster :: Lens' StoreLayoutClustersListResponse [StoreCluster]+slclrCluster+ = lens _slclrCluster (\ s a -> s{_slclrCluster = a})+ . _Default+ . _Coerce++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#storeLayoutClustersListResponse\".+slclrKind :: Lens' StoreLayoutClustersListResponse Text+slclrKind+ = lens _slclrKind (\ s a -> s{_slclrKind = a})++instance FromJSON StoreLayoutClustersListResponse+ where+ parseJSON+ = withObject "StoreLayoutClustersListResponse"+ (\ o ->+ StoreLayoutClustersListResponse' <$>+ (o .:? "cluster" .!= mempty) <*>+ (o .:? "kind" .!=+ "androidenterprise#storeLayoutClustersListResponse"))++instance ToJSON StoreLayoutClustersListResponse where+ toJSON StoreLayoutClustersListResponse'{..}+ = object+ (catMaybes+ [("cluster" .=) <$> _slclrCluster,+ Just ("kind" .= _slclrKind)])++-- | Definition of a Google Play for Work store cluster, a list of products+-- displayed as part of a store page.+--+-- /See:/ 'storeCluster' smart constructor.+data StoreCluster = StoreCluster'+ { _scKind :: !Text+ , _scName :: !(Maybe [LocalizedText])+ , _scOrderInPage :: !(Maybe Text)+ , _scId :: !(Maybe Text)+ , _scProductId :: !(Maybe [Text])+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StoreCluster' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scKind'+--+-- * 'scName'+--+-- * 'scOrderInPage'+--+-- * 'scId'+--+-- * 'scProductId'+storeCluster+ :: StoreCluster+storeCluster =+ StoreCluster'+ { _scKind = "androidenterprise#storeCluster"+ , _scName = Nothing+ , _scOrderInPage = Nothing+ , _scId = Nothing+ , _scProductId = Nothing+ }++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#storeCluster\".+scKind :: Lens' StoreCluster Text+scKind = lens _scKind (\ s a -> s{_scKind = a})++-- | Ordered list of localized strings giving the name of this page. The text+-- displayed is the one that best matches the user locale, or the first+-- entry if there is no good match. There needs to be at least one entry.+scName :: Lens' StoreCluster [LocalizedText]+scName+ = lens _scName (\ s a -> s{_scName = a}) . _Default .+ _Coerce++-- | String (US-ASCII only) used to determine order of this cluster within+-- the parent page\'s elements. Page elements are sorted in lexicographic+-- order of this field. Duplicated values are allowed, but ordering between+-- elements with duplicate order is undefined. The value of this field is+-- never visible to a user, it is used solely for the purpose of defining+-- an ordering. Maximum length is 256 characters.+scOrderInPage :: Lens' StoreCluster (Maybe Text)+scOrderInPage+ = lens _scOrderInPage+ (\ s a -> s{_scOrderInPage = a})++-- | Unique ID of this cluster. Assigned by the server. Immutable once+-- assigned.+scId :: Lens' StoreCluster (Maybe Text)+scId = lens _scId (\ s a -> s{_scId = a})++-- | List of products in the order they are displayed in the cluster. There+-- should not be duplicates within a cluster.+scProductId :: Lens' StoreCluster [Text]+scProductId+ = lens _scProductId (\ s a -> s{_scProductId = a}) .+ _Default+ . _Coerce++instance FromJSON StoreCluster where+ parseJSON+ = withObject "StoreCluster"+ (\ o ->+ StoreCluster' <$>+ (o .:? "kind" .!= "androidenterprise#storeCluster")+ <*> (o .:? "name" .!= mempty)+ <*> (o .:? "orderInPage")+ <*> (o .:? "id")+ <*> (o .:? "productId" .!= mempty))++instance ToJSON StoreCluster where+ toJSON StoreCluster'{..}+ = object+ (catMaybes+ [Just ("kind" .= _scKind), ("name" .=) <$> _scName,+ ("orderInPage" .=) <$> _scOrderInPage,+ ("id" .=) <$> _scId,+ ("productId" .=) <$> _scProductId])++--+-- /See:/ 'pageInfo' smart constructor.+data PageInfo = PageInfo'+ { _piResultPerPage :: !(Maybe (Textual Int32))+ , _piTotalResults :: !(Maybe (Textual Int32))+ , _piStartIndex :: !(Maybe (Textual Int32))+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'PageInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'piResultPerPage'+--+-- * 'piTotalResults'+--+-- * 'piStartIndex'+pageInfo+ :: PageInfo+pageInfo =+ PageInfo'+ { _piResultPerPage = Nothing+ , _piTotalResults = Nothing+ , _piStartIndex = Nothing+ }++piResultPerPage :: Lens' PageInfo (Maybe Int32)+piResultPerPage+ = lens _piResultPerPage+ (\ s a -> s{_piResultPerPage = a})+ . mapping _Coerce++piTotalResults :: Lens' PageInfo (Maybe Int32)+piTotalResults+ = lens _piTotalResults+ (\ s a -> s{_piTotalResults = a})+ . mapping _Coerce++piStartIndex :: Lens' PageInfo (Maybe Int32)+piStartIndex+ = lens _piStartIndex (\ s a -> s{_piStartIndex = a})+ . mapping _Coerce++instance FromJSON PageInfo where+ parseJSON+ = withObject "PageInfo"+ (\ o ->+ PageInfo' <$>+ (o .:? "resultPerPage") <*> (o .:? "totalResults")+ <*> (o .:? "startIndex"))++instance ToJSON PageInfo where+ toJSON PageInfo'{..}+ = object+ (catMaybes+ [("resultPerPage" .=) <$> _piResultPerPage,+ ("totalResults" .=) <$> _piTotalResults,+ ("startIndex" .=) <$> _piStartIndex])+ -- | A product permissions resource represents the set of permissions -- required by a specific app and whether or not they have been accepted by -- an enterprise admin. The API can be used to read the set of permissions,@@ -508,7 +812,7 @@ -- accepted. -- -- /See:/ 'productPermission' smart constructor.-data ProductPermission = ProductPermission+data ProductPermission = ProductPermission' { _ppState :: !(Maybe Text) , _ppPermissionId :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic)@@ -523,7 +827,7 @@ productPermission :: ProductPermission productPermission =- ProductPermission+ ProductPermission' { _ppState = Nothing , _ppPermissionId = Nothing }@@ -542,23 +846,23 @@ parseJSON = withObject "ProductPermission" (\ o ->- ProductPermission <$>+ ProductPermission' <$> (o .:? "state") <*> (o .:? "permissionId")) instance ToJSON ProductPermission where- toJSON ProductPermission{..}+ toJSON ProductPermission'{..} = object (catMaybes [("state" .=) <$> _ppState, ("permissionId" .=) <$> _ppPermissionId]) --- | A device resource represents a mobile device managed by the MDM and+-- | A device resource represents a mobile device managed by the EMM and -- belonging to a specific enterprise user. This collection cannot be -- modified via the API; it is automatically populated as devices are set -- up to be managed. -- -- /See:/ 'device' smart constructor.-data Device = Device+data Device = Device' { _dKind :: !Text , _dManagementType :: !(Maybe Text) , _dAndroidId :: !(Maybe Text)@@ -576,7 +880,7 @@ device :: Device device =- Device+ Device' { _dKind = "androidenterprise#device" , _dManagementType = Nothing , _dAndroidId = Nothing@@ -587,12 +891,13 @@ dKind :: Lens' Device Text dKind = lens _dKind (\ s a -> s{_dKind = a}) --- | The mechanism by which this device is managed by the MDM.--- \"managedDevice\" means that the MDM\'s app is a device owner.--- \"managedProfile\" means that the MDM\'s app is the profile owner (and+-- | The mechanism by which this device is managed by the EMM.+-- \"managedDevice\" means that the EMM\'s app is a device owner.+-- \"managedProfile\" means that the EMM\'s app is the profile owner (and -- there is a separate personal profile which is not managed).--- \"containerApp\" means that the MDM\'s app is managing the Android for--- Work container app on the device.+-- \"containerApp\" means that the EMM\'s app is managing the Android for+-- Work container app on the device. ?unmanagedProfile? means that the+-- EMM?s app is managing a managed user on an unmanaged device dManagementType :: Lens' Device (Maybe Text) dManagementType = lens _dManagementType@@ -608,13 +913,13 @@ parseJSON = withObject "Device" (\ o ->- Device <$>+ Device' <$> (o .:? "kind" .!= "androidenterprise#device") <*> (o .:? "managementType") <*> (o .:? "androidId")) instance ToJSON Device where- toJSON Device{..}+ toJSON Device'{..} = object (catMaybes [Just ("kind" .= _dKind),@@ -624,7 +929,7 @@ -- | The install resources for the device. -- -- /See:/ 'installsListResponse' smart constructor.-data InstallsListResponse = InstallsListResponse+data InstallsListResponse = InstallsListResponse' { _ilrKind :: !Text , _ilrInstall :: !(Maybe [Install]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -639,7 +944,7 @@ installsListResponse :: InstallsListResponse installsListResponse =- InstallsListResponse+ InstallsListResponse' { _ilrKind = "androidenterprise#installsListResponse" , _ilrInstall = Nothing }@@ -661,13 +966,13 @@ parseJSON = withObject "InstallsListResponse" (\ o ->- InstallsListResponse <$>+ InstallsListResponse' <$> (o .:? "kind" .!= "androidenterprise#installsListResponse") <*> (o .:? "install" .!= mempty)) instance ToJSON InstallsListResponse where- toJSON InstallsListResponse{..}+ toJSON InstallsListResponse'{..} = object (catMaybes [Just ("kind" .= _ilrKind),@@ -677,7 +982,7 @@ -- configuration that may be pre-applied. -- -- /See:/ 'appRestrictionsSchemaRestriction' smart constructor.-data AppRestrictionsSchemaRestriction = AppRestrictionsSchemaRestriction+data AppRestrictionsSchemaRestriction = AppRestrictionsSchemaRestriction' { _arsrRestrictionType :: !(Maybe Text) , _arsrEntry :: !(Maybe [Text]) , _arsrKey :: !(Maybe Text)@@ -707,7 +1012,7 @@ appRestrictionsSchemaRestriction :: AppRestrictionsSchemaRestriction appRestrictionsSchemaRestriction =- AppRestrictionsSchemaRestriction+ AppRestrictionsSchemaRestriction' { _arsrRestrictionType = Nothing , _arsrEntry = Nothing , _arsrKey = Nothing@@ -768,7 +1073,7 @@ parseJSON = withObject "AppRestrictionsSchemaRestriction" (\ o ->- AppRestrictionsSchemaRestriction <$>+ AppRestrictionsSchemaRestriction' <$> (o .:? "restrictionType") <*> (o .:? "entry" .!= mempty) <*> (o .:? "key")@@ -779,7 +1084,7 @@ instance ToJSON AppRestrictionsSchemaRestriction where- toJSON AppRestrictionsSchemaRestriction{..}+ toJSON AppRestrictionsSchemaRestriction'{..} = object (catMaybes [("restrictionType" .=) <$> _arsrRestrictionType,@@ -792,7 +1097,7 @@ -- | The matching user resources. -- -- /See:/ 'usersListResponse' smart constructor.-data UsersListResponse = UsersListResponse+data UsersListResponse = UsersListResponse' { _ulrKind :: !Text , _ulrUser :: !(Maybe [User]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -807,7 +1112,7 @@ usersListResponse :: UsersListResponse usersListResponse =- UsersListResponse+ UsersListResponse' { _ulrKind = "androidenterprise#usersListResponse" , _ulrUser = Nothing }@@ -827,13 +1132,13 @@ parseJSON = withObject "UsersListResponse" (\ o ->- UsersListResponse <$>+ UsersListResponse' <$> (o .:? "kind" .!= "androidenterprise#usersListResponse") <*> (o .:? "user" .!= mempty)) instance ToJSON UsersListResponse where- toJSON UsersListResponse{..}+ toJSON UsersListResponse'{..} = object (catMaybes [Just ("kind" .= _ulrKind),@@ -842,7 +1147,7 @@ -- | This represents a single version of the app. -- -- /See:/ 'appVersion' smart constructor.-data AppVersion = AppVersion+data AppVersion = AppVersion' { _avVersionCode :: !(Maybe (Textual Int32)) , _avVersionString :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic)@@ -857,7 +1162,7 @@ appVersion :: AppVersion appVersion =- AppVersion+ AppVersion' { _avVersionCode = Nothing , _avVersionString = Nothing }@@ -881,11 +1186,11 @@ parseJSON = withObject "AppVersion" (\ o ->- AppVersion <$>+ AppVersion' <$> (o .:? "versionCode") <*> (o .:? "versionString")) instance ToJSON AppVersion where- toJSON AppVersion{..}+ toJSON AppVersion'{..} = object (catMaybes [("versionCode" .=) <$> _avVersionCode,@@ -894,7 +1199,7 @@ -- | The grouplicense resources for the enterprise. -- -- /See:/ 'groupLicensesListResponse' smart constructor.-data GroupLicensesListResponse = GroupLicensesListResponse+data GroupLicensesListResponse = GroupLicensesListResponse' { _gllrGroupLicense :: !(Maybe [GroupLicense]) , _gllrKind :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -909,7 +1214,7 @@ groupLicensesListResponse :: GroupLicensesListResponse groupLicensesListResponse =- GroupLicensesListResponse+ GroupLicensesListResponse' { _gllrGroupLicense = Nothing , _gllrKind = "androidenterprise#groupLicensesListResponse" }@@ -931,13 +1236,13 @@ parseJSON = withObject "GroupLicensesListResponse" (\ o ->- GroupLicensesListResponse <$>+ GroupLicensesListResponse' <$> (o .:? "groupLicense" .!= mempty) <*> (o .:? "kind" .!= "androidenterprise#groupLicensesListResponse")) instance ToJSON GroupLicensesListResponse where- toJSON GroupLicensesListResponse{..}+ toJSON GroupLicensesListResponse'{..} = object (catMaybes [("groupLicense" .=) <$> _gllrGroupLicense,@@ -956,7 +1261,7 @@ -- policies and the purpose of the apps concerned. -- -- /See:/ 'collection' smart constructor.-data Collection = Collection+data Collection = Collection' { _colKind :: !Text , _colCollectionId :: !(Maybe Text) , _colVisibility :: !(Maybe Text)@@ -980,7 +1285,7 @@ collection :: Collection collection =- Collection+ Collection' { _colKind = "androidenterprise#collection" , _colCollectionId = Nothing , _colVisibility = Nothing@@ -1027,7 +1332,7 @@ parseJSON = withObject "Collection" (\ o ->- Collection <$>+ Collection' <$> (o .:? "kind" .!= "androidenterprise#collection") <*> (o .:? "collectionId") <*> (o .:? "visibility")@@ -1035,7 +1340,7 @@ <*> (o .:? "productId" .!= mempty)) instance ToJSON Collection where- toJSON Collection{..}+ toJSON Collection'{..} = object (catMaybes [Just ("kind" .= _colKind),@@ -1047,7 +1352,7 @@ -- | A set of products. -- -- /See:/ 'productSet' smart constructor.-data ProductSet = ProductSet+data ProductSet = ProductSet' { _psKind :: !Text , _psProductId :: !(Maybe [Text]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1062,7 +1367,7 @@ productSet :: ProductSet productSet =- ProductSet+ ProductSet' { _psKind = "androidenterprise#productSet" , _psProductId = Nothing }@@ -1083,12 +1388,12 @@ parseJSON = withObject "ProductSet" (\ o ->- ProductSet <$>+ ProductSet' <$> (o .:? "kind" .!= "androidenterprise#productSet") <*> (o .:? "productId" .!= mempty)) instance ToJSON ProductSet where- toJSON ProductSet{..}+ toJSON ProductSet'{..} = object (catMaybes [Just ("kind" .= _psKind),@@ -1115,7 +1420,7 @@ -- themselves. -- -- /See:/ 'install' smart constructor.-data Install = Install+data Install = Install' { _iVersionCode :: !(Maybe (Textual Int32)) , _iKind :: !Text , _iInstallState :: !(Maybe Text)@@ -1136,7 +1441,7 @@ install :: Install install =- Install+ Install' { _iVersionCode = Nothing , _iKind = "androidenterprise#install" , _iInstallState = Nothing@@ -1174,14 +1479,14 @@ parseJSON = withObject "Install" (\ o ->- Install <$>+ Install' <$> (o .:? "versionCode") <*> (o .:? "kind" .!= "androidenterprise#install") <*> (o .:? "installState") <*> (o .:? "productId")) instance ToJSON Install where- toJSON Install{..}+ toJSON Install'{..} = object (catMaybes [("versionCode" .=) <$> _iVersionCode,@@ -1192,15 +1497,15 @@ -- | A user resource represents an individual user within the enterprise\'s -- domain. Note that each user is associated with a Google account based on -- the user\'s corporate email address (which must be in one of the--- enterprise\'s domains). As part of installing an MDM app to manage a--- device the Google account must be provisioned to the device, and so the--- user resource must be created before that. This can be done using the--- Google Admin SDK Directory API. The ID for a user is an opaque string.--- It can be retrieved using the list method queried by the user\'s primary--- email address.+-- enterprise\'s domains). As part of installing the EMM\'s DPC app to+-- manage a device the Google account must be provisioned to the device,+-- and so the user resource must be created before that. This can be done+-- using the Google Admin SDK Directory API. The ID for a user is an opaque+-- string. It can be retrieved using the list method queried by the user\'s+-- primary email address. -- -- /See:/ 'user' smart constructor.-data User = User+data User = User' { _uKind :: !Text , _uId :: !(Maybe Text) , _uPrimaryEmail :: !(Maybe Text)@@ -1218,7 +1523,7 @@ user :: User user =- User+ User' { _uKind = "androidenterprise#user" , _uId = Nothing , _uPrimaryEmail = Nothing@@ -1243,13 +1548,13 @@ parseJSON = withObject "User" (\ o ->- User <$>+ User' <$> (o .:? "kind" .!= "androidenterprise#user") <*> (o .:? "id") <*> (o .:? "primaryEmail")) instance ToJSON User where- toJSON User{..}+ toJSON User'{..} = object (catMaybes [Just ("kind" .= _uKind), ("id" .=) <$> _uId,@@ -1257,7 +1562,7 @@ -- -- /See:/ 'productsGenerateApprovalURLResponse' smart constructor.-newtype ProductsGenerateApprovalURLResponse = ProductsGenerateApprovalURLResponse+newtype ProductsGenerateApprovalURLResponse = ProductsGenerateApprovalURLResponse' { _pgaurURL :: Maybe Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -1269,7 +1574,7 @@ productsGenerateApprovalURLResponse :: ProductsGenerateApprovalURLResponse productsGenerateApprovalURLResponse =- ProductsGenerateApprovalURLResponse+ ProductsGenerateApprovalURLResponse' { _pgaurURL = Nothing } @@ -1289,17 +1594,95 @@ parseJSON = withObject "ProductsGenerateApprovalURLResponse" (\ o ->- ProductsGenerateApprovalURLResponse <$>+ ProductsGenerateApprovalURLResponse' <$> (o .:? "url")) instance ToJSON ProductsGenerateApprovalURLResponse where- toJSON ProductsGenerateApprovalURLResponse{..}+ toJSON ProductsGenerateApprovalURLResponse'{..} = object (catMaybes [("url" .=) <$> _pgaurURL]) +-- | Definition of a Google Play for Work store page, made of a localized+-- name and links to other pages. A page also contains clusters defined as+-- a subcollection. --+-- /See:/ 'storePage' smart constructor.+data StorePage = StorePage'+ { _spKind :: !Text+ , _spLink :: !(Maybe [Text])+ , _spName :: !(Maybe [LocalizedText])+ , _spId :: !(Maybe Text)+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorePage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'spKind'+--+-- * 'spLink'+--+-- * 'spName'+--+-- * 'spId'+storePage+ :: StorePage+storePage =+ StorePage'+ { _spKind = "androidenterprise#storePage"+ , _spLink = Nothing+ , _spName = Nothing+ , _spId = Nothing+ }++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#storePage\".+spKind :: Lens' StorePage Text+spKind = lens _spKind (\ s a -> s{_spKind = a})++-- | Ordered list of pages a user should be able to reach from this page. The+-- pages must exist, must not be this page, and once a link is created the+-- page linked to cannot be deleted until all links to it are removed. It+-- is recommended that the basic pages are created first, before adding the+-- links between pages. No attempt is made to verify that all pages are+-- reachable from the homepage.+spLink :: Lens' StorePage [Text]+spLink+ = lens _spLink (\ s a -> s{_spLink = a}) . _Default .+ _Coerce++-- | Ordered list of localized strings giving the name of this page. The text+-- displayed is the one that best matches the user locale, or the first+-- entry if there is no good match. There needs to be at least one entry.+spName :: Lens' StorePage [LocalizedText]+spName+ = lens _spName (\ s a -> s{_spName = a}) . _Default .+ _Coerce++-- | Unique ID of this page. Assigned by the server. Immutable once assigned.+spId :: Lens' StorePage (Maybe Text)+spId = lens _spId (\ s a -> s{_spId = a})++instance FromJSON StorePage where+ parseJSON+ = withObject "StorePage"+ (\ o ->+ StorePage' <$>+ (o .:? "kind" .!= "androidenterprise#storePage") <*>+ (o .:? "link" .!= mempty)+ <*> (o .:? "name" .!= mempty)+ <*> (o .:? "id"))++instance ToJSON StorePage where+ toJSON StorePage'{..}+ = object+ (catMaybes+ [Just ("kind" .= _spKind), ("link" .=) <$> _spLink,+ ("name" .=) <$> _spName, ("id" .=) <$> _spId])++-- -- /See:/ 'enterprisesSendTestPushNotificationResponse' smart constructor.-data EnterprisesSendTestPushNotificationResponse = EnterprisesSendTestPushNotificationResponse+data EnterprisesSendTestPushNotificationResponse = EnterprisesSendTestPushNotificationResponse' { _estpnrTopicName :: !(Maybe Text) , _estpnrMessageId :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1314,7 +1697,7 @@ enterprisesSendTestPushNotificationResponse :: EnterprisesSendTestPushNotificationResponse enterprisesSendTestPushNotificationResponse =- EnterprisesSendTestPushNotificationResponse+ EnterprisesSendTestPushNotificationResponse' { _estpnrTopicName = Nothing , _estpnrMessageId = Nothing }@@ -1338,13 +1721,13 @@ = withObject "EnterprisesSendTestPushNotificationResponse" (\ o ->- EnterprisesSendTestPushNotificationResponse <$>+ EnterprisesSendTestPushNotificationResponse' <$> (o .:? "topicName") <*> (o .:? "messageId")) instance ToJSON EnterprisesSendTestPushNotificationResponse where toJSON- EnterprisesSendTestPushNotificationResponse{..}+ EnterprisesSendTestPushNotificationResponse'{..} = object (catMaybes [("topicName" .=) <$> _estpnrTopicName,@@ -1353,7 +1736,7 @@ -- | The matching enterprise resources. -- -- /See:/ 'enterprisesListResponse' smart constructor.-data EnterprisesListResponse = EnterprisesListResponse+data EnterprisesListResponse = EnterprisesListResponse' { _elrKind :: !Text , _elrEnterprise :: !(Maybe [Enterprise]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1368,7 +1751,7 @@ enterprisesListResponse :: EnterprisesListResponse enterprisesListResponse =- EnterprisesListResponse+ EnterprisesListResponse' { _elrKind = "androidenterprise#enterprisesListResponse" , _elrEnterprise = Nothing }@@ -1390,13 +1773,13 @@ parseJSON = withObject "EnterprisesListResponse" (\ o ->- EnterprisesListResponse <$>+ EnterprisesListResponse' <$> (o .:? "kind" .!= "androidenterprise#enterprisesListResponse") <*> (o .:? "enterprise" .!= mempty)) instance ToJSON EnterprisesListResponse where- toJSON EnterprisesListResponse{..}+ toJSON EnterprisesListResponse'{..} = object (catMaybes [Just ("kind" .= _elrKind),@@ -1406,7 +1789,7 @@ -- for the product. -- -- /See:/ 'appRestrictionsSchema' smart constructor.-data AppRestrictionsSchema = AppRestrictionsSchema+data AppRestrictionsSchema = AppRestrictionsSchema' { _arsKind :: !Text , _arsRestrictions :: !(Maybe [AppRestrictionsSchemaRestriction]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1421,7 +1804,7 @@ appRestrictionsSchema :: AppRestrictionsSchema appRestrictionsSchema =- AppRestrictionsSchema+ AppRestrictionsSchema' { _arsKind = "androidenterprise#appRestrictionsSchema" , _arsRestrictions = Nothing }@@ -1443,25 +1826,70 @@ parseJSON = withObject "AppRestrictionsSchema" (\ o ->- AppRestrictionsSchema <$>+ AppRestrictionsSchema' <$> (o .:? "kind" .!= "androidenterprise#appRestrictionsSchema") <*> (o .:? "restrictions" .!= mempty)) instance ToJSON AppRestrictionsSchema where- toJSON AppRestrictionsSchema{..}+ toJSON AppRestrictionsSchema'{..} = object (catMaybes [Just ("kind" .= _arsKind), ("restrictions" .=) <$> _arsRestrictions]) +-- | A localized string with its locale.+--+-- /See:/ 'localizedText' smart constructor.+data LocalizedText = LocalizedText'+ { _ltText :: !(Maybe Text)+ , _ltLocale :: !(Maybe Text)+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'LocalizedText' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ltText'+--+-- * 'ltLocale'+localizedText+ :: LocalizedText+localizedText =+ LocalizedText'+ { _ltText = Nothing+ , _ltLocale = Nothing+ }++-- | The text localized in the associated locale.+ltText :: Lens' LocalizedText (Maybe Text)+ltText = lens _ltText (\ s a -> s{_ltText = a})++-- | The BCP47 tag for a locale. (e.g. \"en-US\", \"de\").+ltLocale :: Lens' LocalizedText (Maybe Text)+ltLocale = lens _ltLocale (\ s a -> s{_ltLocale = a})++instance FromJSON LocalizedText where+ parseJSON+ = withObject "LocalizedText"+ (\ o ->+ LocalizedText' <$>+ (o .:? "text") <*> (o .:? "locale"))++instance ToJSON LocalizedText where+ toJSON LocalizedText'{..}+ = object+ (catMaybes+ [("text" .=) <$> _ltText,+ ("locale" .=) <$> _ltLocale])+ -- | A UserToken is used by a user when setting up a managed device or -- profile with their work account on a device. When the user enters their--- email address and token (activation code) the appropriate MDM app can be+-- email address and token (activation code) the appropriate EMM app can be -- automatically downloaded. -- -- /See:/ 'userToken' smart constructor.-data UserToken = UserToken+data UserToken = UserToken' { _utKind :: !Text , _utToken :: !(Maybe Text) , _utUserId :: !(Maybe Text)@@ -1479,7 +1907,7 @@ userToken :: UserToken userToken =- UserToken+ UserToken' { _utKind = "androidenterprise#userToken" , _utToken = Nothing , _utUserId = Nothing@@ -1503,13 +1931,13 @@ parseJSON = withObject "UserToken" (\ o ->- UserToken <$>+ UserToken' <$> (o .:? "kind" .!= "androidenterprise#userToken") <*> (o .:? "token") <*> (o .:? "userId")) instance ToJSON UserToken where- toJSON UserToken{..}+ toJSON UserToken'{..} = object (catMaybes [Just ("kind" .= _utKind), ("token" .=) <$> _utToken,@@ -1518,7 +1946,7 @@ -- | The device resources for the user. -- -- /See:/ 'devicesListResponse' smart constructor.-data DevicesListResponse = DevicesListResponse+data DevicesListResponse = DevicesListResponse' { _dlrKind :: !Text , _dlrDevice :: !(Maybe [Device]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1533,7 +1961,7 @@ devicesListResponse :: DevicesListResponse devicesListResponse =- DevicesListResponse+ DevicesListResponse' { _dlrKind = "androidenterprise#devicesListResponse" , _dlrDevice = Nothing }@@ -1554,33 +1982,33 @@ parseJSON = withObject "DevicesListResponse" (\ o ->- DevicesListResponse <$>+ DevicesListResponse' <$> (o .:? "kind" .!= "androidenterprise#devicesListResponse") <*> (o .:? "device" .!= mempty)) instance ToJSON DevicesListResponse where- toJSON DevicesListResponse{..}+ toJSON DevicesListResponse'{..} = object (catMaybes [Just ("kind" .= _dlrKind), ("device" .=) <$> _dlrDevice]) --- | An enterprise resource represents a binding between an organisation and--- their MDM. To create an enterprise, an admin of the enterprise must+-- | An enterprise resource represents a binding between an organization and+-- their EMM. To create an enterprise, an admin of the enterprise must -- first go through a Play for Work sign-up flow. At the end of this the -- admin will be presented with a token (a short opaque alphanumeric--- string). They must then present this to the MDM, who then supplies it to--- the enroll method. Until this is done the MDM will not have any access--- to the enterprise. After calling enroll the MDM should call setAccount+-- string). They must then present this to the EMM, who then supplies it to+-- the enroll method. Until this is done the EMM will not have any access+-- to the enterprise. After calling enroll the EMM should call setAccount -- to specify the service account that will be allowed to act on behalf of -- the enterprise, which will be required for access to the enterprise\'s -- data through this API. Only one call of setAccount is allowed for a -- given enterprise; the only way to change the account later is to -- unenroll the enterprise and enroll it again (obtaining a new token). The--- MDM can unenroll an enterprise in order to sever the binding between+-- EMM can unenroll an enterprise in order to sever the binding between -- them. Re-enrolling an enterprise is possible, but requires a new token--- to be retrieved. Enterprises.unenroll requires the MDM\'s credentials+-- to be retrieved. Enterprises.unenroll requires the EMM\'s credentials -- (as enroll does), not the enterprise\'s. Enterprises.unenroll can only -- be used for enterprises that were previously enrolled with the enroll -- call. Any enterprises that were enrolled using the (deprecated)@@ -1591,7 +2019,7 @@ -- the list method. -- -- /See:/ 'enterprise' smart constructor.-data Enterprise = Enterprise+data Enterprise = Enterprise' { _eKind :: !Text , _ePrimaryDomain :: !(Maybe Text) , _eName :: !(Maybe Text)@@ -1612,7 +2040,7 @@ enterprise :: Enterprise enterprise =- Enterprise+ Enterprise' { _eKind = "androidenterprise#enterprise" , _ePrimaryDomain = Nothing , _eName = Nothing@@ -1642,35 +2070,90 @@ parseJSON = withObject "Enterprise" (\ o ->- Enterprise <$>+ Enterprise' <$> (o .:? "kind" .!= "androidenterprise#enterprise") <*> (o .:? "primaryDomain") <*> (o .:? "name") <*> (o .:? "id")) instance ToJSON Enterprise where- toJSON Enterprise{..}+ toJSON Enterprise'{..} = object (catMaybes [Just ("kind" .= _eKind), ("primaryDomain" .=) <$> _ePrimaryDomain, ("name" .=) <$> _eName, ("id" .=) <$> _eId]) +-- | General setting for the Google Play for Work store layout, currently+-- only specifying the page to display the first time the store is opened.+--+-- /See:/ 'storeLayout' smart constructor.+data StoreLayout = StoreLayout'+ { _slKind :: !Text+ , _slHomepageId :: !(Maybe Text)+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StoreLayout' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slKind'+--+-- * 'slHomepageId'+storeLayout+ :: StoreLayout+storeLayout =+ StoreLayout'+ { _slKind = "androidenterprise#storeLayout"+ , _slHomepageId = Nothing+ }++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#storeLayout\".+slKind :: Lens' StoreLayout Text+slKind = lens _slKind (\ s a -> s{_slKind = a})++-- | The ID of the store page to be used as the homepage. The homepage will+-- be used as the first page shown in the Google Play for Work store. If+-- there is no homepage set, an empty store is shown. The homepage can be+-- unset (by not specifying it) to empty the store. If there exists at+-- least one page, this field must be set to the ID of a valid page.+slHomepageId :: Lens' StoreLayout (Maybe Text)+slHomepageId+ = lens _slHomepageId (\ s a -> s{_slHomepageId = a})++instance FromJSON StoreLayout where+ parseJSON+ = withObject "StoreLayout"+ (\ o ->+ StoreLayout' <$>+ (o .:? "kind" .!= "androidenterprise#storeLayout")+ <*> (o .:? "homepageId"))++instance ToJSON StoreLayout where+ toJSON StoreLayout'{..}+ = object+ (catMaybes+ [Just ("kind" .= _slKind),+ ("homepageId" .=) <$> _slHomepageId])+ -- | A product represents an app in the Google Play Store that is available -- to at least some users in the enterprise. (Some apps are restricted to a -- single enterprise, and no information about them is made available -- outside that enterprise.) The information provided for each product -- (localized name, icon, link to the full Google Play details page) is--- intended to allow a basic representation of the product within an MDM+-- intended to allow a basic representation of the product within an EMM -- user interface. -- -- /See:/ 'product' smart constructor.-data Product = Product- { _pAuthorName :: !(Maybe Text)+data Product = Product'+ { _pSmallIconURL :: !(Maybe Text)+ , _pAuthorName :: !(Maybe Text) , _pKind :: !Text , _pWorkDetailsURL :: !(Maybe Text) , _pRequiresContainerApp :: !(Maybe Bool) , _pAppVersion :: !(Maybe [AppVersion])+ , _pProductPricing :: !(Maybe Text) , _pDistributionChannel :: !(Maybe Text) , _pIconURL :: !(Maybe Text) , _pTitle :: !(Maybe Text)@@ -1682,6 +2165,8 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'pSmallIconURL'+-- -- * 'pAuthorName' -- -- * 'pKind'@@ -1692,6 +2177,8 @@ -- -- * 'pAppVersion' --+-- * 'pProductPricing'+-- -- * 'pDistributionChannel' -- -- * 'pIconURL'@@ -1704,12 +2191,14 @@ product :: Product product =- Product- { _pAuthorName = Nothing+ Product'+ { _pSmallIconURL = Nothing+ , _pAuthorName = Nothing , _pKind = "androidenterprise#product" , _pWorkDetailsURL = Nothing , _pRequiresContainerApp = Nothing , _pAppVersion = Nothing+ , _pProductPricing = Nothing , _pDistributionChannel = Nothing , _pIconURL = Nothing , _pTitle = Nothing@@ -1717,6 +2206,13 @@ , _pDetailsURL = Nothing } +-- | A link to a smaller image that can be used as an icon for the product.+-- This image is suitable for use at up to 128px x 128px.+pSmallIconURL :: Lens' Product (Maybe Text)+pSmallIconURL+ = lens _pSmallIconURL+ (\ s a -> s{_pSmallIconURL = a})+ -- | The name of the author of the product (e.g. the app developer). pAuthorName :: Lens' Product (Maybe Text) pAuthorName@@ -1749,6 +2245,12 @@ _Default . _Coerce +-- | Whether this product is free, free with in-app purchases, or paid.+pProductPricing :: Lens' Product (Maybe Text)+pProductPricing+ = lens _pProductPricing+ (\ s a -> s{_pProductPricing = a})+ -- | How and to whom the package is made available. The value -- publicGoogleHosted means that the package is available through the Play -- Store and not restricted to a specific enterprise. The value@@ -1761,7 +2263,8 @@ = lens _pDistributionChannel (\ s a -> s{_pDistributionChannel = a}) --- | A link to an image that can be used as an icon for the product.+-- | A link to an image that can be used as an icon for the product. This+-- image is suitable for use at up to 512px x 512px. pIconURL :: Lens' Product (Maybe Text) pIconURL = lens _pIconURL (\ s a -> s{_pIconURL = a}) @@ -1784,12 +2287,13 @@ parseJSON = withObject "Product" (\ o ->- Product <$>- (o .:? "authorName") <*>+ Product' <$>+ (o .:? "smallIconUrl") <*> (o .:? "authorName") <*> (o .:? "kind" .!= "androidenterprise#product") <*> (o .:? "workDetailsUrl") <*> (o .:? "requiresContainerApp") <*> (o .:? "appVersion" .!= mempty)+ <*> (o .:? "productPricing") <*> (o .:? "distributionChannel") <*> (o .:? "iconUrl") <*> (o .:? "title")@@ -1797,15 +2301,17 @@ <*> (o .:? "detailsUrl")) instance ToJSON Product where- toJSON Product{..}+ toJSON Product'{..} = object (catMaybes- [("authorName" .=) <$> _pAuthorName,+ [("smallIconUrl" .=) <$> _pSmallIconURL,+ ("authorName" .=) <$> _pAuthorName, Just ("kind" .= _pKind), ("workDetailsUrl" .=) <$> _pWorkDetailsURL, ("requiresContainerApp" .=) <$> _pRequiresContainerApp, ("appVersion" .=) <$> _pAppVersion,+ ("productPricing" .=) <$> _pProductPricing, ("distributionChannel" .=) <$> _pDistributionChannel, ("iconUrl" .=) <$> _pIconURL, ("title" .=) <$> _pTitle,@@ -1815,7 +2321,7 @@ -- | The entitlement resources for the user. -- -- /See:/ 'entitlementsListResponse' smart constructor.-data EntitlementsListResponse = EntitlementsListResponse+data EntitlementsListResponse = EntitlementsListResponse' { _entKind :: !Text , _entEntitlement :: !(Maybe [Entitlement]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -1830,7 +2336,7 @@ entitlementsListResponse :: EntitlementsListResponse entitlementsListResponse =- EntitlementsListResponse+ EntitlementsListResponse' { _entKind = "androidenterprise#entitlementsListResponse" , _entEntitlement = Nothing }@@ -1854,13 +2360,13 @@ parseJSON = withObject "EntitlementsListResponse" (\ o ->- EntitlementsListResponse <$>+ EntitlementsListResponse' <$> (o .:? "kind" .!= "androidenterprise#entitlementsListResponse") <*> (o .:? "entitlement" .!= mempty)) instance ToJSON EntitlementsListResponse where- toJSON EntitlementsListResponse{..}+ toJSON EntitlementsListResponse'{..} = object (catMaybes [Just ("kind" .= _entKind),@@ -1870,7 +2376,7 @@ -- they have been accepted by the enterprise. -- -- /See:/ 'productPermissions' smart constructor.-data ProductPermissions = ProductPermissions+data ProductPermissions = ProductPermissions' { _ppKind :: !Text , _ppPermission :: !(Maybe [ProductPermission]) , _ppProductId :: !(Maybe Text)@@ -1888,7 +2394,7 @@ productPermissions :: ProductPermissions productPermissions =- ProductPermissions+ ProductPermissions' { _ppKind = "androidenterprise#productPermissions" , _ppPermission = Nothing , _ppProductId = Nothing@@ -1916,14 +2422,14 @@ parseJSON = withObject "ProductPermissions" (\ o ->- ProductPermissions <$>+ ProductPermissions' <$> (o .:? "kind" .!= "androidenterprise#productPermissions") <*> (o .:? "permission" .!= mempty) <*> (o .:? "productId")) instance ToJSON ProductPermissions where- toJSON ProductPermissions{..}+ toJSON ProductPermissions'{..} = object (catMaybes [Just ("kind" .= _ppKind),@@ -1935,11 +2441,11 @@ -- consent to these permissions on behalf of their users before an -- entitlement for the app can be created. The permissions collection is -- read-only. The information provided for each permission (localized name--- and description) is intended to be used in the MDM user interface when+-- and description) is intended to be used in the EMM user interface when -- obtaining consent from the enterprise. -- -- /See:/ 'permission' smart constructor.-data Permission = Permission+data Permission = Permission' { _perKind :: !Text , _perName :: !(Maybe Text) , _perDescription :: !(Maybe Text)@@ -1960,7 +2466,7 @@ permission :: Permission permission =- Permission+ Permission' { _perKind = "androidenterprise#permission" , _perName = Nothing , _perDescription = Nothing@@ -1993,14 +2499,14 @@ parseJSON = withObject "Permission" (\ o ->- Permission <$>+ Permission' <$> (o .:? "kind" .!= "androidenterprise#permission") <*> (o .:? "name") <*> (o .:? "description") <*> (o .:? "permissionId")) instance ToJSON Permission where- toJSON Permission{..}+ toJSON Permission'{..} = object (catMaybes [Just ("kind" .= _perKind), ("name" .=) <$> _perName,@@ -2009,7 +2515,7 @@ -- -- /See:/ 'productsApproveRequest' smart constructor.-newtype ProductsApproveRequest = ProductsApproveRequest+newtype ProductsApproveRequest = ProductsApproveRequest' { _parApprovalURLInfo :: Maybe ApprovalURLInfo } deriving (Eq,Show,Data,Typeable,Generic) @@ -2021,7 +2527,7 @@ productsApproveRequest :: ProductsApproveRequest productsApproveRequest =- ProductsApproveRequest+ ProductsApproveRequest' { _parApprovalURLInfo = Nothing } @@ -2040,10 +2546,11 @@ parseJSON = withObject "ProductsApproveRequest" (\ o ->- ProductsApproveRequest <$> (o .:? "approvalUrlInfo"))+ ProductsApproveRequest' <$>+ (o .:? "approvalUrlInfo")) instance ToJSON ProductsApproveRequest where- toJSON ProductsApproveRequest{..}+ toJSON ProductsApproveRequest'{..} = object (catMaybes [("approvalUrlInfo" .=) <$> _parApprovalURLInfo])@@ -2051,7 +2558,7 @@ -- | The user resources for the collection. -- -- /See:/ 'collectionViewersListResponse' smart constructor.-data CollectionViewersListResponse = CollectionViewersListResponse+data CollectionViewersListResponse = CollectionViewersListResponse' { _cvlrKind :: !Text , _cvlrUser :: !(Maybe [User]) } deriving (Eq,Show,Data,Typeable,Generic)@@ -2066,7 +2573,7 @@ collectionViewersListResponse :: CollectionViewersListResponse collectionViewersListResponse =- CollectionViewersListResponse+ CollectionViewersListResponse' { _cvlrKind = "androidenterprise#collectionViewersListResponse" , _cvlrUser = Nothing }@@ -2087,13 +2594,13 @@ parseJSON = withObject "CollectionViewersListResponse" (\ o ->- CollectionViewersListResponse <$>+ CollectionViewersListResponse' <$> (o .:? "kind" .!= "androidenterprise#collectionViewersListResponse") <*> (o .:? "user" .!= mempty)) instance ToJSON CollectionViewersListResponse where- toJSON CollectionViewersListResponse{..}+ toJSON CollectionViewersListResponse'{..} = object (catMaybes [Just ("kind" .= _cvlrKind),@@ -2106,7 +2613,7 @@ -- true that a user has an app installed on one of their devices only if -- they have an entitlement to it. So if an entitlement is deleted, the app -- will be uninstalled from all devices. Similarly if the user installs an--- app (and is permitted to do so), or the MDM triggers an install of the+-- app (and is permitted to do so), or the EMM triggers an install of the -- app, an entitlement to that app is automatically created. If this is -- impossible - e.g. the enterprise has not purchased sufficient licenses - -- then installation fails. Note that entitlements are always user@@ -2125,7 +2632,7 @@ -- cannot be removed via the API. -- -- /See:/ 'entitlement' smart constructor.-data Entitlement = Entitlement+data Entitlement = Entitlement' { _eeKind :: !Text , _eeReason :: !(Maybe Text) , _eeProductId :: !(Maybe Text)@@ -2143,7 +2650,7 @@ entitlement :: Entitlement entitlement =- Entitlement+ Entitlement' { _eeKind = "androidenterprise#entitlement" , _eeReason = Nothing , _eeProductId = Nothing@@ -2170,15 +2677,89 @@ parseJSON = withObject "Entitlement" (\ o ->- Entitlement <$>+ Entitlement' <$> (o .:? "kind" .!= "androidenterprise#entitlement") <*> (o .:? "reason") <*> (o .:? "productId")) instance ToJSON Entitlement where- toJSON Entitlement{..}+ toJSON Entitlement'{..} = object (catMaybes [Just ("kind" .= _eeKind), ("reason" .=) <$> _eeReason, ("productId" .=) <$> _eeProductId])++-- | The matching products.+--+-- /See:/ 'productsListResponse' smart constructor.+data ProductsListResponse = ProductsListResponse'+ { _plrTokenPagination :: !(Maybe TokenPagination)+ , _plrPageInfo :: !(Maybe PageInfo)+ , _plrKind :: !Text+ , _plrProduct :: !(Maybe [Product])+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ProductsListResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'plrTokenPagination'+--+-- * 'plrPageInfo'+--+-- * 'plrKind'+--+-- * 'plrProduct'+productsListResponse+ :: ProductsListResponse+productsListResponse =+ ProductsListResponse'+ { _plrTokenPagination = Nothing+ , _plrPageInfo = Nothing+ , _plrKind = "androidenterprise#productsListResponse"+ , _plrProduct = Nothing+ }++-- | Pagination information for token pagination.+plrTokenPagination :: Lens' ProductsListResponse (Maybe TokenPagination)+plrTokenPagination+ = lens _plrTokenPagination+ (\ s a -> s{_plrTokenPagination = a})++-- | General pagination information.+plrPageInfo :: Lens' ProductsListResponse (Maybe PageInfo)+plrPageInfo+ = lens _plrPageInfo (\ s a -> s{_plrPageInfo = a})++-- | Identifies what kind of resource this is. Value: the fixed string+-- \"androidenterprise#productsListResponse\".+plrKind :: Lens' ProductsListResponse Text+plrKind = lens _plrKind (\ s a -> s{_plrKind = a})++-- | Information about a product (e.g. an app) in the Google Play Store, for+-- display to an enterprise admin.+plrProduct :: Lens' ProductsListResponse [Product]+plrProduct+ = lens _plrProduct (\ s a -> s{_plrProduct = a}) .+ _Default+ . _Coerce++instance FromJSON ProductsListResponse where+ parseJSON+ = withObject "ProductsListResponse"+ (\ o ->+ ProductsListResponse' <$>+ (o .:? "tokenPagination") <*> (o .:? "pageInfo") <*>+ (o .:? "kind" .!=+ "androidenterprise#productsListResponse")+ <*> (o .:? "product" .!= mempty))++instance ToJSON ProductsListResponse where+ toJSON ProductsListResponse'{..}+ = object+ (catMaybes+ [("tokenPagination" .=) <$> _plrTokenPagination,+ ("pageInfo" .=) <$> _plrPageInfo,+ Just ("kind" .= _plrKind),+ ("product" .=) <$> _plrProduct])
gen/Network/Google/AndroidEnterprise/Types/Sum.hs view
@@ -8,7 +8,7 @@ -- | -- Module : Network.Google.AndroidEnterprise.Types.Sum--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated
gen/Network/Google/Resource/AndroidEnterprise/Collections/Delete.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.Delete--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Deletes a collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.delete@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.delete@. module Network.Google.Resource.AndroidEnterprise.Collections.Delete ( -- * REST Resource@@ -54,7 +54,7 @@ -- | Deletes a collection. -- -- /See:/ 'collectionsDelete' smart constructor.-data CollectionsDelete = CollectionsDelete+data CollectionsDelete = CollectionsDelete' { _cddEnterpriseId :: !Text , _cddCollectionId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ -> Text -- ^ 'cddCollectionId' -> CollectionsDelete collectionsDelete pCddEnterpriseId_ pCddCollectionId_ =- CollectionsDelete+ CollectionsDelete' { _cddEnterpriseId = pCddEnterpriseId_ , _cddCollectionId = pCddCollectionId_ }@@ -90,7 +90,9 @@ instance GoogleRequest CollectionsDelete where type Rs CollectionsDelete = ()- requestClient CollectionsDelete{..}+ type Scopes CollectionsDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsDelete'{..} = go _cddEnterpriseId _cddCollectionId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Collections/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the details of a collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.get@. module Network.Google.Resource.AndroidEnterprise.Collections.Get ( -- * REST Resource@@ -54,7 +54,7 @@ -- | Retrieves the details of a collection. -- -- /See:/ 'collectionsGet' smart constructor.-data CollectionsGet = CollectionsGet+data CollectionsGet = CollectionsGet' { _cgEnterpriseId :: !Text , _cgCollectionId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ -> Text -- ^ 'cgCollectionId' -> CollectionsGet collectionsGet pCgEnterpriseId_ pCgCollectionId_ =- CollectionsGet+ CollectionsGet' { _cgEnterpriseId = pCgEnterpriseId_ , _cgCollectionId = pCgCollectionId_ }@@ -90,7 +90,9 @@ instance GoogleRequest CollectionsGet where type Rs CollectionsGet = Collection- requestClient CollectionsGet{..}+ type Scopes CollectionsGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsGet'{..} = go _cgEnterpriseId _cgCollectionId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Collections/Insert.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.Insert--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Creates a new collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.insert@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.insert@. module Network.Google.Resource.AndroidEnterprise.Collections.Insert ( -- * REST Resource@@ -54,7 +54,7 @@ -- | Creates a new collection. -- -- /See:/ 'collectionsInsert' smart constructor.-data CollectionsInsert = CollectionsInsert+data CollectionsInsert = CollectionsInsert' { _ciEnterpriseId :: !Text , _ciPayload :: !Collection } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ -> Collection -- ^ 'ciPayload' -> CollectionsInsert collectionsInsert pCiEnterpriseId_ pCiPayload_ =- CollectionsInsert+ CollectionsInsert' { _ciEnterpriseId = pCiEnterpriseId_ , _ciPayload = pCiPayload_ }@@ -89,7 +89,9 @@ instance GoogleRequest CollectionsInsert where type Rs CollectionsInsert = Collection- requestClient CollectionsInsert{..}+ type Scopes CollectionsInsert =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsInsert'{..} = go _ciEnterpriseId (Just AltJSON) _ciPayload androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Collections/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the IDs of all the collections for an enterprise. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.list@. module Network.Google.Resource.AndroidEnterprise.Collections.List ( -- * REST Resource@@ -53,7 +53,7 @@ -- | Retrieves the IDs of all the collections for an enterprise. -- -- /See:/ 'collectionsList' smart constructor.-newtype CollectionsList = CollectionsList+newtype CollectionsList = CollectionsList' { _clEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -66,7 +66,7 @@ :: Text -- ^ 'clEnterpriseId' -> CollectionsList collectionsList pClEnterpriseId_ =- CollectionsList+ CollectionsList' { _clEnterpriseId = pClEnterpriseId_ } @@ -78,7 +78,9 @@ instance GoogleRequest CollectionsList where type Rs CollectionsList = CollectionsListResponse- requestClient CollectionsList{..}+ type Scopes CollectionsList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsList'{..} = go _clEnterpriseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Collections/Patch.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.Patch--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Updates a collection. This method supports patch semantics. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.patch@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.patch@. module Network.Google.Resource.AndroidEnterprise.Collections.Patch ( -- * REST Resource@@ -57,7 +57,7 @@ -- | Updates a collection. This method supports patch semantics. -- -- /See:/ 'collectionsPatch' smart constructor.-data CollectionsPatch = CollectionsPatch+data CollectionsPatch = CollectionsPatch' { _cpEnterpriseId :: !Text , _cpCollectionId :: !Text , _cpPayload :: !Collection@@ -78,7 +78,7 @@ -> Collection -- ^ 'cpPayload' -> CollectionsPatch collectionsPatch pCpEnterpriseId_ pCpCollectionId_ pCpPayload_ =- CollectionsPatch+ CollectionsPatch' { _cpEnterpriseId = pCpEnterpriseId_ , _cpCollectionId = pCpCollectionId_ , _cpPayload = pCpPayload_@@ -103,7 +103,9 @@ instance GoogleRequest CollectionsPatch where type Rs CollectionsPatch = Collection- requestClient CollectionsPatch{..}+ type Scopes CollectionsPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsPatch'{..} = go _cpEnterpriseId _cpCollectionId (Just AltJSON) _cpPayload androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Collections/Update.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collections.Update--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Updates a collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.update@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.update@. module Network.Google.Resource.AndroidEnterprise.Collections.Update ( -- * REST Resource@@ -56,7 +56,7 @@ -- | Updates a collection. -- -- /See:/ 'collectionsUpdate' smart constructor.-data CollectionsUpdate = CollectionsUpdate+data CollectionsUpdate = CollectionsUpdate' { _cuuEnterpriseId :: !Text , _cuuCollectionId :: !Text , _cuuPayload :: !Collection@@ -77,7 +77,7 @@ -> Collection -- ^ 'cuuPayload' -> CollectionsUpdate collectionsUpdate pCuuEnterpriseId_ pCuuCollectionId_ pCuuPayload_ =- CollectionsUpdate+ CollectionsUpdate' { _cuuEnterpriseId = pCuuEnterpriseId_ , _cuuCollectionId = pCuuCollectionId_ , _cuuPayload = pCuuPayload_@@ -102,7 +102,9 @@ instance GoogleRequest CollectionsUpdate where type Rs CollectionsUpdate = Collection- requestClient CollectionsUpdate{..}+ type Scopes CollectionsUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionsUpdate'{..} = go _cuuEnterpriseId _cuuCollectionId (Just AltJSON) _cuuPayload androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Delete.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- collection. If the collection\'s visibility is set to viewersOnly then -- only such users will see the collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.delete@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.delete@. module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete ( -- * REST Resource@@ -61,7 +61,7 @@ -- only such users will see the collection. -- -- /See:/ 'collectionviewersDelete' smart constructor.-data CollectionviewersDelete = CollectionviewersDelete+data CollectionviewersDelete = CollectionviewersDelete' { _cdEnterpriseId :: !Text , _cdCollectionId :: !Text , _cdUserId :: !Text@@ -82,7 +82,7 @@ -> Text -- ^ 'cdUserId' -> CollectionviewersDelete collectionviewersDelete pCdEnterpriseId_ pCdCollectionId_ pCdUserId_ =- CollectionviewersDelete+ CollectionviewersDelete' { _cdEnterpriseId = pCdEnterpriseId_ , _cdCollectionId = pCdCollectionId_ , _cdUserId = pCdUserId_@@ -106,7 +106,9 @@ instance GoogleRequest CollectionviewersDelete where type Rs CollectionviewersDelete = ()- requestClient CollectionviewersDelete{..}+ type Scopes CollectionviewersDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionviewersDelete'{..} = go _cdEnterpriseId _cdCollectionId _cdUserId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- see the collection. If the collection\'s visibility is set to -- viewersOnly then only these users will see the collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.get@. module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get ( -- * REST Resource@@ -61,7 +61,7 @@ -- viewersOnly then only these users will see the collection. -- -- /See:/ 'collectionviewersGet' smart constructor.-data CollectionviewersGet = CollectionviewersGet+data CollectionviewersGet = CollectionviewersGet' { _cggEnterpriseId :: !Text , _cggCollectionId :: !Text , _cggUserId :: !Text@@ -82,7 +82,7 @@ -> Text -- ^ 'cggUserId' -> CollectionviewersGet collectionviewersGet pCggEnterpriseId_ pCggCollectionId_ pCggUserId_ =- CollectionviewersGet+ CollectionviewersGet' { _cggEnterpriseId = pCggEnterpriseId_ , _cggCollectionId = pCggCollectionId_ , _cggUserId = pCggUserId_@@ -107,7 +107,9 @@ instance GoogleRequest CollectionviewersGet where type Rs CollectionviewersGet = User- requestClient CollectionviewersGet{..}+ type Scopes CollectionviewersGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionviewersGet'{..} = go _cggEnterpriseId _cggCollectionId _cggUserId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- the collection. If the collection\'s visibility is set to viewersOnly -- then only these users will see the collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.list@. module Network.Google.Resource.AndroidEnterprise.Collectionviewers.List ( -- * REST Resource@@ -60,7 +60,7 @@ -- then only these users will see the collection. -- -- /See:/ 'collectionviewersList' smart constructor.-data CollectionviewersList = CollectionviewersList+data CollectionviewersList = CollectionviewersList' { _cEnterpriseId :: !Text , _cCollectionId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -77,7 +77,7 @@ -> Text -- ^ 'cCollectionId' -> CollectionviewersList collectionviewersList pCEnterpriseId_ pCCollectionId_ =- CollectionviewersList+ CollectionviewersList' { _cEnterpriseId = pCEnterpriseId_ , _cCollectionId = pCCollectionId_ }@@ -97,7 +97,9 @@ instance GoogleRequest CollectionviewersList where type Rs CollectionviewersList = CollectionViewersListResponse- requestClient CollectionviewersList{..}+ type Scopes CollectionviewersList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionviewersList'{..} = go _cEnterpriseId _cCollectionId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Patch.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -25,7 +25,7 @@ -- only such users will see the collection. This method supports patch -- semantics. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.patch@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.patch@. module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch ( -- * REST Resource@@ -65,7 +65,7 @@ -- semantics. -- -- /See:/ 'collectionviewersPatch' smart constructor.-data CollectionviewersPatch = CollectionviewersPatch+data CollectionviewersPatch = CollectionviewersPatch' { _cppEnterpriseId :: !Text , _cppCollectionId :: !Text , _cppPayload :: !User@@ -90,7 +90,7 @@ -> Text -- ^ 'cppUserId' -> CollectionviewersPatch collectionviewersPatch pCppEnterpriseId_ pCppCollectionId_ pCppPayload_ pCppUserId_ =- CollectionviewersPatch+ CollectionviewersPatch' { _cppEnterpriseId = pCppEnterpriseId_ , _cppCollectionId = pCppCollectionId_ , _cppPayload = pCppPayload_@@ -121,7 +121,9 @@ instance GoogleRequest CollectionviewersPatch where type Rs CollectionviewersPatch = User- requestClient CollectionviewersPatch{..}+ type Scopes CollectionviewersPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionviewersPatch'{..} = go _cppEnterpriseId _cppCollectionId _cppUserId (Just AltJSON) _cppPayload
gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Update.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- collection. If the collection\'s visibility is set to viewersOnly then -- only such users will see the collection. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.update@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.update@. module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update ( -- * REST Resource@@ -63,7 +63,7 @@ -- only such users will see the collection. -- -- /See:/ 'collectionviewersUpdate' smart constructor.-data CollectionviewersUpdate = CollectionviewersUpdate+data CollectionviewersUpdate = CollectionviewersUpdate' { _cuEnterpriseId :: !Text , _cuCollectionId :: !Text , _cuPayload :: !User@@ -88,7 +88,7 @@ -> Text -- ^ 'cuUserId' -> CollectionviewersUpdate collectionviewersUpdate pCuEnterpriseId_ pCuCollectionId_ pCuPayload_ pCuUserId_ =- CollectionviewersUpdate+ CollectionviewersUpdate' { _cuEnterpriseId = pCuEnterpriseId_ , _cuCollectionId = pCuCollectionId_ , _cuPayload = pCuPayload_@@ -118,7 +118,9 @@ instance GoogleRequest CollectionviewersUpdate where type Rs CollectionviewersUpdate = User- requestClient CollectionviewersUpdate{..}+ type Scopes CollectionviewersUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient CollectionviewersUpdate'{..} = go _cuEnterpriseId _cuCollectionId _cuUserId (Just AltJSON) _cuPayload
gen/Network/Google/Resource/AndroidEnterprise/Devices/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Devices.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the details of a device. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.get@. module Network.Google.Resource.AndroidEnterprise.Devices.Get ( -- * REST Resource@@ -57,7 +57,7 @@ -- | Retrieves the details of a device. -- -- /See:/ 'devicesGet' smart constructor.-data DevicesGet = DevicesGet+data DevicesGet = DevicesGet' { _dgEnterpriseId :: !Text , _dgUserId :: !Text , _dgDeviceId :: !Text@@ -78,7 +78,7 @@ -> Text -- ^ 'dgDeviceId' -> DevicesGet devicesGet pDgEnterpriseId_ pDgUserId_ pDgDeviceId_ =- DevicesGet+ DevicesGet' { _dgEnterpriseId = pDgEnterpriseId_ , _dgUserId = pDgUserId_ , _dgDeviceId = pDgDeviceId_@@ -101,7 +101,9 @@ instance GoogleRequest DevicesGet where type Rs DevicesGet = Device- requestClient DevicesGet{..}+ type Scopes DevicesGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient DevicesGet'{..} = go _dgEnterpriseId _dgUserId _dgDeviceId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Devices/GetState.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Devices.GetState--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -26,7 +26,7 @@ -- Otherwise, the device state is ignored and all devices are allowed -- access to Google services. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.getState@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.getState@. module Network.Google.Resource.AndroidEnterprise.Devices.GetState ( -- * REST Resource@@ -66,7 +66,7 @@ -- access to Google services. -- -- /See:/ 'devicesGetState' smart constructor.-data DevicesGetState = DevicesGetState+data DevicesGetState = DevicesGetState' { _dgsEnterpriseId :: !Text , _dgsUserId :: !Text , _dgsDeviceId :: !Text@@ -87,7 +87,7 @@ -> Text -- ^ 'dgsDeviceId' -> DevicesGetState devicesGetState pDgsEnterpriseId_ pDgsUserId_ pDgsDeviceId_ =- DevicesGetState+ DevicesGetState' { _dgsEnterpriseId = pDgsEnterpriseId_ , _dgsUserId = pDgsUserId_ , _dgsDeviceId = pDgsDeviceId_@@ -111,7 +111,9 @@ instance GoogleRequest DevicesGetState where type Rs DevicesGetState = DeviceState- requestClient DevicesGetState{..}+ type Scopes DevicesGetState =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient DevicesGetState'{..} = go _dgsEnterpriseId _dgsUserId _dgsDeviceId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Devices/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Devices.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the IDs of all of a user\'s devices. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.list@. module Network.Google.Resource.AndroidEnterprise.Devices.List ( -- * REST Resource@@ -56,7 +56,7 @@ -- | Retrieves the IDs of all of a user\'s devices. -- -- /See:/ 'devicesList' smart constructor.-data DevicesList = DevicesList+data DevicesList = DevicesList' { _dlEnterpriseId :: !Text , _dlUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -73,7 +73,7 @@ -> Text -- ^ 'dlUserId' -> DevicesList devicesList pDlEnterpriseId_ pDlUserId_ =- DevicesList+ DevicesList' { _dlEnterpriseId = pDlEnterpriseId_ , _dlUserId = pDlUserId_ }@@ -90,7 +90,9 @@ instance GoogleRequest DevicesList where type Rs DevicesList = DevicesListResponse- requestClient DevicesList{..}+ type Scopes DevicesList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient DevicesList'{..} = go _dlEnterpriseId _dlUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Devices/SetState.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Devices.SetState--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -26,7 +26,7 @@ -- Otherwise, the device state is ignored and all devices are allowed -- access to Google services. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.setState@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.setState@. module Network.Google.Resource.AndroidEnterprise.Devices.SetState ( -- * REST Resource@@ -69,7 +69,7 @@ -- access to Google services. -- -- /See:/ 'devicesSetState' smart constructor.-data DevicesSetState = DevicesSetState+data DevicesSetState = DevicesSetState' { _dssEnterpriseId :: !Text , _dssPayload :: !DeviceState , _dssUserId :: !Text@@ -94,7 +94,7 @@ -> Text -- ^ 'dssDeviceId' -> DevicesSetState devicesSetState pDssEnterpriseId_ pDssPayload_ pDssUserId_ pDssDeviceId_ =- DevicesSetState+ DevicesSetState' { _dssEnterpriseId = pDssEnterpriseId_ , _dssPayload = pDssPayload_ , _dssUserId = pDssUserId_@@ -124,7 +124,9 @@ instance GoogleRequest DevicesSetState where type Rs DevicesSetState = DeviceState- requestClient DevicesSetState{..}+ type Scopes DevicesSetState =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient DevicesSetState'{..} = go _dssEnterpriseId _dssUserId _dssDeviceId (Just AltJSON) _dssPayload
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Delete.hs view
@@ -14,18 +14,18 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Delete--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Deletes the binding between the MDM and enterprise. This is now+-- Deletes the binding between the EMM and enterprise. This is now -- deprecated; use this to unenroll customers that were previously enrolled -- with the \'insert\' call, then enroll them again with the \'enroll\' -- call. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.delete@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.delete@. module Network.Google.Resource.AndroidEnterprise.Enterprises.Delete ( -- * REST Resource@@ -51,13 +51,13 @@ Capture "enterpriseId" Text :> QueryParam "alt" AltJSON :> Delete '[JSON] () --- | Deletes the binding between the MDM and enterprise. This is now+-- | Deletes the binding between the EMM and enterprise. This is now -- deprecated; use this to unenroll customers that were previously enrolled -- with the \'insert\' call, then enroll them again with the \'enroll\' -- call. -- -- /See:/ 'enterprisesDelete' smart constructor.-newtype EnterprisesDelete = EnterprisesDelete+newtype EnterprisesDelete = EnterprisesDelete' { _edEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -70,7 +70,7 @@ :: Text -- ^ 'edEnterpriseId' -> EnterprisesDelete enterprisesDelete pEdEnterpriseId_ =- EnterprisesDelete+ EnterprisesDelete' { _edEnterpriseId = pEdEnterpriseId_ } @@ -82,7 +82,9 @@ instance GoogleRequest EnterprisesDelete where type Rs EnterprisesDelete = ()- requestClient EnterprisesDelete{..}+ type Scopes EnterprisesDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesDelete'{..} = go _edEnterpriseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Enroll.hs view
@@ -14,15 +14,15 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Enrolls an enterprise with the calling MDM.+-- Enrolls an enterprise with the calling EMM. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@. module Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll ( -- * REST Resource@@ -51,10 +51,10 @@ QueryParam "alt" AltJSON :> ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise --- | Enrolls an enterprise with the calling MDM.+-- | Enrolls an enterprise with the calling EMM. -- -- /See:/ 'enterprisesEnroll' smart constructor.-data EnterprisesEnroll = EnterprisesEnroll+data EnterprisesEnroll = EnterprisesEnroll' { _eeToken :: !Text , _eePayload :: !Enterprise } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,12 +71,12 @@ -> Enterprise -- ^ 'eePayload' -> EnterprisesEnroll enterprisesEnroll pEeToken_ pEePayload_ =- EnterprisesEnroll+ EnterprisesEnroll' { _eeToken = pEeToken_ , _eePayload = pEePayload_ } --- | The token provided by the enterprise to register the MDM.+-- | The token provided by the enterprise to register the EMM. eeToken :: Lens' EnterprisesEnroll Text eeToken = lens _eeToken (\ s a -> s{_eeToken = a}) @@ -87,7 +87,9 @@ instance GoogleRequest EnterprisesEnroll where type Rs EnterprisesEnroll = Enterprise- requestClient EnterprisesEnroll{..}+ type Scopes EnterprisesEnroll =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesEnroll'{..} = go (Just _eeToken) (Just AltJSON) _eePayload androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the name and domain of an enterprise. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.get@. module Network.Google.Resource.AndroidEnterprise.Enterprises.Get ( -- * REST Resource@@ -51,7 +51,7 @@ -- | Retrieves the name and domain of an enterprise. -- -- /See:/ 'enterprisesGet' smart constructor.-newtype EnterprisesGet = EnterprisesGet+newtype EnterprisesGet = EnterprisesGet' { _eEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -64,7 +64,7 @@ :: Text -- ^ 'eEnterpriseId' -> EnterprisesGet enterprisesGet pEEnterpriseId_ =- EnterprisesGet+ EnterprisesGet' { _eEnterpriseId = pEEnterpriseId_ } @@ -76,7 +76,9 @@ instance GoogleRequest EnterprisesGet where type Rs EnterprisesGet = Enterprise- requestClient EnterprisesGet{..}+ type Scopes EnterprisesGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesGet'{..} = go _eEnterpriseId (Just AltJSON) androidEnterpriseService where go
+ gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetStoreLayout.hs view
@@ -0,0 +1,89 @@+{-# 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.Enterprises.GetStoreLayout+-- 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)+--+-- Returns the store layout resource.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getStoreLayout@.+module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout+ (+ -- * REST Resource+ EnterprisesGetStoreLayoutResource++ -- * Creating a Request+ , enterprisesGetStoreLayout+ , EnterprisesGetStoreLayout++ -- * Request Lenses+ , egslEnterpriseId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.enterprises.getStoreLayout@ method which the+-- 'EnterprisesGetStoreLayout' request conforms to.+type EnterprisesGetStoreLayoutResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ QueryParam "alt" AltJSON :> Get '[JSON] StoreLayout++-- | Returns the store layout resource.+--+-- /See:/ 'enterprisesGetStoreLayout' smart constructor.+newtype EnterprisesGetStoreLayout = EnterprisesGetStoreLayout'+ { _egslEnterpriseId :: Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'EnterprisesGetStoreLayout' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'egslEnterpriseId'+enterprisesGetStoreLayout+ :: Text -- ^ 'egslEnterpriseId'+ -> EnterprisesGetStoreLayout+enterprisesGetStoreLayout pEgslEnterpriseId_ =+ EnterprisesGetStoreLayout'+ { _egslEnterpriseId = pEgslEnterpriseId_+ }++-- | The ID of the enterprise.+egslEnterpriseId :: Lens' EnterprisesGetStoreLayout Text+egslEnterpriseId+ = lens _egslEnterpriseId+ (\ s a -> s{_egslEnterpriseId = a})++instance GoogleRequest EnterprisesGetStoreLayout+ where+ type Rs EnterprisesGetStoreLayout = StoreLayout+ type Scopes EnterprisesGetStoreLayout =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesGetStoreLayout'{..}+ = go _egslEnterpriseId (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy EnterprisesGetStoreLayoutResource)+ mempty
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Insert.hs view
@@ -14,16 +14,16 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Insert--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Establishes the binding between the MDM and an enterprise. This is now+-- Establishes the binding between the EMM and an enterprise. This is now -- deprecated; use enroll instead. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.insert@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.insert@. module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert ( -- * REST Resource@@ -51,11 +51,11 @@ QueryParam "alt" AltJSON :> ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise --- | Establishes the binding between the MDM and an enterprise. This is now+-- | Establishes the binding between the EMM and an enterprise. This is now -- deprecated; use enroll instead. -- -- /See:/ 'enterprisesInsert' smart constructor.-data EnterprisesInsert = EnterprisesInsert+data EnterprisesInsert = EnterprisesInsert' { _eiToken :: !Text , _eiPayload :: !Enterprise } deriving (Eq,Show,Data,Typeable,Generic)@@ -72,12 +72,12 @@ -> Enterprise -- ^ 'eiPayload' -> EnterprisesInsert enterprisesInsert pEiToken_ pEiPayload_ =- EnterprisesInsert+ EnterprisesInsert' { _eiToken = pEiToken_ , _eiPayload = pEiPayload_ } --- | The token provided by the enterprise to register the MDM.+-- | The token provided by the enterprise to register the EMM. eiToken :: Lens' EnterprisesInsert Text eiToken = lens _eiToken (\ s a -> s{_eiToken = a}) @@ -88,7 +88,9 @@ instance GoogleRequest EnterprisesInsert where type Rs EnterprisesInsert = Enterprise- requestClient EnterprisesInsert{..}+ type Scopes EnterprisesInsert =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesInsert'{..} = go (Just _eiToken) (Just AltJSON) _eiPayload androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Looks up an enterprise by domain name. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.list@. module Network.Google.Resource.AndroidEnterprise.Enterprises.List ( -- * REST Resource@@ -52,7 +52,7 @@ -- | Looks up an enterprise by domain name. -- -- /See:/ 'enterprisesList' smart constructor.-newtype EnterprisesList = EnterprisesList+newtype EnterprisesList = EnterprisesList' { _elDomain :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -65,7 +65,7 @@ :: Text -- ^ 'elDomain' -> EnterprisesList enterprisesList pElDomain_ =- EnterprisesList+ EnterprisesList' { _elDomain = pElDomain_ } @@ -75,7 +75,9 @@ instance GoogleRequest EnterprisesList where type Rs EnterprisesList = EnterprisesListResponse- requestClient EnterprisesList{..}+ type Scopes EnterprisesList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesList'{..} = go (Just _elDomain) (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SendTestPushNotification.hs view
@@ -14,16 +14,16 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Sends a test push notification to validate the MDM integration with the+-- Sends a test push notification to validate the EMM integration with the -- Google Cloud Pub\/Sub service for this enterprise. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@. module Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification ( -- * REST Resource@@ -52,11 +52,11 @@ Post '[JSON] EnterprisesSendTestPushNotificationResponse --- | Sends a test push notification to validate the MDM integration with the+-- | Sends a test push notification to validate the EMM integration with the -- Google Cloud Pub\/Sub service for this enterprise. -- -- /See:/ 'enterprisesSendTestPushNotification' smart constructor.-newtype EnterprisesSendTestPushNotification = EnterprisesSendTestPushNotification+newtype EnterprisesSendTestPushNotification = EnterprisesSendTestPushNotification' { _estpnEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -69,7 +69,7 @@ :: Text -- ^ 'estpnEnterpriseId' -> EnterprisesSendTestPushNotification enterprisesSendTestPushNotification pEstpnEnterpriseId_ =- EnterprisesSendTestPushNotification+ EnterprisesSendTestPushNotification' { _estpnEnterpriseId = pEstpnEnterpriseId_ } @@ -83,7 +83,10 @@ EnterprisesSendTestPushNotification where type Rs EnterprisesSendTestPushNotification = EnterprisesSendTestPushNotificationResponse- requestClient EnterprisesSendTestPushNotification{..}+ type Scopes EnterprisesSendTestPushNotification =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient+ EnterprisesSendTestPushNotification'{..} = go _estpnEnterpriseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetAccount.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -23,7 +23,7 @@ -- Set the account that will be used to authenticate to the API as the -- enterprise. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@. module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount ( -- * REST Resource@@ -57,7 +57,7 @@ -- enterprise. -- -- /See:/ 'enterprisesSetAccount' smart constructor.-data EnterprisesSetAccount = EnterprisesSetAccount+data EnterprisesSetAccount = EnterprisesSetAccount' { _esaEnterpriseId :: !Text , _esaPayload :: !EnterpriseAccount } deriving (Eq,Show,Data,Typeable,Generic)@@ -74,7 +74,7 @@ -> EnterpriseAccount -- ^ 'esaPayload' -> EnterprisesSetAccount enterprisesSetAccount pEsaEnterpriseId_ pEsaPayload_ =- EnterprisesSetAccount+ EnterprisesSetAccount' { _esaEnterpriseId = pEsaEnterpriseId_ , _esaPayload = pEsaPayload_ }@@ -92,7 +92,9 @@ instance GoogleRequest EnterprisesSetAccount where type Rs EnterprisesSetAccount = EnterpriseAccount- requestClient EnterprisesSetAccount{..}+ type Scopes EnterprisesSetAccount =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesSetAccount'{..} = go _esaEnterpriseId (Just AltJSON) _esaPayload androidEnterpriseService where go
+ gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs view
@@ -0,0 +1,102 @@+{-# 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.Enterprises.SetStoreLayout+-- 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)+--+-- Sets the store layout resource.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.+module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout+ (+ -- * REST Resource+ EnterprisesSetStoreLayoutResource++ -- * Creating a Request+ , enterprisesSetStoreLayout+ , EnterprisesSetStoreLayout++ -- * Request Lenses+ , esslEnterpriseId+ , esslPayload+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.enterprises.setStoreLayout@ method which the+-- 'EnterprisesSetStoreLayout' request conforms to.+type EnterprisesSetStoreLayoutResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StoreLayout :>+ Put '[JSON] StoreLayout++-- | Sets the store layout resource.+--+-- /See:/ 'enterprisesSetStoreLayout' smart constructor.+data EnterprisesSetStoreLayout = EnterprisesSetStoreLayout'+ { _esslEnterpriseId :: !Text+ , _esslPayload :: !StoreLayout+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'EnterprisesSetStoreLayout' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'esslEnterpriseId'+--+-- * 'esslPayload'+enterprisesSetStoreLayout+ :: Text -- ^ 'esslEnterpriseId'+ -> StoreLayout -- ^ 'esslPayload'+ -> EnterprisesSetStoreLayout+enterprisesSetStoreLayout pEsslEnterpriseId_ pEsslPayload_ =+ EnterprisesSetStoreLayout'+ { _esslEnterpriseId = pEsslEnterpriseId_+ , _esslPayload = pEsslPayload_+ }++-- | The ID of the enterprise.+esslEnterpriseId :: Lens' EnterprisesSetStoreLayout Text+esslEnterpriseId+ = lens _esslEnterpriseId+ (\ s a -> s{_esslEnterpriseId = a})++-- | Multipart request metadata.+esslPayload :: Lens' EnterprisesSetStoreLayout StoreLayout+esslPayload+ = lens _esslPayload (\ s a -> s{_esslPayload = a})++instance GoogleRequest EnterprisesSetStoreLayout+ where+ type Rs EnterprisesSetStoreLayout = StoreLayout+ type Scopes EnterprisesSetStoreLayout =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesSetStoreLayout'{..}+ = go _esslEnterpriseId (Just AltJSON) _esslPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy EnterprisesSetStoreLayoutResource)+ mempty
gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Unenroll.hs view
@@ -14,15 +14,15 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Unenrolls an enterprise from the calling MDM.+-- Unenrolls an enterprise from the calling EMM. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@. module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll ( -- * REST Resource@@ -49,10 +49,10 @@ "unenroll" :> QueryParam "alt" AltJSON :> Post '[JSON] () --- | Unenrolls an enterprise from the calling MDM.+-- | Unenrolls an enterprise from the calling EMM. -- -- /See:/ 'enterprisesUnenroll' smart constructor.-newtype EnterprisesUnenroll = EnterprisesUnenroll+newtype EnterprisesUnenroll = EnterprisesUnenroll' { _euuEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -65,7 +65,7 @@ :: Text -- ^ 'euuEnterpriseId' -> EnterprisesUnenroll enterprisesUnenroll pEuuEnterpriseId_ =- EnterprisesUnenroll+ EnterprisesUnenroll' { _euuEnterpriseId = pEuuEnterpriseId_ } @@ -77,7 +77,9 @@ instance GoogleRequest EnterprisesUnenroll where type Rs EnterprisesUnenroll = ()- requestClient EnterprisesUnenroll{..}+ type Scopes EnterprisesUnenroll =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EnterprisesUnenroll'{..} = go _euuEnterpriseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Delete.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Delete--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Removes an entitlement to an app for a user and uninstalls it. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.delete@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.delete@. module Network.Google.Resource.AndroidEnterprise.Entitlements.Delete ( -- * REST Resource@@ -57,7 +57,7 @@ -- | Removes an entitlement to an app for a user and uninstalls it. -- -- /See:/ 'entitlementsDelete' smart constructor.-data EntitlementsDelete = EntitlementsDelete+data EntitlementsDelete = EntitlementsDelete' { _entEntitlementId :: !Text , _entEnterpriseId :: !Text , _entUserId :: !Text@@ -78,13 +78,14 @@ -> Text -- ^ 'entUserId' -> EntitlementsDelete entitlementsDelete pEntEntitlementId_ pEntEnterpriseId_ pEntUserId_ =- EntitlementsDelete+ EntitlementsDelete' { _entEntitlementId = pEntEntitlementId_ , _entEnterpriseId = pEntEnterpriseId_ , _entUserId = pEntUserId_ } --- | The ID of the entitlement, e.g. \"app:com.google.android.gm\".+-- | The ID of the entitlement (a product ID), e.g.+-- \"app:com.google.android.gm\". entEntitlementId :: Lens' EntitlementsDelete Text entEntitlementId = lens _entEntitlementId@@ -103,7 +104,9 @@ instance GoogleRequest EntitlementsDelete where type Rs EntitlementsDelete = ()- requestClient EntitlementsDelete{..}+ type Scopes EntitlementsDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EntitlementsDelete'{..} = go _entEnterpriseId _entUserId _entEntitlementId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves details of an entitlement. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.get@. module Network.Google.Resource.AndroidEnterprise.Entitlements.Get ( -- * REST Resource@@ -57,7 +57,7 @@ -- | Retrieves details of an entitlement. -- -- /See:/ 'entitlementsGet' smart constructor.-data EntitlementsGet = EntitlementsGet+data EntitlementsGet = EntitlementsGet' { _egEntitlementId :: !Text , _egEnterpriseId :: !Text , _egUserId :: !Text@@ -78,13 +78,14 @@ -> Text -- ^ 'egUserId' -> EntitlementsGet entitlementsGet pEgEntitlementId_ pEgEnterpriseId_ pEgUserId_ =- EntitlementsGet+ EntitlementsGet' { _egEntitlementId = pEgEntitlementId_ , _egEnterpriseId = pEgEnterpriseId_ , _egUserId = pEgUserId_ } --- | The ID of the entitlement, e.g. \"app:com.google.android.gm\".+-- | The ID of the entitlement (a product ID), e.g.+-- \"app:com.google.android.gm\". egEntitlementId :: Lens' EntitlementsGet Text egEntitlementId = lens _egEntitlementId@@ -102,7 +103,9 @@ instance GoogleRequest EntitlementsGet where type Rs EntitlementsGet = Entitlement- requestClient EntitlementsGet{..}+ type Scopes EntitlementsGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EntitlementsGet'{..} = go _egEnterpriseId _egUserId _egEntitlementId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Entitlements/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- List of all entitlements for the specified user. Only the ID is set. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.list@. module Network.Google.Resource.AndroidEnterprise.Entitlements.List ( -- * REST Resource@@ -56,7 +56,7 @@ -- | List of all entitlements for the specified user. Only the ID is set. -- -- /See:/ 'entitlementsList' smart constructor.-data EntitlementsList = EntitlementsList+data EntitlementsList = EntitlementsList' { _elEnterpriseId :: !Text , _elUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -73,7 +73,7 @@ -> Text -- ^ 'elUserId' -> EntitlementsList entitlementsList pElEnterpriseId_ pElUserId_ =- EntitlementsList+ EntitlementsList' { _elEnterpriseId = pElEnterpriseId_ , _elUserId = pElUserId_ }@@ -90,7 +90,9 @@ instance GoogleRequest EntitlementsList where type Rs EntitlementsList = EntitlementsListResponse- requestClient EntitlementsList{..}+ type Scopes EntitlementsList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EntitlementsList'{..} = go _elEnterpriseId _elUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Patch.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Patch--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -23,7 +23,7 @@ -- Adds or updates an entitlement to an app for a user. This method -- supports patch semantics. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.patch@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.patch@. module Network.Google.Resource.AndroidEnterprise.Entitlements.Patch ( -- * REST Resource@@ -64,7 +64,7 @@ -- supports patch semantics. -- -- /See:/ 'entitlementsPatch' smart constructor.-data EntitlementsPatch = EntitlementsPatch+data EntitlementsPatch = EntitlementsPatch' { _epEntitlementId :: !Text , _epEnterpriseId :: !Text , _epPayload :: !Entitlement@@ -92,7 +92,7 @@ -> Text -- ^ 'epUserId' -> EntitlementsPatch entitlementsPatch pEpEntitlementId_ pEpEnterpriseId_ pEpPayload_ pEpUserId_ =- EntitlementsPatch+ EntitlementsPatch' { _epEntitlementId = pEpEntitlementId_ , _epEnterpriseId = pEpEnterpriseId_ , _epPayload = pEpPayload_@@ -100,7 +100,8 @@ , _epUserId = pEpUserId_ } --- | The ID of the entitlement, e.g. \"app:com.google.android.gm\".+-- | The ID of the entitlement (a product ID), e.g.+-- \"app:com.google.android.gm\". epEntitlementId :: Lens' EntitlementsPatch Text epEntitlementId = lens _epEntitlementId@@ -131,7 +132,9 @@ instance GoogleRequest EntitlementsPatch where type Rs EntitlementsPatch = Entitlement- requestClient EntitlementsPatch{..}+ type Scopes EntitlementsPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EntitlementsPatch'{..} = go _epEnterpriseId _epUserId _epEntitlementId _epInstall (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Update.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Update--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Adds or updates an entitlement to an app for a user. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.update@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.update@. module Network.Google.Resource.AndroidEnterprise.Entitlements.Update ( -- * REST Resource@@ -62,7 +62,7 @@ -- | Adds or updates an entitlement to an app for a user. -- -- /See:/ 'entitlementsUpdate' smart constructor.-data EntitlementsUpdate = EntitlementsUpdate+data EntitlementsUpdate = EntitlementsUpdate' { _euEntitlementId :: !Text , _euEnterpriseId :: !Text , _euPayload :: !Entitlement@@ -90,7 +90,7 @@ -> Text -- ^ 'euUserId' -> EntitlementsUpdate entitlementsUpdate pEuEntitlementId_ pEuEnterpriseId_ pEuPayload_ pEuUserId_ =- EntitlementsUpdate+ EntitlementsUpdate' { _euEntitlementId = pEuEntitlementId_ , _euEnterpriseId = pEuEnterpriseId_ , _euPayload = pEuPayload_@@ -98,7 +98,8 @@ , _euUserId = pEuUserId_ } --- | The ID of the entitlement, e.g. \"app:com.google.android.gm\".+-- | The ID of the entitlement (a product ID), e.g.+-- \"app:com.google.android.gm\". euEntitlementId :: Lens' EntitlementsUpdate Text euEntitlementId = lens _euEntitlementId@@ -129,7 +130,9 @@ instance GoogleRequest EntitlementsUpdate where type Rs EntitlementsUpdate = Entitlement- requestClient EntitlementsUpdate{..}+ type Scopes EntitlementsUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient EntitlementsUpdate'{..} = go _euEnterpriseId _euUserId _euEntitlementId _euInstall (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/GrouplicenseUsers/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -23,7 +23,7 @@ -- Retrieves the IDs of the users who have been granted entitlements under -- the license. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@. module Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List ( -- * REST Resource@@ -58,7 +58,7 @@ -- the license. -- -- /See:/ 'grouplicenseUsersList' smart constructor.-data GrouplicenseUsersList = GrouplicenseUsersList+data GrouplicenseUsersList = GrouplicenseUsersList' { _gulEnterpriseId :: !Text , _gulGroupLicenseId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -75,7 +75,7 @@ -> Text -- ^ 'gulGroupLicenseId' -> GrouplicenseUsersList grouplicenseUsersList pGulEnterpriseId_ pGulGroupLicenseId_ =- GrouplicenseUsersList+ GrouplicenseUsersList' { _gulEnterpriseId = pGulEnterpriseId_ , _gulGroupLicenseId = pGulGroupLicenseId_ }@@ -96,7 +96,9 @@ instance GoogleRequest GrouplicenseUsersList where type Rs GrouplicenseUsersList = GroupLicenseUsersListResponse- requestClient GrouplicenseUsersList{..}+ type Scopes GrouplicenseUsersList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient GrouplicenseUsersList'{..} = go _gulEnterpriseId _gulGroupLicenseId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves details of an enterprise\'s group license for a product. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@. module Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get ( -- * REST Resource@@ -54,7 +54,7 @@ -- | Retrieves details of an enterprise\'s group license for a product. -- -- /See:/ 'grouplicensesGet' smart constructor.-data GrouplicensesGet = GrouplicensesGet+data GrouplicensesGet = GrouplicensesGet' { _ggEnterpriseId :: !Text , _ggGroupLicenseId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ -> Text -- ^ 'ggGroupLicenseId' -> GrouplicensesGet grouplicensesGet pGgEnterpriseId_ pGgGroupLicenseId_ =- GrouplicensesGet+ GrouplicensesGet' { _ggEnterpriseId = pGgEnterpriseId_ , _ggGroupLicenseId = pGgGroupLicenseId_ }@@ -91,7 +91,9 @@ instance GoogleRequest GrouplicensesGet where type Rs GrouplicensesGet = GroupLicense- requestClient GrouplicensesGet{..}+ type Scopes GrouplicensesGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient GrouplicensesGet'{..} = go _ggEnterpriseId _ggGroupLicenseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Grouplicenses.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -23,7 +23,7 @@ -- Retrieves IDs of all products for which the enterprise has a group -- license. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@. module Network.Google.Resource.AndroidEnterprise.Grouplicenses.List ( -- * REST Resource@@ -55,7 +55,7 @@ -- license. -- -- /See:/ 'grouplicensesList' smart constructor.-newtype GrouplicensesList = GrouplicensesList+newtype GrouplicensesList = GrouplicensesList' { _glEnterpriseId :: Text } deriving (Eq,Show,Data,Typeable,Generic) @@ -68,7 +68,7 @@ :: Text -- ^ 'glEnterpriseId' -> GrouplicensesList grouplicensesList pGlEnterpriseId_ =- GrouplicensesList+ GrouplicensesList' { _glEnterpriseId = pGlEnterpriseId_ } @@ -80,7 +80,9 @@ instance GoogleRequest GrouplicensesList where type Rs GrouplicensesList = GroupLicensesListResponse- requestClient GrouplicensesList{..}+ type Scopes GrouplicensesList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient GrouplicensesList'{..} = go _glEnterpriseId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Installs/Delete.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Installs.Delete--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- still show the app as installed on the device until it is actually -- removed. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.delete@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.delete@. module Network.Google.Resource.AndroidEnterprise.Installs.Delete ( -- * REST Resource@@ -64,7 +64,7 @@ -- removed. -- -- /See:/ 'installsDelete' smart constructor.-data InstallsDelete = InstallsDelete+data InstallsDelete = InstallsDelete' { _idEnterpriseId :: !Text , _idUserId :: !Text , _idInstallId :: !Text@@ -89,7 +89,7 @@ -> Text -- ^ 'idDeviceId' -> InstallsDelete installsDelete pIdEnterpriseId_ pIdUserId_ pIdInstallId_ pIdDeviceId_ =- InstallsDelete+ InstallsDelete' { _idEnterpriseId = pIdEnterpriseId_ , _idUserId = pIdUserId_ , _idInstallId = pIdInstallId_@@ -119,7 +119,9 @@ instance GoogleRequest InstallsDelete where type Rs InstallsDelete = ()- requestClient InstallsDelete{..}+ type Scopes InstallsDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient InstallsDelete'{..} = go _idEnterpriseId _idUserId _idDeviceId _idInstallId (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Installs/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Installs.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves details of an installation of an app on a device. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.get@. module Network.Google.Resource.AndroidEnterprise.Installs.Get ( -- * REST Resource@@ -60,7 +60,7 @@ -- | Retrieves details of an installation of an app on a device. -- -- /See:/ 'installsGet' smart constructor.-data InstallsGet = InstallsGet+data InstallsGet = InstallsGet' { _igEnterpriseId :: !Text , _igUserId :: !Text , _igInstallId :: !Text@@ -85,7 +85,7 @@ -> Text -- ^ 'igDeviceId' -> InstallsGet installsGet pIgEnterpriseId_ pIgUserId_ pIgInstallId_ pIgDeviceId_ =- InstallsGet+ InstallsGet' { _igEnterpriseId = pIgEnterpriseId_ , _igUserId = pIgUserId_ , _igInstallId = pIgInstallId_@@ -115,7 +115,9 @@ instance GoogleRequest InstallsGet where type Rs InstallsGet = Install- requestClient InstallsGet{..}+ type Scopes InstallsGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient InstallsGet'{..} = go _igEnterpriseId _igUserId _igDeviceId _igInstallId (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Installs/List.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Installs.List--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the details of all apps installed on the specified device. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.list@. module Network.Google.Resource.AndroidEnterprise.Installs.List ( -- * REST Resource@@ -59,7 +59,7 @@ -- | Retrieves the details of all apps installed on the specified device. -- -- /See:/ 'installsList' smart constructor.-data InstallsList = InstallsList+data InstallsList = InstallsList' { _ilEnterpriseId :: !Text , _ilUserId :: !Text , _ilDeviceId :: !Text@@ -80,7 +80,7 @@ -> Text -- ^ 'ilDeviceId' -> InstallsList installsList pIlEnterpriseId_ pIlUserId_ pIlDeviceId_ =- InstallsList+ InstallsList' { _ilEnterpriseId = pIlEnterpriseId_ , _ilUserId = pIlUserId_ , _ilDeviceId = pIlDeviceId_@@ -103,7 +103,9 @@ instance GoogleRequest InstallsList where type Rs InstallsList = InstallsListResponse- requestClient InstallsList{..}+ type Scopes InstallsList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient InstallsList'{..} = go _ilEnterpriseId _ilUserId _ilDeviceId (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Installs/Patch.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Installs.Patch--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- is already installed then it is updated to the latest version if -- necessary. This method supports patch semantics. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.patch@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.patch@. module Network.Google.Resource.AndroidEnterprise.Installs.Patch ( -- * REST Resource@@ -66,7 +66,7 @@ -- necessary. This method supports patch semantics. -- -- /See:/ 'installsPatch' smart constructor.-data InstallsPatch = InstallsPatch+data InstallsPatch = InstallsPatch' { _ipEnterpriseId :: !Text , _ipPayload :: !Install , _ipUserId :: !Text@@ -95,7 +95,7 @@ -> Text -- ^ 'ipDeviceId' -> InstallsPatch installsPatch pIpEnterpriseId_ pIpPayload_ pIpUserId_ pIpInstallId_ pIpDeviceId_ =- InstallsPatch+ InstallsPatch' { _ipEnterpriseId = pIpEnterpriseId_ , _ipPayload = pIpPayload_ , _ipUserId = pIpUserId_@@ -131,7 +131,9 @@ instance GoogleRequest InstallsPatch where type Rs InstallsPatch = Install- requestClient InstallsPatch{..}+ type Scopes InstallsPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient InstallsPatch'{..} = go _ipEnterpriseId _ipUserId _ipDeviceId _ipInstallId (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Installs/Update.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Installs.Update--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- is already installed then it is updated to the latest version if -- necessary. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.update@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.update@. module Network.Google.Resource.AndroidEnterprise.Installs.Update ( -- * REST Resource@@ -66,7 +66,7 @@ -- necessary. -- -- /See:/ 'installsUpdate' smart constructor.-data InstallsUpdate = InstallsUpdate+data InstallsUpdate = InstallsUpdate' { _iuEnterpriseId :: !Text , _iuPayload :: !Install , _iuUserId :: !Text@@ -95,7 +95,7 @@ -> Text -- ^ 'iuDeviceId' -> InstallsUpdate installsUpdate pIuEnterpriseId_ pIuPayload_ pIuUserId_ pIuInstallId_ pIuDeviceId_ =- InstallsUpdate+ InstallsUpdate' { _iuEnterpriseId = pIuEnterpriseId_ , _iuPayload = pIuPayload_ , _iuUserId = pIuUserId_@@ -131,7 +131,9 @@ instance GoogleRequest InstallsUpdate where type Rs InstallsUpdate = Install- requestClient InstallsUpdate{..}+ type Scopes InstallsUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient InstallsUpdate'{..} = go _iuEnterpriseId _iuUserId _iuDeviceId _iuInstallId (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Permissions/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Permissions.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -23,7 +23,7 @@ -- Retrieves details of an Android app permission for display to an -- enterprise admin. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.permissions.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.permissions.get@. module Network.Google.Resource.AndroidEnterprise.Permissions.Get ( -- * REST Resource@@ -55,7 +55,7 @@ -- enterprise admin. -- -- /See:/ 'permissionsGet' smart constructor.-data PermissionsGet = PermissionsGet+data PermissionsGet = PermissionsGet' { _pgLanguage :: !(Maybe Text) , _pgPermissionId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ :: Text -- ^ 'pgPermissionId' -> PermissionsGet permissionsGet pPgPermissionId_ =- PermissionsGet+ PermissionsGet' { _pgLanguage = Nothing , _pgPermissionId = pPgPermissionId_ }@@ -90,7 +90,9 @@ instance GoogleRequest PermissionsGet where type Rs PermissionsGet = Permission- requestClient PermissionsGet{..}+ type Scopes PermissionsGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient PermissionsGet'{..} = go _pgPermissionId _pgLanguage (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs view
@@ -14,16 +14,19 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.Approve--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Approves the specified product (and the relevant app permissions, if--- any).+-- 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 Google Play for Work to design+-- and create a store layout to display approved products to your users,+-- see Store Layout Design. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.approve@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@. module Network.Google.Resource.AndroidEnterprise.Products.Approve ( -- * REST Resource@@ -56,11 +59,14 @@ ReqBody '[JSON] ProductsApproveRequest :> Post '[JSON] () --- | Approves the specified product (and the relevant app permissions, if--- any).+-- | 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 Google Play for Work to design+-- and create a store layout to display approved products to your users,+-- see Store Layout Design. -- -- /See:/ 'productsApprove' smart constructor.-data ProductsApprove = ProductsApprove+data ProductsApprove = ProductsApprove' { _paEnterpriseId :: !Text , _paPayload :: !ProductsApproveRequest , _paProductId :: !Text@@ -81,7 +87,7 @@ -> Text -- ^ 'paProductId' -> ProductsApprove productsApprove pPaEnterpriseId_ pPaPayload_ pPaProductId_ =- ProductsApprove+ ProductsApprove' { _paEnterpriseId = pPaEnterpriseId_ , _paPayload = pPaPayload_ , _paProductId = pPaProductId_@@ -105,7 +111,9 @@ instance GoogleRequest ProductsApprove where type Rs ProductsApprove = ()- requestClient ProductsApprove{..}+ type Scopes ProductsApprove =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsApprove'{..} = go _paEnterpriseId _paProductId (Just AltJSON) _paPayload androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Products/GenerateApprovalURL.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -29,7 +29,7 @@ -- 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:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@. module Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL ( -- * REST Resource@@ -72,7 +72,7 @@ -- only be used to display permissions for up to 1 day. -- -- /See:/ 'productsGenerateApprovalURL' smart constructor.-data ProductsGenerateApprovalURL = ProductsGenerateApprovalURL+data ProductsGenerateApprovalURL = ProductsGenerateApprovalURL' { _pgauLanguageCode :: !(Maybe Text) , _pgauEnterpriseId :: !Text , _pgauProductId :: !Text@@ -92,7 +92,7 @@ -> Text -- ^ 'pgauProductId' -> ProductsGenerateApprovalURL productsGenerateApprovalURL pPgauEnterpriseId_ pPgauProductId_ =- ProductsGenerateApprovalURL+ ProductsGenerateApprovalURL' { _pgauLanguageCode = Nothing , _pgauEnterpriseId = pPgauEnterpriseId_ , _pgauProductId = pPgauProductId_@@ -121,7 +121,9 @@ where type Rs ProductsGenerateApprovalURL = ProductsGenerateApprovalURLResponse- requestClient ProductsGenerateApprovalURL{..}+ type Scopes ProductsGenerateApprovalURL =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsGenerateApprovalURL'{..} = go _pgauEnterpriseId _pgauProductId _pgauLanguageCode (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Products/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves details of a product for display to an enterprise admin. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.get@. module Network.Google.Resource.AndroidEnterprise.Products.Get ( -- * REST Resource@@ -56,7 +56,7 @@ -- | Retrieves details of a product for display to an enterprise admin. -- -- /See:/ 'productsGet' smart constructor.-data ProductsGet = ProductsGet+data ProductsGet = ProductsGet' { _proEnterpriseId :: !Text , _proLanguage :: !(Maybe Text) , _proProductId :: !Text@@ -76,7 +76,7 @@ -> Text -- ^ 'proProductId' -> ProductsGet productsGet pProEnterpriseId_ pProProductId_ =- ProductsGet+ ProductsGet' { _proEnterpriseId = pProEnterpriseId_ , _proLanguage = Nothing , _proProductId = pProProductId_@@ -101,7 +101,9 @@ instance GoogleRequest ProductsGet where type Rs ProductsGet = Product- requestClient ProductsGet{..}+ type Scopes ProductsGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsGet'{..} = go _proEnterpriseId _proProductId _proLanguage (Just AltJSON) androidEnterpriseService
gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -24,7 +24,7 @@ -- product. All products have a schema, but this may be empty if no app -- restrictions are defined. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@. module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema ( -- * REST Resource@@ -62,7 +62,7 @@ -- restrictions are defined. -- -- /See:/ 'productsGetAppRestrictionsSchema' smart constructor.-data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema+data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema' { _pgarsEnterpriseId :: !Text , _pgarsLanguage :: !(Maybe Text) , _pgarsProductId :: !Text@@ -82,7 +82,7 @@ -> Text -- ^ 'pgarsProductId' -> ProductsGetAppRestrictionsSchema productsGetAppRestrictionsSchema pPgarsEnterpriseId_ pPgarsProductId_ =- ProductsGetAppRestrictionsSchema+ ProductsGetAppRestrictionsSchema' { _pgarsEnterpriseId = pPgarsEnterpriseId_ , _pgarsLanguage = Nothing , _pgarsProductId = pPgarsProductId_@@ -111,7 +111,9 @@ ProductsGetAppRestrictionsSchema where type Rs ProductsGetAppRestrictionsSchema = AppRestrictionsSchema- requestClient ProductsGetAppRestrictionsSchema{..}+ type Scopes ProductsGetAppRestrictionsSchema =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsGetAppRestrictionsSchema'{..} = go _pgarsEnterpriseId _pgarsProductId _pgarsLanguage (Just AltJSON)
gen/Network/Google/Resource/AndroidEnterprise/Products/GetPermissions.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.GetPermissions--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the Android app permissions required by this app. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.getPermissions@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getPermissions@. module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions ( -- * REST Resource@@ -56,7 +56,7 @@ -- | Retrieves the Android app permissions required by this app. -- -- /See:/ 'productsGetPermissions' smart constructor.-data ProductsGetPermissions = ProductsGetPermissions+data ProductsGetPermissions = ProductsGetPermissions' { _pgpEnterpriseId :: !Text , _pgpProductId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -73,7 +73,7 @@ -> Text -- ^ 'pgpProductId' -> ProductsGetPermissions productsGetPermissions pPgpEnterpriseId_ pPgpProductId_ =- ProductsGetPermissions+ ProductsGetPermissions' { _pgpEnterpriseId = pPgpEnterpriseId_ , _pgpProductId = pPgpProductId_ }@@ -91,7 +91,9 @@ instance GoogleRequest ProductsGetPermissions where type Rs ProductsGetPermissions = ProductPermissions- requestClient ProductsGetPermissions{..}+ type Scopes ProductsGetPermissions =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsGetPermissions'{..} = go _pgpEnterpriseId _pgpProductId (Just AltJSON) androidEnterpriseService where go
+ gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs view
@@ -0,0 +1,156 @@+{-# 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.List+-- 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)+--+-- Finds approved products that match a query.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.list@.+module Network.Google.Resource.AndroidEnterprise.Products.List+ (+ -- * REST Resource+ ProductsListResource++ -- * Creating a Request+ , productsList+ , ProductsList++ -- * Request Lenses+ , plEnterpriseId+ , plToken+ , plQuery+ , plLanguage+ , plApproved+ , plMaxResults+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.products.list@ method which the+-- 'ProductsList' request conforms to.+type ProductsListResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "products" :>+ QueryParam "token" Text :>+ QueryParam "query" Text :>+ QueryParam "language" Text :>+ QueryParam "approved" Bool :>+ QueryParam "maxResults" (Textual Word32) :>+ QueryParam "alt" AltJSON :>+ Get '[JSON] ProductsListResponse++-- | Finds approved products that match a query.+--+-- /See:/ 'productsList' smart constructor.+data ProductsList = ProductsList'+ { _plEnterpriseId :: !Text+ , _plToken :: !(Maybe Text)+ , _plQuery :: !(Maybe Text)+ , _plLanguage :: !(Maybe Text)+ , _plApproved :: !(Maybe Bool)+ , _plMaxResults :: !(Maybe (Textual Word32))+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ProductsList' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'plEnterpriseId'+--+-- * 'plToken'+--+-- * 'plQuery'+--+-- * 'plLanguage'+--+-- * 'plApproved'+--+-- * 'plMaxResults'+productsList+ :: Text -- ^ 'plEnterpriseId'+ -> ProductsList+productsList pPlEnterpriseId_ =+ ProductsList'+ { _plEnterpriseId = pPlEnterpriseId_+ , _plToken = Nothing+ , _plQuery = Nothing+ , _plLanguage = Nothing+ , _plApproved = Nothing+ , _plMaxResults = Nothing+ }++-- | The ID of the enterprise.+plEnterpriseId :: Lens' ProductsList Text+plEnterpriseId+ = lens _plEnterpriseId+ (\ s a -> s{_plEnterpriseId = a})++-- | A pagination token is contained in a request’s response when there are+-- more products. The token can be used in a subsequent request to obtain+-- more products, and so forth. This parameter cannot be used in the+-- initial request.+plToken :: Lens' ProductsList (Maybe Text)+plToken = lens _plToken (\ s a -> s{_plToken = a})++-- | The search query as typed in the Google Play Store search box. If+-- omitted, all approved apps will be returned (using the pagination+-- parameters).+plQuery :: Lens' ProductsList (Maybe Text)+plQuery = lens _plQuery (\ s a -> s{_plQuery = a})++-- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",+-- \"de\"). Results are returned in the language best matching the+-- preferred language.+plLanguage :: Lens' ProductsList (Maybe Text)+plLanguage+ = lens _plLanguage (\ s a -> s{_plLanguage = a})++-- | Specifies whether to search among all products (false) or among only+-- products that have been approved (true). Only \"true\" is supported, and+-- should be specified.+plApproved :: Lens' ProductsList (Maybe Bool)+plApproved+ = lens _plApproved (\ s a -> s{_plApproved = a})++-- | Specifies the maximum number of products that can be returned per+-- request. If not specified, uses a default value of 100, which is also+-- the maximum retrievable within a single response.+plMaxResults :: Lens' ProductsList (Maybe Word32)+plMaxResults+ = lens _plMaxResults (\ s a -> s{_plMaxResults = a})+ . mapping _Coerce++instance GoogleRequest ProductsList where+ type Rs ProductsList = ProductsListResponse+ type Scopes ProductsList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsList'{..}+ = go _plEnterpriseId _plToken _plQuery _plLanguage+ _plApproved+ _plMaxResults+ (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient (Proxy :: Proxy ProductsListResource)+ mempty
gen/Network/Google/Resource/AndroidEnterprise/Products/UpdatePermissions.hs view
@@ -14,16 +14,20 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Updates the set of Android app permissions for this app that have been--- accepted by the enterprise.+-- This method has been deprecated. To programmatically approve+-- applications, you must use the iframe mechanism via the+-- generateApprovalUrl and approve methods of the Products resource. For+-- more information, see the Play EMM API usage requirements. The+-- updatePermissions method (deprecated) updates the set of Android app+-- permissions for this app that have been accepted by the enterprise. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.updatePermissions@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.updatePermissions@. module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions ( -- * REST Resource@@ -56,11 +60,15 @@ ReqBody '[JSON] ProductPermissions :> Put '[JSON] ProductPermissions --- | Updates the set of Android app permissions for this app that have been--- accepted by the enterprise.+-- | This method has been deprecated. To programmatically approve+-- applications, you must use the iframe mechanism via the+-- generateApprovalUrl and approve methods of the Products resource. For+-- more information, see the Play EMM API usage requirements. The+-- updatePermissions method (deprecated) updates the set of Android app+-- permissions for this app that have been accepted by the enterprise. -- -- /See:/ 'productsUpdatePermissions' smart constructor.-data ProductsUpdatePermissions = ProductsUpdatePermissions+data ProductsUpdatePermissions = ProductsUpdatePermissions' { _pupEnterpriseId :: !Text , _pupPayload :: !ProductPermissions , _pupProductId :: !Text@@ -81,7 +89,7 @@ -> Text -- ^ 'pupProductId' -> ProductsUpdatePermissions productsUpdatePermissions pPupEnterpriseId_ pPupPayload_ pPupProductId_ =- ProductsUpdatePermissions+ ProductsUpdatePermissions' { _pupEnterpriseId = pPupEnterpriseId_ , _pupPayload = pPupPayload_ , _pupProductId = pPupProductId_@@ -107,7 +115,9 @@ where type Rs ProductsUpdatePermissions = ProductPermissions- requestClient ProductsUpdatePermissions{..}+ type Scopes ProductsUpdatePermissions =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient ProductsUpdatePermissions'{..} = go _pupEnterpriseId _pupProductId (Just AltJSON) _pupPayload androidEnterpriseService
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Delete.hs view
@@ -0,0 +1,116 @@+{-# 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.Storelayoutclusters.Delete+-- 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)+--+-- Deletes a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.delete@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete+ (+ -- * REST Resource+ StorelayoutclustersDeleteResource++ -- * Creating a Request+ , storelayoutclustersDelete+ , StorelayoutclustersDelete++ -- * Request Lenses+ , sddEnterpriseId+ , sddPageId+ , sddClusterId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.delete@ method which the+-- 'StorelayoutclustersDelete' request conforms to.+type StorelayoutclustersDeleteResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ Capture "clusterId" Text :>+ QueryParam "alt" AltJSON :> Delete '[JSON] ()++-- | Deletes a cluster.+--+-- /See:/ 'storelayoutclustersDelete' smart constructor.+data StorelayoutclustersDelete = StorelayoutclustersDelete'+ { _sddEnterpriseId :: !Text+ , _sddPageId :: !Text+ , _sddClusterId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersDelete' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sddEnterpriseId'+--+-- * 'sddPageId'+--+-- * 'sddClusterId'+storelayoutclustersDelete+ :: Text -- ^ 'sddEnterpriseId'+ -> Text -- ^ 'sddPageId'+ -> Text -- ^ 'sddClusterId'+ -> StorelayoutclustersDelete+storelayoutclustersDelete pSddEnterpriseId_ pSddPageId_ pSddClusterId_ =+ StorelayoutclustersDelete'+ { _sddEnterpriseId = pSddEnterpriseId_+ , _sddPageId = pSddPageId_+ , _sddClusterId = pSddClusterId_+ }++-- | The ID of the enterprise.+sddEnterpriseId :: Lens' StorelayoutclustersDelete Text+sddEnterpriseId+ = lens _sddEnterpriseId+ (\ s a -> s{_sddEnterpriseId = a})++-- | The ID of the page.+sddPageId :: Lens' StorelayoutclustersDelete Text+sddPageId+ = lens _sddPageId (\ s a -> s{_sddPageId = a})++-- | The ID of the cluster.+sddClusterId :: Lens' StorelayoutclustersDelete Text+sddClusterId+ = lens _sddClusterId (\ s a -> s{_sddClusterId = a})++instance GoogleRequest StorelayoutclustersDelete+ where+ type Rs StorelayoutclustersDelete = ()+ type Scopes StorelayoutclustersDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersDelete'{..}+ = go _sddEnterpriseId _sddPageId _sddClusterId+ (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersDeleteResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Get.hs view
@@ -0,0 +1,115 @@+{-# 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.Storelayoutclusters.Get+-- 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)+--+-- Retrieves details of a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.get@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get+ (+ -- * REST Resource+ StorelayoutclustersGetResource++ -- * Creating a Request+ , storelayoutclustersGet+ , StorelayoutclustersGet++ -- * Request Lenses+ , stoEnterpriseId+ , stoPageId+ , stoClusterId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.get@ method which the+-- 'StorelayoutclustersGet' request conforms to.+type StorelayoutclustersGetResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ Capture "clusterId" Text :>+ QueryParam "alt" AltJSON :> Get '[JSON] StoreCluster++-- | Retrieves details of a cluster.+--+-- /See:/ 'storelayoutclustersGet' smart constructor.+data StorelayoutclustersGet = StorelayoutclustersGet'+ { _stoEnterpriseId :: !Text+ , _stoPageId :: !Text+ , _stoClusterId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersGet' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stoEnterpriseId'+--+-- * 'stoPageId'+--+-- * 'stoClusterId'+storelayoutclustersGet+ :: Text -- ^ 'stoEnterpriseId'+ -> Text -- ^ 'stoPageId'+ -> Text -- ^ 'stoClusterId'+ -> StorelayoutclustersGet+storelayoutclustersGet pStoEnterpriseId_ pStoPageId_ pStoClusterId_ =+ StorelayoutclustersGet'+ { _stoEnterpriseId = pStoEnterpriseId_+ , _stoPageId = pStoPageId_+ , _stoClusterId = pStoClusterId_+ }++-- | The ID of the enterprise.+stoEnterpriseId :: Lens' StorelayoutclustersGet Text+stoEnterpriseId+ = lens _stoEnterpriseId+ (\ s a -> s{_stoEnterpriseId = a})++-- | The ID of the page.+stoPageId :: Lens' StorelayoutclustersGet Text+stoPageId+ = lens _stoPageId (\ s a -> s{_stoPageId = a})++-- | The ID of the cluster.+stoClusterId :: Lens' StorelayoutclustersGet Text+stoClusterId+ = lens _stoClusterId (\ s a -> s{_stoClusterId = a})++instance GoogleRequest StorelayoutclustersGet where+ type Rs StorelayoutclustersGet = StoreCluster+ type Scopes StorelayoutclustersGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersGet'{..}+ = go _stoEnterpriseId _stoPageId _stoClusterId+ (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersGetResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Insert.hs view
@@ -0,0 +1,114 @@+{-# 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.Storelayoutclusters.Insert+-- 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)+--+-- Inserts a new cluster in a page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.insert@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert+ (+ -- * REST Resource+ StorelayoutclustersInsertResource++ -- * Creating a Request+ , storelayoutclustersInsert+ , StorelayoutclustersInsert++ -- * Request Lenses+ , sEnterpriseId+ , sPageId+ , sPayload+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.insert@ method which the+-- 'StorelayoutclustersInsert' request conforms to.+type StorelayoutclustersInsertResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StoreCluster :>+ Post '[JSON] StoreCluster++-- | Inserts a new cluster in a page.+--+-- /See:/ 'storelayoutclustersInsert' smart constructor.+data StorelayoutclustersInsert = StorelayoutclustersInsert'+ { _sEnterpriseId :: !Text+ , _sPageId :: !Text+ , _sPayload :: !StoreCluster+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersInsert' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sEnterpriseId'+--+-- * 'sPageId'+--+-- * 'sPayload'+storelayoutclustersInsert+ :: Text -- ^ 'sEnterpriseId'+ -> Text -- ^ 'sPageId'+ -> StoreCluster -- ^ 'sPayload'+ -> StorelayoutclustersInsert+storelayoutclustersInsert pSEnterpriseId_ pSPageId_ pSPayload_ =+ StorelayoutclustersInsert'+ { _sEnterpriseId = pSEnterpriseId_+ , _sPageId = pSPageId_+ , _sPayload = pSPayload_+ }++-- | The ID of the enterprise.+sEnterpriseId :: Lens' StorelayoutclustersInsert Text+sEnterpriseId+ = lens _sEnterpriseId+ (\ s a -> s{_sEnterpriseId = a})++-- | The ID of the page.+sPageId :: Lens' StorelayoutclustersInsert Text+sPageId = lens _sPageId (\ s a -> s{_sPageId = a})++-- | Multipart request metadata.+sPayload :: Lens' StorelayoutclustersInsert StoreCluster+sPayload = lens _sPayload (\ s a -> s{_sPayload = a})++instance GoogleRequest StorelayoutclustersInsert+ where+ type Rs StorelayoutclustersInsert = StoreCluster+ type Scopes StorelayoutclustersInsert =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersInsert'{..}+ = go _sEnterpriseId _sPageId (Just AltJSON) _sPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersInsertResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/List.hs view
@@ -0,0 +1,104 @@+{-# 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.Storelayoutclusters.List+-- 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)+--+-- Retrieves the details of all clusters on the specified page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.list@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List+ (+ -- * REST Resource+ StorelayoutclustersListResource++ -- * Creating a Request+ , storelayoutclustersList+ , StorelayoutclustersList++ -- * Request Lenses+ , sllEnterpriseId+ , sllPageId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.list@ method which the+-- 'StorelayoutclustersList' request conforms to.+type StorelayoutclustersListResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ QueryParam "alt" AltJSON :>+ Get '[JSON] StoreLayoutClustersListResponse++-- | Retrieves the details of all clusters on the specified page.+--+-- /See:/ 'storelayoutclustersList' smart constructor.+data StorelayoutclustersList = StorelayoutclustersList'+ { _sllEnterpriseId :: !Text+ , _sllPageId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersList' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sllEnterpriseId'+--+-- * 'sllPageId'+storelayoutclustersList+ :: Text -- ^ 'sllEnterpriseId'+ -> Text -- ^ 'sllPageId'+ -> StorelayoutclustersList+storelayoutclustersList pSllEnterpriseId_ pSllPageId_ =+ StorelayoutclustersList'+ { _sllEnterpriseId = pSllEnterpriseId_+ , _sllPageId = pSllPageId_+ }++-- | The ID of the enterprise.+sllEnterpriseId :: Lens' StorelayoutclustersList Text+sllEnterpriseId+ = lens _sllEnterpriseId+ (\ s a -> s{_sllEnterpriseId = a})++-- | The ID of the page.+sllPageId :: Lens' StorelayoutclustersList Text+sllPageId+ = lens _sllPageId (\ s a -> s{_sllPageId = a})++instance GoogleRequest StorelayoutclustersList where+ type Rs StorelayoutclustersList =+ StoreLayoutClustersListResponse+ type Scopes StorelayoutclustersList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersList'{..}+ = go _sllEnterpriseId _sllPageId (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersListResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Patch.hs view
@@ -0,0 +1,129 @@+{-# 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.Storelayoutclusters.Patch+-- 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)+--+-- Updates a cluster. This method supports patch semantics.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.patch@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch+ (+ -- * REST Resource+ StorelayoutclustersPatchResource++ -- * Creating a Request+ , storelayoutclustersPatch+ , StorelayoutclustersPatch++ -- * Request Lenses+ , sppEnterpriseId+ , sppPageId+ , sppPayload+ , sppClusterId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.patch@ method which the+-- 'StorelayoutclustersPatch' request conforms to.+type StorelayoutclustersPatchResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ Capture "clusterId" Text :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StoreCluster :>+ Patch '[JSON] StoreCluster++-- | Updates a cluster. This method supports patch semantics.+--+-- /See:/ 'storelayoutclustersPatch' smart constructor.+data StorelayoutclustersPatch = StorelayoutclustersPatch'+ { _sppEnterpriseId :: !Text+ , _sppPageId :: !Text+ , _sppPayload :: !StoreCluster+ , _sppClusterId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersPatch' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sppEnterpriseId'+--+-- * 'sppPageId'+--+-- * 'sppPayload'+--+-- * 'sppClusterId'+storelayoutclustersPatch+ :: Text -- ^ 'sppEnterpriseId'+ -> Text -- ^ 'sppPageId'+ -> StoreCluster -- ^ 'sppPayload'+ -> Text -- ^ 'sppClusterId'+ -> StorelayoutclustersPatch+storelayoutclustersPatch pSppEnterpriseId_ pSppPageId_ pSppPayload_ pSppClusterId_ =+ StorelayoutclustersPatch'+ { _sppEnterpriseId = pSppEnterpriseId_+ , _sppPageId = pSppPageId_+ , _sppPayload = pSppPayload_+ , _sppClusterId = pSppClusterId_+ }++-- | The ID of the enterprise.+sppEnterpriseId :: Lens' StorelayoutclustersPatch Text+sppEnterpriseId+ = lens _sppEnterpriseId+ (\ s a -> s{_sppEnterpriseId = a})++-- | The ID of the page.+sppPageId :: Lens' StorelayoutclustersPatch Text+sppPageId+ = lens _sppPageId (\ s a -> s{_sppPageId = a})++-- | Multipart request metadata.+sppPayload :: Lens' StorelayoutclustersPatch StoreCluster+sppPayload+ = lens _sppPayload (\ s a -> s{_sppPayload = a})++-- | The ID of the cluster.+sppClusterId :: Lens' StorelayoutclustersPatch Text+sppClusterId+ = lens _sppClusterId (\ s a -> s{_sppClusterId = a})++instance GoogleRequest StorelayoutclustersPatch where+ type Rs StorelayoutclustersPatch = StoreCluster+ type Scopes StorelayoutclustersPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersPatch'{..}+ = go _sppEnterpriseId _sppPageId _sppClusterId+ (Just AltJSON)+ _sppPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersPatchResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Update.hs view
@@ -0,0 +1,130 @@+{-# 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.Storelayoutclusters.Update+-- 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)+--+-- Updates a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.update@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update+ (+ -- * REST Resource+ StorelayoutclustersUpdateResource++ -- * Creating a Request+ , storelayoutclustersUpdate+ , StorelayoutclustersUpdate++ -- * Request Lenses+ , suuEnterpriseId+ , suuPageId+ , suuPayload+ , suuClusterId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutclusters.update@ method which the+-- 'StorelayoutclustersUpdate' request conforms to.+type StorelayoutclustersUpdateResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ "clusters" :>+ Capture "clusterId" Text :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StoreCluster :>+ Put '[JSON] StoreCluster++-- | Updates a cluster.+--+-- /See:/ 'storelayoutclustersUpdate' smart constructor.+data StorelayoutclustersUpdate = StorelayoutclustersUpdate'+ { _suuEnterpriseId :: !Text+ , _suuPageId :: !Text+ , _suuPayload :: !StoreCluster+ , _suuClusterId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutclustersUpdate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'suuEnterpriseId'+--+-- * 'suuPageId'+--+-- * 'suuPayload'+--+-- * 'suuClusterId'+storelayoutclustersUpdate+ :: Text -- ^ 'suuEnterpriseId'+ -> Text -- ^ 'suuPageId'+ -> StoreCluster -- ^ 'suuPayload'+ -> Text -- ^ 'suuClusterId'+ -> StorelayoutclustersUpdate+storelayoutclustersUpdate pSuuEnterpriseId_ pSuuPageId_ pSuuPayload_ pSuuClusterId_ =+ StorelayoutclustersUpdate'+ { _suuEnterpriseId = pSuuEnterpriseId_+ , _suuPageId = pSuuPageId_+ , _suuPayload = pSuuPayload_+ , _suuClusterId = pSuuClusterId_+ }++-- | The ID of the enterprise.+suuEnterpriseId :: Lens' StorelayoutclustersUpdate Text+suuEnterpriseId+ = lens _suuEnterpriseId+ (\ s a -> s{_suuEnterpriseId = a})++-- | The ID of the page.+suuPageId :: Lens' StorelayoutclustersUpdate Text+suuPageId+ = lens _suuPageId (\ s a -> s{_suuPageId = a})++-- | Multipart request metadata.+suuPayload :: Lens' StorelayoutclustersUpdate StoreCluster+suuPayload+ = lens _suuPayload (\ s a -> s{_suuPayload = a})++-- | The ID of the cluster.+suuClusterId :: Lens' StorelayoutclustersUpdate Text+suuClusterId+ = lens _suuClusterId (\ s a -> s{_suuClusterId = a})++instance GoogleRequest StorelayoutclustersUpdate+ where+ type Rs StorelayoutclustersUpdate = StoreCluster+ type Scopes StorelayoutclustersUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutclustersUpdate'{..}+ = go _suuEnterpriseId _suuPageId _suuClusterId+ (Just AltJSON)+ _suuPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutclustersUpdateResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Delete.hs view
@@ -0,0 +1,100 @@+{-# 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.Storelayoutpages.Delete+-- 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)+--+-- Deletes a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.delete@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete+ (+ -- * REST Resource+ StorelayoutpagesDeleteResource++ -- * Creating a Request+ , storelayoutpagesDelete+ , StorelayoutpagesDelete++ -- * Request Lenses+ , sdEnterpriseId+ , sdPageId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.delete@ method which the+-- 'StorelayoutpagesDelete' request conforms to.+type StorelayoutpagesDeleteResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ QueryParam "alt" AltJSON :> Delete '[JSON] ()++-- | Deletes a store page.+--+-- /See:/ 'storelayoutpagesDelete' smart constructor.+data StorelayoutpagesDelete = StorelayoutpagesDelete'+ { _sdEnterpriseId :: !Text+ , _sdPageId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesDelete' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sdEnterpriseId'+--+-- * 'sdPageId'+storelayoutpagesDelete+ :: Text -- ^ 'sdEnterpriseId'+ -> Text -- ^ 'sdPageId'+ -> StorelayoutpagesDelete+storelayoutpagesDelete pSdEnterpriseId_ pSdPageId_ =+ StorelayoutpagesDelete'+ { _sdEnterpriseId = pSdEnterpriseId_+ , _sdPageId = pSdPageId_+ }++-- | The ID of the enterprise.+sdEnterpriseId :: Lens' StorelayoutpagesDelete Text+sdEnterpriseId+ = lens _sdEnterpriseId+ (\ s a -> s{_sdEnterpriseId = a})++-- | The ID of the page.+sdPageId :: Lens' StorelayoutpagesDelete Text+sdPageId = lens _sdPageId (\ s a -> s{_sdPageId = a})++instance GoogleRequest StorelayoutpagesDelete where+ type Rs StorelayoutpagesDelete = ()+ type Scopes StorelayoutpagesDelete =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesDelete'{..}+ = go _sdEnterpriseId _sdPageId (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesDeleteResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Get.hs view
@@ -0,0 +1,100 @@+{-# 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.Storelayoutpages.Get+-- 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)+--+-- Retrieves details of a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.get@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get+ (+ -- * REST Resource+ StorelayoutpagesGetResource++ -- * Creating a Request+ , storelayoutpagesGet+ , StorelayoutpagesGet++ -- * Request Lenses+ , sgEnterpriseId+ , sgPageId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.get@ method which the+-- 'StorelayoutpagesGet' request conforms to.+type StorelayoutpagesGetResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ QueryParam "alt" AltJSON :> Get '[JSON] StorePage++-- | Retrieves details of a store page.+--+-- /See:/ 'storelayoutpagesGet' smart constructor.+data StorelayoutpagesGet = StorelayoutpagesGet'+ { _sgEnterpriseId :: !Text+ , _sgPageId :: !Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesGet' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sgEnterpriseId'+--+-- * 'sgPageId'+storelayoutpagesGet+ :: Text -- ^ 'sgEnterpriseId'+ -> Text -- ^ 'sgPageId'+ -> StorelayoutpagesGet+storelayoutpagesGet pSgEnterpriseId_ pSgPageId_ =+ StorelayoutpagesGet'+ { _sgEnterpriseId = pSgEnterpriseId_+ , _sgPageId = pSgPageId_+ }++-- | The ID of the enterprise.+sgEnterpriseId :: Lens' StorelayoutpagesGet Text+sgEnterpriseId+ = lens _sgEnterpriseId+ (\ s a -> s{_sgEnterpriseId = a})++-- | The ID of the page.+sgPageId :: Lens' StorelayoutpagesGet Text+sgPageId = lens _sgPageId (\ s a -> s{_sgPageId = a})++instance GoogleRequest StorelayoutpagesGet where+ type Rs StorelayoutpagesGet = StorePage+ type Scopes StorelayoutpagesGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesGet'{..}+ = go _sgEnterpriseId _sgPageId (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesGetResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Insert.hs view
@@ -0,0 +1,101 @@+{-# 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.Storelayoutpages.Insert+-- 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)+--+-- Inserts a new store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.insert@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert+ (+ -- * REST Resource+ StorelayoutpagesInsertResource++ -- * Creating a Request+ , storelayoutpagesInsert+ , StorelayoutpagesInsert++ -- * Request Lenses+ , siEnterpriseId+ , siPayload+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.insert@ method which the+-- 'StorelayoutpagesInsert' request conforms to.+type StorelayoutpagesInsertResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StorePage :> Post '[JSON] StorePage++-- | Inserts a new store page.+--+-- /See:/ 'storelayoutpagesInsert' smart constructor.+data StorelayoutpagesInsert = StorelayoutpagesInsert'+ { _siEnterpriseId :: !Text+ , _siPayload :: !StorePage+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesInsert' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'siEnterpriseId'+--+-- * 'siPayload'+storelayoutpagesInsert+ :: Text -- ^ 'siEnterpriseId'+ -> StorePage -- ^ 'siPayload'+ -> StorelayoutpagesInsert+storelayoutpagesInsert pSiEnterpriseId_ pSiPayload_ =+ StorelayoutpagesInsert'+ { _siEnterpriseId = pSiEnterpriseId_+ , _siPayload = pSiPayload_+ }++-- | The ID of the enterprise.+siEnterpriseId :: Lens' StorelayoutpagesInsert Text+siEnterpriseId+ = lens _siEnterpriseId+ (\ s a -> s{_siEnterpriseId = a})++-- | Multipart request metadata.+siPayload :: Lens' StorelayoutpagesInsert StorePage+siPayload+ = lens _siPayload (\ s a -> s{_siPayload = a})++instance GoogleRequest StorelayoutpagesInsert where+ type Rs StorelayoutpagesInsert = StorePage+ type Scopes StorelayoutpagesInsert =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesInsert'{..}+ = go _siEnterpriseId (Just AltJSON) _siPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesInsertResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/List.hs view
@@ -0,0 +1,91 @@+{-# 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.Storelayoutpages.List+-- 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)+--+-- Retrieves the details of all pages in the store.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.list@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List+ (+ -- * REST Resource+ StorelayoutpagesListResource++ -- * Creating a Request+ , storelayoutpagesList+ , StorelayoutpagesList++ -- * Request Lenses+ , slEnterpriseId+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.list@ method which the+-- 'StorelayoutpagesList' request conforms to.+type StorelayoutpagesListResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ QueryParam "alt" AltJSON :>+ Get '[JSON] StoreLayoutPagesListResponse++-- | Retrieves the details of all pages in the store.+--+-- /See:/ 'storelayoutpagesList' smart constructor.+newtype StorelayoutpagesList = StorelayoutpagesList'+ { _slEnterpriseId :: Text+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesList' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slEnterpriseId'+storelayoutpagesList+ :: Text -- ^ 'slEnterpriseId'+ -> StorelayoutpagesList+storelayoutpagesList pSlEnterpriseId_ =+ StorelayoutpagesList'+ { _slEnterpriseId = pSlEnterpriseId_+ }++-- | The ID of the enterprise.+slEnterpriseId :: Lens' StorelayoutpagesList Text+slEnterpriseId+ = lens _slEnterpriseId+ (\ s a -> s{_slEnterpriseId = a})++instance GoogleRequest StorelayoutpagesList where+ type Rs StorelayoutpagesList =+ StoreLayoutPagesListResponse+ type Scopes StorelayoutpagesList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesList'{..}+ = go _slEnterpriseId (Just AltJSON)+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesListResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Patch.hs view
@@ -0,0 +1,115 @@+{-# 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.Storelayoutpages.Patch+-- 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)+--+-- Updates the content of a store page. This method supports patch+-- semantics.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.patch@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch+ (+ -- * REST Resource+ StorelayoutpagesPatchResource++ -- * Creating a Request+ , storelayoutpagesPatch+ , StorelayoutpagesPatch++ -- * Request Lenses+ , spEnterpriseId+ , spPageId+ , spPayload+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.patch@ method which the+-- 'StorelayoutpagesPatch' request conforms to.+type StorelayoutpagesPatchResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StorePage :> Patch '[JSON] StorePage++-- | Updates the content of a store page. This method supports patch+-- semantics.+--+-- /See:/ 'storelayoutpagesPatch' smart constructor.+data StorelayoutpagesPatch = StorelayoutpagesPatch'+ { _spEnterpriseId :: !Text+ , _spPageId :: !Text+ , _spPayload :: !StorePage+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesPatch' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'spEnterpriseId'+--+-- * 'spPageId'+--+-- * 'spPayload'+storelayoutpagesPatch+ :: Text -- ^ 'spEnterpriseId'+ -> Text -- ^ 'spPageId'+ -> StorePage -- ^ 'spPayload'+ -> StorelayoutpagesPatch+storelayoutpagesPatch pSpEnterpriseId_ pSpPageId_ pSpPayload_ =+ StorelayoutpagesPatch'+ { _spEnterpriseId = pSpEnterpriseId_+ , _spPageId = pSpPageId_+ , _spPayload = pSpPayload_+ }++-- | The ID of the enterprise.+spEnterpriseId :: Lens' StorelayoutpagesPatch Text+spEnterpriseId+ = lens _spEnterpriseId+ (\ s a -> s{_spEnterpriseId = a})++-- | The ID of the page.+spPageId :: Lens' StorelayoutpagesPatch Text+spPageId = lens _spPageId (\ s a -> s{_spPageId = a})++-- | Multipart request metadata.+spPayload :: Lens' StorelayoutpagesPatch StorePage+spPayload+ = lens _spPayload (\ s a -> s{_spPayload = a})++instance GoogleRequest StorelayoutpagesPatch where+ type Rs StorelayoutpagesPatch = StorePage+ type Scopes StorelayoutpagesPatch =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesPatch'{..}+ = go _spEnterpriseId _spPageId (Just AltJSON)+ _spPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesPatchResource)+ mempty
+ gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Update.hs view
@@ -0,0 +1,113 @@+{-# 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.Storelayoutpages.Update+-- 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)+--+-- Updates the content of a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.update@.+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update+ (+ -- * REST Resource+ StorelayoutpagesUpdateResource++ -- * Creating a Request+ , storelayoutpagesUpdate+ , StorelayoutpagesUpdate++ -- * Request Lenses+ , suEnterpriseId+ , suPageId+ , suPayload+ ) where++import Network.Google.AndroidEnterprise.Types+import Network.Google.Prelude++-- | A resource alias for @androidenterprise.storelayoutpages.update@ method which the+-- 'StorelayoutpagesUpdate' request conforms to.+type StorelayoutpagesUpdateResource =+ "androidenterprise" :>+ "v1" :>+ "enterprises" :>+ Capture "enterpriseId" Text :>+ "storeLayout" :>+ "pages" :>+ Capture "pageId" Text :>+ QueryParam "alt" AltJSON :>+ ReqBody '[JSON] StorePage :> Put '[JSON] StorePage++-- | Updates the content of a store page.+--+-- /See:/ 'storelayoutpagesUpdate' smart constructor.+data StorelayoutpagesUpdate = StorelayoutpagesUpdate'+ { _suEnterpriseId :: !Text+ , _suPageId :: !Text+ , _suPayload :: !StorePage+ } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'StorelayoutpagesUpdate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'suEnterpriseId'+--+-- * 'suPageId'+--+-- * 'suPayload'+storelayoutpagesUpdate+ :: Text -- ^ 'suEnterpriseId'+ -> Text -- ^ 'suPageId'+ -> StorePage -- ^ 'suPayload'+ -> StorelayoutpagesUpdate+storelayoutpagesUpdate pSuEnterpriseId_ pSuPageId_ pSuPayload_ =+ StorelayoutpagesUpdate'+ { _suEnterpriseId = pSuEnterpriseId_+ , _suPageId = pSuPageId_+ , _suPayload = pSuPayload_+ }++-- | The ID of the enterprise.+suEnterpriseId :: Lens' StorelayoutpagesUpdate Text+suEnterpriseId+ = lens _suEnterpriseId+ (\ s a -> s{_suEnterpriseId = a})++-- | The ID of the page.+suPageId :: Lens' StorelayoutpagesUpdate Text+suPageId = lens _suPageId (\ s a -> s{_suPageId = a})++-- | Multipart request metadata.+suPayload :: Lens' StorelayoutpagesUpdate StorePage+suPayload+ = lens _suPayload (\ s a -> s{_suPayload = a})++instance GoogleRequest StorelayoutpagesUpdate where+ type Rs StorelayoutpagesUpdate = StorePage+ type Scopes StorelayoutpagesUpdate =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient StorelayoutpagesUpdate'{..}+ = go _suEnterpriseId _suPageId (Just AltJSON)+ _suPayload+ androidEnterpriseService+ where go+ = buildClient+ (Proxy :: Proxy StorelayoutpagesUpdateResource)+ mempty
gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.GenerateToken--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,9 +22,9 @@ -- -- Generates a token (activation code) to allow this user to configure -- their work account in the Android Setup Wizard. Revokes any previously--- generated token.+-- generated token. This call only works with Google managed accounts. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.generateToken@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@. module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken ( -- * REST Resource@@ -56,10 +56,10 @@ -- | Generates a token (activation code) to allow this user to configure -- their work account in the Android Setup Wizard. Revokes any previously--- generated token.+-- generated token. This call only works with Google managed accounts. -- -- /See:/ 'usersGenerateToken' smart constructor.-data UsersGenerateToken = UsersGenerateToken+data UsersGenerateToken = UsersGenerateToken' { _ugtEnterpriseId :: !Text , _ugtUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -76,7 +76,7 @@ -> Text -- ^ 'ugtUserId' -> UsersGenerateToken usersGenerateToken pUgtEnterpriseId_ pUgtUserId_ =- UsersGenerateToken+ UsersGenerateToken' { _ugtEnterpriseId = pUgtEnterpriseId_ , _ugtUserId = pUgtUserId_ }@@ -94,7 +94,9 @@ instance GoogleRequest UsersGenerateToken where type Rs UsersGenerateToken = UserToken- requestClient UsersGenerateToken{..}+ type Scopes UsersGenerateToken =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersGenerateToken'{..} = go _ugtEnterpriseId _ugtUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Users/Get.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.Get--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves a user\'s details. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.get@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.get@. module Network.Google.Resource.AndroidEnterprise.Users.Get ( -- * REST Resource@@ -54,7 +54,7 @@ -- | Retrieves a user\'s details. -- -- /See:/ 'usersGet' smart constructor.-data UsersGet = UsersGet+data UsersGet = UsersGet' { _ugEnterpriseId :: !Text , _ugUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -71,7 +71,7 @@ -> Text -- ^ 'ugUserId' -> UsersGet usersGet pUgEnterpriseId_ pUgUserId_ =- UsersGet+ UsersGet' { _ugEnterpriseId = pUgEnterpriseId_ , _ugUserId = pUgUserId_ }@@ -88,7 +88,9 @@ instance GoogleRequest UsersGet where type Rs UsersGet = User- requestClient UsersGet{..}+ type Scopes UsersGet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersGet'{..} = go _ugEnterpriseId _ugUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Users/GetAvailableProductSet.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Retrieves the set of products a user is entitled to access. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@. module Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet ( -- * REST Resource@@ -55,7 +55,7 @@ -- | Retrieves the set of products a user is entitled to access. -- -- /See:/ 'usersGetAvailableProductSet' smart constructor.-data UsersGetAvailableProductSet = UsersGetAvailableProductSet+data UsersGetAvailableProductSet = UsersGetAvailableProductSet' { _ugapsEnterpriseId :: !Text , _ugapsUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -72,7 +72,7 @@ -> Text -- ^ 'ugapsUserId' -> UsersGetAvailableProductSet usersGetAvailableProductSet pUgapsEnterpriseId_ pUgapsUserId_ =- UsersGetAvailableProductSet+ UsersGetAvailableProductSet' { _ugapsEnterpriseId = pUgapsEnterpriseId_ , _ugapsUserId = pUgapsUserId_ }@@ -91,7 +91,9 @@ instance GoogleRequest UsersGetAvailableProductSet where type Rs UsersGetAvailableProductSet = ProductSet- requestClient UsersGetAvailableProductSet{..}+ type Scopes UsersGetAvailableProductSet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersGetAvailableProductSet'{..} = go _ugapsEnterpriseId _ugapsUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Users/List.hs view
@@ -14,15 +14,15 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.List--- Copyright : (c) 2015 Brendan Hay+-- 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) ----- Looks up a user by email address.+-- Looks up a user by their primary email address. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.list@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.list@. module Network.Google.Resource.AndroidEnterprise.Users.List ( -- * REST Resource@@ -52,10 +52,10 @@ QueryParam "alt" AltJSON :> Get '[JSON] UsersListResponse --- | Looks up a user by email address.+-- | Looks up a user by their primary email address. -- -- /See:/ 'usersList' smart constructor.-data UsersList = UsersList+data UsersList = UsersList' { _ulEmail :: !Text , _ulEnterpriseId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -72,7 +72,7 @@ -> Text -- ^ 'ulEnterpriseId' -> UsersList usersList pUlEmail_ pUlEnterpriseId_ =- UsersList+ UsersList' { _ulEmail = pUlEmail_ , _ulEnterpriseId = pUlEnterpriseId_ }@@ -89,7 +89,9 @@ instance GoogleRequest UsersList where type Rs UsersList = UsersListResponse- requestClient UsersList{..}+ type Scopes UsersList =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersList'{..} = go _ulEnterpriseId (Just _ulEmail) (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeToken.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.RevokeToken--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Revokes a previously generated token (activation code) for the user. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.revokeToken@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.revokeToken@. module Network.Google.Resource.AndroidEnterprise.Users.RevokeToken ( -- * REST Resource@@ -55,7 +55,7 @@ -- | Revokes a previously generated token (activation code) for the user. -- -- /See:/ 'usersRevokeToken' smart constructor.-data UsersRevokeToken = UsersRevokeToken+data UsersRevokeToken = UsersRevokeToken' { _urtEnterpriseId :: !Text , _urtUserId :: !Text } deriving (Eq,Show,Data,Typeable,Generic)@@ -72,7 +72,7 @@ -> Text -- ^ 'urtUserId' -> UsersRevokeToken usersRevokeToken pUrtEnterpriseId_ pUrtUserId_ =- UsersRevokeToken+ UsersRevokeToken' { _urtEnterpriseId = pUrtEnterpriseId_ , _urtUserId = pUrtUserId_ }@@ -90,7 +90,9 @@ instance GoogleRequest UsersRevokeToken where type Rs UsersRevokeToken = ()- requestClient UsersRevokeToken{..}+ type Scopes UsersRevokeToken =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersRevokeToken'{..} = go _urtEnterpriseId _urtUserId (Just AltJSON) androidEnterpriseService where go
gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs view
@@ -14,7 +14,7 @@ -- | -- Module : Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet--- Copyright : (c) 2015 Brendan Hay+-- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated@@ -22,7 +22,7 @@ -- -- Modifies the set of products a user is entitled to access. ----- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@.+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@. module Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet ( -- * REST Resource@@ -57,7 +57,7 @@ -- | Modifies the set of products a user is entitled to access. -- -- /See:/ 'usersSetAvailableProductSet' smart constructor.-data UsersSetAvailableProductSet = UsersSetAvailableProductSet+data UsersSetAvailableProductSet = UsersSetAvailableProductSet' { _usapsEnterpriseId :: !Text , _usapsPayload :: !ProductSet , _usapsUserId :: !Text@@ -78,7 +78,7 @@ -> Text -- ^ 'usapsUserId' -> UsersSetAvailableProductSet usersSetAvailableProductSet pUsapsEnterpriseId_ pUsapsPayload_ pUsapsUserId_ =- UsersSetAvailableProductSet+ UsersSetAvailableProductSet' { _usapsEnterpriseId = pUsapsEnterpriseId_ , _usapsPayload = pUsapsPayload_ , _usapsUserId = pUsapsUserId_@@ -103,7 +103,9 @@ instance GoogleRequest UsersSetAvailableProductSet where type Rs UsersSetAvailableProductSet = ProductSet- requestClient UsersSetAvailableProductSet{..}+ type Scopes UsersSetAvailableProductSet =+ '["https://www.googleapis.com/auth/androidenterprise"]+ requestClient UsersSetAvailableProductSet'{..} = go _usapsEnterpriseId _usapsUserId (Just AltJSON) _usapsPayload androidEnterpriseService
gogol-android-enterprise.cabal view
@@ -1,5 +1,5 @@ name: gogol-android-enterprise-version: 0.0.1+version: 0.1.0 synopsis: Google Play EMM SDK. homepage: https://github.com/brendanhay/gogol bug-reports: https://github.com/brendanhay/gogol/issues@@ -7,15 +7,14 @@ license-file: LICENSE author: Brendan Hay maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2015 Brendan Hay+copyright: Copyright (c) 2015-2016 Brendan Hay category: Network, Google, Cloud build-type: Simple cabal-version: >= 1.10 extra-source-files: README.md description:- Allows MDMs\/EMMs and enterprises to manage the deployment of apps to- Android for Work users.+ Manages the deployment of apps to Android for Work users. . /Warning:/ This is an experimental prototype/preview release which is still under exploratory development and not intended for public use, caveat emptor!@@ -54,10 +53,12 @@ , Network.Google.Resource.AndroidEnterprise.Enterprises.Delete , Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll , Network.Google.Resource.AndroidEnterprise.Enterprises.Get+ , Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout , Network.Google.Resource.AndroidEnterprise.Enterprises.Insert , Network.Google.Resource.AndroidEnterprise.Enterprises.List , Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification , Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount+ , Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout , Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll , Network.Google.Resource.AndroidEnterprise.Entitlements.Delete , Network.Google.Resource.AndroidEnterprise.Entitlements.Get@@ -78,7 +79,20 @@ , Network.Google.Resource.AndroidEnterprise.Products.Get , Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions+ , Network.Google.Resource.AndroidEnterprise.Products.List , Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update , Network.Google.Resource.AndroidEnterprise.Users.GenerateToken , Network.Google.Resource.AndroidEnterprise.Users.Get , Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet@@ -91,5 +105,5 @@ , Network.Google.AndroidEnterprise.Types.Sum build-depends:- gogol-core == 0.0.1.*+ gogol-core == 0.1.0.* , base >= 4.7 && < 5