/vendor/google/apiclient-services/src/GKEHub.php

https://gitlab.com/Japang-Jawara/jawara-penilaian · PHP · 468 lines · 424 code · 7 blank · 37 comment · 0 complexity · 00c85f0beb8420b39f5abf3459607c97 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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for GKEHub (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/anthos/multicluster-management/connect/registering-a-cluster" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class GKEHub 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_features;
  39. public $projects_locations_memberships;
  40. public $projects_locations_operations;
  41. /**
  42. * Constructs the internal representation of the GKEHub 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://gkehub.googleapis.com/';
  52. $this->servicePath = '';
  53. $this->batchPath = 'batch';
  54. $this->version = 'v1';
  55. $this->serviceName = 'gkehub';
  56. $this->projects_locations = new GKEHub\Resource\ProjectsLocations(
  57. $this,
  58. $this->serviceName,
  59. 'locations',
  60. [
  61. 'methods' => [
  62. 'get' => [
  63. 'path' => 'v1/{+name}',
  64. 'httpMethod' => 'GET',
  65. 'parameters' => [
  66. 'name' => [
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ],
  71. ],
  72. ],'list' => [
  73. 'path' => 'v1/{+name}/locations',
  74. 'httpMethod' => 'GET',
  75. 'parameters' => [
  76. 'name' => [
  77. 'location' => 'path',
  78. 'type' => 'string',
  79. 'required' => true,
  80. ],
  81. 'filter' => [
  82. 'location' => 'query',
  83. 'type' => 'string',
  84. ],
  85. 'pageSize' => [
  86. 'location' => 'query',
  87. 'type' => 'integer',
  88. ],
  89. 'pageToken' => [
  90. 'location' => 'query',
  91. 'type' => 'string',
  92. ],
  93. ],
  94. ],
  95. ]
  96. ]
  97. );
  98. $this->projects_locations_features = new GKEHub\Resource\ProjectsLocationsFeatures(
  99. $this,
  100. $this->serviceName,
  101. 'features',
  102. [
  103. 'methods' => [
  104. 'create' => [
  105. 'path' => 'v1/{+parent}/features',
  106. 'httpMethod' => 'POST',
  107. 'parameters' => [
  108. 'parent' => [
  109. 'location' => 'path',
  110. 'type' => 'string',
  111. 'required' => true,
  112. ],
  113. 'featureId' => [
  114. 'location' => 'query',
  115. 'type' => 'string',
  116. ],
  117. 'requestId' => [
  118. 'location' => 'query',
  119. 'type' => 'string',
  120. ],
  121. ],
  122. ],'delete' => [
  123. 'path' => 'v1/{+name}',
  124. 'httpMethod' => 'DELETE',
  125. 'parameters' => [
  126. 'name' => [
  127. 'location' => 'path',
  128. 'type' => 'string',
  129. 'required' => true,
  130. ],
  131. 'force' => [
  132. 'location' => 'query',
  133. 'type' => 'boolean',
  134. ],
  135. 'requestId' => [
  136. 'location' => 'query',
  137. 'type' => 'string',
  138. ],
  139. ],
  140. ],'get' => [
  141. 'path' => 'v1/{+name}',
  142. 'httpMethod' => 'GET',
  143. 'parameters' => [
  144. 'name' => [
  145. 'location' => 'path',
  146. 'type' => 'string',
  147. 'required' => true,
  148. ],
  149. ],
  150. ],'getIamPolicy' => [
  151. 'path' => 'v1/{+resource}:getIamPolicy',
  152. 'httpMethod' => 'GET',
  153. 'parameters' => [
  154. 'resource' => [
  155. 'location' => 'path',
  156. 'type' => 'string',
  157. 'required' => true,
  158. ],
  159. 'options.requestedPolicyVersion' => [
  160. 'location' => 'query',
  161. 'type' => 'integer',
  162. ],
  163. ],
  164. ],'list' => [
  165. 'path' => 'v1/{+parent}/features',
  166. 'httpMethod' => 'GET',
  167. 'parameters' => [
  168. 'parent' => [
  169. 'location' => 'path',
  170. 'type' => 'string',
  171. 'required' => true,
  172. ],
  173. 'filter' => [
  174. 'location' => 'query',
  175. 'type' => 'string',
  176. ],
  177. 'orderBy' => [
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. ],
  181. 'pageSize' => [
  182. 'location' => 'query',
  183. 'type' => 'integer',
  184. ],
  185. 'pageToken' => [
  186. 'location' => 'query',
  187. 'type' => 'string',
  188. ],
  189. ],
  190. ],'patch' => [
  191. 'path' => 'v1/{+name}',
  192. 'httpMethod' => 'PATCH',
  193. 'parameters' => [
  194. 'name' => [
  195. 'location' => 'path',
  196. 'type' => 'string',
  197. 'required' => true,
  198. ],
  199. 'requestId' => [
  200. 'location' => 'query',
  201. 'type' => 'string',
  202. ],
  203. 'updateMask' => [
  204. 'location' => 'query',
  205. 'type' => 'string',
  206. ],
  207. ],
  208. ],'setIamPolicy' => [
  209. 'path' => 'v1/{+resource}:setIamPolicy',
  210. 'httpMethod' => 'POST',
  211. 'parameters' => [
  212. 'resource' => [
  213. 'location' => 'path',
  214. 'type' => 'string',
  215. 'required' => true,
  216. ],
  217. ],
  218. ],'testIamPermissions' => [
  219. 'path' => 'v1/{+resource}:testIamPermissions',
  220. 'httpMethod' => 'POST',
  221. 'parameters' => [
  222. 'resource' => [
  223. 'location' => 'path',
  224. 'type' => 'string',
  225. 'required' => true,
  226. ],
  227. ],
  228. ],
  229. ]
  230. ]
  231. );
  232. $this->projects_locations_memberships = new GKEHub\Resource\ProjectsLocationsMemberships(
  233. $this,
  234. $this->serviceName,
  235. 'memberships',
  236. [
  237. 'methods' => [
  238. 'create' => [
  239. 'path' => 'v1/{+parent}/memberships',
  240. 'httpMethod' => 'POST',
  241. 'parameters' => [
  242. 'parent' => [
  243. 'location' => 'path',
  244. 'type' => 'string',
  245. 'required' => true,
  246. ],
  247. 'membershipId' => [
  248. 'location' => 'query',
  249. 'type' => 'string',
  250. ],
  251. 'requestId' => [
  252. 'location' => 'query',
  253. 'type' => 'string',
  254. ],
  255. ],
  256. ],'delete' => [
  257. 'path' => 'v1/{+name}',
  258. 'httpMethod' => 'DELETE',
  259. 'parameters' => [
  260. 'name' => [
  261. 'location' => 'path',
  262. 'type' => 'string',
  263. 'required' => true,
  264. ],
  265. 'requestId' => [
  266. 'location' => 'query',
  267. 'type' => 'string',
  268. ],
  269. ],
  270. ],'generateConnectManifest' => [
  271. 'path' => 'v1/{+name}:generateConnectManifest',
  272. 'httpMethod' => 'GET',
  273. 'parameters' => [
  274. 'name' => [
  275. 'location' => 'path',
  276. 'type' => 'string',
  277. 'required' => true,
  278. ],
  279. 'imagePullSecretContent' => [
  280. 'location' => 'query',
  281. 'type' => 'string',
  282. ],
  283. 'isUpgrade' => [
  284. 'location' => 'query',
  285. 'type' => 'boolean',
  286. ],
  287. 'namespace' => [
  288. 'location' => 'query',
  289. 'type' => 'string',
  290. ],
  291. 'proxy' => [
  292. 'location' => 'query',
  293. 'type' => 'string',
  294. ],
  295. 'registry' => [
  296. 'location' => 'query',
  297. 'type' => 'string',
  298. ],
  299. 'version' => [
  300. 'location' => 'query',
  301. 'type' => 'string',
  302. ],
  303. ],
  304. ],'get' => [
  305. 'path' => 'v1/{+name}',
  306. 'httpMethod' => 'GET',
  307. 'parameters' => [
  308. 'name' => [
  309. 'location' => 'path',
  310. 'type' => 'string',
  311. 'required' => true,
  312. ],
  313. ],
  314. ],'getIamPolicy' => [
  315. 'path' => 'v1/{+resource}:getIamPolicy',
  316. 'httpMethod' => 'GET',
  317. 'parameters' => [
  318. 'resource' => [
  319. 'location' => 'path',
  320. 'type' => 'string',
  321. 'required' => true,
  322. ],
  323. 'options.requestedPolicyVersion' => [
  324. 'location' => 'query',
  325. 'type' => 'integer',
  326. ],
  327. ],
  328. ],'list' => [
  329. 'path' => 'v1/{+parent}/memberships',
  330. 'httpMethod' => 'GET',
  331. 'parameters' => [
  332. 'parent' => [
  333. 'location' => 'path',
  334. 'type' => 'string',
  335. 'required' => true,
  336. ],
  337. 'filter' => [
  338. 'location' => 'query',
  339. 'type' => 'string',
  340. ],
  341. 'orderBy' => [
  342. 'location' => 'query',
  343. 'type' => 'string',
  344. ],
  345. 'pageSize' => [
  346. 'location' => 'query',
  347. 'type' => 'integer',
  348. ],
  349. 'pageToken' => [
  350. 'location' => 'query',
  351. 'type' => 'string',
  352. ],
  353. ],
  354. ],'patch' => [
  355. 'path' => 'v1/{+name}',
  356. 'httpMethod' => 'PATCH',
  357. 'parameters' => [
  358. 'name' => [
  359. 'location' => 'path',
  360. 'type' => 'string',
  361. 'required' => true,
  362. ],
  363. 'requestId' => [
  364. 'location' => 'query',
  365. 'type' => 'string',
  366. ],
  367. 'updateMask' => [
  368. 'location' => 'query',
  369. 'type' => 'string',
  370. ],
  371. ],
  372. ],'setIamPolicy' => [
  373. 'path' => 'v1/{+resource}:setIamPolicy',
  374. 'httpMethod' => 'POST',
  375. 'parameters' => [
  376. 'resource' => [
  377. 'location' => 'path',
  378. 'type' => 'string',
  379. 'required' => true,
  380. ],
  381. ],
  382. ],'testIamPermissions' => [
  383. 'path' => 'v1/{+resource}:testIamPermissions',
  384. 'httpMethod' => 'POST',
  385. 'parameters' => [
  386. 'resource' => [
  387. 'location' => 'path',
  388. 'type' => 'string',
  389. 'required' => true,
  390. ],
  391. ],
  392. ],
  393. ]
  394. ]
  395. );
  396. $this->projects_locations_operations = new GKEHub\Resource\ProjectsLocationsOperations(
  397. $this,
  398. $this->serviceName,
  399. 'operations',
  400. [
  401. 'methods' => [
  402. 'cancel' => [
  403. 'path' => 'v1/{+name}:cancel',
  404. 'httpMethod' => 'POST',
  405. 'parameters' => [
  406. 'name' => [
  407. 'location' => 'path',
  408. 'type' => 'string',
  409. 'required' => true,
  410. ],
  411. ],
  412. ],'delete' => [
  413. 'path' => 'v1/{+name}',
  414. 'httpMethod' => 'DELETE',
  415. 'parameters' => [
  416. 'name' => [
  417. 'location' => 'path',
  418. 'type' => 'string',
  419. 'required' => true,
  420. ],
  421. ],
  422. ],'get' => [
  423. 'path' => 'v1/{+name}',
  424. 'httpMethod' => 'GET',
  425. 'parameters' => [
  426. 'name' => [
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ],
  431. ],
  432. ],'list' => [
  433. 'path' => 'v1/{+name}/operations',
  434. 'httpMethod' => 'GET',
  435. 'parameters' => [
  436. 'name' => [
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ],
  441. 'filter' => [
  442. 'location' => 'query',
  443. 'type' => 'string',
  444. ],
  445. 'pageSize' => [
  446. 'location' => 'query',
  447. 'type' => 'integer',
  448. ],
  449. 'pageToken' => [
  450. 'location' => 'query',
  451. 'type' => 'string',
  452. ],
  453. ],
  454. ],
  455. ]
  456. ]
  457. );
  458. }
  459. }
  460. // Adding a class alias for backwards compatibility with the previous class name.
  461. class_alias(GKEHub::class, 'Google_Service_GKEHub');