ChannelConnection.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 ChannelConnection extends \Google\Model
  19. {
  20. /**
  21. * Input only. Activation token for the channel. The token will be used during
  22. * the creation of ChannelConnection to bind the channel with the provider
  23. * project. This field will not be stored in the provider resource.
  24. *
  25. * @var string
  26. */
  27. public $activationToken;
  28. /**
  29. * Required. The name of the connected subscriber Channel. This is a weak
  30. * reference to avoid cross project and cross accounts references. This must
  31. * be in `projects/{project}/location/{location}/channels/{channel_id}`
  32. * format.
  33. *
  34. * @var string
  35. */
  36. public $channel;
  37. /**
  38. * Output only. The creation time.
  39. *
  40. * @var string
  41. */
  42. public $createTime;
  43. /**
  44. * Optional. Resource labels.
  45. *
  46. * @var string[]
  47. */
  48. public $labels;
  49. /**
  50. * Required. The name of the connection.
  51. *
  52. * @var string
  53. */
  54. public $name;
  55. /**
  56. * Output only. Server assigned ID of the resource. The server guarantees
  57. * uniqueness and immutability until deleted.
  58. *
  59. * @var string
  60. */
  61. public $uid;
  62. /**
  63. * Output only. The last-modified time.
  64. *
  65. * @var string
  66. */
  67. public $updateTime;
  68. /**
  69. * Input only. Activation token for the channel. The token will be used during
  70. * the creation of ChannelConnection to bind the channel with the provider
  71. * project. This field will not be stored in the provider resource.
  72. *
  73. * @param string $activationToken
  74. */
  75. public function setActivationToken($activationToken)
  76. {
  77. $this->activationToken = $activationToken;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getActivationToken()
  83. {
  84. return $this->activationToken;
  85. }
  86. /**
  87. * Required. The name of the connected subscriber Channel. This is a weak
  88. * reference to avoid cross project and cross accounts references. This must
  89. * be in `projects/{project}/location/{location}/channels/{channel_id}`
  90. * format.
  91. *
  92. * @param string $channel
  93. */
  94. public function setChannel($channel)
  95. {
  96. $this->channel = $channel;
  97. }
  98. /**
  99. * @return string
  100. */
  101. public function getChannel()
  102. {
  103. return $this->channel;
  104. }
  105. /**
  106. * Output only. The creation time.
  107. *
  108. * @param string $createTime
  109. */
  110. public function setCreateTime($createTime)
  111. {
  112. $this->createTime = $createTime;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getCreateTime()
  118. {
  119. return $this->createTime;
  120. }
  121. /**
  122. * Optional. Resource labels.
  123. *
  124. * @param string[] $labels
  125. */
  126. public function setLabels($labels)
  127. {
  128. $this->labels = $labels;
  129. }
  130. /**
  131. * @return string[]
  132. */
  133. public function getLabels()
  134. {
  135. return $this->labels;
  136. }
  137. /**
  138. * Required. The name of the connection.
  139. *
  140. * @param string $name
  141. */
  142. public function setName($name)
  143. {
  144. $this->name = $name;
  145. }
  146. /**
  147. * @return string
  148. */
  149. public function getName()
  150. {
  151. return $this->name;
  152. }
  153. /**
  154. * Output only. Server assigned ID of the resource. The server guarantees
  155. * uniqueness and immutability until deleted.
  156. *
  157. * @param string $uid
  158. */
  159. public function setUid($uid)
  160. {
  161. $this->uid = $uid;
  162. }
  163. /**
  164. * @return string
  165. */
  166. public function getUid()
  167. {
  168. return $this->uid;
  169. }
  170. /**
  171. * Output only. The last-modified time.
  172. *
  173. * @param string $updateTime
  174. */
  175. public function setUpdateTime($updateTime)
  176. {
  177. $this->updateTime = $updateTime;
  178. }
  179. /**
  180. * @return string
  181. */
  182. public function getUpdateTime()
  183. {
  184. return $this->updateTime;
  185. }
  186. }
  187. // Adding a class alias for backwards compatibility with the previous class name.
  188. class_alias(ChannelConnection::class, 'Google_Service_Eventarc_ChannelConnection');