Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Licensing_LicenseAssignments_Resource Class Reference

The "licenseAssignments" collection of methods. More...

Inheritance diagram for Google_Service_Licensing_LicenseAssignments_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 delete ($productId, $skuId, $userId, $optParams=array())
 Revoke License.
 
 get ($productId, $skuId, $userId, $optParams=array())
 Get license assignment of a particular product and sku for a user (licenseAssignments.get)
 
 insert ($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams=array())
 Assign License.
 
 listForProduct ($productId, $customerId, $optParams=array())
 List license assignments for given product of the customer.
 
 listForProductAndSku ($productId, $skuId, $customerId, $optParams=array())
 List license assignments for given product and sku of the customer.
 
 patch ($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams=array())
 Assign License.
 
 update ($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams=array())
 Assign License.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "licenseAssignments" collection of methods.

Typical usage is: $licensingService = new Google_Service_Licensing(...); $licenseAssignments = $licensingService->licenseAssignments;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ delete()

Google_Service_Licensing_LicenseAssignments_Resource::delete ( $productId,
$skuId,
$userId,
$optParams = array() )

Revoke License.

(licenseAssignments.delete)

Parameters
string$productIdName for product
string$skuIdName for sku
string$userIdemail id or unique Id of the user
array$optParamsOptional parameters.

◆ get()

Google_Service_Licensing_LicenseAssignments_Resource::get ( $productId,
$skuId,
$userId,
$optParams = array() )

Get license assignment of a particular product and sku for a user (licenseAssignments.get)

Parameters
string$productIdName for product
string$skuIdName for sku
string$userIdemail id or unique Id of the user
array$optParamsOptional parameters.
Return values
Google_Service_Licensing_LicenseAssignment

◆ insert()

Google_Service_Licensing_LicenseAssignments_Resource::insert ( $productId,
$skuId,
Google_Service_Licensing_LicenseAssignmentInsert $postBody,
$optParams = array() )

Assign License.

(licenseAssignments.insert)

Parameters
string$productIdName for product
string$skuIdName for sku
Google_LicenseAssignmentInsert$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Licensing_LicenseAssignment

◆ listForProduct()

Google_Service_Licensing_LicenseAssignments_Resource::listForProduct ( $productId,
$customerId,
$optParams = array() )

List license assignments for given product of the customer.

(licenseAssignments.listForProduct)

Parameters
string$productIdName for product
string$customerIdCustomerId represents the customer for whom licenseassignments are queried
array$optParamsOptional parameters.

@opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.

Return values
Google_Service_Licensing_LicenseAssignmentList

◆ listForProductAndSku()

Google_Service_Licensing_LicenseAssignments_Resource::listForProductAndSku ( $productId,
$skuId,
$customerId,
$optParams = array() )

List license assignments for given product and sku of the customer.

(licenseAssignments.listForProductAndSku)

Parameters
string$productIdName for product
string$skuIdName for sku
string$customerIdCustomerId represents the customer for whom licenseassignments are queried
array$optParamsOptional parameters.

@opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.

Return values
Google_Service_Licensing_LicenseAssignmentList

◆ patch()

Google_Service_Licensing_LicenseAssignments_Resource::patch ( $productId,
$skuId,
$userId,
Google_Service_Licensing_LicenseAssignment $postBody,
$optParams = array() )

Assign License.

This method supports patch semantics. (licenseAssignments.patch)

Parameters
string$productIdName for product
string$skuIdName for sku for which license would be revoked
string$userIdemail id or unique Id of the user
Google_LicenseAssignment$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Licensing_LicenseAssignment

◆ update()

Google_Service_Licensing_LicenseAssignments_Resource::update ( $productId,
$skuId,
$userId,
Google_Service_Licensing_LicenseAssignment $postBody,
$optParams = array() )

Assign License.

(licenseAssignments.update)

Parameters
string$productIdName for product
string$skuIdName for sku for which license would be revoked
string$userIdemail id or unique Id of the user
Google_LicenseAssignment$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Licensing_LicenseAssignment

The documentation for this class was generated from the following file: