GoogleCloudSecuritycenterV2CloudDlpDataProfile.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 GoogleCloudSecuritycenterV2CloudDlpDataProfile extends \Google\Collection
  19. {
  20. /**
  21. * Unspecified parent type.
  22. */
  23. public const PARENT_TYPE_PARENT_TYPE_UNSPECIFIED = 'PARENT_TYPE_UNSPECIFIED';
  24. /**
  25. * Organization-level configurations.
  26. */
  27. public const PARENT_TYPE_ORGANIZATION = 'ORGANIZATION';
  28. /**
  29. * Project-level configurations.
  30. */
  31. public const PARENT_TYPE_PROJECT = 'PROJECT';
  32. protected $collection_key = 'infoTypes';
  33. /**
  34. * Name of the data profile, for example,
  35. * `projects/123/locations/europe/tableProfiles/8383929`.
  36. *
  37. * @var string
  38. */
  39. public $dataProfile;
  40. protected $infoTypesType = GoogleCloudSecuritycenterV2InfoType::class;
  41. protected $infoTypesDataType = 'array';
  42. /**
  43. * The resource hierarchy level at which the data profile was generated.
  44. *
  45. * @var string
  46. */
  47. public $parentType;
  48. /**
  49. * Name of the data profile, for example,
  50. * `projects/123/locations/europe/tableProfiles/8383929`.
  51. *
  52. * @param string $dataProfile
  53. */
  54. public function setDataProfile($dataProfile)
  55. {
  56. $this->dataProfile = $dataProfile;
  57. }
  58. /**
  59. * @return string
  60. */
  61. public function getDataProfile()
  62. {
  63. return $this->dataProfile;
  64. }
  65. /**
  66. * Type of information detected by SDP. Info type includes name, version and
  67. * sensitivity of the detected information type.
  68. *
  69. * @param GoogleCloudSecuritycenterV2InfoType[] $infoTypes
  70. */
  71. public function setInfoTypes($infoTypes)
  72. {
  73. $this->infoTypes = $infoTypes;
  74. }
  75. /**
  76. * @return GoogleCloudSecuritycenterV2InfoType[]
  77. */
  78. public function getInfoTypes()
  79. {
  80. return $this->infoTypes;
  81. }
  82. /**
  83. * The resource hierarchy level at which the data profile was generated.
  84. *
  85. * Accepted values: PARENT_TYPE_UNSPECIFIED, ORGANIZATION, PROJECT
  86. *
  87. * @param self::PARENT_TYPE_* $parentType
  88. */
  89. public function setParentType($parentType)
  90. {
  91. $this->parentType = $parentType;
  92. }
  93. /**
  94. * @return self::PARENT_TYPE_*
  95. */
  96. public function getParentType()
  97. {
  98. return $this->parentType;
  99. }
  100. }
  101. // Adding a class alias for backwards compatibility with the previous class name.
  102. class_alias(GoogleCloudSecuritycenterV2CloudDlpDataProfile::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2CloudDlpDataProfile');