/aliyun-php-sdk-edas/Edas/Request/V20170801/InsertK8sApplicationRequest.php

https://github.com/aliyun/aliyun-openapi-php-sdk · PHP · 467 lines · 201 code · 67 blank · 199 comment · 0 complexity · 5e4df25f0161775298fe9cf4e06aba7f MD5 · raw file

  1. <?php
  2. namespace Edas\Request\V20170801;
  3. /**
  4. * Request of InsertK8sApplication
  5. *
  6. * @method string getNasId()
  7. * @method string getRepoId()
  8. * @method string getInternetTargetPort()
  9. * @method string getIntranetSlbId()
  10. * @method string getCommandArgs()
  11. * @method string getReadiness()
  12. * @method string getLiveness()
  13. * @method string getInternetSlbPort()
  14. * @method string getEnvs()
  15. * @method string getRequestsMem()
  16. * @method string getStorageType()
  17. * @method string getLimitMem()
  18. * @method string getAppName()
  19. * @method string getInternetSlbId()
  20. * @method string getLogicalRegionId()
  21. * @method string getInternetSlbProtocol()
  22. * @method string getIntranetSlbPort()
  23. * @method string getPreStop()
  24. * @method string getMountDescs()
  25. * @method string getReplicas()
  26. * @method string getLimitCpu()
  27. * @method string getClusterId()
  28. * @method string getIntranetTargetPort()
  29. * @method string getLocalVolume()
  30. * @method string getCommand()
  31. * @method string getIntranetSlbProtocol()
  32. * @method string getImageUrl()
  33. * @method string getNamespace()
  34. * @method string getApplicationDescription()
  35. * @method string getRequestsCpu()
  36. * @method string getPostStart()
  37. */
  38. class InsertK8sApplicationRequest extends \RoaAcsRequest
  39. {
  40. /**
  41. * @var string
  42. */
  43. protected $uriPattern = '/pop/v5/k8s/acs/create_k8s_app';
  44. /**
  45. * @var string
  46. */
  47. protected $method = 'POST';
  48. /**
  49. * Class constructor.
  50. */
  51. public function __construct()
  52. {
  53. parent::__construct(
  54. 'Edas',
  55. '2017-08-01',
  56. 'InsertK8sApplication'
  57. );
  58. }
  59. /**
  60. * @param string $nasId
  61. *
  62. * @return $this
  63. */
  64. public function setNasId($nasId)
  65. {
  66. $this->requestParameters['NasId'] = $nasId;
  67. $this->queryParameters['NasId'] = $nasId;
  68. return $this;
  69. }
  70. /**
  71. * @param string $repoId
  72. *
  73. * @return $this
  74. */
  75. public function setRepoId($repoId)
  76. {
  77. $this->requestParameters['RepoId'] = $repoId;
  78. $this->queryParameters['RepoId'] = $repoId;
  79. return $this;
  80. }
  81. /**
  82. * @param string $internetTargetPort
  83. *
  84. * @return $this
  85. */
  86. public function setInternetTargetPort($internetTargetPort)
  87. {
  88. $this->requestParameters['InternetTargetPort'] = $internetTargetPort;
  89. $this->queryParameters['InternetTargetPort'] = $internetTargetPort;
  90. return $this;
  91. }
  92. /**
  93. * @param string $intranetSlbId
  94. *
  95. * @return $this
  96. */
  97. public function setIntranetSlbId($intranetSlbId)
  98. {
  99. $this->requestParameters['IntranetSlbId'] = $intranetSlbId;
  100. $this->queryParameters['IntranetSlbId'] = $intranetSlbId;
  101. return $this;
  102. }
  103. /**
  104. * @param string $commandArgs
  105. *
  106. * @return $this
  107. */
  108. public function setCommandArgs($commandArgs)
  109. {
  110. $this->requestParameters['CommandArgs'] = $commandArgs;
  111. $this->queryParameters['CommandArgs'] = $commandArgs;
  112. return $this;
  113. }
  114. /**
  115. * @param string $readiness
  116. *
  117. * @return $this
  118. */
  119. public function setReadiness($readiness)
  120. {
  121. $this->requestParameters['Readiness'] = $readiness;
  122. $this->queryParameters['Readiness'] = $readiness;
  123. return $this;
  124. }
  125. /**
  126. * @param string $liveness
  127. *
  128. * @return $this
  129. */
  130. public function setLiveness($liveness)
  131. {
  132. $this->requestParameters['Liveness'] = $liveness;
  133. $this->queryParameters['Liveness'] = $liveness;
  134. return $this;
  135. }
  136. /**
  137. * @param string $internetSlbPort
  138. *
  139. * @return $this
  140. */
  141. public function setInternetSlbPort($internetSlbPort)
  142. {
  143. $this->requestParameters['InternetSlbPort'] = $internetSlbPort;
  144. $this->queryParameters['InternetSlbPort'] = $internetSlbPort;
  145. return $this;
  146. }
  147. /**
  148. * @param string $envs
  149. *
  150. * @return $this
  151. */
  152. public function setEnvs($envs)
  153. {
  154. $this->requestParameters['Envs'] = $envs;
  155. $this->queryParameters['Envs'] = $envs;
  156. return $this;
  157. }
  158. /**
  159. * @param string $requestsMem
  160. *
  161. * @return $this
  162. */
  163. public function setRequestsMem($requestsMem)
  164. {
  165. $this->requestParameters['RequestsMem'] = $requestsMem;
  166. $this->queryParameters['RequestsMem'] = $requestsMem;
  167. return $this;
  168. }
  169. /**
  170. * @param string $storageType
  171. *
  172. * @return $this
  173. */
  174. public function setStorageType($storageType)
  175. {
  176. $this->requestParameters['StorageType'] = $storageType;
  177. $this->queryParameters['StorageType'] = $storageType;
  178. return $this;
  179. }
  180. /**
  181. * @param string $limitMem
  182. *
  183. * @return $this
  184. */
  185. public function setLimitMem($limitMem)
  186. {
  187. $this->requestParameters['LimitMem'] = $limitMem;
  188. $this->queryParameters['LimitMem'] = $limitMem;
  189. return $this;
  190. }
  191. /**
  192. * @param string $appName
  193. *
  194. * @return $this
  195. */
  196. public function setAppName($appName)
  197. {
  198. $this->requestParameters['AppName'] = $appName;
  199. $this->queryParameters['AppName'] = $appName;
  200. return $this;
  201. }
  202. /**
  203. * @param string $internetSlbId
  204. *
  205. * @return $this
  206. */
  207. public function setInternetSlbId($internetSlbId)
  208. {
  209. $this->requestParameters['InternetSlbId'] = $internetSlbId;
  210. $this->queryParameters['InternetSlbId'] = $internetSlbId;
  211. return $this;
  212. }
  213. /**
  214. * @param string $logicalRegionId
  215. *
  216. * @return $this
  217. */
  218. public function setLogicalRegionId($logicalRegionId)
  219. {
  220. $this->requestParameters['LogicalRegionId'] = $logicalRegionId;
  221. $this->queryParameters['LogicalRegionId'] = $logicalRegionId;
  222. return $this;
  223. }
  224. /**
  225. * @param string $internetSlbProtocol
  226. *
  227. * @return $this
  228. */
  229. public function setInternetSlbProtocol($internetSlbProtocol)
  230. {
  231. $this->requestParameters['InternetSlbProtocol'] = $internetSlbProtocol;
  232. $this->queryParameters['InternetSlbProtocol'] = $internetSlbProtocol;
  233. return $this;
  234. }
  235. /**
  236. * @param string $intranetSlbPort
  237. *
  238. * @return $this
  239. */
  240. public function setIntranetSlbPort($intranetSlbPort)
  241. {
  242. $this->requestParameters['IntranetSlbPort'] = $intranetSlbPort;
  243. $this->queryParameters['IntranetSlbPort'] = $intranetSlbPort;
  244. return $this;
  245. }
  246. /**
  247. * @param string $preStop
  248. *
  249. * @return $this
  250. */
  251. public function setPreStop($preStop)
  252. {
  253. $this->requestParameters['PreStop'] = $preStop;
  254. $this->queryParameters['PreStop'] = $preStop;
  255. return $this;
  256. }
  257. /**
  258. * @param string $mountDescs
  259. *
  260. * @return $this
  261. */
  262. public function setMountDescs($mountDescs)
  263. {
  264. $this->requestParameters['MountDescs'] = $mountDescs;
  265. $this->queryParameters['MountDescs'] = $mountDescs;
  266. return $this;
  267. }
  268. /**
  269. * @param string $replicas
  270. *
  271. * @return $this
  272. */
  273. public function setReplicas($replicas)
  274. {
  275. $this->requestParameters['Replicas'] = $replicas;
  276. $this->queryParameters['Replicas'] = $replicas;
  277. return $this;
  278. }
  279. /**
  280. * @param string $limitCpu
  281. *
  282. * @return $this
  283. */
  284. public function setLimitCpu($limitCpu)
  285. {
  286. $this->requestParameters['LimitCpu'] = $limitCpu;
  287. $this->queryParameters['LimitCpu'] = $limitCpu;
  288. return $this;
  289. }
  290. /**
  291. * @param string $clusterId
  292. *
  293. * @return $this
  294. */
  295. public function setClusterId($clusterId)
  296. {
  297. $this->requestParameters['ClusterId'] = $clusterId;
  298. $this->queryParameters['ClusterId'] = $clusterId;
  299. return $this;
  300. }
  301. /**
  302. * @param string $intranetTargetPort
  303. *
  304. * @return $this
  305. */
  306. public function setIntranetTargetPort($intranetTargetPort)
  307. {
  308. $this->requestParameters['IntranetTargetPort'] = $intranetTargetPort;
  309. $this->queryParameters['IntranetTargetPort'] = $intranetTargetPort;
  310. return $this;
  311. }
  312. /**
  313. * @param string $localVolume
  314. *
  315. * @return $this
  316. */
  317. public function setLocalVolume($localVolume)
  318. {
  319. $this->requestParameters['LocalVolume'] = $localVolume;
  320. $this->queryParameters['LocalVolume'] = $localVolume;
  321. return $this;
  322. }
  323. /**
  324. * @param string $command
  325. *
  326. * @return $this
  327. */
  328. public function setCommand($command)
  329. {
  330. $this->requestParameters['Command'] = $command;
  331. $this->queryParameters['Command'] = $command;
  332. return $this;
  333. }
  334. /**
  335. * @param string $intranetSlbProtocol
  336. *
  337. * @return $this
  338. */
  339. public function setIntranetSlbProtocol($intranetSlbProtocol)
  340. {
  341. $this->requestParameters['IntranetSlbProtocol'] = $intranetSlbProtocol;
  342. $this->queryParameters['IntranetSlbProtocol'] = $intranetSlbProtocol;
  343. return $this;
  344. }
  345. /**
  346. * @param string $imageUrl
  347. *
  348. * @return $this
  349. */
  350. public function setImageUrl($imageUrl)
  351. {
  352. $this->requestParameters['ImageUrl'] = $imageUrl;
  353. $this->queryParameters['ImageUrl'] = $imageUrl;
  354. return $this;
  355. }
  356. /**
  357. * @param string $namespace
  358. *
  359. * @return $this
  360. */
  361. public function setNamespace($namespace)
  362. {
  363. $this->requestParameters['Namespace'] = $namespace;
  364. $this->queryParameters['Namespace'] = $namespace;
  365. return $this;
  366. }
  367. /**
  368. * @param string $applicationDescription
  369. *
  370. * @return $this
  371. */
  372. public function setApplicationDescription($applicationDescription)
  373. {
  374. $this->requestParameters['ApplicationDescription'] = $applicationDescription;
  375. $this->queryParameters['ApplicationDescription'] = $applicationDescription;
  376. return $this;
  377. }
  378. /**
  379. * @param string $requestsCpu
  380. *
  381. * @return $this
  382. */
  383. public function setRequestsCpu($requestsCpu)
  384. {
  385. $this->requestParameters['RequestsCpu'] = $requestsCpu;
  386. $this->queryParameters['RequestsCpu'] = $requestsCpu;
  387. return $this;
  388. }
  389. /**
  390. * @param string $postStart
  391. *
  392. * @return $this
  393. */
  394. public function setPostStart($postStart)
  395. {
  396. $this->requestParameters['PostStart'] = $postStart;
  397. $this->queryParameters['PostStart'] = $postStart;
  398. return $this;
  399. }
  400. }