source: vendor/google/apiclient-services/src/ChromeManagement/Resource/CustomersApps.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 5.1 KB
Line 
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
18namespace Google\Service\ChromeManagement\Resource;
19
20use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeAppRequestsResponse;
21use Google\Service\ChromeManagement\GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse;
22use Google\Service\ChromeManagement\GoogleChromeManagementV1FetchUsersRequestingExtensionResponse;
23
24/**
25 * The "apps" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $chromemanagementService = new Google\Service\ChromeManagement(...);
29 * $apps = $chromemanagementService->customers_apps;
30 * </code>
31 */
32class CustomersApps extends \Google\Service\Resource
33{
34 /**
35 * Generate summary of app installation requests. (apps.countChromeAppRequests)
36 *
37 * @param string $customer Required. Customer id or "my_customer" to use the
38 * customer associated to the account making the request.
39 * @param array $optParams Optional parameters.
40 *
41 * @opt_param string orderBy Field used to order results. Supported fields: *
42 * request_count * latest_request_time
43 * @opt_param string orgUnitId The ID of the organizational unit.
44 * @opt_param int pageSize Maximum number of results to return. Maximum and
45 * default are 50, anything above will be coerced to 50.
46 * @opt_param string pageToken Token to specify the page of the request to be
47 * returned.
48 * @return GoogleChromeManagementV1CountChromeAppRequestsResponse
49 * @throws \Google\Service\Exception
50 */
51 public function countChromeAppRequests($customer, $optParams = [])
52 {
53 $params = ['customer' => $customer];
54 $params = array_merge($params, $optParams);
55 return $this->call('countChromeAppRequests', [$params], GoogleChromeManagementV1CountChromeAppRequestsResponse::class);
56 }
57 /**
58 * Get a list of devices that have requested to install an extension.
59 * (apps.fetchDevicesRequestingExtension)
60 *
61 * @param string $customer Required. The customer ID or "my_customer" prefixed
62 * with "customers/".
63 * @param array $optParams Optional parameters.
64 *
65 * @opt_param string extensionId Required. The extension for which we want to
66 * find requesting devices.
67 * @opt_param string orgUnitId The ID of the organizational unit. Only consider
68 * devices that directly belong to this org unit, i.e. sub-orgunits are not
69 * counted. If omitted, all data will be returned.
70 * @opt_param int pageSize Optional. Maximum number of results to return.
71 * Maximum and default are 50. Any page size larger than 50 will be coerced to
72 * 50.
73 * @opt_param string pageToken Optional. Token to specify the page of the
74 * request to be returned. Token expires after 1 day.
75 * @return GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse
76 * @throws \Google\Service\Exception
77 */
78 public function fetchDevicesRequestingExtension($customer, $optParams = [])
79 {
80 $params = ['customer' => $customer];
81 $params = array_merge($params, $optParams);
82 return $this->call('fetchDevicesRequestingExtension', [$params], GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse::class);
83 }
84 /**
85 * Get a list of users that have requested to install an extension.
86 * (apps.fetchUsersRequestingExtension)
87 *
88 * @param string $customer Required. The customer ID or "my_customer" prefixed
89 * with "customers/".
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param string extensionId Required. The extension for which we want to
93 * find the requesting users.
94 * @opt_param string orgUnitId The ID of the organizational unit. Only consider
95 * devices that directly belong to this org unit, i.e. sub-orgunits are not
96 * counted. If omitted, all data will be returned.
97 * @opt_param int pageSize Optional. Maximum number of results to return.
98 * Maximum and default are 50. Any page size larger than 50 will be coerced to
99 * 50.
100 * @opt_param string pageToken Optional. Token to specify the page of the
101 * request to be returned. Token expires after 1 day.
102 * @return GoogleChromeManagementV1FetchUsersRequestingExtensionResponse
103 * @throws \Google\Service\Exception
104 */
105 public function fetchUsersRequestingExtension($customer, $optParams = [])
106 {
107 $params = ['customer' => $customer];
108 $params = array_merge($params, $optParams);
109 return $this->call('fetchUsersRequestingExtension', [$params], GoogleChromeManagementV1FetchUsersRequestingExtensionResponse::class);
110 }
111}
112
113// Adding a class alias for backwards compatibility with the previous class name.
114class_alias(CustomersApps::class, 'Google_Service_ChromeManagement_Resource_CustomersApps');
Note: See TracBrowser for help on using the repository browser.