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