source: vendor/google/apiclient-services/src/Appengine/Resource/Apps.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: 5.5 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\Appengine\Resource;
19
20use Google\Service\Appengine\Application;
21use Google\Service\Appengine\ListRuntimesResponse;
22use Google\Service\Appengine\Operation;
23use Google\Service\Appengine\RepairApplicationRequest;
24
25/**
26 * The "apps" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $appengineService = new Google\Service\Appengine(...);
30 * $apps = $appengineService->apps;
31 * </code>
32 */
33class Apps extends \Google\Service\Resource
34{
35 /**
36 * Creates an App Engine application for a Google Cloud Platform project.
37 * Required fields: id - The ID of the target Cloud Platform project. location -
38 * The region (https://cloud.google.com/appengine/docs/locations) where you want
39 * the App Engine application located.For more information about App Engine
40 * applications, see Managing Projects, Applications, and Billing
41 * (https://cloud.google.com/appengine/docs/standard/python/console/).
42 * (apps.create)
43 *
44 * @param Application $postBody
45 * @param array $optParams Optional parameters.
46 * @return Operation
47 * @throws \Google\Service\Exception
48 */
49 public function create(Application $postBody, $optParams = [])
50 {
51 $params = ['postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], Operation::class);
54 }
55 /**
56 * Gets information about an application. (apps.get)
57 *
58 * @param string $appsId Part of `name`. Name of the Application resource to
59 * get. Example: apps/myapp.
60 * @param array $optParams Optional parameters.
61 *
62 * @opt_param string includeExtraData Options to include extra data
63 * @return Application
64 * @throws \Google\Service\Exception
65 */
66 public function get($appsId, $optParams = [])
67 {
68 $params = ['appsId' => $appsId];
69 $params = array_merge($params, $optParams);
70 return $this->call('get', [$params], Application::class);
71 }
72 /**
73 * Lists all the available runtimes for the application. (apps.listRuntimes)
74 *
75 * @param string $appsId Part of `parent`. Required. Name of the parent
76 * Application resource. Example: apps/myapp.
77 * @param array $optParams Optional parameters.
78 *
79 * @opt_param string environment Optional. The environment of the Application.
80 * @return ListRuntimesResponse
81 * @throws \Google\Service\Exception
82 */
83 public function listRuntimes($appsId, $optParams = [])
84 {
85 $params = ['appsId' => $appsId];
86 $params = array_merge($params, $optParams);
87 return $this->call('listRuntimes', [$params], ListRuntimesResponse::class);
88 }
89 /**
90 * Updates the specified Application resource. You can update the following
91 * fields: auth_domain - Google authentication domain for controlling user
92 * access to the application. default_cookie_expiration - Cookie expiration
93 * policy for the application. iap - Identity-Aware Proxy properties for the
94 * application. (apps.patch)
95 *
96 * @param string $appsId Part of `name`. Name of the Application resource to
97 * update. Example: apps/myapp.
98 * @param Application $postBody
99 * @param array $optParams Optional parameters.
100 *
101 * @opt_param string updateMask Required. Standard field mask for the set of
102 * fields to be updated.
103 * @return Operation
104 * @throws \Google\Service\Exception
105 */
106 public function patch($appsId, Application $postBody, $optParams = [])
107 {
108 $params = ['appsId' => $appsId, 'postBody' => $postBody];
109 $params = array_merge($params, $optParams);
110 return $this->call('patch', [$params], Operation::class);
111 }
112 /**
113 * Recreates the required App Engine features for the specified App Engine
114 * application, for example a Cloud Storage bucket or App Engine service
115 * account. Use this method if you receive an error message about a missing
116 * feature, for example, Error retrieving the App Engine service account. If you
117 * have deleted your App Engine service account, this will not be able to
118 * recreate it. Instead, you should attempt to use the IAM undelete API if
119 * possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAc
120 * counts/undelete?apix_params=%7B"name"%3A"projects%2F-
121 * %2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the deletion
122 * was recent, the numeric ID can be found in the Cloud Console Activity Log.
123 * (apps.repair)
124 *
125 * @param string $appsId Part of `name`. Name of the application to repair.
126 * Example: apps/myapp
127 * @param RepairApplicationRequest $postBody
128 * @param array $optParams Optional parameters.
129 * @return Operation
130 * @throws \Google\Service\Exception
131 */
132 public function repair($appsId, RepairApplicationRequest $postBody, $optParams = [])
133 {
134 $params = ['appsId' => $appsId, 'postBody' => $postBody];
135 $params = array_merge($params, $optParams);
136 return $this->call('repair', [$params], Operation::class);
137 }
138}
139
140// Adding a class alias for backwards compatibility with the previous class name.
141class_alias(Apps::class, 'Google_Service_Appengine_Resource_Apps');
Note: See TracBrowser for help on using the repository browser.