1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\AndroidEnterprise\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\AndroidEnterprise\GroupLicense;
|
---|
21 | use Google\Service\AndroidEnterprise\GroupLicensesListResponse;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "grouplicenses" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
|
---|
28 | * $grouplicenses = $androidenterpriseService->grouplicenses;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class Grouplicenses extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Retrieves details of an enterprise's group license for a product. **Note:**
|
---|
35 | * This item has been deprecated. New integrations cannot use this method and
|
---|
36 | * can refer to our new recommendations. (grouplicenses.get)
|
---|
37 | *
|
---|
38 | * @param string $enterpriseId The ID of the enterprise.
|
---|
39 | * @param string $groupLicenseId The ID of the product the group license is for,
|
---|
40 | * e.g. "app:com.google.android.gm".
|
---|
41 | * @param array $optParams Optional parameters.
|
---|
42 | * @return GroupLicense
|
---|
43 | * @throws \Google\Service\Exception
|
---|
44 | */
|
---|
45 | public function get($enterpriseId, $groupLicenseId, $optParams = [])
|
---|
46 | {
|
---|
47 | $params = ['enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId];
|
---|
48 | $params = array_merge($params, $optParams);
|
---|
49 | return $this->call('get', [$params], GroupLicense::class);
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * Retrieves IDs of all products for which the enterprise has a group license.
|
---|
53 | * **Note:** This item has been deprecated. New integrations cannot use this
|
---|
54 | * method and can refer to our new recommendations.
|
---|
55 | * (grouplicenses.listGrouplicenses)
|
---|
56 | *
|
---|
57 | * @param string $enterpriseId The ID of the enterprise.
|
---|
58 | * @param array $optParams Optional parameters.
|
---|
59 | * @return GroupLicensesListResponse
|
---|
60 | * @throws \Google\Service\Exception
|
---|
61 | */
|
---|
62 | public function listGrouplicenses($enterpriseId, $optParams = [])
|
---|
63 | {
|
---|
64 | $params = ['enterpriseId' => $enterpriseId];
|
---|
65 | $params = array_merge($params, $optParams);
|
---|
66 | return $this->call('list', [$params], GroupLicensesListResponse::class);
|
---|
67 | }
|
---|
68 | }
|
---|
69 |
|
---|
70 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
71 | class_alias(Grouplicenses::class, 'Google_Service_AndroidEnterprise_Resource_Grouplicenses');
|
---|