Compliance.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 Compliance extends \Google\Collection
  19. {
  20. protected $collection_key = 'ids';
  21. /**
  22. * Policies within the standard or benchmark, for example, A.12.4.1
  23. *
  24. * @var string[]
  25. */
  26. public $ids;
  27. /**
  28. * Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
  29. * OWASP.
  30. *
  31. * @var string
  32. */
  33. public $standard;
  34. /**
  35. * Version of the standard or benchmark, for example, 1.1
  36. *
  37. * @var string
  38. */
  39. public $version;
  40. /**
  41. * Policies within the standard or benchmark, for example, A.12.4.1
  42. *
  43. * @param string[] $ids
  44. */
  45. public function setIds($ids)
  46. {
  47. $this->ids = $ids;
  48. }
  49. /**
  50. * @return string[]
  51. */
  52. public function getIds()
  53. {
  54. return $this->ids;
  55. }
  56. /**
  57. * Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
  58. * OWASP.
  59. *
  60. * @param string $standard
  61. */
  62. public function setStandard($standard)
  63. {
  64. $this->standard = $standard;
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getStandard()
  70. {
  71. return $this->standard;
  72. }
  73. /**
  74. * Version of the standard or benchmark, for example, 1.1
  75. *
  76. * @param string $version
  77. */
  78. public function setVersion($version)
  79. {
  80. $this->version = $version;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getVersion()
  86. {
  87. return $this->version;
  88. }
  89. }
  90. // Adding a class alias for backwards compatibility with the previous class name.
  91. class_alias(Compliance::class, 'Google_Service_SecurityCommandCenter_Compliance');