GoogleCloudSecuritycenterV2ExternalSystem.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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\SecurityCommandCenter;
  18. class GoogleCloudSecuritycenterV2ExternalSystem extends \Google\Collection
  19. {
  20. protected $collection_key = 'assignees';
  21. /**
  22. * References primary/secondary etc assignees in the external system.
  23. *
  24. * @var string[]
  25. */
  26. public $assignees;
  27. /**
  28. * The time when the case was closed, as reported by the external system.
  29. *
  30. * @var string
  31. */
  32. public $caseCloseTime;
  33. /**
  34. * The time when the case was created, as reported by the external system.
  35. *
  36. * @var string
  37. */
  38. public $caseCreateTime;
  39. /**
  40. * The priority of the finding's corresponding case in the external system.
  41. *
  42. * @var string
  43. */
  44. public $casePriority;
  45. /**
  46. * The SLA of the finding's corresponding case in the external system.
  47. *
  48. * @var string
  49. */
  50. public $caseSla;
  51. /**
  52. * The link to the finding's corresponding case in the external system.
  53. *
  54. * @var string
  55. */
  56. public $caseUri;
  57. /**
  58. * The time when the case was last updated, as reported by the external
  59. * system.
  60. *
  61. * @var string
  62. */
  63. public $externalSystemUpdateTime;
  64. /**
  65. * The identifier that's used to track the finding's corresponding case in the
  66. * external system.
  67. *
  68. * @var string
  69. */
  70. public $externalUid;
  71. /**
  72. * Full resource name of the external system. The following list shows some
  73. * examples: +
  74. * `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + `o
  75. * rganizations/1234/sources/5678/locations/us/findings/123456/externalSystems
  76. * /jira` + `folders/1234/sources/5678/findings/123456/externalSystems/jira` +
  77. * `folders/1234/sources/5678/locations/us/findings/123456/externalSystems/jir
  78. * a` + `projects/1234/sources/5678/findings/123456/externalSystems/jira` + `p
  79. * rojects/1234/sources/5678/locations/us/findings/123456/externalSystems/jira
  80. * `
  81. *
  82. * @var string
  83. */
  84. public $name;
  85. /**
  86. * The most recent status of the finding's corresponding case, as reported by
  87. * the external system.
  88. *
  89. * @var string
  90. */
  91. public $status;
  92. protected $ticketInfoType = GoogleCloudSecuritycenterV2TicketInfo::class;
  93. protected $ticketInfoDataType = '';
  94. /**
  95. * References primary/secondary etc assignees in the external system.
  96. *
  97. * @param string[] $assignees
  98. */
  99. public function setAssignees($assignees)
  100. {
  101. $this->assignees = $assignees;
  102. }
  103. /**
  104. * @return string[]
  105. */
  106. public function getAssignees()
  107. {
  108. return $this->assignees;
  109. }
  110. /**
  111. * The time when the case was closed, as reported by the external system.
  112. *
  113. * @param string $caseCloseTime
  114. */
  115. public function setCaseCloseTime($caseCloseTime)
  116. {
  117. $this->caseCloseTime = $caseCloseTime;
  118. }
  119. /**
  120. * @return string
  121. */
  122. public function getCaseCloseTime()
  123. {
  124. return $this->caseCloseTime;
  125. }
  126. /**
  127. * The time when the case was created, as reported by the external system.
  128. *
  129. * @param string $caseCreateTime
  130. */
  131. public function setCaseCreateTime($caseCreateTime)
  132. {
  133. $this->caseCreateTime = $caseCreateTime;
  134. }
  135. /**
  136. * @return string
  137. */
  138. public function getCaseCreateTime()
  139. {
  140. return $this->caseCreateTime;
  141. }
  142. /**
  143. * The priority of the finding's corresponding case in the external system.
  144. *
  145. * @param string $casePriority
  146. */
  147. public function setCasePriority($casePriority)
  148. {
  149. $this->casePriority = $casePriority;
  150. }
  151. /**
  152. * @return string
  153. */
  154. public function getCasePriority()
  155. {
  156. return $this->casePriority;
  157. }
  158. /**
  159. * The SLA of the finding's corresponding case in the external system.
  160. *
  161. * @param string $caseSla
  162. */
  163. public function setCaseSla($caseSla)
  164. {
  165. $this->caseSla = $caseSla;
  166. }
  167. /**
  168. * @return string
  169. */
  170. public function getCaseSla()
  171. {
  172. return $this->caseSla;
  173. }
  174. /**
  175. * The link to the finding's corresponding case in the external system.
  176. *
  177. * @param string $caseUri
  178. */
  179. public function setCaseUri($caseUri)
  180. {
  181. $this->caseUri = $caseUri;
  182. }
  183. /**
  184. * @return string
  185. */
  186. public function getCaseUri()
  187. {
  188. return $this->caseUri;
  189. }
  190. /**
  191. * The time when the case was last updated, as reported by the external
  192. * system.
  193. *
  194. * @param string $externalSystemUpdateTime
  195. */
  196. public function setExternalSystemUpdateTime($externalSystemUpdateTime)
  197. {
  198. $this->externalSystemUpdateTime = $externalSystemUpdateTime;
  199. }
  200. /**
  201. * @return string
  202. */
  203. public function getExternalSystemUpdateTime()
  204. {
  205. return $this->externalSystemUpdateTime;
  206. }
  207. /**
  208. * The identifier that's used to track the finding's corresponding case in the
  209. * external system.
  210. *
  211. * @param string $externalUid
  212. */
  213. public function setExternalUid($externalUid)
  214. {
  215. $this->externalUid = $externalUid;
  216. }
  217. /**
  218. * @return string
  219. */
  220. public function getExternalUid()
  221. {
  222. return $this->externalUid;
  223. }
  224. /**
  225. * Full resource name of the external system. The following list shows some
  226. * examples: +
  227. * `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + `o
  228. * rganizations/1234/sources/5678/locations/us/findings/123456/externalSystems
  229. * /jira` + `folders/1234/sources/5678/findings/123456/externalSystems/jira` +
  230. * `folders/1234/sources/5678/locations/us/findings/123456/externalSystems/jir
  231. * a` + `projects/1234/sources/5678/findings/123456/externalSystems/jira` + `p
  232. * rojects/1234/sources/5678/locations/us/findings/123456/externalSystems/jira
  233. * `
  234. *
  235. * @param string $name
  236. */
  237. public function setName($name)
  238. {
  239. $this->name = $name;
  240. }
  241. /**
  242. * @return string
  243. */
  244. public function getName()
  245. {
  246. return $this->name;
  247. }
  248. /**
  249. * The most recent status of the finding's corresponding case, as reported by
  250. * the external system.
  251. *
  252. * @param string $status
  253. */
  254. public function setStatus($status)
  255. {
  256. $this->status = $status;
  257. }
  258. /**
  259. * @return string
  260. */
  261. public function getStatus()
  262. {
  263. return $this->status;
  264. }
  265. /**
  266. * Information about the ticket, if any, that is being used to track the
  267. * resolution of the issue that is identified by this finding.
  268. *
  269. * @param GoogleCloudSecuritycenterV2TicketInfo $ticketInfo
  270. */
  271. public function setTicketInfo(GoogleCloudSecuritycenterV2TicketInfo $ticketInfo)
  272. {
  273. $this->ticketInfo = $ticketInfo;
  274. }
  275. /**
  276. * @return GoogleCloudSecuritycenterV2TicketInfo
  277. */
  278. public function getTicketInfo()
  279. {
  280. return $this->ticketInfo;
  281. }
  282. }
  283. // Adding a class alias for backwards compatibility with the previous class name.
  284. class_alias(GoogleCloudSecuritycenterV2ExternalSystem::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2ExternalSystem');