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

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

Upload project files

  • Property mode set to 100644
File size: 3.5 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 PipelineTask extends \Google\Collection
21{
22 protected $collection_key = 'workspaces';
23 /**
24 * @var string
25 */
26 public $name;
27 protected $paramsType = Param::class;
28 protected $paramsDataType = 'array';
29 /**
30 * @var int
31 */
32 public $retries;
33 /**
34 * @var string[]
35 */
36 public $runAfter;
37 protected $taskRefType = TaskRef::class;
38 protected $taskRefDataType = '';
39 protected $taskSpecType = EmbeddedTask::class;
40 protected $taskSpecDataType = '';
41 /**
42 * @var string
43 */
44 public $timeout;
45 protected $whenExpressionsType = WhenExpression::class;
46 protected $whenExpressionsDataType = 'array';
47 protected $workspacesType = WorkspacePipelineTaskBinding::class;
48 protected $workspacesDataType = 'array';
49
50 /**
51 * @param string
52 */
53 public function setName($name)
54 {
55 $this->name = $name;
56 }
57 /**
58 * @return string
59 */
60 public function getName()
61 {
62 return $this->name;
63 }
64 /**
65 * @param Param[]
66 */
67 public function setParams($params)
68 {
69 $this->params = $params;
70 }
71 /**
72 * @return Param[]
73 */
74 public function getParams()
75 {
76 return $this->params;
77 }
78 /**
79 * @param int
80 */
81 public function setRetries($retries)
82 {
83 $this->retries = $retries;
84 }
85 /**
86 * @return int
87 */
88 public function getRetries()
89 {
90 return $this->retries;
91 }
92 /**
93 * @param string[]
94 */
95 public function setRunAfter($runAfter)
96 {
97 $this->runAfter = $runAfter;
98 }
99 /**
100 * @return string[]
101 */
102 public function getRunAfter()
103 {
104 return $this->runAfter;
105 }
106 /**
107 * @param TaskRef
108 */
109 public function setTaskRef(TaskRef $taskRef)
110 {
111 $this->taskRef = $taskRef;
112 }
113 /**
114 * @return TaskRef
115 */
116 public function getTaskRef()
117 {
118 return $this->taskRef;
119 }
120 /**
121 * @param EmbeddedTask
122 */
123 public function setTaskSpec(EmbeddedTask $taskSpec)
124 {
125 $this->taskSpec = $taskSpec;
126 }
127 /**
128 * @return EmbeddedTask
129 */
130 public function getTaskSpec()
131 {
132 return $this->taskSpec;
133 }
134 /**
135 * @param string
136 */
137 public function setTimeout($timeout)
138 {
139 $this->timeout = $timeout;
140 }
141 /**
142 * @return string
143 */
144 public function getTimeout()
145 {
146 return $this->timeout;
147 }
148 /**
149 * @param WhenExpression[]
150 */
151 public function setWhenExpressions($whenExpressions)
152 {
153 $this->whenExpressions = $whenExpressions;
154 }
155 /**
156 * @return WhenExpression[]
157 */
158 public function getWhenExpressions()
159 {
160 return $this->whenExpressions;
161 }
162 /**
163 * @param WorkspacePipelineTaskBinding[]
164 */
165 public function setWorkspaces($workspaces)
166 {
167 $this->workspaces = $workspaces;
168 }
169 /**
170 * @return WorkspacePipelineTaskBinding[]
171 */
172 public function getWorkspaces()
173 {
174 return $this->workspaces;
175 }
176}
177
178// Adding a class alias for backwards compatibility with the previous class name.
179class_alias(PipelineTask::class, 'Google_Service_CloudBuild_PipelineTask');
Note: See TracBrowser for help on using the repository browser.