Area120Tables.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for Area120Tables (v1alpha1).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://support.google.com/area120-tables/answer/10011390" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Area120Tables extends \Google\Service
  33. {
  34. /** See, edit, create, and delete all of your Google Drive files. */
  35. const DRIVE =
  36. "https://www.googleapis.com/auth/drive";
  37. /** See, edit, create, and delete only the specific Google Drive files you use with this app. */
  38. const DRIVE_FILE =
  39. "https://www.googleapis.com/auth/drive.file";
  40. /** See and download all your Google Drive files. */
  41. const DRIVE_READONLY =
  42. "https://www.googleapis.com/auth/drive.readonly";
  43. /** See, edit, create, and delete all your Google Sheets spreadsheets. */
  44. const SPREADSHEETS =
  45. "https://www.googleapis.com/auth/spreadsheets";
  46. /** See all your Google Sheets spreadsheets. */
  47. const SPREADSHEETS_READONLY =
  48. "https://www.googleapis.com/auth/spreadsheets.readonly";
  49. /** See, edit, create, and delete your tables in Tables by Area 120. */
  50. const TABLES =
  51. "https://www.googleapis.com/auth/tables";
  52. public $tables;
  53. public $tables_rows;
  54. public $workspaces;
  55. public $rootUrlTemplate;
  56. /**
  57. * Constructs the internal representation of the Area120Tables service.
  58. *
  59. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  60. * config array to pass to a new Client instance.
  61. * @param string $rootUrl The root URL used for requests to the service.
  62. */
  63. public function __construct($clientOrConfig = [], $rootUrl = null)
  64. {
  65. parent::__construct($clientOrConfig);
  66. $this->rootUrl = $rootUrl ?: 'https://area120tables.googleapis.com/';
  67. $this->rootUrlTemplate = $rootUrl ?: 'https://area120tables.UNIVERSE_DOMAIN/';
  68. $this->servicePath = '';
  69. $this->batchPath = 'batch';
  70. $this->version = 'v1alpha1';
  71. $this->serviceName = 'area120tables';
  72. $this->tables = new Area120Tables\Resource\Tables(
  73. $this,
  74. $this->serviceName,
  75. 'tables',
  76. [
  77. 'methods' => [
  78. 'get' => [
  79. 'path' => 'v1alpha1/{+name}',
  80. 'httpMethod' => 'GET',
  81. 'parameters' => [
  82. 'name' => [
  83. 'location' => 'path',
  84. 'type' => 'string',
  85. 'required' => true,
  86. ],
  87. ],
  88. ],'list' => [
  89. 'path' => 'v1alpha1/tables',
  90. 'httpMethod' => 'GET',
  91. 'parameters' => [
  92. 'orderBy' => [
  93. 'location' => 'query',
  94. 'type' => 'string',
  95. ],
  96. 'pageSize' => [
  97. 'location' => 'query',
  98. 'type' => 'integer',
  99. ],
  100. 'pageToken' => [
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ],
  104. ],
  105. ],
  106. ]
  107. ]
  108. );
  109. $this->tables_rows = new Area120Tables\Resource\TablesRows(
  110. $this,
  111. $this->serviceName,
  112. 'rows',
  113. [
  114. 'methods' => [
  115. 'batchCreate' => [
  116. 'path' => 'v1alpha1/{+parent}/rows:batchCreate',
  117. 'httpMethod' => 'POST',
  118. 'parameters' => [
  119. 'parent' => [
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ],
  124. ],
  125. ],'batchDelete' => [
  126. 'path' => 'v1alpha1/{+parent}/rows:batchDelete',
  127. 'httpMethod' => 'POST',
  128. 'parameters' => [
  129. 'parent' => [
  130. 'location' => 'path',
  131. 'type' => 'string',
  132. 'required' => true,
  133. ],
  134. ],
  135. ],'batchUpdate' => [
  136. 'path' => 'v1alpha1/{+parent}/rows:batchUpdate',
  137. 'httpMethod' => 'POST',
  138. 'parameters' => [
  139. 'parent' => [
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ],
  144. ],
  145. ],'create' => [
  146. 'path' => 'v1alpha1/{+parent}/rows',
  147. 'httpMethod' => 'POST',
  148. 'parameters' => [
  149. 'parent' => [
  150. 'location' => 'path',
  151. 'type' => 'string',
  152. 'required' => true,
  153. ],
  154. 'view' => [
  155. 'location' => 'query',
  156. 'type' => 'string',
  157. ],
  158. ],
  159. ],'delete' => [
  160. 'path' => 'v1alpha1/{+name}',
  161. 'httpMethod' => 'DELETE',
  162. 'parameters' => [
  163. 'name' => [
  164. 'location' => 'path',
  165. 'type' => 'string',
  166. 'required' => true,
  167. ],
  168. ],
  169. ],'get' => [
  170. 'path' => 'v1alpha1/{+name}',
  171. 'httpMethod' => 'GET',
  172. 'parameters' => [
  173. 'name' => [
  174. 'location' => 'path',
  175. 'type' => 'string',
  176. 'required' => true,
  177. ],
  178. 'view' => [
  179. 'location' => 'query',
  180. 'type' => 'string',
  181. ],
  182. ],
  183. ],'list' => [
  184. 'path' => 'v1alpha1/{+parent}/rows',
  185. 'httpMethod' => 'GET',
  186. 'parameters' => [
  187. 'parent' => [
  188. 'location' => 'path',
  189. 'type' => 'string',
  190. 'required' => true,
  191. ],
  192. 'filter' => [
  193. 'location' => 'query',
  194. 'type' => 'string',
  195. ],
  196. 'orderBy' => [
  197. 'location' => 'query',
  198. 'type' => 'string',
  199. ],
  200. 'pageSize' => [
  201. 'location' => 'query',
  202. 'type' => 'integer',
  203. ],
  204. 'pageToken' => [
  205. 'location' => 'query',
  206. 'type' => 'string',
  207. ],
  208. 'view' => [
  209. 'location' => 'query',
  210. 'type' => 'string',
  211. ],
  212. ],
  213. ],'patch' => [
  214. 'path' => 'v1alpha1/{+name}',
  215. 'httpMethod' => 'PATCH',
  216. 'parameters' => [
  217. 'name' => [
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ],
  222. 'updateMask' => [
  223. 'location' => 'query',
  224. 'type' => 'string',
  225. ],
  226. 'view' => [
  227. 'location' => 'query',
  228. 'type' => 'string',
  229. ],
  230. ],
  231. ],
  232. ]
  233. ]
  234. );
  235. $this->workspaces = new Area120Tables\Resource\Workspaces(
  236. $this,
  237. $this->serviceName,
  238. 'workspaces',
  239. [
  240. 'methods' => [
  241. 'get' => [
  242. 'path' => 'v1alpha1/{+name}',
  243. 'httpMethod' => 'GET',
  244. 'parameters' => [
  245. 'name' => [
  246. 'location' => 'path',
  247. 'type' => 'string',
  248. 'required' => true,
  249. ],
  250. ],
  251. ],'list' => [
  252. 'path' => 'v1alpha1/workspaces',
  253. 'httpMethod' => 'GET',
  254. 'parameters' => [
  255. 'pageSize' => [
  256. 'location' => 'query',
  257. 'type' => 'integer',
  258. ],
  259. 'pageToken' => [
  260. 'location' => 'query',
  261. 'type' => 'string',
  262. ],
  263. ],
  264. ],
  265. ]
  266. ]
  267. );
  268. }
  269. }
  270. // Adding a class alias for backwards compatibility with the previous class name.
  271. class_alias(Area120Tables::class, 'Google_Service_Area120Tables');