source: vendor/google/apiclient-services/src/AndroidManagement/Resource/EnterprisesWebApps.php

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

Upload project files

  • Property mode set to 100644
File size: 4.2 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\AndroidManagement\Resource;
19
20use Google\Service\AndroidManagement\AndroidmanagementEmpty;
21use Google\Service\AndroidManagement\ListWebAppsResponse;
22use Google\Service\AndroidManagement\WebApp;
23
24/**
25 * The "webApps" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $androidmanagementService = new Google\Service\AndroidManagement(...);
29 * $webApps = $androidmanagementService->enterprises_webApps;
30 * </code>
31 */
32class EnterprisesWebApps extends \Google\Service\Resource
33{
34 /**
35 * Creates a web app. (webApps.create)
36 *
37 * @param string $parent The name of the enterprise in the form
38 * enterprises/{enterpriseId}.
39 * @param WebApp $postBody
40 * @param array $optParams Optional parameters.
41 * @return WebApp
42 * @throws \Google\Service\Exception
43 */
44 public function create($parent, WebApp $postBody, $optParams = [])
45 {
46 $params = ['parent' => $parent, 'postBody' => $postBody];
47 $params = array_merge($params, $optParams);
48 return $this->call('create', [$params], WebApp::class);
49 }
50 /**
51 * Deletes a web app. (webApps.delete)
52 *
53 * @param string $name The name of the web app in the form
54 * enterprises/{enterpriseId}/webApps/{packageName}.
55 * @param array $optParams Optional parameters.
56 * @return AndroidmanagementEmpty
57 * @throws \Google\Service\Exception
58 */
59 public function delete($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], AndroidmanagementEmpty::class);
64 }
65 /**
66 * Gets a web app. (webApps.get)
67 *
68 * @param string $name The name of the web app in the form
69 * enterprises/{enterpriseId}/webApp/{packageName}.
70 * @param array $optParams Optional parameters.
71 * @return WebApp
72 * @throws \Google\Service\Exception
73 */
74 public function get($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], WebApp::class);
79 }
80 /**
81 * Lists web apps for a given enterprise. (webApps.listEnterprisesWebApps)
82 *
83 * @param string $parent The name of the enterprise in the form
84 * enterprises/{enterpriseId}.
85 * @param array $optParams Optional parameters.
86 *
87 * @opt_param int pageSize The requested page size. This is a hint and the
88 * actual page size in the response may be different.
89 * @opt_param string pageToken A token identifying a page of results returned by
90 * the server.
91 * @return ListWebAppsResponse
92 * @throws \Google\Service\Exception
93 */
94 public function listEnterprisesWebApps($parent, $optParams = [])
95 {
96 $params = ['parent' => $parent];
97 $params = array_merge($params, $optParams);
98 return $this->call('list', [$params], ListWebAppsResponse::class);
99 }
100 /**
101 * Updates a web app. (webApps.patch)
102 *
103 * @param string $name The name of the web app in the form
104 * enterprises/{enterpriseId}/webApps/{packageName}.
105 * @param WebApp $postBody
106 * @param array $optParams Optional parameters.
107 *
108 * @opt_param string updateMask The field mask indicating the fields to update.
109 * If not set, all modifiable fields will be modified.
110 * @return WebApp
111 * @throws \Google\Service\Exception
112 */
113 public function patch($name, WebApp $postBody, $optParams = [])
114 {
115 $params = ['name' => $name, 'postBody' => $postBody];
116 $params = array_merge($params, $optParams);
117 return $this->call('patch', [$params], WebApp::class);
118 }
119}
120
121// Adding a class alias for backwards compatibility with the previous class name.
122class_alias(EnterprisesWebApps::class, 'Google_Service_AndroidManagement_Resource_EnterprisesWebApps');
Note: See TracBrowser for help on using the repository browser.