[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\Eventarc;
|
---|
| 19 |
|
---|
| 20 | class Trigger extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'eventFilters';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $channel;
|
---|
| 27 | protected $conditionsType = StateCondition::class;
|
---|
| 28 | protected $conditionsDataType = 'map';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $createTime;
|
---|
| 33 | protected $destinationType = Destination::class;
|
---|
| 34 | protected $destinationDataType = '';
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $etag;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $eventDataContentType;
|
---|
| 43 | protected $eventFiltersType = EventFilter::class;
|
---|
| 44 | protected $eventFiltersDataType = 'array';
|
---|
| 45 | /**
|
---|
| 46 | * @var string[]
|
---|
| 47 | */
|
---|
| 48 | public $labels;
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $name;
|
---|
| 53 | /**
|
---|
| 54 | * @var bool
|
---|
| 55 | */
|
---|
| 56 | public $satisfiesPzs;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $serviceAccount;
|
---|
| 61 | protected $transportType = Transport::class;
|
---|
| 62 | protected $transportDataType = '';
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $uid;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $updateTime;
|
---|
| 71 |
|
---|
| 72 | /**
|
---|
| 73 | * @param string
|
---|
| 74 | */
|
---|
| 75 | public function setChannel($channel)
|
---|
| 76 | {
|
---|
| 77 | $this->channel = $channel;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @return string
|
---|
| 81 | */
|
---|
| 82 | public function getChannel()
|
---|
| 83 | {
|
---|
| 84 | return $this->channel;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @param StateCondition[]
|
---|
| 88 | */
|
---|
| 89 | public function setConditions($conditions)
|
---|
| 90 | {
|
---|
| 91 | $this->conditions = $conditions;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @return StateCondition[]
|
---|
| 95 | */
|
---|
| 96 | public function getConditions()
|
---|
| 97 | {
|
---|
| 98 | return $this->conditions;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @param string
|
---|
| 102 | */
|
---|
| 103 | public function setCreateTime($createTime)
|
---|
| 104 | {
|
---|
| 105 | $this->createTime = $createTime;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @return string
|
---|
| 109 | */
|
---|
| 110 | public function getCreateTime()
|
---|
| 111 | {
|
---|
| 112 | return $this->createTime;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param Destination
|
---|
| 116 | */
|
---|
| 117 | public function setDestination(Destination $destination)
|
---|
| 118 | {
|
---|
| 119 | $this->destination = $destination;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return Destination
|
---|
| 123 | */
|
---|
| 124 | public function getDestination()
|
---|
| 125 | {
|
---|
| 126 | return $this->destination;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param string
|
---|
| 130 | */
|
---|
| 131 | public function setEtag($etag)
|
---|
| 132 | {
|
---|
| 133 | $this->etag = $etag;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return string
|
---|
| 137 | */
|
---|
| 138 | public function getEtag()
|
---|
| 139 | {
|
---|
| 140 | return $this->etag;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param string
|
---|
| 144 | */
|
---|
| 145 | public function setEventDataContentType($eventDataContentType)
|
---|
| 146 | {
|
---|
| 147 | $this->eventDataContentType = $eventDataContentType;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return string
|
---|
| 151 | */
|
---|
| 152 | public function getEventDataContentType()
|
---|
| 153 | {
|
---|
| 154 | return $this->eventDataContentType;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param EventFilter[]
|
---|
| 158 | */
|
---|
| 159 | public function setEventFilters($eventFilters)
|
---|
| 160 | {
|
---|
| 161 | $this->eventFilters = $eventFilters;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return EventFilter[]
|
---|
| 165 | */
|
---|
| 166 | public function getEventFilters()
|
---|
| 167 | {
|
---|
| 168 | return $this->eventFilters;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param string[]
|
---|
| 172 | */
|
---|
| 173 | public function setLabels($labels)
|
---|
| 174 | {
|
---|
| 175 | $this->labels = $labels;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return string[]
|
---|
| 179 | */
|
---|
| 180 | public function getLabels()
|
---|
| 181 | {
|
---|
| 182 | return $this->labels;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param string
|
---|
| 186 | */
|
---|
| 187 | public function setName($name)
|
---|
| 188 | {
|
---|
| 189 | $this->name = $name;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return string
|
---|
| 193 | */
|
---|
| 194 | public function getName()
|
---|
| 195 | {
|
---|
| 196 | return $this->name;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @param bool
|
---|
| 200 | */
|
---|
| 201 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
| 202 | {
|
---|
| 203 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @return bool
|
---|
| 207 | */
|
---|
| 208 | public function getSatisfiesPzs()
|
---|
| 209 | {
|
---|
| 210 | return $this->satisfiesPzs;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @param string
|
---|
| 214 | */
|
---|
| 215 | public function setServiceAccount($serviceAccount)
|
---|
| 216 | {
|
---|
| 217 | $this->serviceAccount = $serviceAccount;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @return string
|
---|
| 221 | */
|
---|
| 222 | public function getServiceAccount()
|
---|
| 223 | {
|
---|
| 224 | return $this->serviceAccount;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @param Transport
|
---|
| 228 | */
|
---|
| 229 | public function setTransport(Transport $transport)
|
---|
| 230 | {
|
---|
| 231 | $this->transport = $transport;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @return Transport
|
---|
| 235 | */
|
---|
| 236 | public function getTransport()
|
---|
| 237 | {
|
---|
| 238 | return $this->transport;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @param string
|
---|
| 242 | */
|
---|
| 243 | public function setUid($uid)
|
---|
| 244 | {
|
---|
| 245 | $this->uid = $uid;
|
---|
| 246 | }
|
---|
| 247 | /**
|
---|
| 248 | * @return string
|
---|
| 249 | */
|
---|
| 250 | public function getUid()
|
---|
| 251 | {
|
---|
| 252 | return $this->uid;
|
---|
| 253 | }
|
---|
| 254 | /**
|
---|
| 255 | * @param string
|
---|
| 256 | */
|
---|
| 257 | public function setUpdateTime($updateTime)
|
---|
| 258 | {
|
---|
| 259 | $this->updateTime = $updateTime;
|
---|
| 260 | }
|
---|
| 261 | /**
|
---|
| 262 | * @return string
|
---|
| 263 | */
|
---|
| 264 | public function getUpdateTime()
|
---|
| 265 | {
|
---|
| 266 | return $this->updateTime;
|
---|
| 267 | }
|
---|
| 268 | }
|
---|
| 269 |
|
---|
| 270 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 271 | class_alias(Trigger::class, 'Google_Service_Eventarc_Trigger');
|
---|