source: vendor/google/apiclient-services/src/Reseller.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.2 KB
RevLine 
[e3d4e0a]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 Reseller (v1).
24 *
25 * <p>
26 * Perform common functions that are available on the Channel Services console
27 * at scale, like placing orders and viewing customer information</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/google-apps/reseller/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Reseller extends \Google\Service
37{
38 /** Manage users on your domain. */
39 const APPS_ORDER =
40 "https://www.googleapis.com/auth/apps.order";
41 /** Manage users on your domain. */
42 const APPS_ORDER_READONLY =
43 "https://www.googleapis.com/auth/apps.order.readonly";
44
45 public $customers;
46 public $resellernotify;
47 public $subscriptions;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the Reseller service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://reseller.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://reseller.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'reseller';
66
67 $this->customers = new Reseller\Resource\Customers(
68 $this,
69 $this->serviceName,
70 'customers',
71 [
72 'methods' => [
73 'get' => [
74 'path' => 'apps/reseller/v1/customers/{customerId}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'customerId' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'insert' => [
84 'path' => 'apps/reseller/v1/customers',
85 'httpMethod' => 'POST',
86 'parameters' => [
87 'customerAuthToken' => [
88 'location' => 'query',
89 'type' => 'string',
90 ],
91 ],
92 ],'patch' => [
93 'path' => 'apps/reseller/v1/customers/{customerId}',
94 'httpMethod' => 'PATCH',
95 'parameters' => [
96 'customerId' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],'update' => [
103 'path' => 'apps/reseller/v1/customers/{customerId}',
104 'httpMethod' => 'PUT',
105 'parameters' => [
106 'customerId' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 ],
112 ],
113 ]
114 ]
115 );
116 $this->resellernotify = new Reseller\Resource\Resellernotify(
117 $this,
118 $this->serviceName,
119 'resellernotify',
120 [
121 'methods' => [
122 'getwatchdetails' => [
123 'path' => 'apps/reseller/v1/resellernotify/getwatchdetails',
124 'httpMethod' => 'GET',
125 'parameters' => [],
126 ],'register' => [
127 'path' => 'apps/reseller/v1/resellernotify/register',
128 'httpMethod' => 'POST',
129 'parameters' => [
130 'serviceAccountEmailAddress' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 ],
135 ],'unregister' => [
136 'path' => 'apps/reseller/v1/resellernotify/unregister',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'serviceAccountEmailAddress' => [
140 'location' => 'query',
141 'type' => 'string',
142 ],
143 ],
144 ],
145 ]
146 ]
147 );
148 $this->subscriptions = new Reseller\Resource\Subscriptions(
149 $this,
150 $this->serviceName,
151 'subscriptions',
152 [
153 'methods' => [
154 'activate' => [
155 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate',
156 'httpMethod' => 'POST',
157 'parameters' => [
158 'customerId' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 'subscriptionId' => [
164 'location' => 'path',
165 'type' => 'string',
166 'required' => true,
167 ],
168 ],
169 ],'changePlan' => [
170 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan',
171 'httpMethod' => 'POST',
172 'parameters' => [
173 'customerId' => [
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ],
178 'subscriptionId' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'changeRenewalSettings' => [
185 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings',
186 'httpMethod' => 'POST',
187 'parameters' => [
188 'customerId' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 'subscriptionId' => [
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ],
198 ],
199 ],'changeSeats' => [
200 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats',
201 'httpMethod' => 'POST',
202 'parameters' => [
203 'customerId' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 'subscriptionId' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 ],
214 ],'delete' => [
215 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}',
216 'httpMethod' => 'DELETE',
217 'parameters' => [
218 'customerId' => [
219 'location' => 'path',
220 'type' => 'string',
221 'required' => true,
222 ],
223 'subscriptionId' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 'deletionType' => [
229 'location' => 'query',
230 'type' => 'string',
231 'required' => true,
232 ],
233 ],
234 ],'get' => [
235 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}',
236 'httpMethod' => 'GET',
237 'parameters' => [
238 'customerId' => [
239 'location' => 'path',
240 'type' => 'string',
241 'required' => true,
242 ],
243 'subscriptionId' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 ],
249 ],'insert' => [
250 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions',
251 'httpMethod' => 'POST',
252 'parameters' => [
253 'customerId' => [
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ],
258 'action' => [
259 'location' => 'query',
260 'type' => 'string',
261 ],
262 'customerAuthToken' => [
263 'location' => 'query',
264 'type' => 'string',
265 ],
266 'sourceSkuId' => [
267 'location' => 'query',
268 'type' => 'string',
269 ],
270 ],
271 ],'list' => [
272 'path' => 'apps/reseller/v1/subscriptions',
273 'httpMethod' => 'GET',
274 'parameters' => [
275 'customerAuthToken' => [
276 'location' => 'query',
277 'type' => 'string',
278 ],
279 'customerId' => [
280 'location' => 'query',
281 'type' => 'string',
282 ],
283 'customerNamePrefix' => [
284 'location' => 'query',
285 'type' => 'string',
286 ],
287 'maxResults' => [
288 'location' => 'query',
289 'type' => 'integer',
290 ],
291 'pageToken' => [
292 'location' => 'query',
293 'type' => 'string',
294 ],
295 ],
296 ],'startPaidService' => [
297 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService',
298 'httpMethod' => 'POST',
299 'parameters' => [
300 'customerId' => [
301 'location' => 'path',
302 'type' => 'string',
303 'required' => true,
304 ],
305 'subscriptionId' => [
306 'location' => 'path',
307 'type' => 'string',
308 'required' => true,
309 ],
310 ],
311 ],'suspend' => [
312 'path' => 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend',
313 'httpMethod' => 'POST',
314 'parameters' => [
315 'customerId' => [
316 'location' => 'path',
317 'type' => 'string',
318 'required' => true,
319 ],
320 'subscriptionId' => [
321 'location' => 'path',
322 'type' => 'string',
323 'required' => true,
324 ],
325 ],
326 ],
327 ]
328 ]
329 );
330 }
331}
332
333// Adding a class alias for backwards compatibility with the previous class name.
334class_alias(Reseller::class, 'Google_Service_Reseller');
Note: See TracBrowser for help on using the repository browser.