Documentation ¶
Overview ¶
Package gsmlicensing implements the Enterprise License Manager API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmlicensing implements the Enterprise License Manager API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func DeleteLicenseAssignment(productID, skuID, userID string) (bool, error)
- func GetLicenseAssignment(productID, skuID, userID, fields string) (*licensing.LicenseAssignment, error)
- func InsertLicenseAssignment(productID, skuID, fields string, ...) (*licensing.LicenseAssignment, error)
- func ListLicenseAssignmentsForProduct(productID, customerID, fields string) ([]*licensing.LicenseAssignment, error)
- func ListLicenseAssignmentsForProductAndSku(productID, skuID, customerID, fields string) ([]*licensing.LicenseAssignment, error)
- func PatchLicenseAssignment(productID, skuID, userID, fields string, ...) (*licensing.LicenseAssignment, error)
- func SetClient(c *http.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLicenseAssignment ¶
DeleteLicenseAssignment revoke a license.
func GetLicenseAssignment ¶
func GetLicenseAssignment(productID, skuID, userID, fields string) (*licensing.LicenseAssignment, error)
GetLicenseAssignment get a specific user's license by product SKU.
func InsertLicenseAssignment ¶
func InsertLicenseAssignment(productID, skuID, fields string, licenseAssignmentInsert *licensing.LicenseAssignmentInsert) (*licensing.LicenseAssignment, error)
InsertLicenseAssignment assign a license.
func ListLicenseAssignmentsForProduct ¶
func ListLicenseAssignmentsForProduct(productID, customerID, fields string) ([]*licensing.LicenseAssignment, error)
ListLicenseAssignmentsForProduct list all users assigned licenses for a specific product SKU.
func ListLicenseAssignmentsForProductAndSku ¶
func ListLicenseAssignmentsForProductAndSku(productID, skuID, customerID, fields string) ([]*licensing.LicenseAssignment, error)
ListLicenseAssignmentsForProductAndSku list all users assigned licenses for a specific product SKU.
func PatchLicenseAssignment ¶
func PatchLicenseAssignment(productID, skuID, userID, fields string, licenseAssignment *licensing.LicenseAssignment) (*licensing.LicenseAssignment, error)
PatchLicenseAssignment reassign a user's product SKU with a different SKU in the same product.
Types ¶
This section is empty.