SecurityCenterProperties.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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 SecurityCenterProperties extends \Google\Collection
  19. {
  20. protected $collection_key = 'resourceOwners';
  21. protected $foldersType = Folder::class;
  22. protected $foldersDataType = 'array';
  23. /**
  24. * The user defined display name for this resource.
  25. *
  26. * @var string
  27. */
  28. public $resourceDisplayName;
  29. /**
  30. * The full resource name of the Google Cloud resource this asset represents.
  31. * This field is immutable after create time. See:
  32. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  33. *
  34. * @var string
  35. */
  36. public $resourceName;
  37. /**
  38. * Owners of the Google Cloud resource.
  39. *
  40. * @var string[]
  41. */
  42. public $resourceOwners;
  43. /**
  44. * The full resource name of the immediate parent of the resource. See:
  45. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  46. *
  47. * @var string
  48. */
  49. public $resourceParent;
  50. /**
  51. * The user defined display name for the parent of this resource.
  52. *
  53. * @var string
  54. */
  55. public $resourceParentDisplayName;
  56. /**
  57. * The full resource name of the project the resource belongs to. See:
  58. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  59. *
  60. * @var string
  61. */
  62. public $resourceProject;
  63. /**
  64. * The user defined display name for the project of this resource.
  65. *
  66. * @var string
  67. */
  68. public $resourceProjectDisplayName;
  69. /**
  70. * The type of the Google Cloud resource. Examples include: APPLICATION,
  71. * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
  72. * Security Command Center and/or the producer of the resource and is
  73. * immutable after create time.
  74. *
  75. * @var string
  76. */
  77. public $resourceType;
  78. /**
  79. * Contains a Folder message for each folder in the assets ancestry. The first
  80. * folder is the deepest nested folder, and the last folder is the folder
  81. * directly under the Organization.
  82. *
  83. * @param Folder[] $folders
  84. */
  85. public function setFolders($folders)
  86. {
  87. $this->folders = $folders;
  88. }
  89. /**
  90. * @return Folder[]
  91. */
  92. public function getFolders()
  93. {
  94. return $this->folders;
  95. }
  96. /**
  97. * The user defined display name for this resource.
  98. *
  99. * @param string $resourceDisplayName
  100. */
  101. public function setResourceDisplayName($resourceDisplayName)
  102. {
  103. $this->resourceDisplayName = $resourceDisplayName;
  104. }
  105. /**
  106. * @return string
  107. */
  108. public function getResourceDisplayName()
  109. {
  110. return $this->resourceDisplayName;
  111. }
  112. /**
  113. * The full resource name of the Google Cloud resource this asset represents.
  114. * This field is immutable after create time. See:
  115. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  116. *
  117. * @param string $resourceName
  118. */
  119. public function setResourceName($resourceName)
  120. {
  121. $this->resourceName = $resourceName;
  122. }
  123. /**
  124. * @return string
  125. */
  126. public function getResourceName()
  127. {
  128. return $this->resourceName;
  129. }
  130. /**
  131. * Owners of the Google Cloud resource.
  132. *
  133. * @param string[] $resourceOwners
  134. */
  135. public function setResourceOwners($resourceOwners)
  136. {
  137. $this->resourceOwners = $resourceOwners;
  138. }
  139. /**
  140. * @return string[]
  141. */
  142. public function getResourceOwners()
  143. {
  144. return $this->resourceOwners;
  145. }
  146. /**
  147. * The full resource name of the immediate parent of the resource. See:
  148. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  149. *
  150. * @param string $resourceParent
  151. */
  152. public function setResourceParent($resourceParent)
  153. {
  154. $this->resourceParent = $resourceParent;
  155. }
  156. /**
  157. * @return string
  158. */
  159. public function getResourceParent()
  160. {
  161. return $this->resourceParent;
  162. }
  163. /**
  164. * The user defined display name for the parent of this resource.
  165. *
  166. * @param string $resourceParentDisplayName
  167. */
  168. public function setResourceParentDisplayName($resourceParentDisplayName)
  169. {
  170. $this->resourceParentDisplayName = $resourceParentDisplayName;
  171. }
  172. /**
  173. * @return string
  174. */
  175. public function getResourceParentDisplayName()
  176. {
  177. return $this->resourceParentDisplayName;
  178. }
  179. /**
  180. * The full resource name of the project the resource belongs to. See:
  181. * https://cloud.google.com/apis/design/resource_names#full_resource_name
  182. *
  183. * @param string $resourceProject
  184. */
  185. public function setResourceProject($resourceProject)
  186. {
  187. $this->resourceProject = $resourceProject;
  188. }
  189. /**
  190. * @return string
  191. */
  192. public function getResourceProject()
  193. {
  194. return $this->resourceProject;
  195. }
  196. /**
  197. * The user defined display name for the project of this resource.
  198. *
  199. * @param string $resourceProjectDisplayName
  200. */
  201. public function setResourceProjectDisplayName($resourceProjectDisplayName)
  202. {
  203. $this->resourceProjectDisplayName = $resourceProjectDisplayName;
  204. }
  205. /**
  206. * @return string
  207. */
  208. public function getResourceProjectDisplayName()
  209. {
  210. return $this->resourceProjectDisplayName;
  211. }
  212. /**
  213. * The type of the Google Cloud resource. Examples include: APPLICATION,
  214. * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
  215. * Security Command Center and/or the producer of the resource and is
  216. * immutable after create time.
  217. *
  218. * @param string $resourceType
  219. */
  220. public function setResourceType($resourceType)
  221. {
  222. $this->resourceType = $resourceType;
  223. }
  224. /**
  225. * @return string
  226. */
  227. public function getResourceType()
  228. {
  229. return $this->resourceType;
  230. }
  231. }
  232. // Adding a class alias for backwards compatibility with the previous class name.
  233. class_alias(SecurityCenterProperties::class, 'Google_Service_SecurityCommandCenter_SecurityCenterProperties');