* $androidenterpriseService = new Google\Service\AndroidEnterprise(...); * $grouplicenses = $androidenterpriseService->grouplicenses; * */ class Grouplicenses extends \Google\Service\Resource { /** * Retrieves details of an enterprise's group license for a product. * (grouplicenses.get) * * @param string $enterpriseId The ID of the enterprise. * @param string $groupLicenseId The ID of the product the group license is for, * e.g. "app:com.google.android.gm". * @param array $optParams Optional parameters. * @return GroupLicense */ public function get($enterpriseId, $groupLicenseId, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GroupLicense::class); } /** * Retrieves IDs of all products for which the enterprise has a group license. * (grouplicenses.listGrouplicenses) * * @param string $enterpriseId The ID of the enterprise. * @param array $optParams Optional parameters. * @return GroupLicensesListResponse */ public function listGrouplicenses($enterpriseId, $optParams = []) { $params = ['enterpriseId' => $enterpriseId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GroupLicensesListResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Grouplicenses::class, 'Google_Service_AndroidEnterprise_Resource_Grouplicenses');