source: vendor/google/apiclient-services/src/FirebaseManagement/Resource/ProjectsWebApps.php

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

Upload project files

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