GoogleChannelConfig.php 3.0 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\Eventarc;
  18. class GoogleChannelConfig extends \Google\Model
  19. {
  20. /**
  21. * Optional. Resource name of a KMS crypto key (managed by the user) used to
  22. * encrypt/decrypt their event data. It must match the pattern
  23. * `projects/locations/keyRings/cryptoKeys`.
  24. *
  25. * @var string
  26. */
  27. public $cryptoKeyName;
  28. /**
  29. * Optional. Resource labels.
  30. *
  31. * @var string[]
  32. */
  33. public $labels;
  34. /**
  35. * Required. The resource name of the config. Must be in the format of,
  36. * `projects/{project}/locations/{location}/googleChannelConfig`. In API
  37. * responses, the config name always includes the projectID, regardless of
  38. * whether the projectID or projectNumber was provided.
  39. *
  40. * @var string
  41. */
  42. public $name;
  43. /**
  44. * Output only. The last-modified time.
  45. *
  46. * @var string
  47. */
  48. public $updateTime;
  49. /**
  50. * Optional. Resource name of a KMS crypto key (managed by the user) used to
  51. * encrypt/decrypt their event data. It must match the pattern
  52. * `projects/locations/keyRings/cryptoKeys`.
  53. *
  54. * @param string $cryptoKeyName
  55. */
  56. public function setCryptoKeyName($cryptoKeyName)
  57. {
  58. $this->cryptoKeyName = $cryptoKeyName;
  59. }
  60. /**
  61. * @return string
  62. */
  63. public function getCryptoKeyName()
  64. {
  65. return $this->cryptoKeyName;
  66. }
  67. /**
  68. * Optional. Resource labels.
  69. *
  70. * @param string[] $labels
  71. */
  72. public function setLabels($labels)
  73. {
  74. $this->labels = $labels;
  75. }
  76. /**
  77. * @return string[]
  78. */
  79. public function getLabels()
  80. {
  81. return $this->labels;
  82. }
  83. /**
  84. * Required. The resource name of the config. Must be in the format of,
  85. * `projects/{project}/locations/{location}/googleChannelConfig`. In API
  86. * responses, the config name always includes the projectID, regardless of
  87. * whether the projectID or projectNumber was provided.
  88. *
  89. * @param string $name
  90. */
  91. public function setName($name)
  92. {
  93. $this->name = $name;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getName()
  99. {
  100. return $this->name;
  101. }
  102. /**
  103. * Output only. The last-modified time.
  104. *
  105. * @param string $updateTime
  106. */
  107. public function setUpdateTime($updateTime)
  108. {
  109. $this->updateTime = $updateTime;
  110. }
  111. /**
  112. * @return string
  113. */
  114. public function getUpdateTime()
  115. {
  116. return $this->updateTime;
  117. }
  118. }
  119. // Adding a class alias for backwards compatibility with the previous class name.
  120. class_alias(GoogleChannelConfig::class, 'Google_Service_Eventarc_GoogleChannelConfig');