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\CloudRun;
|
---|
19 |
|
---|
20 | class GoogleCloudRunV2RevisionTemplate extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'volumes';
|
---|
23 | /**
|
---|
24 | * @var string[]
|
---|
25 | */
|
---|
26 | public $annotations;
|
---|
27 | protected $containersType = GoogleCloudRunV2Container::class;
|
---|
28 | protected $containersDataType = 'array';
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $encryptionKey;
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $encryptionKeyRevocationAction;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $encryptionKeyShutdownDuration;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $executionEnvironment;
|
---|
45 | /**
|
---|
46 | * @var bool
|
---|
47 | */
|
---|
48 | public $healthCheckDisabled;
|
---|
49 | /**
|
---|
50 | * @var string[]
|
---|
51 | */
|
---|
52 | public $labels;
|
---|
53 | /**
|
---|
54 | * @var int
|
---|
55 | */
|
---|
56 | public $maxInstanceRequestConcurrency;
|
---|
57 | protected $nodeSelectorType = GoogleCloudRunV2NodeSelector::class;
|
---|
58 | protected $nodeSelectorDataType = '';
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $revision;
|
---|
63 | protected $scalingType = GoogleCloudRunV2RevisionScaling::class;
|
---|
64 | protected $scalingDataType = '';
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $serviceAccount;
|
---|
69 | protected $serviceMeshType = GoogleCloudRunV2ServiceMesh::class;
|
---|
70 | protected $serviceMeshDataType = '';
|
---|
71 | /**
|
---|
72 | * @var bool
|
---|
73 | */
|
---|
74 | public $sessionAffinity;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $timeout;
|
---|
79 | protected $volumesType = GoogleCloudRunV2Volume::class;
|
---|
80 | protected $volumesDataType = 'array';
|
---|
81 | protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
|
---|
82 | protected $vpcAccessDataType = '';
|
---|
83 |
|
---|
84 | /**
|
---|
85 | * @param string[]
|
---|
86 | */
|
---|
87 | public function setAnnotations($annotations)
|
---|
88 | {
|
---|
89 | $this->annotations = $annotations;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @return string[]
|
---|
93 | */
|
---|
94 | public function getAnnotations()
|
---|
95 | {
|
---|
96 | return $this->annotations;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @param GoogleCloudRunV2Container[]
|
---|
100 | */
|
---|
101 | public function setContainers($containers)
|
---|
102 | {
|
---|
103 | $this->containers = $containers;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return GoogleCloudRunV2Container[]
|
---|
107 | */
|
---|
108 | public function getContainers()
|
---|
109 | {
|
---|
110 | return $this->containers;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string
|
---|
114 | */
|
---|
115 | public function setEncryptionKey($encryptionKey)
|
---|
116 | {
|
---|
117 | $this->encryptionKey = $encryptionKey;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string
|
---|
121 | */
|
---|
122 | public function getEncryptionKey()
|
---|
123 | {
|
---|
124 | return $this->encryptionKey;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param string
|
---|
128 | */
|
---|
129 | public function setEncryptionKeyRevocationAction($encryptionKeyRevocationAction)
|
---|
130 | {
|
---|
131 | $this->encryptionKeyRevocationAction = $encryptionKeyRevocationAction;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return string
|
---|
135 | */
|
---|
136 | public function getEncryptionKeyRevocationAction()
|
---|
137 | {
|
---|
138 | return $this->encryptionKeyRevocationAction;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param string
|
---|
142 | */
|
---|
143 | public function setEncryptionKeyShutdownDuration($encryptionKeyShutdownDuration)
|
---|
144 | {
|
---|
145 | $this->encryptionKeyShutdownDuration = $encryptionKeyShutdownDuration;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return string
|
---|
149 | */
|
---|
150 | public function getEncryptionKeyShutdownDuration()
|
---|
151 | {
|
---|
152 | return $this->encryptionKeyShutdownDuration;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param string
|
---|
156 | */
|
---|
157 | public function setExecutionEnvironment($executionEnvironment)
|
---|
158 | {
|
---|
159 | $this->executionEnvironment = $executionEnvironment;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return string
|
---|
163 | */
|
---|
164 | public function getExecutionEnvironment()
|
---|
165 | {
|
---|
166 | return $this->executionEnvironment;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param bool
|
---|
170 | */
|
---|
171 | public function setHealthCheckDisabled($healthCheckDisabled)
|
---|
172 | {
|
---|
173 | $this->healthCheckDisabled = $healthCheckDisabled;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return bool
|
---|
177 | */
|
---|
178 | public function getHealthCheckDisabled()
|
---|
179 | {
|
---|
180 | return $this->healthCheckDisabled;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param string[]
|
---|
184 | */
|
---|
185 | public function setLabels($labels)
|
---|
186 | {
|
---|
187 | $this->labels = $labels;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return string[]
|
---|
191 | */
|
---|
192 | public function getLabels()
|
---|
193 | {
|
---|
194 | return $this->labels;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param int
|
---|
198 | */
|
---|
199 | public function setMaxInstanceRequestConcurrency($maxInstanceRequestConcurrency)
|
---|
200 | {
|
---|
201 | $this->maxInstanceRequestConcurrency = $maxInstanceRequestConcurrency;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return int
|
---|
205 | */
|
---|
206 | public function getMaxInstanceRequestConcurrency()
|
---|
207 | {
|
---|
208 | return $this->maxInstanceRequestConcurrency;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param GoogleCloudRunV2NodeSelector
|
---|
212 | */
|
---|
213 | public function setNodeSelector(GoogleCloudRunV2NodeSelector $nodeSelector)
|
---|
214 | {
|
---|
215 | $this->nodeSelector = $nodeSelector;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return GoogleCloudRunV2NodeSelector
|
---|
219 | */
|
---|
220 | public function getNodeSelector()
|
---|
221 | {
|
---|
222 | return $this->nodeSelector;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string
|
---|
226 | */
|
---|
227 | public function setRevision($revision)
|
---|
228 | {
|
---|
229 | $this->revision = $revision;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string
|
---|
233 | */
|
---|
234 | public function getRevision()
|
---|
235 | {
|
---|
236 | return $this->revision;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param GoogleCloudRunV2RevisionScaling
|
---|
240 | */
|
---|
241 | public function setScaling(GoogleCloudRunV2RevisionScaling $scaling)
|
---|
242 | {
|
---|
243 | $this->scaling = $scaling;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return GoogleCloudRunV2RevisionScaling
|
---|
247 | */
|
---|
248 | public function getScaling()
|
---|
249 | {
|
---|
250 | return $this->scaling;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string
|
---|
254 | */
|
---|
255 | public function setServiceAccount($serviceAccount)
|
---|
256 | {
|
---|
257 | $this->serviceAccount = $serviceAccount;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string
|
---|
261 | */
|
---|
262 | public function getServiceAccount()
|
---|
263 | {
|
---|
264 | return $this->serviceAccount;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param GoogleCloudRunV2ServiceMesh
|
---|
268 | */
|
---|
269 | public function setServiceMesh(GoogleCloudRunV2ServiceMesh $serviceMesh)
|
---|
270 | {
|
---|
271 | $this->serviceMesh = $serviceMesh;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return GoogleCloudRunV2ServiceMesh
|
---|
275 | */
|
---|
276 | public function getServiceMesh()
|
---|
277 | {
|
---|
278 | return $this->serviceMesh;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param bool
|
---|
282 | */
|
---|
283 | public function setSessionAffinity($sessionAffinity)
|
---|
284 | {
|
---|
285 | $this->sessionAffinity = $sessionAffinity;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return bool
|
---|
289 | */
|
---|
290 | public function getSessionAffinity()
|
---|
291 | {
|
---|
292 | return $this->sessionAffinity;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param string
|
---|
296 | */
|
---|
297 | public function setTimeout($timeout)
|
---|
298 | {
|
---|
299 | $this->timeout = $timeout;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return string
|
---|
303 | */
|
---|
304 | public function getTimeout()
|
---|
305 | {
|
---|
306 | return $this->timeout;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param GoogleCloudRunV2Volume[]
|
---|
310 | */
|
---|
311 | public function setVolumes($volumes)
|
---|
312 | {
|
---|
313 | $this->volumes = $volumes;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return GoogleCloudRunV2Volume[]
|
---|
317 | */
|
---|
318 | public function getVolumes()
|
---|
319 | {
|
---|
320 | return $this->volumes;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param GoogleCloudRunV2VpcAccess
|
---|
324 | */
|
---|
325 | public function setVpcAccess(GoogleCloudRunV2VpcAccess $vpcAccess)
|
---|
326 | {
|
---|
327 | $this->vpcAccess = $vpcAccess;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return GoogleCloudRunV2VpcAccess
|
---|
331 | */
|
---|
332 | public function getVpcAccess()
|
---|
333 | {
|
---|
334 | return $this->vpcAccess;
|
---|
335 | }
|
---|
336 | }
|
---|
337 |
|
---|
338 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
339 | class_alias(GoogleCloudRunV2RevisionTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunV2RevisionTemplate');
|
---|