Sasportal.php 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250
  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 Sasportal (v1alpha1).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/spectrum-access-system/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Sasportal 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. /** Read, create, update, and delete your SAS Portal data.. */
  38. const SASPORTAL =
  39. "https://www.googleapis.com/auth/sasportal";
  40. public $customers;
  41. public $customers_deployments;
  42. public $customers_deployments_devices;
  43. public $customers_devices;
  44. public $customers_nodes;
  45. public $customers_nodes_deployments;
  46. public $customers_nodes_devices;
  47. public $customers_nodes_nodes;
  48. public $deployments;
  49. public $deployments_devices;
  50. public $installer;
  51. public $nodes;
  52. public $nodes_deployments;
  53. public $nodes_deployments_devices;
  54. public $nodes_devices;
  55. public $nodes_nodes;
  56. public $nodes_nodes_deployments;
  57. public $nodes_nodes_devices;
  58. public $nodes_nodes_nodes;
  59. public $policies;
  60. public $rootUrlTemplate;
  61. /**
  62. * Constructs the internal representation of the Sasportal service.
  63. *
  64. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  65. * config array to pass to a new Client instance.
  66. * @param string $rootUrl The root URL used for requests to the service.
  67. */
  68. public function __construct($clientOrConfig = [], $rootUrl = null)
  69. {
  70. parent::__construct($clientOrConfig);
  71. $this->rootUrl = $rootUrl ?: 'https://sasportal.googleapis.com/';
  72. $this->rootUrlTemplate = $rootUrl ?: 'https://sasportal.UNIVERSE_DOMAIN/';
  73. $this->servicePath = '';
  74. $this->batchPath = 'batch';
  75. $this->version = 'v1alpha1';
  76. $this->serviceName = 'sasportal';
  77. $this->customers = new Sasportal\Resource\Customers(
  78. $this,
  79. $this->serviceName,
  80. 'customers',
  81. [
  82. 'methods' => [
  83. 'get' => [
  84. 'path' => 'v1alpha1/{+name}',
  85. 'httpMethod' => 'GET',
  86. 'parameters' => [
  87. 'name' => [
  88. 'location' => 'path',
  89. 'type' => 'string',
  90. 'required' => true,
  91. ],
  92. ],
  93. ],'list' => [
  94. 'path' => 'v1alpha1/customers',
  95. 'httpMethod' => 'GET',
  96. 'parameters' => [
  97. 'pageSize' => [
  98. 'location' => 'query',
  99. 'type' => 'integer',
  100. ],
  101. 'pageToken' => [
  102. 'location' => 'query',
  103. 'type' => 'string',
  104. ],
  105. ],
  106. ],'listGcpProjectDeployments' => [
  107. 'path' => 'v1alpha1/customers:listGcpProjectDeployments',
  108. 'httpMethod' => 'GET',
  109. 'parameters' => [],
  110. ],'listLegacyOrganizations' => [
  111. 'path' => 'v1alpha1/customers:listLegacyOrganizations',
  112. 'httpMethod' => 'GET',
  113. 'parameters' => [],
  114. ],'migrateOrganization' => [
  115. 'path' => 'v1alpha1/customers:migrateOrganization',
  116. 'httpMethod' => 'POST',
  117. 'parameters' => [],
  118. ],'patch' => [
  119. 'path' => 'v1alpha1/{+name}',
  120. 'httpMethod' => 'PATCH',
  121. 'parameters' => [
  122. 'name' => [
  123. 'location' => 'path',
  124. 'type' => 'string',
  125. 'required' => true,
  126. ],
  127. 'updateMask' => [
  128. 'location' => 'query',
  129. 'type' => 'string',
  130. ],
  131. ],
  132. ],'provisionDeployment' => [
  133. 'path' => 'v1alpha1/customers:provisionDeployment',
  134. 'httpMethod' => 'POST',
  135. 'parameters' => [],
  136. ],'setupSasAnalytics' => [
  137. 'path' => 'v1alpha1/customers:setupSasAnalytics',
  138. 'httpMethod' => 'POST',
  139. 'parameters' => [],
  140. ],
  141. ]
  142. ]
  143. );
  144. $this->customers_deployments = new Sasportal\Resource\CustomersDeployments(
  145. $this,
  146. $this->serviceName,
  147. 'deployments',
  148. [
  149. 'methods' => [
  150. 'create' => [
  151. 'path' => 'v1alpha1/{+parent}/deployments',
  152. 'httpMethod' => 'POST',
  153. 'parameters' => [
  154. 'parent' => [
  155. 'location' => 'path',
  156. 'type' => 'string',
  157. 'required' => true,
  158. ],
  159. ],
  160. ],'delete' => [
  161. 'path' => 'v1alpha1/{+name}',
  162. 'httpMethod' => 'DELETE',
  163. 'parameters' => [
  164. 'name' => [
  165. 'location' => 'path',
  166. 'type' => 'string',
  167. 'required' => true,
  168. ],
  169. ],
  170. ],'get' => [
  171. 'path' => 'v1alpha1/{+name}',
  172. 'httpMethod' => 'GET',
  173. 'parameters' => [
  174. 'name' => [
  175. 'location' => 'path',
  176. 'type' => 'string',
  177. 'required' => true,
  178. ],
  179. ],
  180. ],'list' => [
  181. 'path' => 'v1alpha1/{+parent}/deployments',
  182. 'httpMethod' => 'GET',
  183. 'parameters' => [
  184. 'parent' => [
  185. 'location' => 'path',
  186. 'type' => 'string',
  187. 'required' => true,
  188. ],
  189. 'filter' => [
  190. 'location' => 'query',
  191. 'type' => 'string',
  192. ],
  193. 'pageSize' => [
  194. 'location' => 'query',
  195. 'type' => 'integer',
  196. ],
  197. 'pageToken' => [
  198. 'location' => 'query',
  199. 'type' => 'string',
  200. ],
  201. ],
  202. ],'move' => [
  203. 'path' => 'v1alpha1/{+name}:move',
  204. 'httpMethod' => 'POST',
  205. 'parameters' => [
  206. 'name' => [
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ],
  211. ],
  212. ],'patch' => [
  213. 'path' => 'v1alpha1/{+name}',
  214. 'httpMethod' => 'PATCH',
  215. 'parameters' => [
  216. 'name' => [
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ],
  221. 'updateMask' => [
  222. 'location' => 'query',
  223. 'type' => 'string',
  224. ],
  225. ],
  226. ],
  227. ]
  228. ]
  229. );
  230. $this->customers_deployments_devices = new Sasportal\Resource\CustomersDeploymentsDevices(
  231. $this,
  232. $this->serviceName,
  233. 'devices',
  234. [
  235. 'methods' => [
  236. 'create' => [
  237. 'path' => 'v1alpha1/{+parent}/devices',
  238. 'httpMethod' => 'POST',
  239. 'parameters' => [
  240. 'parent' => [
  241. 'location' => 'path',
  242. 'type' => 'string',
  243. 'required' => true,
  244. ],
  245. ],
  246. ],'createSigned' => [
  247. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  248. 'httpMethod' => 'POST',
  249. 'parameters' => [
  250. 'parent' => [
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ],
  255. ],
  256. ],'list' => [
  257. 'path' => 'v1alpha1/{+parent}/devices',
  258. 'httpMethod' => 'GET',
  259. 'parameters' => [
  260. 'parent' => [
  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. ],
  278. ],
  279. ]
  280. ]
  281. );
  282. $this->customers_devices = new Sasportal\Resource\CustomersDevices(
  283. $this,
  284. $this->serviceName,
  285. 'devices',
  286. [
  287. 'methods' => [
  288. 'create' => [
  289. 'path' => 'v1alpha1/{+parent}/devices',
  290. 'httpMethod' => 'POST',
  291. 'parameters' => [
  292. 'parent' => [
  293. 'location' => 'path',
  294. 'type' => 'string',
  295. 'required' => true,
  296. ],
  297. ],
  298. ],'createSigned' => [
  299. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  300. 'httpMethod' => 'POST',
  301. 'parameters' => [
  302. 'parent' => [
  303. 'location' => 'path',
  304. 'type' => 'string',
  305. 'required' => true,
  306. ],
  307. ],
  308. ],'delete' => [
  309. 'path' => 'v1alpha1/{+name}',
  310. 'httpMethod' => 'DELETE',
  311. 'parameters' => [
  312. 'name' => [
  313. 'location' => 'path',
  314. 'type' => 'string',
  315. 'required' => true,
  316. ],
  317. ],
  318. ],'get' => [
  319. 'path' => 'v1alpha1/{+name}',
  320. 'httpMethod' => 'GET',
  321. 'parameters' => [
  322. 'name' => [
  323. 'location' => 'path',
  324. 'type' => 'string',
  325. 'required' => true,
  326. ],
  327. ],
  328. ],'list' => [
  329. 'path' => 'v1alpha1/{+parent}/devices',
  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. 'pageSize' => [
  342. 'location' => 'query',
  343. 'type' => 'integer',
  344. ],
  345. 'pageToken' => [
  346. 'location' => 'query',
  347. 'type' => 'string',
  348. ],
  349. ],
  350. ],'move' => [
  351. 'path' => 'v1alpha1/{+name}:move',
  352. 'httpMethod' => 'POST',
  353. 'parameters' => [
  354. 'name' => [
  355. 'location' => 'path',
  356. 'type' => 'string',
  357. 'required' => true,
  358. ],
  359. ],
  360. ],'patch' => [
  361. 'path' => 'v1alpha1/{+name}',
  362. 'httpMethod' => 'PATCH',
  363. 'parameters' => [
  364. 'name' => [
  365. 'location' => 'path',
  366. 'type' => 'string',
  367. 'required' => true,
  368. ],
  369. 'updateMask' => [
  370. 'location' => 'query',
  371. 'type' => 'string',
  372. ],
  373. ],
  374. ],'signDevice' => [
  375. 'path' => 'v1alpha1/{+name}:signDevice',
  376. 'httpMethod' => 'POST',
  377. 'parameters' => [
  378. 'name' => [
  379. 'location' => 'path',
  380. 'type' => 'string',
  381. 'required' => true,
  382. ],
  383. ],
  384. ],'updateSigned' => [
  385. 'path' => 'v1alpha1/{+name}:updateSigned',
  386. 'httpMethod' => 'PATCH',
  387. 'parameters' => [
  388. 'name' => [
  389. 'location' => 'path',
  390. 'type' => 'string',
  391. 'required' => true,
  392. ],
  393. ],
  394. ],
  395. ]
  396. ]
  397. );
  398. $this->customers_nodes = new Sasportal\Resource\CustomersNodes(
  399. $this,
  400. $this->serviceName,
  401. 'nodes',
  402. [
  403. 'methods' => [
  404. 'create' => [
  405. 'path' => 'v1alpha1/{+parent}/nodes',
  406. 'httpMethod' => 'POST',
  407. 'parameters' => [
  408. 'parent' => [
  409. 'location' => 'path',
  410. 'type' => 'string',
  411. 'required' => true,
  412. ],
  413. ],
  414. ],'delete' => [
  415. 'path' => 'v1alpha1/{+name}',
  416. 'httpMethod' => 'DELETE',
  417. 'parameters' => [
  418. 'name' => [
  419. 'location' => 'path',
  420. 'type' => 'string',
  421. 'required' => true,
  422. ],
  423. ],
  424. ],'get' => [
  425. 'path' => 'v1alpha1/{+name}',
  426. 'httpMethod' => 'GET',
  427. 'parameters' => [
  428. 'name' => [
  429. 'location' => 'path',
  430. 'type' => 'string',
  431. 'required' => true,
  432. ],
  433. ],
  434. ],'list' => [
  435. 'path' => 'v1alpha1/{+parent}/nodes',
  436. 'httpMethod' => 'GET',
  437. 'parameters' => [
  438. 'parent' => [
  439. 'location' => 'path',
  440. 'type' => 'string',
  441. 'required' => true,
  442. ],
  443. 'filter' => [
  444. 'location' => 'query',
  445. 'type' => 'string',
  446. ],
  447. 'pageSize' => [
  448. 'location' => 'query',
  449. 'type' => 'integer',
  450. ],
  451. 'pageToken' => [
  452. 'location' => 'query',
  453. 'type' => 'string',
  454. ],
  455. ],
  456. ],'move' => [
  457. 'path' => 'v1alpha1/{+name}:move',
  458. 'httpMethod' => 'POST',
  459. 'parameters' => [
  460. 'name' => [
  461. 'location' => 'path',
  462. 'type' => 'string',
  463. 'required' => true,
  464. ],
  465. ],
  466. ],'patch' => [
  467. 'path' => 'v1alpha1/{+name}',
  468. 'httpMethod' => 'PATCH',
  469. 'parameters' => [
  470. 'name' => [
  471. 'location' => 'path',
  472. 'type' => 'string',
  473. 'required' => true,
  474. ],
  475. 'updateMask' => [
  476. 'location' => 'query',
  477. 'type' => 'string',
  478. ],
  479. ],
  480. ],
  481. ]
  482. ]
  483. );
  484. $this->customers_nodes_deployments = new Sasportal\Resource\CustomersNodesDeployments(
  485. $this,
  486. $this->serviceName,
  487. 'deployments',
  488. [
  489. 'methods' => [
  490. 'create' => [
  491. 'path' => 'v1alpha1/{+parent}/deployments',
  492. 'httpMethod' => 'POST',
  493. 'parameters' => [
  494. 'parent' => [
  495. 'location' => 'path',
  496. 'type' => 'string',
  497. 'required' => true,
  498. ],
  499. ],
  500. ],'list' => [
  501. 'path' => 'v1alpha1/{+parent}/deployments',
  502. 'httpMethod' => 'GET',
  503. 'parameters' => [
  504. 'parent' => [
  505. 'location' => 'path',
  506. 'type' => 'string',
  507. 'required' => true,
  508. ],
  509. 'filter' => [
  510. 'location' => 'query',
  511. 'type' => 'string',
  512. ],
  513. 'pageSize' => [
  514. 'location' => 'query',
  515. 'type' => 'integer',
  516. ],
  517. 'pageToken' => [
  518. 'location' => 'query',
  519. 'type' => 'string',
  520. ],
  521. ],
  522. ],
  523. ]
  524. ]
  525. );
  526. $this->customers_nodes_devices = new Sasportal\Resource\CustomersNodesDevices(
  527. $this,
  528. $this->serviceName,
  529. 'devices',
  530. [
  531. 'methods' => [
  532. 'create' => [
  533. 'path' => 'v1alpha1/{+parent}/devices',
  534. 'httpMethod' => 'POST',
  535. 'parameters' => [
  536. 'parent' => [
  537. 'location' => 'path',
  538. 'type' => 'string',
  539. 'required' => true,
  540. ],
  541. ],
  542. ],'createSigned' => [
  543. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  544. 'httpMethod' => 'POST',
  545. 'parameters' => [
  546. 'parent' => [
  547. 'location' => 'path',
  548. 'type' => 'string',
  549. 'required' => true,
  550. ],
  551. ],
  552. ],'list' => [
  553. 'path' => 'v1alpha1/{+parent}/devices',
  554. 'httpMethod' => 'GET',
  555. 'parameters' => [
  556. 'parent' => [
  557. 'location' => 'path',
  558. 'type' => 'string',
  559. 'required' => true,
  560. ],
  561. 'filter' => [
  562. 'location' => 'query',
  563. 'type' => 'string',
  564. ],
  565. 'pageSize' => [
  566. 'location' => 'query',
  567. 'type' => 'integer',
  568. ],
  569. 'pageToken' => [
  570. 'location' => 'query',
  571. 'type' => 'string',
  572. ],
  573. ],
  574. ],
  575. ]
  576. ]
  577. );
  578. $this->customers_nodes_nodes = new Sasportal\Resource\CustomersNodesNodes(
  579. $this,
  580. $this->serviceName,
  581. 'nodes',
  582. [
  583. 'methods' => [
  584. 'create' => [
  585. 'path' => 'v1alpha1/{+parent}/nodes',
  586. 'httpMethod' => 'POST',
  587. 'parameters' => [
  588. 'parent' => [
  589. 'location' => 'path',
  590. 'type' => 'string',
  591. 'required' => true,
  592. ],
  593. ],
  594. ],'list' => [
  595. 'path' => 'v1alpha1/{+parent}/nodes',
  596. 'httpMethod' => 'GET',
  597. 'parameters' => [
  598. 'parent' => [
  599. 'location' => 'path',
  600. 'type' => 'string',
  601. 'required' => true,
  602. ],
  603. 'filter' => [
  604. 'location' => 'query',
  605. 'type' => 'string',
  606. ],
  607. 'pageSize' => [
  608. 'location' => 'query',
  609. 'type' => 'integer',
  610. ],
  611. 'pageToken' => [
  612. 'location' => 'query',
  613. 'type' => 'string',
  614. ],
  615. ],
  616. ],
  617. ]
  618. ]
  619. );
  620. $this->deployments = new Sasportal\Resource\Deployments(
  621. $this,
  622. $this->serviceName,
  623. 'deployments',
  624. [
  625. 'methods' => [
  626. 'get' => [
  627. 'path' => 'v1alpha1/{+name}',
  628. 'httpMethod' => 'GET',
  629. 'parameters' => [
  630. 'name' => [
  631. 'location' => 'path',
  632. 'type' => 'string',
  633. 'required' => true,
  634. ],
  635. ],
  636. ],
  637. ]
  638. ]
  639. );
  640. $this->deployments_devices = new Sasportal\Resource\DeploymentsDevices(
  641. $this,
  642. $this->serviceName,
  643. 'devices',
  644. [
  645. 'methods' => [
  646. 'delete' => [
  647. 'path' => 'v1alpha1/{+name}',
  648. 'httpMethod' => 'DELETE',
  649. 'parameters' => [
  650. 'name' => [
  651. 'location' => 'path',
  652. 'type' => 'string',
  653. 'required' => true,
  654. ],
  655. ],
  656. ],'get' => [
  657. 'path' => 'v1alpha1/{+name}',
  658. 'httpMethod' => 'GET',
  659. 'parameters' => [
  660. 'name' => [
  661. 'location' => 'path',
  662. 'type' => 'string',
  663. 'required' => true,
  664. ],
  665. ],
  666. ],'move' => [
  667. 'path' => 'v1alpha1/{+name}:move',
  668. 'httpMethod' => 'POST',
  669. 'parameters' => [
  670. 'name' => [
  671. 'location' => 'path',
  672. 'type' => 'string',
  673. 'required' => true,
  674. ],
  675. ],
  676. ],'patch' => [
  677. 'path' => 'v1alpha1/{+name}',
  678. 'httpMethod' => 'PATCH',
  679. 'parameters' => [
  680. 'name' => [
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ],
  685. 'updateMask' => [
  686. 'location' => 'query',
  687. 'type' => 'string',
  688. ],
  689. ],
  690. ],'signDevice' => [
  691. 'path' => 'v1alpha1/{+name}:signDevice',
  692. 'httpMethod' => 'POST',
  693. 'parameters' => [
  694. 'name' => [
  695. 'location' => 'path',
  696. 'type' => 'string',
  697. 'required' => true,
  698. ],
  699. ],
  700. ],'updateSigned' => [
  701. 'path' => 'v1alpha1/{+name}:updateSigned',
  702. 'httpMethod' => 'PATCH',
  703. 'parameters' => [
  704. 'name' => [
  705. 'location' => 'path',
  706. 'type' => 'string',
  707. 'required' => true,
  708. ],
  709. ],
  710. ],
  711. ]
  712. ]
  713. );
  714. $this->installer = new Sasportal\Resource\Installer(
  715. $this,
  716. $this->serviceName,
  717. 'installer',
  718. [
  719. 'methods' => [
  720. 'generateSecret' => [
  721. 'path' => 'v1alpha1/installer:generateSecret',
  722. 'httpMethod' => 'POST',
  723. 'parameters' => [],
  724. ],'validate' => [
  725. 'path' => 'v1alpha1/installer:validate',
  726. 'httpMethod' => 'POST',
  727. 'parameters' => [],
  728. ],
  729. ]
  730. ]
  731. );
  732. $this->nodes = new Sasportal\Resource\Nodes(
  733. $this,
  734. $this->serviceName,
  735. 'nodes',
  736. [
  737. 'methods' => [
  738. 'get' => [
  739. 'path' => 'v1alpha1/{+name}',
  740. 'httpMethod' => 'GET',
  741. 'parameters' => [
  742. 'name' => [
  743. 'location' => 'path',
  744. 'type' => 'string',
  745. 'required' => true,
  746. ],
  747. ],
  748. ],
  749. ]
  750. ]
  751. );
  752. $this->nodes_deployments = new Sasportal\Resource\NodesDeployments(
  753. $this,
  754. $this->serviceName,
  755. 'deployments',
  756. [
  757. 'methods' => [
  758. 'delete' => [
  759. 'path' => 'v1alpha1/{+name}',
  760. 'httpMethod' => 'DELETE',
  761. 'parameters' => [
  762. 'name' => [
  763. 'location' => 'path',
  764. 'type' => 'string',
  765. 'required' => true,
  766. ],
  767. ],
  768. ],'get' => [
  769. 'path' => 'v1alpha1/{+name}',
  770. 'httpMethod' => 'GET',
  771. 'parameters' => [
  772. 'name' => [
  773. 'location' => 'path',
  774. 'type' => 'string',
  775. 'required' => true,
  776. ],
  777. ],
  778. ],'list' => [
  779. 'path' => 'v1alpha1/{+parent}/deployments',
  780. 'httpMethod' => 'GET',
  781. 'parameters' => [
  782. 'parent' => [
  783. 'location' => 'path',
  784. 'type' => 'string',
  785. 'required' => true,
  786. ],
  787. 'filter' => [
  788. 'location' => 'query',
  789. 'type' => 'string',
  790. ],
  791. 'pageSize' => [
  792. 'location' => 'query',
  793. 'type' => 'integer',
  794. ],
  795. 'pageToken' => [
  796. 'location' => 'query',
  797. 'type' => 'string',
  798. ],
  799. ],
  800. ],'move' => [
  801. 'path' => 'v1alpha1/{+name}:move',
  802. 'httpMethod' => 'POST',
  803. 'parameters' => [
  804. 'name' => [
  805. 'location' => 'path',
  806. 'type' => 'string',
  807. 'required' => true,
  808. ],
  809. ],
  810. ],'patch' => [
  811. 'path' => 'v1alpha1/{+name}',
  812. 'httpMethod' => 'PATCH',
  813. 'parameters' => [
  814. 'name' => [
  815. 'location' => 'path',
  816. 'type' => 'string',
  817. 'required' => true,
  818. ],
  819. 'updateMask' => [
  820. 'location' => 'query',
  821. 'type' => 'string',
  822. ],
  823. ],
  824. ],
  825. ]
  826. ]
  827. );
  828. $this->nodes_deployments_devices = new Sasportal\Resource\NodesDeploymentsDevices(
  829. $this,
  830. $this->serviceName,
  831. 'devices',
  832. [
  833. 'methods' => [
  834. 'create' => [
  835. 'path' => 'v1alpha1/{+parent}/devices',
  836. 'httpMethod' => 'POST',
  837. 'parameters' => [
  838. 'parent' => [
  839. 'location' => 'path',
  840. 'type' => 'string',
  841. 'required' => true,
  842. ],
  843. ],
  844. ],'createSigned' => [
  845. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  846. 'httpMethod' => 'POST',
  847. 'parameters' => [
  848. 'parent' => [
  849. 'location' => 'path',
  850. 'type' => 'string',
  851. 'required' => true,
  852. ],
  853. ],
  854. ],'list' => [
  855. 'path' => 'v1alpha1/{+parent}/devices',
  856. 'httpMethod' => 'GET',
  857. 'parameters' => [
  858. 'parent' => [
  859. 'location' => 'path',
  860. 'type' => 'string',
  861. 'required' => true,
  862. ],
  863. 'filter' => [
  864. 'location' => 'query',
  865. 'type' => 'string',
  866. ],
  867. 'pageSize' => [
  868. 'location' => 'query',
  869. 'type' => 'integer',
  870. ],
  871. 'pageToken' => [
  872. 'location' => 'query',
  873. 'type' => 'string',
  874. ],
  875. ],
  876. ],
  877. ]
  878. ]
  879. );
  880. $this->nodes_devices = new Sasportal\Resource\NodesDevices(
  881. $this,
  882. $this->serviceName,
  883. 'devices',
  884. [
  885. 'methods' => [
  886. 'create' => [
  887. 'path' => 'v1alpha1/{+parent}/devices',
  888. 'httpMethod' => 'POST',
  889. 'parameters' => [
  890. 'parent' => [
  891. 'location' => 'path',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ],
  895. ],
  896. ],'createSigned' => [
  897. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  898. 'httpMethod' => 'POST',
  899. 'parameters' => [
  900. 'parent' => [
  901. 'location' => 'path',
  902. 'type' => 'string',
  903. 'required' => true,
  904. ],
  905. ],
  906. ],'delete' => [
  907. 'path' => 'v1alpha1/{+name}',
  908. 'httpMethod' => 'DELETE',
  909. 'parameters' => [
  910. 'name' => [
  911. 'location' => 'path',
  912. 'type' => 'string',
  913. 'required' => true,
  914. ],
  915. ],
  916. ],'get' => [
  917. 'path' => 'v1alpha1/{+name}',
  918. 'httpMethod' => 'GET',
  919. 'parameters' => [
  920. 'name' => [
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ],
  925. ],
  926. ],'list' => [
  927. 'path' => 'v1alpha1/{+parent}/devices',
  928. 'httpMethod' => 'GET',
  929. 'parameters' => [
  930. 'parent' => [
  931. 'location' => 'path',
  932. 'type' => 'string',
  933. 'required' => true,
  934. ],
  935. 'filter' => [
  936. 'location' => 'query',
  937. 'type' => 'string',
  938. ],
  939. 'pageSize' => [
  940. 'location' => 'query',
  941. 'type' => 'integer',
  942. ],
  943. 'pageToken' => [
  944. 'location' => 'query',
  945. 'type' => 'string',
  946. ],
  947. ],
  948. ],'move' => [
  949. 'path' => 'v1alpha1/{+name}:move',
  950. 'httpMethod' => 'POST',
  951. 'parameters' => [
  952. 'name' => [
  953. 'location' => 'path',
  954. 'type' => 'string',
  955. 'required' => true,
  956. ],
  957. ],
  958. ],'patch' => [
  959. 'path' => 'v1alpha1/{+name}',
  960. 'httpMethod' => 'PATCH',
  961. 'parameters' => [
  962. 'name' => [
  963. 'location' => 'path',
  964. 'type' => 'string',
  965. 'required' => true,
  966. ],
  967. 'updateMask' => [
  968. 'location' => 'query',
  969. 'type' => 'string',
  970. ],
  971. ],
  972. ],'signDevice' => [
  973. 'path' => 'v1alpha1/{+name}:signDevice',
  974. 'httpMethod' => 'POST',
  975. 'parameters' => [
  976. 'name' => [
  977. 'location' => 'path',
  978. 'type' => 'string',
  979. 'required' => true,
  980. ],
  981. ],
  982. ],'updateSigned' => [
  983. 'path' => 'v1alpha1/{+name}:updateSigned',
  984. 'httpMethod' => 'PATCH',
  985. 'parameters' => [
  986. 'name' => [
  987. 'location' => 'path',
  988. 'type' => 'string',
  989. 'required' => true,
  990. ],
  991. ],
  992. ],
  993. ]
  994. ]
  995. );
  996. $this->nodes_nodes = new Sasportal\Resource\NodesNodes(
  997. $this,
  998. $this->serviceName,
  999. 'nodes',
  1000. [
  1001. 'methods' => [
  1002. 'create' => [
  1003. 'path' => 'v1alpha1/{+parent}/nodes',
  1004. 'httpMethod' => 'POST',
  1005. 'parameters' => [
  1006. 'parent' => [
  1007. 'location' => 'path',
  1008. 'type' => 'string',
  1009. 'required' => true,
  1010. ],
  1011. ],
  1012. ],'delete' => [
  1013. 'path' => 'v1alpha1/{+name}',
  1014. 'httpMethod' => 'DELETE',
  1015. 'parameters' => [
  1016. 'name' => [
  1017. 'location' => 'path',
  1018. 'type' => 'string',
  1019. 'required' => true,
  1020. ],
  1021. ],
  1022. ],'get' => [
  1023. 'path' => 'v1alpha1/{+name}',
  1024. 'httpMethod' => 'GET',
  1025. 'parameters' => [
  1026. 'name' => [
  1027. 'location' => 'path',
  1028. 'type' => 'string',
  1029. 'required' => true,
  1030. ],
  1031. ],
  1032. ],'list' => [
  1033. 'path' => 'v1alpha1/{+parent}/nodes',
  1034. 'httpMethod' => 'GET',
  1035. 'parameters' => [
  1036. 'parent' => [
  1037. 'location' => 'path',
  1038. 'type' => 'string',
  1039. 'required' => true,
  1040. ],
  1041. 'filter' => [
  1042. 'location' => 'query',
  1043. 'type' => 'string',
  1044. ],
  1045. 'pageSize' => [
  1046. 'location' => 'query',
  1047. 'type' => 'integer',
  1048. ],
  1049. 'pageToken' => [
  1050. 'location' => 'query',
  1051. 'type' => 'string',
  1052. ],
  1053. ],
  1054. ],'move' => [
  1055. 'path' => 'v1alpha1/{+name}:move',
  1056. 'httpMethod' => 'POST',
  1057. 'parameters' => [
  1058. 'name' => [
  1059. 'location' => 'path',
  1060. 'type' => 'string',
  1061. 'required' => true,
  1062. ],
  1063. ],
  1064. ],'patch' => [
  1065. 'path' => 'v1alpha1/{+name}',
  1066. 'httpMethod' => 'PATCH',
  1067. 'parameters' => [
  1068. 'name' => [
  1069. 'location' => 'path',
  1070. 'type' => 'string',
  1071. 'required' => true,
  1072. ],
  1073. 'updateMask' => [
  1074. 'location' => 'query',
  1075. 'type' => 'string',
  1076. ],
  1077. ],
  1078. ],
  1079. ]
  1080. ]
  1081. );
  1082. $this->nodes_nodes_deployments = new Sasportal\Resource\NodesNodesDeployments(
  1083. $this,
  1084. $this->serviceName,
  1085. 'deployments',
  1086. [
  1087. 'methods' => [
  1088. 'create' => [
  1089. 'path' => 'v1alpha1/{+parent}/deployments',
  1090. 'httpMethod' => 'POST',
  1091. 'parameters' => [
  1092. 'parent' => [
  1093. 'location' => 'path',
  1094. 'type' => 'string',
  1095. 'required' => true,
  1096. ],
  1097. ],
  1098. ],'list' => [
  1099. 'path' => 'v1alpha1/{+parent}/deployments',
  1100. 'httpMethod' => 'GET',
  1101. 'parameters' => [
  1102. 'parent' => [
  1103. 'location' => 'path',
  1104. 'type' => 'string',
  1105. 'required' => true,
  1106. ],
  1107. 'filter' => [
  1108. 'location' => 'query',
  1109. 'type' => 'string',
  1110. ],
  1111. 'pageSize' => [
  1112. 'location' => 'query',
  1113. 'type' => 'integer',
  1114. ],
  1115. 'pageToken' => [
  1116. 'location' => 'query',
  1117. 'type' => 'string',
  1118. ],
  1119. ],
  1120. ],
  1121. ]
  1122. ]
  1123. );
  1124. $this->nodes_nodes_devices = new Sasportal\Resource\NodesNodesDevices(
  1125. $this,
  1126. $this->serviceName,
  1127. 'devices',
  1128. [
  1129. 'methods' => [
  1130. 'create' => [
  1131. 'path' => 'v1alpha1/{+parent}/devices',
  1132. 'httpMethod' => 'POST',
  1133. 'parameters' => [
  1134. 'parent' => [
  1135. 'location' => 'path',
  1136. 'type' => 'string',
  1137. 'required' => true,
  1138. ],
  1139. ],
  1140. ],'createSigned' => [
  1141. 'path' => 'v1alpha1/{+parent}/devices:createSigned',
  1142. 'httpMethod' => 'POST',
  1143. 'parameters' => [
  1144. 'parent' => [
  1145. 'location' => 'path',
  1146. 'type' => 'string',
  1147. 'required' => true,
  1148. ],
  1149. ],
  1150. ],'list' => [
  1151. 'path' => 'v1alpha1/{+parent}/devices',
  1152. 'httpMethod' => 'GET',
  1153. 'parameters' => [
  1154. 'parent' => [
  1155. 'location' => 'path',
  1156. 'type' => 'string',
  1157. 'required' => true,
  1158. ],
  1159. 'filter' => [
  1160. 'location' => 'query',
  1161. 'type' => 'string',
  1162. ],
  1163. 'pageSize' => [
  1164. 'location' => 'query',
  1165. 'type' => 'integer',
  1166. ],
  1167. 'pageToken' => [
  1168. 'location' => 'query',
  1169. 'type' => 'string',
  1170. ],
  1171. ],
  1172. ],
  1173. ]
  1174. ]
  1175. );
  1176. $this->nodes_nodes_nodes = new Sasportal\Resource\NodesNodesNodes(
  1177. $this,
  1178. $this->serviceName,
  1179. 'nodes',
  1180. [
  1181. 'methods' => [
  1182. 'create' => [
  1183. 'path' => 'v1alpha1/{+parent}/nodes',
  1184. 'httpMethod' => 'POST',
  1185. 'parameters' => [
  1186. 'parent' => [
  1187. 'location' => 'path',
  1188. 'type' => 'string',
  1189. 'required' => true,
  1190. ],
  1191. ],
  1192. ],'list' => [
  1193. 'path' => 'v1alpha1/{+parent}/nodes',
  1194. 'httpMethod' => 'GET',
  1195. 'parameters' => [
  1196. 'parent' => [
  1197. 'location' => 'path',
  1198. 'type' => 'string',
  1199. 'required' => true,
  1200. ],
  1201. 'filter' => [
  1202. 'location' => 'query',
  1203. 'type' => 'string',
  1204. ],
  1205. 'pageSize' => [
  1206. 'location' => 'query',
  1207. 'type' => 'integer',
  1208. ],
  1209. 'pageToken' => [
  1210. 'location' => 'query',
  1211. 'type' => 'string',
  1212. ],
  1213. ],
  1214. ],
  1215. ]
  1216. ]
  1217. );
  1218. $this->policies = new Sasportal\Resource\Policies(
  1219. $this,
  1220. $this->serviceName,
  1221. 'policies',
  1222. [
  1223. 'methods' => [
  1224. 'get' => [
  1225. 'path' => 'v1alpha1/policies:get',
  1226. 'httpMethod' => 'POST',
  1227. 'parameters' => [],
  1228. ],'set' => [
  1229. 'path' => 'v1alpha1/policies:set',
  1230. 'httpMethod' => 'POST',
  1231. 'parameters' => [],
  1232. ],'test' => [
  1233. 'path' => 'v1alpha1/policies:test',
  1234. 'httpMethod' => 'POST',
  1235. 'parameters' => [],
  1236. ],
  1237. ]
  1238. ]
  1239. );
  1240. }
  1241. }
  1242. // Adding a class alias for backwards compatibility with the previous class name.
  1243. class_alias(Sasportal::class, 'Google_Service_Sasportal');