source: vendor/google/apiclient-services/src/Essentialcontacts.php

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

Upload project files

  • Property mode set to 100644
File size: 12.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 Essentialcontacts (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/essentialcontacts/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Essentialcontacts extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $folders_contacts;
42 public $organizations_contacts;
43 public $projects_contacts;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Essentialcontacts service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://essentialcontacts.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://essentialcontacts.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'essentialcontacts';
62
63 $this->folders_contacts = new Essentialcontacts\Resource\FoldersContacts(
64 $this,
65 $this->serviceName,
66 'contacts',
67 [
68 'methods' => [
69 'compute' => [
70 'path' => 'v1/{+parent}/contacts:compute',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'parent' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'notificationCategories' => [
79 'location' => 'query',
80 'type' => 'string',
81 'repeated' => true,
82 ],
83 'pageSize' => [
84 'location' => 'query',
85 'type' => 'integer',
86 ],
87 'pageToken' => [
88 'location' => 'query',
89 'type' => 'string',
90 ],
91 ],
92 ],'create' => [
93 'path' => 'v1/{+parent}/contacts',
94 'httpMethod' => 'POST',
95 'parameters' => [
96 'parent' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],'delete' => [
103 'path' => 'v1/{+name}',
104 'httpMethod' => 'DELETE',
105 'parameters' => [
106 'name' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 ],
112 ],'get' => [
113 'path' => 'v1/{+name}',
114 'httpMethod' => 'GET',
115 'parameters' => [
116 'name' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 ],
122 ],'list' => [
123 'path' => 'v1/{+parent}/contacts',
124 'httpMethod' => 'GET',
125 'parameters' => [
126 'parent' => [
127 'location' => 'path',
128 'type' => 'string',
129 'required' => true,
130 ],
131 'pageSize' => [
132 'location' => 'query',
133 'type' => 'integer',
134 ],
135 'pageToken' => [
136 'location' => 'query',
137 'type' => 'string',
138 ],
139 ],
140 ],'patch' => [
141 'path' => 'v1/{+name}',
142 'httpMethod' => 'PATCH',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 'updateMask' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],'sendTestMessage' => [
155 'path' => 'v1/{+resource}/contacts:sendTestMessage',
156 'httpMethod' => 'POST',
157 'parameters' => [
158 'resource' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 ],
164 ],
165 ]
166 ]
167 );
168 $this->organizations_contacts = new Essentialcontacts\Resource\OrganizationsContacts(
169 $this,
170 $this->serviceName,
171 'contacts',
172 [
173 'methods' => [
174 'compute' => [
175 'path' => 'v1/{+parent}/contacts:compute',
176 'httpMethod' => 'GET',
177 'parameters' => [
178 'parent' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 'notificationCategories' => [
184 'location' => 'query',
185 'type' => 'string',
186 'repeated' => true,
187 ],
188 'pageSize' => [
189 'location' => 'query',
190 'type' => 'integer',
191 ],
192 'pageToken' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],'create' => [
198 'path' => 'v1/{+parent}/contacts',
199 'httpMethod' => 'POST',
200 'parameters' => [
201 'parent' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 ],
207 ],'delete' => [
208 'path' => 'v1/{+name}',
209 'httpMethod' => 'DELETE',
210 'parameters' => [
211 'name' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 ],
217 ],'get' => [
218 'path' => 'v1/{+name}',
219 'httpMethod' => 'GET',
220 'parameters' => [
221 'name' => [
222 'location' => 'path',
223 'type' => 'string',
224 'required' => true,
225 ],
226 ],
227 ],'list' => [
228 'path' => 'v1/{+parent}/contacts',
229 'httpMethod' => 'GET',
230 'parameters' => [
231 'parent' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 'pageSize' => [
237 'location' => 'query',
238 'type' => 'integer',
239 ],
240 'pageToken' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 ],
245 ],'patch' => [
246 'path' => 'v1/{+name}',
247 'httpMethod' => 'PATCH',
248 'parameters' => [
249 'name' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 'updateMask' => [
255 'location' => 'query',
256 'type' => 'string',
257 ],
258 ],
259 ],'sendTestMessage' => [
260 'path' => 'v1/{+resource}/contacts:sendTestMessage',
261 'httpMethod' => 'POST',
262 'parameters' => [
263 'resource' => [
264 'location' => 'path',
265 'type' => 'string',
266 'required' => true,
267 ],
268 ],
269 ],
270 ]
271 ]
272 );
273 $this->projects_contacts = new Essentialcontacts\Resource\ProjectsContacts(
274 $this,
275 $this->serviceName,
276 'contacts',
277 [
278 'methods' => [
279 'compute' => [
280 'path' => 'v1/{+parent}/contacts:compute',
281 'httpMethod' => 'GET',
282 'parameters' => [
283 'parent' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 'notificationCategories' => [
289 'location' => 'query',
290 'type' => 'string',
291 'repeated' => true,
292 ],
293 'pageSize' => [
294 'location' => 'query',
295 'type' => 'integer',
296 ],
297 'pageToken' => [
298 'location' => 'query',
299 'type' => 'string',
300 ],
301 ],
302 ],'create' => [
303 'path' => 'v1/{+parent}/contacts',
304 'httpMethod' => 'POST',
305 'parameters' => [
306 'parent' => [
307 'location' => 'path',
308 'type' => 'string',
309 'required' => true,
310 ],
311 ],
312 ],'delete' => [
313 'path' => 'v1/{+name}',
314 'httpMethod' => 'DELETE',
315 'parameters' => [
316 'name' => [
317 'location' => 'path',
318 'type' => 'string',
319 'required' => true,
320 ],
321 ],
322 ],'get' => [
323 'path' => 'v1/{+name}',
324 'httpMethod' => 'GET',
325 'parameters' => [
326 'name' => [
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ],
331 ],
332 ],'list' => [
333 'path' => 'v1/{+parent}/contacts',
334 'httpMethod' => 'GET',
335 'parameters' => [
336 'parent' => [
337 'location' => 'path',
338 'type' => 'string',
339 'required' => true,
340 ],
341 'pageSize' => [
342 'location' => 'query',
343 'type' => 'integer',
344 ],
345 'pageToken' => [
346 'location' => 'query',
347 'type' => 'string',
348 ],
349 ],
350 ],'patch' => [
351 'path' => 'v1/{+name}',
352 'httpMethod' => 'PATCH',
353 'parameters' => [
354 'name' => [
355 'location' => 'path',
356 'type' => 'string',
357 'required' => true,
358 ],
359 'updateMask' => [
360 'location' => 'query',
361 'type' => 'string',
362 ],
363 ],
364 ],'sendTestMessage' => [
365 'path' => 'v1/{+resource}/contacts:sendTestMessage',
366 'httpMethod' => 'POST',
367 'parameters' => [
368 'resource' => [
369 'location' => 'path',
370 'type' => 'string',
371 'required' => true,
372 ],
373 ],
374 ],
375 ]
376 ]
377 );
378 }
379}
380
381// Adding a class alias for backwards compatibility with the previous class name.
382class_alias(Essentialcontacts::class, 'Google_Service_Essentialcontacts');
Note: See TracBrowser for help on using the repository browser.