/vendor/google/apiclient-services/src/CloudFunctions/CloudFunction.php

https://gitlab.com/Japang-Jawara/jawara-penilaian · PHP · 593 lines · 300 code · 4 blank · 289 comment · 0 complexity · 487edceb844ed9df03a71446c48e26b2 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\CloudFunctions;
  18. class CloudFunction extends \Google\Collection
  19. {
  20. protected $collection_key = 'secretVolumes';
  21. /**
  22. * @var int
  23. */
  24. public $availableMemoryMb;
  25. /**
  26. * @var string[]
  27. */
  28. public $buildEnvironmentVariables;
  29. /**
  30. * @var string
  31. */
  32. public $buildId;
  33. /**
  34. * @var string
  35. */
  36. public $buildName;
  37. /**
  38. * @var string
  39. */
  40. public $buildWorkerPool;
  41. /**
  42. * @var string
  43. */
  44. public $description;
  45. /**
  46. * @var string
  47. */
  48. public $dockerRepository;
  49. /**
  50. * @var string
  51. */
  52. public $entryPoint;
  53. /**
  54. * @var string[]
  55. */
  56. public $environmentVariables;
  57. protected $eventTriggerType = EventTrigger::class;
  58. protected $eventTriggerDataType = '';
  59. protected $httpsTriggerType = HttpsTrigger::class;
  60. protected $httpsTriggerDataType = '';
  61. /**
  62. * @var string
  63. */
  64. public $ingressSettings;
  65. /**
  66. * @var string
  67. */
  68. public $kmsKeyName;
  69. /**
  70. * @var string[]
  71. */
  72. public $labels;
  73. /**
  74. * @var int
  75. */
  76. public $maxInstances;
  77. /**
  78. * @var int
  79. */
  80. public $minInstances;
  81. /**
  82. * @var string
  83. */
  84. public $name;
  85. /**
  86. * @var string
  87. */
  88. public $network;
  89. /**
  90. * @var string
  91. */
  92. public $runtime;
  93. protected $secretEnvironmentVariablesType = SecretEnvVar::class;
  94. protected $secretEnvironmentVariablesDataType = 'array';
  95. protected $secretVolumesType = SecretVolume::class;
  96. protected $secretVolumesDataType = 'array';
  97. /**
  98. * @var string
  99. */
  100. public $serviceAccountEmail;
  101. /**
  102. * @var string
  103. */
  104. public $sourceArchiveUrl;
  105. protected $sourceRepositoryType = SourceRepository::class;
  106. protected $sourceRepositoryDataType = '';
  107. /**
  108. * @var string
  109. */
  110. public $sourceToken;
  111. /**
  112. * @var string
  113. */
  114. public $sourceUploadUrl;
  115. /**
  116. * @var string
  117. */
  118. public $status;
  119. /**
  120. * @var string
  121. */
  122. public $timeout;
  123. /**
  124. * @var string
  125. */
  126. public $updateTime;
  127. /**
  128. * @var string
  129. */
  130. public $versionId;
  131. /**
  132. * @var string
  133. */
  134. public $vpcConnector;
  135. /**
  136. * @var string
  137. */
  138. public $vpcConnectorEgressSettings;
  139. /**
  140. * @param int
  141. */
  142. public function setAvailableMemoryMb($availableMemoryMb)
  143. {
  144. $this->availableMemoryMb = $availableMemoryMb;
  145. }
  146. /**
  147. * @return int
  148. */
  149. public function getAvailableMemoryMb()
  150. {
  151. return $this->availableMemoryMb;
  152. }
  153. /**
  154. * @param string[]
  155. */
  156. public function setBuildEnvironmentVariables($buildEnvironmentVariables)
  157. {
  158. $this->buildEnvironmentVariables = $buildEnvironmentVariables;
  159. }
  160. /**
  161. * @return string[]
  162. */
  163. public function getBuildEnvironmentVariables()
  164. {
  165. return $this->buildEnvironmentVariables;
  166. }
  167. /**
  168. * @param string
  169. */
  170. public function setBuildId($buildId)
  171. {
  172. $this->buildId = $buildId;
  173. }
  174. /**
  175. * @return string
  176. */
  177. public function getBuildId()
  178. {
  179. return $this->buildId;
  180. }
  181. /**
  182. * @param string
  183. */
  184. public function setBuildName($buildName)
  185. {
  186. $this->buildName = $buildName;
  187. }
  188. /**
  189. * @return string
  190. */
  191. public function getBuildName()
  192. {
  193. return $this->buildName;
  194. }
  195. /**
  196. * @param string
  197. */
  198. public function setBuildWorkerPool($buildWorkerPool)
  199. {
  200. $this->buildWorkerPool = $buildWorkerPool;
  201. }
  202. /**
  203. * @return string
  204. */
  205. public function getBuildWorkerPool()
  206. {
  207. return $this->buildWorkerPool;
  208. }
  209. /**
  210. * @param string
  211. */
  212. public function setDescription($description)
  213. {
  214. $this->description = $description;
  215. }
  216. /**
  217. * @return string
  218. */
  219. public function getDescription()
  220. {
  221. return $this->description;
  222. }
  223. /**
  224. * @param string
  225. */
  226. public function setDockerRepository($dockerRepository)
  227. {
  228. $this->dockerRepository = $dockerRepository;
  229. }
  230. /**
  231. * @return string
  232. */
  233. public function getDockerRepository()
  234. {
  235. return $this->dockerRepository;
  236. }
  237. /**
  238. * @param string
  239. */
  240. public function setEntryPoint($entryPoint)
  241. {
  242. $this->entryPoint = $entryPoint;
  243. }
  244. /**
  245. * @return string
  246. */
  247. public function getEntryPoint()
  248. {
  249. return $this->entryPoint;
  250. }
  251. /**
  252. * @param string[]
  253. */
  254. public function setEnvironmentVariables($environmentVariables)
  255. {
  256. $this->environmentVariables = $environmentVariables;
  257. }
  258. /**
  259. * @return string[]
  260. */
  261. public function getEnvironmentVariables()
  262. {
  263. return $this->environmentVariables;
  264. }
  265. /**
  266. * @param EventTrigger
  267. */
  268. public function setEventTrigger(EventTrigger $eventTrigger)
  269. {
  270. $this->eventTrigger = $eventTrigger;
  271. }
  272. /**
  273. * @return EventTrigger
  274. */
  275. public function getEventTrigger()
  276. {
  277. return $this->eventTrigger;
  278. }
  279. /**
  280. * @param HttpsTrigger
  281. */
  282. public function setHttpsTrigger(HttpsTrigger $httpsTrigger)
  283. {
  284. $this->httpsTrigger = $httpsTrigger;
  285. }
  286. /**
  287. * @return HttpsTrigger
  288. */
  289. public function getHttpsTrigger()
  290. {
  291. return $this->httpsTrigger;
  292. }
  293. /**
  294. * @param string
  295. */
  296. public function setIngressSettings($ingressSettings)
  297. {
  298. $this->ingressSettings = $ingressSettings;
  299. }
  300. /**
  301. * @return string
  302. */
  303. public function getIngressSettings()
  304. {
  305. return $this->ingressSettings;
  306. }
  307. /**
  308. * @param string
  309. */
  310. public function setKmsKeyName($kmsKeyName)
  311. {
  312. $this->kmsKeyName = $kmsKeyName;
  313. }
  314. /**
  315. * @return string
  316. */
  317. public function getKmsKeyName()
  318. {
  319. return $this->kmsKeyName;
  320. }
  321. /**
  322. * @param string[]
  323. */
  324. public function setLabels($labels)
  325. {
  326. $this->labels = $labels;
  327. }
  328. /**
  329. * @return string[]
  330. */
  331. public function getLabels()
  332. {
  333. return $this->labels;
  334. }
  335. /**
  336. * @param int
  337. */
  338. public function setMaxInstances($maxInstances)
  339. {
  340. $this->maxInstances = $maxInstances;
  341. }
  342. /**
  343. * @return int
  344. */
  345. public function getMaxInstances()
  346. {
  347. return $this->maxInstances;
  348. }
  349. /**
  350. * @param int
  351. */
  352. public function setMinInstances($minInstances)
  353. {
  354. $this->minInstances = $minInstances;
  355. }
  356. /**
  357. * @return int
  358. */
  359. public function getMinInstances()
  360. {
  361. return $this->minInstances;
  362. }
  363. /**
  364. * @param string
  365. */
  366. public function setName($name)
  367. {
  368. $this->name = $name;
  369. }
  370. /**
  371. * @return string
  372. */
  373. public function getName()
  374. {
  375. return $this->name;
  376. }
  377. /**
  378. * @param string
  379. */
  380. public function setNetwork($network)
  381. {
  382. $this->network = $network;
  383. }
  384. /**
  385. * @return string
  386. */
  387. public function getNetwork()
  388. {
  389. return $this->network;
  390. }
  391. /**
  392. * @param string
  393. */
  394. public function setRuntime($runtime)
  395. {
  396. $this->runtime = $runtime;
  397. }
  398. /**
  399. * @return string
  400. */
  401. public function getRuntime()
  402. {
  403. return $this->runtime;
  404. }
  405. /**
  406. * @param SecretEnvVar[]
  407. */
  408. public function setSecretEnvironmentVariables($secretEnvironmentVariables)
  409. {
  410. $this->secretEnvironmentVariables = $secretEnvironmentVariables;
  411. }
  412. /**
  413. * @return SecretEnvVar[]
  414. */
  415. public function getSecretEnvironmentVariables()
  416. {
  417. return $this->secretEnvironmentVariables;
  418. }
  419. /**
  420. * @param SecretVolume[]
  421. */
  422. public function setSecretVolumes($secretVolumes)
  423. {
  424. $this->secretVolumes = $secretVolumes;
  425. }
  426. /**
  427. * @return SecretVolume[]
  428. */
  429. public function getSecretVolumes()
  430. {
  431. return $this->secretVolumes;
  432. }
  433. /**
  434. * @param string
  435. */
  436. public function setServiceAccountEmail($serviceAccountEmail)
  437. {
  438. $this->serviceAccountEmail = $serviceAccountEmail;
  439. }
  440. /**
  441. * @return string
  442. */
  443. public function getServiceAccountEmail()
  444. {
  445. return $this->serviceAccountEmail;
  446. }
  447. /**
  448. * @param string
  449. */
  450. public function setSourceArchiveUrl($sourceArchiveUrl)
  451. {
  452. $this->sourceArchiveUrl = $sourceArchiveUrl;
  453. }
  454. /**
  455. * @return string
  456. */
  457. public function getSourceArchiveUrl()
  458. {
  459. return $this->sourceArchiveUrl;
  460. }
  461. /**
  462. * @param SourceRepository
  463. */
  464. public function setSourceRepository(SourceRepository $sourceRepository)
  465. {
  466. $this->sourceRepository = $sourceRepository;
  467. }
  468. /**
  469. * @return SourceRepository
  470. */
  471. public function getSourceRepository()
  472. {
  473. return $this->sourceRepository;
  474. }
  475. /**
  476. * @param string
  477. */
  478. public function setSourceToken($sourceToken)
  479. {
  480. $this->sourceToken = $sourceToken;
  481. }
  482. /**
  483. * @return string
  484. */
  485. public function getSourceToken()
  486. {
  487. return $this->sourceToken;
  488. }
  489. /**
  490. * @param string
  491. */
  492. public function setSourceUploadUrl($sourceUploadUrl)
  493. {
  494. $this->sourceUploadUrl = $sourceUploadUrl;
  495. }
  496. /**
  497. * @return string
  498. */
  499. public function getSourceUploadUrl()
  500. {
  501. return $this->sourceUploadUrl;
  502. }
  503. /**
  504. * @param string
  505. */
  506. public function setStatus($status)
  507. {
  508. $this->status = $status;
  509. }
  510. /**
  511. * @return string
  512. */
  513. public function getStatus()
  514. {
  515. return $this->status;
  516. }
  517. /**
  518. * @param string
  519. */
  520. public function setTimeout($timeout)
  521. {
  522. $this->timeout = $timeout;
  523. }
  524. /**
  525. * @return string
  526. */
  527. public function getTimeout()
  528. {
  529. return $this->timeout;
  530. }
  531. /**
  532. * @param string
  533. */
  534. public function setUpdateTime($updateTime)
  535. {
  536. $this->updateTime = $updateTime;
  537. }
  538. /**
  539. * @return string
  540. */
  541. public function getUpdateTime()
  542. {
  543. return $this->updateTime;
  544. }
  545. /**
  546. * @param string
  547. */
  548. public function setVersionId($versionId)
  549. {
  550. $this->versionId = $versionId;
  551. }
  552. /**
  553. * @return string
  554. */
  555. public function getVersionId()
  556. {
  557. return $this->versionId;
  558. }
  559. /**
  560. * @param string
  561. */
  562. public function setVpcConnector($vpcConnector)
  563. {
  564. $this->vpcConnector = $vpcConnector;
  565. }
  566. /**
  567. * @return string
  568. */
  569. public function getVpcConnector()
  570. {
  571. return $this->vpcConnector;
  572. }
  573. /**
  574. * @param string
  575. */
  576. public function setVpcConnectorEgressSettings($vpcConnectorEgressSettings)
  577. {
  578. $this->vpcConnectorEgressSettings = $vpcConnectorEgressSettings;
  579. }
  580. /**
  581. * @return string
  582. */
  583. public function getVpcConnectorEgressSettings()
  584. {
  585. return $this->vpcConnectorEgressSettings;
  586. }
  587. }
  588. // Adding a class alias for backwards compatibility with the previous class name.
  589. class_alias(CloudFunction::class, 'Google_Service_CloudFunctions_CloudFunction');