GoogleIamV1Policy.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\PolicyTroubleshooter;
  18. class GoogleIamV1Policy extends \Google\Collection
  19. {
  20. protected $collection_key = 'bindings';
  21. protected $auditConfigsType = GoogleIamV1AuditConfig::class;
  22. protected $auditConfigsDataType = 'array';
  23. protected $bindingsType = GoogleIamV1Binding::class;
  24. protected $bindingsDataType = 'array';
  25. /**
  26. * @var string
  27. */
  28. public $etag;
  29. /**
  30. * @var int
  31. */
  32. public $version;
  33. /**
  34. * @param GoogleIamV1AuditConfig[]
  35. */
  36. public function setAuditConfigs($auditConfigs)
  37. {
  38. $this->auditConfigs = $auditConfigs;
  39. }
  40. /**
  41. * @return GoogleIamV1AuditConfig[]
  42. */
  43. public function getAuditConfigs()
  44. {
  45. return $this->auditConfigs;
  46. }
  47. /**
  48. * @param GoogleIamV1Binding[]
  49. */
  50. public function setBindings($bindings)
  51. {
  52. $this->bindings = $bindings;
  53. }
  54. /**
  55. * @return GoogleIamV1Binding[]
  56. */
  57. public function getBindings()
  58. {
  59. return $this->bindings;
  60. }
  61. /**
  62. * @param string
  63. */
  64. public function setEtag($etag)
  65. {
  66. $this->etag = $etag;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getEtag()
  72. {
  73. return $this->etag;
  74. }
  75. /**
  76. * @param int
  77. */
  78. public function setVersion($version)
  79. {
  80. $this->version = $version;
  81. }
  82. /**
  83. * @return int
  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(GoogleIamV1Policy::class, 'Google_Service_PolicyTroubleshooter_GoogleIamV1Policy');