Parallelstore.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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 Parallelstore (v1).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/parallelstore" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Parallelstore extends \Google\Service
  33. {
  34. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  35. const CLOUD_PLATFORM =
  36. "https://www.googleapis.com/auth/cloud-platform";
  37. public $projects_locations;
  38. public $projects_locations_instances;
  39. public $projects_locations_operations;
  40. public $rootUrlTemplate;
  41. /**
  42. * Constructs the internal representation of the Parallelstore service.
  43. *
  44. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  45. * config array to pass to a new Client instance.
  46. * @param string $rootUrl The root URL used for requests to the service.
  47. */
  48. public function __construct($clientOrConfig = [], $rootUrl = null)
  49. {
  50. parent::__construct($clientOrConfig);
  51. $this->rootUrl = $rootUrl ?: 'https://parallelstore.googleapis.com/';
  52. $this->rootUrlTemplate = $rootUrl ?: 'https://parallelstore.UNIVERSE_DOMAIN/';
  53. $this->servicePath = '';
  54. $this->batchPath = 'batch';
  55. $this->version = 'v1';
  56. $this->serviceName = 'parallelstore';
  57. $this->projects_locations = new Parallelstore\Resource\ProjectsLocations(
  58. $this,
  59. $this->serviceName,
  60. 'locations',
  61. [
  62. 'methods' => [
  63. 'get' => [
  64. 'path' => 'v1/{+name}',
  65. 'httpMethod' => 'GET',
  66. 'parameters' => [
  67. 'name' => [
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ],
  72. ],
  73. ],'list' => [
  74. 'path' => 'v1/{+name}/locations',
  75. 'httpMethod' => 'GET',
  76. 'parameters' => [
  77. 'name' => [
  78. 'location' => 'path',
  79. 'type' => 'string',
  80. 'required' => true,
  81. ],
  82. 'extraLocationTypes' => [
  83. 'location' => 'query',
  84. 'type' => 'string',
  85. 'repeated' => true,
  86. ],
  87. 'filter' => [
  88. 'location' => 'query',
  89. 'type' => 'string',
  90. ],
  91. 'pageSize' => [
  92. 'location' => 'query',
  93. 'type' => 'integer',
  94. ],
  95. 'pageToken' => [
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. ],
  99. ],
  100. ],
  101. ]
  102. ]
  103. );
  104. $this->projects_locations_instances = new Parallelstore\Resource\ProjectsLocationsInstances(
  105. $this,
  106. $this->serviceName,
  107. 'instances',
  108. [
  109. 'methods' => [
  110. 'create' => [
  111. 'path' => 'v1/{+parent}/instances',
  112. 'httpMethod' => 'POST',
  113. 'parameters' => [
  114. 'parent' => [
  115. 'location' => 'path',
  116. 'type' => 'string',
  117. 'required' => true,
  118. ],
  119. 'instanceId' => [
  120. 'location' => 'query',
  121. 'type' => 'string',
  122. ],
  123. 'requestId' => [
  124. 'location' => 'query',
  125. 'type' => 'string',
  126. ],
  127. ],
  128. ],'delete' => [
  129. 'path' => 'v1/{+name}',
  130. 'httpMethod' => 'DELETE',
  131. 'parameters' => [
  132. 'name' => [
  133. 'location' => 'path',
  134. 'type' => 'string',
  135. 'required' => true,
  136. ],
  137. 'requestId' => [
  138. 'location' => 'query',
  139. 'type' => 'string',
  140. ],
  141. ],
  142. ],'exportData' => [
  143. 'path' => 'v1/{+name}:exportData',
  144. 'httpMethod' => 'POST',
  145. 'parameters' => [
  146. 'name' => [
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ],
  151. ],
  152. ],'get' => [
  153. 'path' => 'v1/{+name}',
  154. 'httpMethod' => 'GET',
  155. 'parameters' => [
  156. 'name' => [
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ],
  161. ],
  162. ],'importData' => [
  163. 'path' => 'v1/{+name}:importData',
  164. 'httpMethod' => 'POST',
  165. 'parameters' => [
  166. 'name' => [
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ],
  171. ],
  172. ],'list' => [
  173. 'path' => 'v1/{+parent}/instances',
  174. 'httpMethod' => 'GET',
  175. 'parameters' => [
  176. 'parent' => [
  177. 'location' => 'path',
  178. 'type' => 'string',
  179. 'required' => true,
  180. ],
  181. 'filter' => [
  182. 'location' => 'query',
  183. 'type' => 'string',
  184. ],
  185. 'orderBy' => [
  186. 'location' => 'query',
  187. 'type' => 'string',
  188. ],
  189. 'pageSize' => [
  190. 'location' => 'query',
  191. 'type' => 'integer',
  192. ],
  193. 'pageToken' => [
  194. 'location' => 'query',
  195. 'type' => 'string',
  196. ],
  197. ],
  198. ],'patch' => [
  199. 'path' => 'v1/{+name}',
  200. 'httpMethod' => 'PATCH',
  201. 'parameters' => [
  202. 'name' => [
  203. 'location' => 'path',
  204. 'type' => 'string',
  205. 'required' => true,
  206. ],
  207. 'requestId' => [
  208. 'location' => 'query',
  209. 'type' => 'string',
  210. ],
  211. 'updateMask' => [
  212. 'location' => 'query',
  213. 'type' => 'string',
  214. ],
  215. ],
  216. ],
  217. ]
  218. ]
  219. );
  220. $this->projects_locations_operations = new Parallelstore\Resource\ProjectsLocationsOperations(
  221. $this,
  222. $this->serviceName,
  223. 'operations',
  224. [
  225. 'methods' => [
  226. 'cancel' => [
  227. 'path' => 'v1/{+name}:cancel',
  228. 'httpMethod' => 'POST',
  229. 'parameters' => [
  230. 'name' => [
  231. 'location' => 'path',
  232. 'type' => 'string',
  233. 'required' => true,
  234. ],
  235. ],
  236. ],'delete' => [
  237. 'path' => 'v1/{+name}',
  238. 'httpMethod' => 'DELETE',
  239. 'parameters' => [
  240. 'name' => [
  241. 'location' => 'path',
  242. 'type' => 'string',
  243. 'required' => true,
  244. ],
  245. ],
  246. ],'get' => [
  247. 'path' => 'v1/{+name}',
  248. 'httpMethod' => 'GET',
  249. 'parameters' => [
  250. 'name' => [
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ],
  255. ],
  256. ],'list' => [
  257. 'path' => 'v1/{+name}/operations',
  258. 'httpMethod' => 'GET',
  259. 'parameters' => [
  260. 'name' => [
  261. 'location' => 'path',
  262. 'type' => 'string',
  263. 'required' => true,
  264. ],
  265. 'filter' => [
  266. 'location' => 'query',
  267. 'type' => 'string',
  268. ],
  269. 'pageSize' => [
  270. 'location' => 'query',
  271. 'type' => 'integer',
  272. ],
  273. 'pageToken' => [
  274. 'location' => 'query',
  275. 'type' => 'string',
  276. ],
  277. 'returnPartialSuccess' => [
  278. 'location' => 'query',
  279. 'type' => 'boolean',
  280. ],
  281. ],
  282. ],
  283. ]
  284. ]
  285. );
  286. }
  287. }
  288. // Adding a class alias for backwards compatibility with the previous class name.
  289. class_alias(Parallelstore::class, 'Google_Service_Parallelstore');