gogol-apps-licensing 0.3.0 → 0.4.0
raw patch · 5 files changed
+45/−19 lines, 5 filesdep ~gogol-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: gogol-core
API changes (from Hackage documentation)
+ Network.Google.AppsLicensing: laProductName :: Lens' LicenseAssignment (Maybe Text)
+ Network.Google.AppsLicensing: laSKUName :: Lens' LicenseAssignment (Maybe Text)
+ Network.Google.AppsLicensing.Types: laProductName :: Lens' LicenseAssignment (Maybe Text)
+ Network.Google.AppsLicensing.Types: laSKUName :: Lens' LicenseAssignment (Maybe Text)
- Network.Google.AppsLicensing: type AppsLicensingAPI = LicenseAssignmentsInsertResource :<|> (LicenseAssignmentsPatchResource :<|> (LicenseAssignmentsGetResource :<|> (LicenseAssignmentsListForProductAndSKUResource :<|> (LicenseAssignmentsListForProductResource :<|> (LicenseAssignmentsDeleteResource :<|> LicenseAssignmentsUpdateResource)))))
+ Network.Google.AppsLicensing: type AppsLicensingAPI = LicenseAssignmentsInsertResource :<|> LicenseAssignmentsPatchResource :<|> LicenseAssignmentsGetResource :<|> LicenseAssignmentsListForProductAndSKUResource :<|> LicenseAssignmentsListForProductResource :<|> LicenseAssignmentsDeleteResource :<|> LicenseAssignmentsUpdateResource
- Network.Google.Resource.Licensing.LicenseAssignments.Delete: type LicenseAssignmentsDeleteResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("user" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.Delete: type LicenseAssignmentsDeleteResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "user" :> Capture "userId" Text :> QueryParam "alt" AltJSON :> Delete '[JSON] ()
- Network.Google.Resource.Licensing.LicenseAssignments.Get: type LicenseAssignmentsGetResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("user" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignment)))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.Get: type LicenseAssignmentsGetResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "user" :> Capture "userId" Text :> QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignment
- Network.Google.Resource.Licensing.LicenseAssignments.Insert: type LicenseAssignmentsInsertResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("user" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LicenseAssignmentInsert :> Post '[JSON] LicenseAssignment)))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.Insert: type LicenseAssignmentsInsertResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "user" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] LicenseAssignmentInsert :> Post '[JSON] LicenseAssignment
- Network.Google.Resource.Licensing.LicenseAssignments.ListForProduct: type LicenseAssignmentsListForProductResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("users" :> (QueryParam "customerId" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignmentList)))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.ListForProduct: type LicenseAssignmentsListForProductResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "users" :> QueryParam "customerId" Text :> QueryParam "pageToken" Text :> QueryParam "maxResults" (Textual Word32) :> QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignmentList
- Network.Google.Resource.Licensing.LicenseAssignments.ListForProductAndSKU: type LicenseAssignmentsListForProductAndSKUResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("users" :> (QueryParam "customerId" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignmentList)))))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.ListForProductAndSKU: type LicenseAssignmentsListForProductAndSKUResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "users" :> QueryParam "customerId" Text :> QueryParam "pageToken" Text :> QueryParam "maxResults" (Textual Word32) :> QueryParam "alt" AltJSON :> Get '[JSON] LicenseAssignmentList
- Network.Google.Resource.Licensing.LicenseAssignments.Patch: type LicenseAssignmentsPatchResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("user" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LicenseAssignment :> Patch '[JSON] LicenseAssignment))))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.Patch: type LicenseAssignmentsPatchResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "user" :> Capture "userId" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] LicenseAssignment :> Patch '[JSON] LicenseAssignment
- Network.Google.Resource.Licensing.LicenseAssignments.Update: type LicenseAssignmentsUpdateResource = "apps" :> ("licensing" :> ("v1" :> ("product" :> (Capture "productId" Text :> ("sku" :> (Capture "skuId" Text :> ("user" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LicenseAssignment :> Put '[JSON] LicenseAssignment))))))))))
+ Network.Google.Resource.Licensing.LicenseAssignments.Update: type LicenseAssignmentsUpdateResource = "apps" :> "licensing" :> "v1" :> "product" :> Capture "productId" Text :> "sku" :> Capture "skuId" Text :> "user" :> Capture "userId" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] LicenseAssignment :> Put '[JSON] LicenseAssignment
Files
- gen/Network/Google/AppsLicensing.hs +3/−1
- gen/Network/Google/AppsLicensing/Types.hs +3/−1
- gen/Network/Google/AppsLicensing/Types/Product.hs +35/−13
- gen/Network/Google/AppsLicensing/Types/Sum.hs +1/−1
- gogol-apps-licensing.cabal +3/−3
gen/Network/Google/AppsLicensing.hs view
@@ -13,7 +13,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Licensing API to view and manage license for your domain.+-- Views and manages licenses for your domain. -- -- /See:/ <https://developers.google.com/google-apps/licensing/ Enterprise License Manager API Reference> module Network.Google.AppsLicensing@@ -68,7 +68,9 @@ -- ** LicenseAssignment , LicenseAssignment , licenseAssignment+ , laProductName , laEtags+ , laSKUName , laKind , laSKUId , laUserId
gen/Network/Google/AppsLicensing/Types.hs view
@@ -38,7 +38,9 @@ -- * LicenseAssignment , LicenseAssignment , licenseAssignment+ , laProductName , laEtags+ , laSKUName , laKind , laSKUId , laUserId@@ -56,6 +58,6 @@ = defaultService (ServiceId "licensing:v1") "www.googleapis.com" --- | View and manage Google Apps licenses for your domain+-- | View and manage G Suite licenses for your domain appsLicensingScope :: Proxy '["https://www.googleapis.com/auth/apps.licensing"] appsLicensingScope = Proxy;
gen/Network/Google/AppsLicensing/Types/Product.hs view
@@ -129,20 +129,26 @@ -- -- /See:/ 'licenseAssignment' smart constructor. data LicenseAssignment = LicenseAssignment'- { _laEtags :: !(Maybe Text)- , _laKind :: !Text- , _laSKUId :: !(Maybe Text)- , _laUserId :: !(Maybe Text)- , _laSelfLink :: !(Maybe Text)- , _laProductId :: !(Maybe Text)+ { _laProductName :: !(Maybe Text)+ , _laEtags :: !(Maybe Text)+ , _laSKUName :: !(Maybe Text)+ , _laKind :: !Text+ , _laSKUId :: !(Maybe Text)+ , _laUserId :: !(Maybe Text)+ , _laSelfLink :: !(Maybe Text)+ , _laProductId :: !(Maybe Text) } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'LicenseAssignment' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'laProductName'+-- -- * 'laEtags' --+-- * 'laSKUName'+-- -- * 'laKind' -- -- * 'laSKUId'@@ -156,7 +162,9 @@ :: LicenseAssignment licenseAssignment = LicenseAssignment'- { _laEtags = Nothing+ { _laProductName = Nothing+ , _laEtags = Nothing+ , _laSKUName = Nothing , _laKind = "licensing#licenseAssignment" , _laSKUId = Nothing , _laUserId = Nothing@@ -164,15 +172,26 @@ , _laProductId = Nothing } +-- | Display Name of the product.+laProductName :: Lens' LicenseAssignment (Maybe Text)+laProductName+ = lens _laProductName+ (\ s a -> s{_laProductName = a})+ -- | ETag of the resource. laEtags :: Lens' LicenseAssignment (Maybe Text) laEtags = lens _laEtags (\ s a -> s{_laEtags = a}) +-- | Display Name of the sku of the product.+laSKUName :: Lens' LicenseAssignment (Maybe Text)+laSKUName+ = lens _laSKUName (\ s a -> s{_laSKUName = a})+ -- | Identifies the resource as a LicenseAssignment. laKind :: Lens' LicenseAssignment Text laKind = lens _laKind (\ s a -> s{_laKind = a}) --- | Name of the sku of the product.+-- | Id of the sku of the product. laSKUId :: Lens' LicenseAssignment (Maybe Text) laSKUId = lens _laSKUId (\ s a -> s{_laSKUId = a}) @@ -185,7 +204,7 @@ laSelfLink = lens _laSelfLink (\ s a -> s{_laSelfLink = a}) --- | Name of the product.+-- | Id of the product. laProductId :: Lens' LicenseAssignment (Maybe Text) laProductId = lens _laProductId (\ s a -> s{_laProductId = a})@@ -195,8 +214,9 @@ = withObject "LicenseAssignment" (\ o -> LicenseAssignment' <$>- (o .:? "etags") <*>- (o .:? "kind" .!= "licensing#licenseAssignment")+ (o .:? "productName") <*> (o .:? "etags") <*>+ (o .:? "skuName")+ <*> (o .:? "kind" .!= "licensing#licenseAssignment") <*> (o .:? "skuId") <*> (o .:? "userId") <*> (o .:? "selfLink")@@ -206,8 +226,10 @@ toJSON LicenseAssignment'{..} = object (catMaybes- [("etags" .=) <$> _laEtags, Just ("kind" .= _laKind),- ("skuId" .=) <$> _laSKUId,+ [("productName" .=) <$> _laProductName,+ ("etags" .=) <$> _laEtags,+ ("skuName" .=) <$> _laSKUName,+ Just ("kind" .= _laKind), ("skuId" .=) <$> _laSKUId, ("userId" .=) <$> _laUserId, ("selfLink" .=) <$> _laSelfLink, ("productId" .=) <$> _laProductId])
gen/Network/Google/AppsLicensing/Types/Sum.hs view
@@ -16,4 +16,4 @@ -- module Network.Google.AppsLicensing.Types.Sum where -import Network.Google.Prelude+import Network.Google.Prelude hiding (Bytes)
gogol-apps-licensing.cabal view
@@ -1,5 +1,5 @@ name: gogol-apps-licensing-version: 0.3.0+version: 0.4.0 synopsis: Google Enterprise License Manager SDK. homepage: https://github.com/brendanhay/gogol bug-reports: https://github.com/brendanhay/gogol/issues@@ -14,7 +14,7 @@ extra-source-files: README.md src/.gitkeep description:- Licensing API to view and manage license for your domain.+ Views and manages licenses for your domain. . /Warning:/ This is an experimental prototype/preview release which is still under exploratory development and not intended for public use, caveat emptor!@@ -48,5 +48,5 @@ , Network.Google.AppsLicensing.Types.Sum build-depends:- gogol-core == 0.3.0.*+ gogol-core == 0.4.0.* , base >= 4.7 && < 5