GoogleCloudSecuritycenterV1p1beta1SecurityMarks.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 GoogleCloudSecuritycenterV1p1beta1SecurityMarks extends \Google\Model
  19. {
  20. /**
  21. * The canonical name of the marks. Examples:
  22. * "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  23. * "folders/{folder_id}/assets/{asset_id}/securityMarks"
  24. * "projects/{project_number}/assets/{asset_id}/securityMarks" "organizations/
  25. * {organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
  26. * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMark
  27. * s" "projects/{project_number}/sources/{source_id}/findings/{finding_id}/sec
  28. * urityMarks"
  29. *
  30. * @var string
  31. */
  32. public $canonicalName;
  33. /**
  34. * Mutable user specified security marks belonging to the parent resource.
  35. * Constraints are as follows: * Keys and values are treated as case
  36. * insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys
  37. * must be letters, numbers, underscores, or dashes * Values have leading and
  38. * trailing whitespace trimmed, remaining characters must be between 1 - 4096
  39. * characters (inclusive)
  40. *
  41. * @var string[]
  42. */
  43. public $marks;
  44. /**
  45. * The relative resource name of the SecurityMarks. See:
  46. * https://cloud.google.com/apis/design/resource_names#relative_resource_name
  47. * Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  48. * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/
  49. * securityMarks".
  50. *
  51. * @var string
  52. */
  53. public $name;
  54. /**
  55. * The canonical name of the marks. Examples:
  56. * "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  57. * "folders/{folder_id}/assets/{asset_id}/securityMarks"
  58. * "projects/{project_number}/assets/{asset_id}/securityMarks" "organizations/
  59. * {organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
  60. * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMark
  61. * s" "projects/{project_number}/sources/{source_id}/findings/{finding_id}/sec
  62. * urityMarks"
  63. *
  64. * @param string $canonicalName
  65. */
  66. public function setCanonicalName($canonicalName)
  67. {
  68. $this->canonicalName = $canonicalName;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getCanonicalName()
  74. {
  75. return $this->canonicalName;
  76. }
  77. /**
  78. * Mutable user specified security marks belonging to the parent resource.
  79. * Constraints are as follows: * Keys and values are treated as case
  80. * insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys
  81. * must be letters, numbers, underscores, or dashes * Values have leading and
  82. * trailing whitespace trimmed, remaining characters must be between 1 - 4096
  83. * characters (inclusive)
  84. *
  85. * @param string[] $marks
  86. */
  87. public function setMarks($marks)
  88. {
  89. $this->marks = $marks;
  90. }
  91. /**
  92. * @return string[]
  93. */
  94. public function getMarks()
  95. {
  96. return $this->marks;
  97. }
  98. /**
  99. * The relative resource name of the SecurityMarks. See:
  100. * https://cloud.google.com/apis/design/resource_names#relative_resource_name
  101. * Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  102. * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/
  103. * securityMarks".
  104. *
  105. * @param string $name
  106. */
  107. public function setName($name)
  108. {
  109. $this->name = $name;
  110. }
  111. /**
  112. * @return string
  113. */
  114. public function getName()
  115. {
  116. return $this->name;
  117. }
  118. }
  119. // Adding a class alias for backwards compatibility with the previous class name.
  120. class_alias(GoogleCloudSecuritycenterV1p1beta1SecurityMarks::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1p1beta1SecurityMarks');