source: vendor/google/apiclient-services/src/MyBusinessAccountManagement.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.2 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 MyBusinessAccountManagement (v1).
24 *
25 * <p>
26 * The My Business Account Management API provides an interface for managing
27 * access to a location on Google. Note - If you have a quota of 0 after
28 * enabling the API, 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 MyBusinessAccountManagement extends \Google\Service
38{
39
40
41 public $accounts;
42 public $accounts_admins;
43 public $accounts_invitations;
44 public $locations;
45 public $locations_admins;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the MyBusinessAccountManagement
50 * 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://mybusinessaccountmanagement.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://mybusinessaccountmanagement.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'mybusinessaccountmanagement';
65
66 $this->accounts = new MyBusinessAccountManagement\Resource\Accounts(
67 $this,
68 $this->serviceName,
69 'accounts',
70 [
71 'methods' => [
72 'create' => [
73 'path' => 'v1/accounts',
74 'httpMethod' => 'POST',
75 'parameters' => [],
76 ],'get' => [
77 'path' => 'v1/{+name}',
78 'httpMethod' => 'GET',
79 'parameters' => [
80 'name' => [
81 'location' => 'path',
82 'type' => 'string',
83 'required' => true,
84 ],
85 ],
86 ],'list' => [
87 'path' => 'v1/accounts',
88 'httpMethod' => 'GET',
89 'parameters' => [
90 'filter' => [
91 'location' => 'query',
92 'type' => 'string',
93 ],
94 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 'parentAccount' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],'patch' => [
108 'path' => 'v1/{+name}',
109 'httpMethod' => 'PATCH',
110 'parameters' => [
111 'name' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 'updateMask' => [
117 'location' => 'query',
118 'type' => 'string',
119 ],
120 'validateOnly' => [
121 'location' => 'query',
122 'type' => 'boolean',
123 ],
124 ],
125 ],
126 ]
127 ]
128 );
129 $this->accounts_admins = new MyBusinessAccountManagement\Resource\AccountsAdmins(
130 $this,
131 $this->serviceName,
132 'admins',
133 [
134 'methods' => [
135 'create' => [
136 'path' => 'v1/{+parent}/admins',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'parent' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'delete' => [
146 'path' => 'v1/{+name}',
147 'httpMethod' => 'DELETE',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],'list' => [
156 'path' => 'v1/{+parent}/admins',
157 'httpMethod' => 'GET',
158 'parameters' => [
159 'parent' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'patch' => [
166 'path' => 'v1/{+name}',
167 'httpMethod' => 'PATCH',
168 'parameters' => [
169 'name' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 'updateMask' => [
175 'location' => 'query',
176 'type' => 'string',
177 ],
178 ],
179 ],
180 ]
181 ]
182 );
183 $this->accounts_invitations = new MyBusinessAccountManagement\Resource\AccountsInvitations(
184 $this,
185 $this->serviceName,
186 'invitations',
187 [
188 'methods' => [
189 'accept' => [
190 'path' => 'v1/{+name}:accept',
191 'httpMethod' => 'POST',
192 'parameters' => [
193 'name' => [
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ],
198 ],
199 ],'decline' => [
200 'path' => 'v1/{+name}:decline',
201 'httpMethod' => 'POST',
202 'parameters' => [
203 'name' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 ],
209 ],'list' => [
210 'path' => 'v1/{+parent}/invitations',
211 'httpMethod' => 'GET',
212 'parameters' => [
213 'parent' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 'filter' => [
219 'location' => 'query',
220 'type' => 'string',
221 ],
222 ],
223 ],
224 ]
225 ]
226 );
227 $this->locations = new MyBusinessAccountManagement\Resource\Locations(
228 $this,
229 $this->serviceName,
230 'locations',
231 [
232 'methods' => [
233 'transfer' => [
234 'path' => 'v1/{+name}:transfer',
235 'httpMethod' => 'POST',
236 'parameters' => [
237 'name' => [
238 'location' => 'path',
239 'type' => 'string',
240 'required' => true,
241 ],
242 ],
243 ],
244 ]
245 ]
246 );
247 $this->locations_admins = new MyBusinessAccountManagement\Resource\LocationsAdmins(
248 $this,
249 $this->serviceName,
250 'admins',
251 [
252 'methods' => [
253 'create' => [
254 'path' => 'v1/{+parent}/admins',
255 'httpMethod' => 'POST',
256 'parameters' => [
257 'parent' => [
258 'location' => 'path',
259 'type' => 'string',
260 'required' => true,
261 ],
262 ],
263 ],'delete' => [
264 'path' => 'v1/{+name}',
265 'httpMethod' => 'DELETE',
266 'parameters' => [
267 'name' => [
268 'location' => 'path',
269 'type' => 'string',
270 'required' => true,
271 ],
272 ],
273 ],'list' => [
274 'path' => 'v1/{+parent}/admins',
275 'httpMethod' => 'GET',
276 'parameters' => [
277 'parent' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 ],
283 ],'patch' => [
284 'path' => 'v1/{+name}',
285 'httpMethod' => 'PATCH',
286 'parameters' => [
287 'name' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 'updateMask' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 ],
297 ],
298 ]
299 ]
300 );
301 }
302}
303
304// Adding a class alias for backwards compatibility with the previous class name.
305class_alias(MyBusinessAccountManagement::class, 'Google_Service_MyBusinessAccountManagement');
Note: See TracBrowser for help on using the repository browser.