AttackStepNode.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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 AttackStepNode extends \Google\Model
  19. {
  20. /**
  21. * Type not specified
  22. */
  23. public const TYPE_NODE_TYPE_UNSPECIFIED = 'NODE_TYPE_UNSPECIFIED';
  24. /**
  25. * Incoming edge joined with AND
  26. */
  27. public const TYPE_NODE_TYPE_AND = 'NODE_TYPE_AND';
  28. /**
  29. * Incoming edge joined with OR
  30. */
  31. public const TYPE_NODE_TYPE_OR = 'NODE_TYPE_OR';
  32. /**
  33. * Incoming edge is defense
  34. */
  35. public const TYPE_NODE_TYPE_DEFENSE = 'NODE_TYPE_DEFENSE';
  36. /**
  37. * Incoming edge is attacker
  38. */
  39. public const TYPE_NODE_TYPE_ATTACKER = 'NODE_TYPE_ATTACKER';
  40. /**
  41. * Attack step description
  42. *
  43. * @var string
  44. */
  45. public $description;
  46. /**
  47. * User friendly name of the attack step
  48. *
  49. * @var string
  50. */
  51. public $displayName;
  52. /**
  53. * Attack step labels for metadata
  54. *
  55. * @var string[]
  56. */
  57. public $labels;
  58. /**
  59. * Attack step type. Can be either AND, OR or DEFENSE
  60. *
  61. * @var string
  62. */
  63. public $type;
  64. /**
  65. * Unique ID for one Node
  66. *
  67. * @var string
  68. */
  69. public $uuid;
  70. /**
  71. * Attack step description
  72. *
  73. * @param string $description
  74. */
  75. public function setDescription($description)
  76. {
  77. $this->description = $description;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getDescription()
  83. {
  84. return $this->description;
  85. }
  86. /**
  87. * User friendly name of the attack step
  88. *
  89. * @param string $displayName
  90. */
  91. public function setDisplayName($displayName)
  92. {
  93. $this->displayName = $displayName;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getDisplayName()
  99. {
  100. return $this->displayName;
  101. }
  102. /**
  103. * Attack step labels for metadata
  104. *
  105. * @param string[] $labels
  106. */
  107. public function setLabels($labels)
  108. {
  109. $this->labels = $labels;
  110. }
  111. /**
  112. * @return string[]
  113. */
  114. public function getLabels()
  115. {
  116. return $this->labels;
  117. }
  118. /**
  119. * Attack step type. Can be either AND, OR or DEFENSE
  120. *
  121. * Accepted values: NODE_TYPE_UNSPECIFIED, NODE_TYPE_AND, NODE_TYPE_OR,
  122. * NODE_TYPE_DEFENSE, NODE_TYPE_ATTACKER
  123. *
  124. * @param self::TYPE_* $type
  125. */
  126. public function setType($type)
  127. {
  128. $this->type = $type;
  129. }
  130. /**
  131. * @return self::TYPE_*
  132. */
  133. public function getType()
  134. {
  135. return $this->type;
  136. }
  137. /**
  138. * Unique ID for one Node
  139. *
  140. * @param string $uuid
  141. */
  142. public function setUuid($uuid)
  143. {
  144. $this->uuid = $uuid;
  145. }
  146. /**
  147. * @return string
  148. */
  149. public function getUuid()
  150. {
  151. return $this->uuid;
  152. }
  153. }
  154. // Adding a class alias for backwards compatibility with the previous class name.
  155. class_alias(AttackStepNode::class, 'Google_Service_SecurityCommandCenter_AttackStepNode');