source: vendor/google/apiclient-services/src/AndroidEnterprise/Resource/Managedconfigurationsforuser.php

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

Upload project files

  • Property mode set to 100644
File size: 5.0 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\AndroidEnterprise\Resource;
19
20use Google\Service\AndroidEnterprise\ManagedConfiguration;
21use Google\Service\AndroidEnterprise\ManagedConfigurationsForUserListResponse;
22
23/**
24 * The "managedconfigurationsforuser" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
28 * $managedconfigurationsforuser = $androidenterpriseService->managedconfigurationsforuser;
29 * </code>
30 */
31class Managedconfigurationsforuser extends \Google\Service\Resource
32{
33 /**
34 * Removes a per-user managed configuration for an app for the specified user.
35 * (managedconfigurationsforuser.delete)
36 *
37 * @param string $enterpriseId The ID of the enterprise.
38 * @param string $userId The ID of the user.
39 * @param string $managedConfigurationForUserId The ID of the managed
40 * configuration (a product ID), e.g. "app:com.google.android.gm".
41 * @param array $optParams Optional parameters.
42 * @throws \Google\Service\Exception
43 */
44 public function delete($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = [])
45 {
46 $params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId];
47 $params = array_merge($params, $optParams);
48 return $this->call('delete', [$params]);
49 }
50 /**
51 * Retrieves details of a per-user managed configuration for an app for the
52 * specified user. (managedconfigurationsforuser.get)
53 *
54 * @param string $enterpriseId The ID of the enterprise.
55 * @param string $userId The ID of the user.
56 * @param string $managedConfigurationForUserId The ID of the managed
57 * configuration (a product ID), e.g. "app:com.google.android.gm".
58 * @param array $optParams Optional parameters.
59 * @return ManagedConfiguration
60 * @throws \Google\Service\Exception
61 */
62 public function get($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = [])
63 {
64 $params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId];
65 $params = array_merge($params, $optParams);
66 return $this->call('get', [$params], ManagedConfiguration::class);
67 }
68 /**
69 * Lists all the per-user managed configurations for the specified user. Only
70 * the ID is set.
71 * (managedconfigurationsforuser.listManagedconfigurationsforuser)
72 *
73 * @param string $enterpriseId The ID of the enterprise.
74 * @param string $userId The ID of the user.
75 * @param array $optParams Optional parameters.
76 * @return ManagedConfigurationsForUserListResponse
77 * @throws \Google\Service\Exception
78 */
79 public function listManagedconfigurationsforuser($enterpriseId, $userId, $optParams = [])
80 {
81 $params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
82 $params = array_merge($params, $optParams);
83 return $this->call('list', [$params], ManagedConfigurationsForUserListResponse::class);
84 }
85 /**
86 * Adds or updates the managed configuration settings for an app for the
87 * specified user. If you support the Managed configurations iframe, you can
88 * apply managed configurations to a user by specifying an mcmId and its
89 * associated configuration variables (if any) in the request. Alternatively,
90 * all EMMs can apply managed configurations by passing a list of managed
91 * properties. (managedconfigurationsforuser.update)
92 *
93 * @param string $enterpriseId The ID of the enterprise.
94 * @param string $userId The ID of the user.
95 * @param string $managedConfigurationForUserId The ID of the managed
96 * configuration (a product ID), e.g. "app:com.google.android.gm".
97 * @param ManagedConfiguration $postBody
98 * @param array $optParams Optional parameters.
99 * @return ManagedConfiguration
100 * @throws \Google\Service\Exception
101 */
102 public function update($enterpriseId, $userId, $managedConfigurationForUserId, ManagedConfiguration $postBody, $optParams = [])
103 {
104 $params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId, 'postBody' => $postBody];
105 $params = array_merge($params, $optParams);
106 return $this->call('update', [$params], ManagedConfiguration::class);
107 }
108}
109
110// Adding a class alias for backwards compatibility with the previous class name.
111class_alias(Managedconfigurationsforuser::class, 'Google_Service_AndroidEnterprise_Resource_Managedconfigurationsforuser');
Note: See TracBrowser for help on using the repository browser.