source: vendor/google/apiclient-services/src/FirebaseManagement/Resource/ProjectsAndroidApps.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 9.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\FirebaseManagement\Resource;
19
20use Google\Service\FirebaseManagement\AndroidApp;
21use Google\Service\FirebaseManagement\AndroidAppConfig;
22use Google\Service\FirebaseManagement\ListAndroidAppsResponse;
23use Google\Service\FirebaseManagement\Operation;
24use Google\Service\FirebaseManagement\RemoveAndroidAppRequest;
25use Google\Service\FirebaseManagement\UndeleteAndroidAppRequest;
26
27/**
28 * The "androidApps" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $firebaseService = new Google\Service\FirebaseManagement(...);
32 * $androidApps = $firebaseService->projects_androidApps;
33 * </code>
34 */
35class ProjectsAndroidApps extends \Google\Service\Resource
36{
37 /**
38 * Requests the creation of a new AndroidApp in the specified FirebaseProject.
39 * The result of this call is an `Operation` which can be used to track the
40 * provisioning process. The `Operation` is automatically deleted after
41 * completion, so there is no need to call `DeleteOperation`.
42 * (androidApps.create)
43 *
44 * @param string $parent The resource name of the parent FirebaseProject in
45 * which to create an AndroidApp, in the format:
46 * projects/PROJECT_IDENTIFIER/androidApps Refer to the `FirebaseProject`
47 * [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
48 * PROJECT_IDENTIFIER values.
49 * @param AndroidApp $postBody
50 * @param array $optParams Optional parameters.
51 * @return Operation
52 * @throws \Google\Service\Exception
53 */
54 public function create($parent, AndroidApp $postBody, $optParams = [])
55 {
56 $params = ['parent' => $parent, 'postBody' => $postBody];
57 $params = array_merge($params, $optParams);
58 return $this->call('create', [$params], Operation::class);
59 }
60 /**
61 * Gets the specified AndroidApp. (androidApps.get)
62 *
63 * @param string $name The resource name of the AndroidApp, in the format:
64 * projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique
65 * identifier, the Unique Resource from Sub-Collection access pattern may be
66 * used here, in the format: projects/-/androidApps/APP_ID Refer to the
67 * `AndroidApp` [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field
68 * for details about PROJECT_IDENTIFIER and APP_ID values.
69 * @param array $optParams Optional parameters.
70 * @return AndroidApp
71 * @throws \Google\Service\Exception
72 */
73 public function get($name, $optParams = [])
74 {
75 $params = ['name' => $name];
76 $params = array_merge($params, $optParams);
77 return $this->call('get', [$params], AndroidApp::class);
78 }
79 /**
80 * Gets the configuration artifact associated with the specified AndroidApp.
81 * (androidApps.getConfig)
82 *
83 * @param string $name The resource name of the AndroidApp configuration to
84 * download, in the format:
85 * projects/PROJECT_IDENTIFIER/androidApps/APP_ID/config Since an APP_ID is a
86 * unique identifier, the Unique Resource from Sub-Collection access pattern may
87 * be used here, in the format: projects/-/androidApps/APP_ID Refer to the
88 * `AndroidApp` [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field
89 * for details about PROJECT_IDENTIFIER and APP_ID values.
90 * @param array $optParams Optional parameters.
91 * @return AndroidAppConfig
92 * @throws \Google\Service\Exception
93 */
94 public function getConfig($name, $optParams = [])
95 {
96 $params = ['name' => $name];
97 $params = array_merge($params, $optParams);
98 return $this->call('getConfig', [$params], AndroidAppConfig::class);
99 }
100 /**
101 * Lists each AndroidApp associated with the specified FirebaseProject. The
102 * elements are returned in no particular order, but will be a consistent view
103 * of the Apps when additional requests are made with a `pageToken`.
104 * (androidApps.listProjectsAndroidApps)
105 *
106 * @param string $parent The resource name of the parent FirebaseProject for
107 * which to list each associated AndroidApp, in the format:
108 * projects/PROJECT_IDENTIFIER /androidApps Refer to the `FirebaseProject`
109 * [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
110 * PROJECT_IDENTIFIER values.
111 * @param array $optParams Optional parameters.
112 *
113 * @opt_param int pageSize The maximum number of Apps to return in the response.
114 * The server may return fewer than this at its discretion. If no value is
115 * specified (or too large a value is specified), then the server will impose
116 * its own limit.
117 * @opt_param string pageToken Token returned from a previous call to
118 * `ListAndroidApps` indicating where in the set of Apps to resume listing.
119 * @opt_param bool showDeleted Controls whether Apps in the DELETED state should
120 * be returned in the response. If not specified, only `ACTIVE` Apps will be
121 * returned.
122 * @return ListAndroidAppsResponse
123 * @throws \Google\Service\Exception
124 */
125 public function listProjectsAndroidApps($parent, $optParams = [])
126 {
127 $params = ['parent' => $parent];
128 $params = array_merge($params, $optParams);
129 return $this->call('list', [$params], ListAndroidAppsResponse::class);
130 }
131 /**
132 * Updates the attributes of the specified AndroidApp. (androidApps.patch)
133 *
134 * @param string $name The resource name of the AndroidApp, in the format:
135 * projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the
136 * parent Project's
137 * [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number)
138 * ***(recommended)*** or its
139 * [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more
140 * about using project identifiers in Google's [AIP 2510
141 * standard](https://google.aip.dev/cloud/2510). Note that the value for
142 * PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID:
143 * the globally unique, Firebase-assigned identifier for the App (see
144 * [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)).
145 * @param AndroidApp $postBody
146 * @param array $optParams Optional parameters.
147 *
148 * @opt_param string updateMask Specifies which fields of the AndroidApp to
149 * update. Note that the following fields are immutable: `name`, `app_id`,
150 * `project_id`, and `package_name`. To update `state`, use any of the following
151 * endpoints: RemoveAndroidApp or UndeleteAndroidApp.
152 * @return AndroidApp
153 * @throws \Google\Service\Exception
154 */
155 public function patch($name, AndroidApp $postBody, $optParams = [])
156 {
157 $params = ['name' => $name, 'postBody' => $postBody];
158 $params = array_merge($params, $optParams);
159 return $this->call('patch', [$params], AndroidApp::class);
160 }
161 /**
162 * Removes the specified AndroidApp from the FirebaseProject.
163 * (androidApps.remove)
164 *
165 * @param string $name Required. The resource name of the AndroidApp, in the
166 * format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a
167 * unique identifier, the Unique Resource from Sub-Collection access pattern may
168 * be used here, in the format: projects/-/androidApps/APP_ID Refer to the
169 * AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for
170 * details about PROJECT_IDENTIFIER and APP_ID values.
171 * @param RemoveAndroidAppRequest $postBody
172 * @param array $optParams Optional parameters.
173 * @return Operation
174 * @throws \Google\Service\Exception
175 */
176 public function remove($name, RemoveAndroidAppRequest $postBody, $optParams = [])
177 {
178 $params = ['name' => $name, 'postBody' => $postBody];
179 $params = array_merge($params, $optParams);
180 return $this->call('remove', [$params], Operation::class);
181 }
182 /**
183 * Restores the specified AndroidApp to the FirebaseProject.
184 * (androidApps.undelete)
185 *
186 * @param string $name Required. The resource name of the AndroidApp, in the
187 * format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a
188 * unique identifier, the Unique Resource from Sub-Collection access pattern may
189 * be used here, in the format: projects/-/androidApps/APP_ID Refer to the
190 * AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for
191 * details about PROJECT_IDENTIFIER and APP_ID values.
192 * @param UndeleteAndroidAppRequest $postBody
193 * @param array $optParams Optional parameters.
194 * @return Operation
195 * @throws \Google\Service\Exception
196 */
197 public function undelete($name, UndeleteAndroidAppRequest $postBody, $optParams = [])
198 {
199 $params = ['name' => $name, 'postBody' => $postBody];
200 $params = array_merge($params, $optParams);
201 return $this->call('undelete', [$params], Operation::class);
202 }
203}
204
205// Adding a class alias for backwards compatibility with the previous class name.
206class_alias(ProjectsAndroidApps::class, 'Google_Service_FirebaseManagement_Resource_ProjectsAndroidApps');
Note: See TracBrowser for help on using the repository browser.