source: vendor/google/apiclient-services/src/CloudBuild/BuildTrigger.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 9.4 KB
Line 
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
18namespace Google\Service\CloudBuild;
19
20class BuildTrigger extends \Google\Collection
21{
22 protected $collection_key = 'tags';
23 protected $approvalConfigType = ApprovalConfig::class;
24 protected $approvalConfigDataType = '';
25 /**
26 * @var bool
27 */
28 public $autodetect;
29 protected $bitbucketServerTriggerConfigType = BitbucketServerTriggerConfig::class;
30 protected $bitbucketServerTriggerConfigDataType = '';
31 protected $buildType = Build::class;
32 protected $buildDataType = '';
33 /**
34 * @var string
35 */
36 public $createTime;
37 /**
38 * @var string
39 */
40 public $description;
41 /**
42 * @var bool
43 */
44 public $disabled;
45 /**
46 * @var string
47 */
48 public $eventType;
49 /**
50 * @var string
51 */
52 public $filename;
53 /**
54 * @var string
55 */
56 public $filter;
57 protected $gitFileSourceType = GitFileSource::class;
58 protected $gitFileSourceDataType = '';
59 protected $githubType = GitHubEventsConfig::class;
60 protected $githubDataType = '';
61 protected $gitlabEnterpriseEventsConfigType = GitLabEventsConfig::class;
62 protected $gitlabEnterpriseEventsConfigDataType = '';
63 /**
64 * @var string
65 */
66 public $id;
67 /**
68 * @var string[]
69 */
70 public $ignoredFiles;
71 /**
72 * @var string
73 */
74 public $includeBuildLogs;
75 /**
76 * @var string[]
77 */
78 public $includedFiles;
79 /**
80 * @var string
81 */
82 public $name;
83 protected $pubsubConfigType = PubsubConfig::class;
84 protected $pubsubConfigDataType = '';
85 protected $repositoryEventConfigType = RepositoryEventConfig::class;
86 protected $repositoryEventConfigDataType = '';
87 /**
88 * @var string
89 */
90 public $resourceName;
91 /**
92 * @var string
93 */
94 public $serviceAccount;
95 protected $sourceToBuildType = GitRepoSource::class;
96 protected $sourceToBuildDataType = '';
97 /**
98 * @var string[]
99 */
100 public $substitutions;
101 /**
102 * @var string[]
103 */
104 public $tags;
105 protected $triggerTemplateType = RepoSource::class;
106 protected $triggerTemplateDataType = '';
107 protected $webhookConfigType = WebhookConfig::class;
108 protected $webhookConfigDataType = '';
109
110 /**
111 * @param ApprovalConfig
112 */
113 public function setApprovalConfig(ApprovalConfig $approvalConfig)
114 {
115 $this->approvalConfig = $approvalConfig;
116 }
117 /**
118 * @return ApprovalConfig
119 */
120 public function getApprovalConfig()
121 {
122 return $this->approvalConfig;
123 }
124 /**
125 * @param bool
126 */
127 public function setAutodetect($autodetect)
128 {
129 $this->autodetect = $autodetect;
130 }
131 /**
132 * @return bool
133 */
134 public function getAutodetect()
135 {
136 return $this->autodetect;
137 }
138 /**
139 * @param BitbucketServerTriggerConfig
140 */
141 public function setBitbucketServerTriggerConfig(BitbucketServerTriggerConfig $bitbucketServerTriggerConfig)
142 {
143 $this->bitbucketServerTriggerConfig = $bitbucketServerTriggerConfig;
144 }
145 /**
146 * @return BitbucketServerTriggerConfig
147 */
148 public function getBitbucketServerTriggerConfig()
149 {
150 return $this->bitbucketServerTriggerConfig;
151 }
152 /**
153 * @param Build
154 */
155 public function setBuild(Build $build)
156 {
157 $this->build = $build;
158 }
159 /**
160 * @return Build
161 */
162 public function getBuild()
163 {
164 return $this->build;
165 }
166 /**
167 * @param string
168 */
169 public function setCreateTime($createTime)
170 {
171 $this->createTime = $createTime;
172 }
173 /**
174 * @return string
175 */
176 public function getCreateTime()
177 {
178 return $this->createTime;
179 }
180 /**
181 * @param string
182 */
183 public function setDescription($description)
184 {
185 $this->description = $description;
186 }
187 /**
188 * @return string
189 */
190 public function getDescription()
191 {
192 return $this->description;
193 }
194 /**
195 * @param bool
196 */
197 public function setDisabled($disabled)
198 {
199 $this->disabled = $disabled;
200 }
201 /**
202 * @return bool
203 */
204 public function getDisabled()
205 {
206 return $this->disabled;
207 }
208 /**
209 * @param string
210 */
211 public function setEventType($eventType)
212 {
213 $this->eventType = $eventType;
214 }
215 /**
216 * @return string
217 */
218 public function getEventType()
219 {
220 return $this->eventType;
221 }
222 /**
223 * @param string
224 */
225 public function setFilename($filename)
226 {
227 $this->filename = $filename;
228 }
229 /**
230 * @return string
231 */
232 public function getFilename()
233 {
234 return $this->filename;
235 }
236 /**
237 * @param string
238 */
239 public function setFilter($filter)
240 {
241 $this->filter = $filter;
242 }
243 /**
244 * @return string
245 */
246 public function getFilter()
247 {
248 return $this->filter;
249 }
250 /**
251 * @param GitFileSource
252 */
253 public function setGitFileSource(GitFileSource $gitFileSource)
254 {
255 $this->gitFileSource = $gitFileSource;
256 }
257 /**
258 * @return GitFileSource
259 */
260 public function getGitFileSource()
261 {
262 return $this->gitFileSource;
263 }
264 /**
265 * @param GitHubEventsConfig
266 */
267 public function setGithub(GitHubEventsConfig $github)
268 {
269 $this->github = $github;
270 }
271 /**
272 * @return GitHubEventsConfig
273 */
274 public function getGithub()
275 {
276 return $this->github;
277 }
278 /**
279 * @param GitLabEventsConfig
280 */
281 public function setGitlabEnterpriseEventsConfig(GitLabEventsConfig $gitlabEnterpriseEventsConfig)
282 {
283 $this->gitlabEnterpriseEventsConfig = $gitlabEnterpriseEventsConfig;
284 }
285 /**
286 * @return GitLabEventsConfig
287 */
288 public function getGitlabEnterpriseEventsConfig()
289 {
290 return $this->gitlabEnterpriseEventsConfig;
291 }
292 /**
293 * @param string
294 */
295 public function setId($id)
296 {
297 $this->id = $id;
298 }
299 /**
300 * @return string
301 */
302 public function getId()
303 {
304 return $this->id;
305 }
306 /**
307 * @param string[]
308 */
309 public function setIgnoredFiles($ignoredFiles)
310 {
311 $this->ignoredFiles = $ignoredFiles;
312 }
313 /**
314 * @return string[]
315 */
316 public function getIgnoredFiles()
317 {
318 return $this->ignoredFiles;
319 }
320 /**
321 * @param string
322 */
323 public function setIncludeBuildLogs($includeBuildLogs)
324 {
325 $this->includeBuildLogs = $includeBuildLogs;
326 }
327 /**
328 * @return string
329 */
330 public function getIncludeBuildLogs()
331 {
332 return $this->includeBuildLogs;
333 }
334 /**
335 * @param string[]
336 */
337 public function setIncludedFiles($includedFiles)
338 {
339 $this->includedFiles = $includedFiles;
340 }
341 /**
342 * @return string[]
343 */
344 public function getIncludedFiles()
345 {
346 return $this->includedFiles;
347 }
348 /**
349 * @param string
350 */
351 public function setName($name)
352 {
353 $this->name = $name;
354 }
355 /**
356 * @return string
357 */
358 public function getName()
359 {
360 return $this->name;
361 }
362 /**
363 * @param PubsubConfig
364 */
365 public function setPubsubConfig(PubsubConfig $pubsubConfig)
366 {
367 $this->pubsubConfig = $pubsubConfig;
368 }
369 /**
370 * @return PubsubConfig
371 */
372 public function getPubsubConfig()
373 {
374 return $this->pubsubConfig;
375 }
376 /**
377 * @param RepositoryEventConfig
378 */
379 public function setRepositoryEventConfig(RepositoryEventConfig $repositoryEventConfig)
380 {
381 $this->repositoryEventConfig = $repositoryEventConfig;
382 }
383 /**
384 * @return RepositoryEventConfig
385 */
386 public function getRepositoryEventConfig()
387 {
388 return $this->repositoryEventConfig;
389 }
390 /**
391 * @param string
392 */
393 public function setResourceName($resourceName)
394 {
395 $this->resourceName = $resourceName;
396 }
397 /**
398 * @return string
399 */
400 public function getResourceName()
401 {
402 return $this->resourceName;
403 }
404 /**
405 * @param string
406 */
407 public function setServiceAccount($serviceAccount)
408 {
409 $this->serviceAccount = $serviceAccount;
410 }
411 /**
412 * @return string
413 */
414 public function getServiceAccount()
415 {
416 return $this->serviceAccount;
417 }
418 /**
419 * @param GitRepoSource
420 */
421 public function setSourceToBuild(GitRepoSource $sourceToBuild)
422 {
423 $this->sourceToBuild = $sourceToBuild;
424 }
425 /**
426 * @return GitRepoSource
427 */
428 public function getSourceToBuild()
429 {
430 return $this->sourceToBuild;
431 }
432 /**
433 * @param string[]
434 */
435 public function setSubstitutions($substitutions)
436 {
437 $this->substitutions = $substitutions;
438 }
439 /**
440 * @return string[]
441 */
442 public function getSubstitutions()
443 {
444 return $this->substitutions;
445 }
446 /**
447 * @param string[]
448 */
449 public function setTags($tags)
450 {
451 $this->tags = $tags;
452 }
453 /**
454 * @return string[]
455 */
456 public function getTags()
457 {
458 return $this->tags;
459 }
460 /**
461 * @param RepoSource
462 */
463 public function setTriggerTemplate(RepoSource $triggerTemplate)
464 {
465 $this->triggerTemplate = $triggerTemplate;
466 }
467 /**
468 * @return RepoSource
469 */
470 public function getTriggerTemplate()
471 {
472 return $this->triggerTemplate;
473 }
474 /**
475 * @param WebhookConfig
476 */
477 public function setWebhookConfig(WebhookConfig $webhookConfig)
478 {
479 $this->webhookConfig = $webhookConfig;
480 }
481 /**
482 * @return WebhookConfig
483 */
484 public function getWebhookConfig()
485 {
486 return $this->webhookConfig;
487 }
488}
489
490// Adding a class alias for backwards compatibility with the previous class name.
491class_alias(BuildTrigger::class, 'Google_Service_CloudBuild_BuildTrigger');
Note: See TracBrowser for help on using the repository browser.