/application/third_party/google-api/vendor/google/apiclient-services/src/Google/Service/Reseller.php

https://gitlab.com/Anas7232/Layout-Changes · PHP · 315 lines · 275 code · 4 blank · 36 comment · 0 complexity · d793ba65302124f98f893214b155d820 MD5 · raw file

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