GoogleIamV1AuditLogConfig.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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\CloudMachineLearningEngine;
  18. class GoogleIamV1AuditLogConfig extends \Google\Collection
  19. {
  20. /**
  21. * Default case. Should never be this.
  22. */
  23. public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
  24. /**
  25. * Admin reads. Example: CloudIAM getIamPolicy
  26. */
  27. public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
  28. /**
  29. * Data writes. Example: CloudSQL Users create
  30. */
  31. public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
  32. /**
  33. * Data reads. Example: CloudSQL Users list
  34. */
  35. public const LOG_TYPE_DATA_READ = 'DATA_READ';
  36. protected $collection_key = 'exemptedMembers';
  37. /**
  38. * Specifies the identities that do not cause logging for this type of
  39. * permission. Follows the same format of Binding.members.
  40. *
  41. * @var string[]
  42. */
  43. public $exemptedMembers;
  44. /**
  45. * The log type that this config enables.
  46. *
  47. * @var string
  48. */
  49. public $logType;
  50. /**
  51. * Specifies the identities that do not cause logging for this type of
  52. * permission. Follows the same format of Binding.members.
  53. *
  54. * @param string[] $exemptedMembers
  55. */
  56. public function setExemptedMembers($exemptedMembers)
  57. {
  58. $this->exemptedMembers = $exemptedMembers;
  59. }
  60. /**
  61. * @return string[]
  62. */
  63. public function getExemptedMembers()
  64. {
  65. return $this->exemptedMembers;
  66. }
  67. /**
  68. * The log type that this config enables.
  69. *
  70. * Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
  71. *
  72. * @param self::LOG_TYPE_* $logType
  73. */
  74. public function setLogType($logType)
  75. {
  76. $this->logType = $logType;
  77. }
  78. /**
  79. * @return self::LOG_TYPE_*
  80. */
  81. public function getLogType()
  82. {
  83. return $this->logType;
  84. }
  85. }
  86. // Adding a class alias for backwards compatibility with the previous class name.
  87. class_alias(GoogleIamV1AuditLogConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1AuditLogConfig');