source: vendor/google/apiclient-services/src/CloudSupport.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 9.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;
19
20use Google\Client;
21
22/**
23 * Service definition for CloudSupport (v2).
24 *
25 * <p>
26 * Manages Google Cloud technical support cases for Customer Care support
27 * offerings.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/support/docs/apis" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudSupport extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $caseClassifications;
43 public $cases;
44 public $cases_attachments;
45 public $cases_comments;
46 public $media;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the CloudSupport service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://cloudsupport.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudsupport.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v2';
64 $this->serviceName = 'cloudsupport';
65
66 $this->caseClassifications = new CloudSupport\Resource\CaseClassifications(
67 $this,
68 $this->serviceName,
69 'caseClassifications',
70 [
71 'methods' => [
72 'search' => [
73 'path' => 'v2/caseClassifications:search',
74 'httpMethod' => 'GET',
75 'parameters' => [
76 'pageSize' => [
77 'location' => 'query',
78 'type' => 'integer',
79 ],
80 'pageToken' => [
81 'location' => 'query',
82 'type' => 'string',
83 ],
84 'query' => [
85 'location' => 'query',
86 'type' => 'string',
87 ],
88 ],
89 ],
90 ]
91 ]
92 );
93 $this->cases = new CloudSupport\Resource\Cases(
94 $this,
95 $this->serviceName,
96 'cases',
97 [
98 'methods' => [
99 'close' => [
100 'path' => 'v2/{+name}:close',
101 'httpMethod' => 'POST',
102 'parameters' => [
103 'name' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 ],
109 ],'create' => [
110 'path' => 'v2/{+parent}/cases',
111 'httpMethod' => 'POST',
112 'parameters' => [
113 'parent' => [
114 'location' => 'path',
115 'type' => 'string',
116 'required' => true,
117 ],
118 ],
119 ],'escalate' => [
120 'path' => 'v2/{+name}:escalate',
121 'httpMethod' => 'POST',
122 'parameters' => [
123 'name' => [
124 'location' => 'path',
125 'type' => 'string',
126 'required' => true,
127 ],
128 ],
129 ],'get' => [
130 'path' => 'v2/{+name}',
131 'httpMethod' => 'GET',
132 'parameters' => [
133 'name' => [
134 'location' => 'path',
135 'type' => 'string',
136 'required' => true,
137 ],
138 ],
139 ],'list' => [
140 'path' => 'v2/{+parent}/cases',
141 'httpMethod' => 'GET',
142 'parameters' => [
143 'parent' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 'filter' => [
149 'location' => 'query',
150 'type' => 'string',
151 ],
152 'pageSize' => [
153 'location' => 'query',
154 'type' => 'integer',
155 ],
156 'pageToken' => [
157 'location' => 'query',
158 'type' => 'string',
159 ],
160 ],
161 ],'patch' => [
162 'path' => 'v2/{+name}',
163 'httpMethod' => 'PATCH',
164 'parameters' => [
165 'name' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 'updateMask' => [
171 'location' => 'query',
172 'type' => 'string',
173 ],
174 ],
175 ],'search' => [
176 'path' => 'v2/{+parent}/cases:search',
177 'httpMethod' => 'GET',
178 'parameters' => [
179 'parent' => [
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ],
184 'pageSize' => [
185 'location' => 'query',
186 'type' => 'integer',
187 ],
188 'pageToken' => [
189 'location' => 'query',
190 'type' => 'string',
191 ],
192 'query' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],
198 ]
199 ]
200 );
201 $this->cases_attachments = new CloudSupport\Resource\CasesAttachments(
202 $this,
203 $this->serviceName,
204 'attachments',
205 [
206 'methods' => [
207 'list' => [
208 'path' => 'v2/{+parent}/attachments',
209 'httpMethod' => 'GET',
210 'parameters' => [
211 'parent' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 'pageSize' => [
217 'location' => 'query',
218 'type' => 'integer',
219 ],
220 'pageToken' => [
221 'location' => 'query',
222 'type' => 'string',
223 ],
224 ],
225 ],
226 ]
227 ]
228 );
229 $this->cases_comments = new CloudSupport\Resource\CasesComments(
230 $this,
231 $this->serviceName,
232 'comments',
233 [
234 'methods' => [
235 'create' => [
236 'path' => 'v2/{+parent}/comments',
237 'httpMethod' => 'POST',
238 'parameters' => [
239 'parent' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 ],
245 ],'list' => [
246 'path' => 'v2/{+parent}/comments',
247 'httpMethod' => 'GET',
248 'parameters' => [
249 'parent' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 'pageSize' => [
255 'location' => 'query',
256 'type' => 'integer',
257 ],
258 'pageToken' => [
259 'location' => 'query',
260 'type' => 'string',
261 ],
262 ],
263 ],
264 ]
265 ]
266 );
267 $this->media = new CloudSupport\Resource\Media(
268 $this,
269 $this->serviceName,
270 'media',
271 [
272 'methods' => [
273 'download' => [
274 'path' => 'v2/{+name}:download',
275 'httpMethod' => 'GET',
276 'parameters' => [
277 'name' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 ],
283 ],'upload' => [
284 'path' => 'v2/{+parent}/attachments',
285 'httpMethod' => 'POST',
286 'parameters' => [
287 'parent' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 ],
293 ],
294 ]
295 ]
296 );
297 }
298}
299
300// Adding a class alias for backwards compatibility with the previous class name.
301class_alias(CloudSupport::class, 'Google_Service_CloudSupport');
Note: See TracBrowser for help on using the repository browser.