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\CloudFunctions;
19
20class CloudFunction extends \Google\Collection
21{
22  protected $collection_key = 'secretVolumes';
23  /**
24   * @var int
25   */
26  public $availableMemoryMb;
27  /**
28   * @var string[]
29   */
30  public $buildEnvironmentVariables;
31  /**
32   * @var string
33   */
34  public $buildId;
35  /**
36   * @var string
37   */
38  public $buildName;
39  /**
40   * @var string
41   */
42  public $buildWorkerPool;
43  /**
44   * @var string
45   */
46  public $description;
47  /**
48   * @var string
49   */
50  public $dockerRegistry;
51  /**
52   * @var string
53   */
54  public $dockerRepository;
55  /**
56   * @var string
57   */
58  public $entryPoint;
59  /**
60   * @var string[]
61   */
62  public $environmentVariables;
63  protected $eventTriggerType = EventTrigger::class;
64  protected $eventTriggerDataType = '';
65  protected $httpsTriggerType = HttpsTrigger::class;
66  protected $httpsTriggerDataType = '';
67  /**
68   * @var string
69   */
70  public $ingressSettings;
71  /**
72   * @var string
73   */
74  public $kmsKeyName;
75  /**
76   * @var string[]
77   */
78  public $labels;
79  /**
80   * @var int
81   */
82  public $maxInstances;
83  /**
84   * @var int
85   */
86  public $minInstances;
87  /**
88   * @var string
89   */
90  public $name;
91  /**
92   * @var string
93   */
94  public $network;
95  /**
96   * @var string
97   */
98  public $runtime;
99  protected $secretEnvironmentVariablesType = SecretEnvVar::class;
100  protected $secretEnvironmentVariablesDataType = 'array';
101  protected $secretVolumesType = SecretVolume::class;
102  protected $secretVolumesDataType = 'array';
103  /**
104   * @var string
105   */
106  public $serviceAccountEmail;
107  /**
108   * @var string
109   */
110  public $sourceArchiveUrl;
111  protected $sourceRepositoryType = SourceRepository::class;
112  protected $sourceRepositoryDataType = '';
113  /**
114   * @var string
115   */
116  public $sourceToken;
117  /**
118   * @var string
119   */
120  public $sourceUploadUrl;
121  /**
122   * @var string
123   */
124  public $status;
125  /**
126   * @var string
127   */
128  public $timeout;
129  /**
130   * @var string
131   */
132  public $updateTime;
133  /**
134   * @var string
135   */
136  public $versionId;
137  /**
138   * @var string
139   */
140  public $vpcConnector;
141  /**
142   * @var string
143   */
144  public $vpcConnectorEgressSettings;
145
146  /**
147   * @param int
148   */
149  public function setAvailableMemoryMb($availableMemoryMb)
150  {
151    $this->availableMemoryMb = $availableMemoryMb;
152  }
153  /**
154   * @return int
155   */
156  public function getAvailableMemoryMb()
157  {
158    return $this->availableMemoryMb;
159  }
160  /**
161   * @param string[]
162   */
163  public function setBuildEnvironmentVariables($buildEnvironmentVariables)
164  {
165    $this->buildEnvironmentVariables = $buildEnvironmentVariables;
166  }
167  /**
168   * @return string[]
169   */
170  public function getBuildEnvironmentVariables()
171  {
172    return $this->buildEnvironmentVariables;
173  }
174  /**
175   * @param string
176   */
177  public function setBuildId($buildId)
178  {
179    $this->buildId = $buildId;
180  }
181  /**
182   * @return string
183   */
184  public function getBuildId()
185  {
186    return $this->buildId;
187  }
188  /**
189   * @param string
190   */
191  public function setBuildName($buildName)
192  {
193    $this->buildName = $buildName;
194  }
195  /**
196   * @return string
197   */
198  public function getBuildName()
199  {
200    return $this->buildName;
201  }
202  /**
203   * @param string
204   */
205  public function setBuildWorkerPool($buildWorkerPool)
206  {
207    $this->buildWorkerPool = $buildWorkerPool;
208  }
209  /**
210   * @return string
211   */
212  public function getBuildWorkerPool()
213  {
214    return $this->buildWorkerPool;
215  }
216  /**
217   * @param string
218   */
219  public function setDescription($description)
220  {
221    $this->description = $description;
222  }
223  /**
224   * @return string
225   */
226  public function getDescription()
227  {
228    return $this->description;
229  }
230  /**
231   * @param string
232   */
233  public function setDockerRegistry($dockerRegistry)
234  {
235    $this->dockerRegistry = $dockerRegistry;
236  }
237  /**
238   * @return string
239   */
240  public function getDockerRegistry()
241  {
242    return $this->dockerRegistry;
243  }
244  /**
245   * @param string
246   */
247  public function setDockerRepository($dockerRepository)
248  {
249    $this->dockerRepository = $dockerRepository;
250  }
251  /**
252   * @return string
253   */
254  public function getDockerRepository()
255  {
256    return $this->dockerRepository;
257  }
258  /**
259   * @param string
260   */
261  public function setEntryPoint($entryPoint)
262  {
263    $this->entryPoint = $entryPoint;
264  }
265  /**
266   * @return string
267   */
268  public function getEntryPoint()
269  {
270    return $this->entryPoint;
271  }
272  /**
273   * @param string[]
274   */
275  public function setEnvironmentVariables($environmentVariables)
276  {
277    $this->environmentVariables = $environmentVariables;
278  }
279  /**
280   * @return string[]
281   */
282  public function getEnvironmentVariables()
283  {
284    return $this->environmentVariables;
285  }
286  /**
287   * @param EventTrigger
288   */
289  public function setEventTrigger(EventTrigger $eventTrigger)
290  {
291    $this->eventTrigger = $eventTrigger;
292  }
293  /**
294   * @return EventTrigger
295   */
296  public function getEventTrigger()
297  {
298    return $this->eventTrigger;
299  }
300  /**
301   * @param HttpsTrigger
302   */
303  public function setHttpsTrigger(HttpsTrigger $httpsTrigger)
304  {
305    $this->httpsTrigger = $httpsTrigger;
306  }
307  /**
308   * @return HttpsTrigger
309   */
310  public function getHttpsTrigger()
311  {
312    return $this->httpsTrigger;
313  }
314  /**
315   * @param string
316   */
317  public function setIngressSettings($ingressSettings)
318  {
319    $this->ingressSettings = $ingressSettings;
320  }
321  /**
322   * @return string
323   */
324  public function getIngressSettings()
325  {
326    return $this->ingressSettings;
327  }
328  /**
329   * @param string
330   */
331  public function setKmsKeyName($kmsKeyName)
332  {
333    $this->kmsKeyName = $kmsKeyName;
334  }
335  /**
336   * @return string
337   */
338  public function getKmsKeyName()
339  {
340    return $this->kmsKeyName;
341  }
342  /**
343   * @param string[]
344   */
345  public function setLabels($labels)
346  {
347    $this->labels = $labels;
348  }
349  /**
350   * @return string[]
351   */
352  public function getLabels()
353  {
354    return $this->labels;
355  }
356  /**
357   * @param int
358   */
359  public function setMaxInstances($maxInstances)
360  {
361    $this->maxInstances = $maxInstances;
362  }
363  /**
364   * @return int
365   */
366  public function getMaxInstances()
367  {
368    return $this->maxInstances;
369  }
370  /**
371   * @param int
372   */
373  public function setMinInstances($minInstances)
374  {
375    $this->minInstances = $minInstances;
376  }
377  /**
378   * @return int
379   */
380  public function getMinInstances()
381  {
382    return $this->minInstances;
383  }
384  /**
385   * @param string
386   */
387  public function setName($name)
388  {
389    $this->name = $name;
390  }
391  /**
392   * @return string
393   */
394  public function getName()
395  {
396    return $this->name;
397  }
398  /**
399   * @param string
400   */
401  public function setNetwork($network)
402  {
403    $this->network = $network;
404  }
405  /**
406   * @return string
407   */
408  public function getNetwork()
409  {
410    return $this->network;
411  }
412  /**
413   * @param string
414   */
415  public function setRuntime($runtime)
416  {
417    $this->runtime = $runtime;
418  }
419  /**
420   * @return string
421   */
422  public function getRuntime()
423  {
424    return $this->runtime;
425  }
426  /**
427   * @param SecretEnvVar[]
428   */
429  public function setSecretEnvironmentVariables($secretEnvironmentVariables)
430  {
431    $this->secretEnvironmentVariables = $secretEnvironmentVariables;
432  }
433  /**
434   * @return SecretEnvVar[]
435   */
436  public function getSecretEnvironmentVariables()
437  {
438    return $this->secretEnvironmentVariables;
439  }
440  /**
441   * @param SecretVolume[]
442   */
443  public function setSecretVolumes($secretVolumes)
444  {
445    $this->secretVolumes = $secretVolumes;
446  }
447  /**
448   * @return SecretVolume[]
449   */
450  public function getSecretVolumes()
451  {
452    return $this->secretVolumes;
453  }
454  /**
455   * @param string
456   */
457  public function setServiceAccountEmail($serviceAccountEmail)
458  {
459    $this->serviceAccountEmail = $serviceAccountEmail;
460  }
461  /**
462   * @return string
463   */
464  public function getServiceAccountEmail()
465  {
466    return $this->serviceAccountEmail;
467  }
468  /**
469   * @param string
470   */
471  public function setSourceArchiveUrl($sourceArchiveUrl)
472  {
473    $this->sourceArchiveUrl = $sourceArchiveUrl;
474  }
475  /**
476   * @return string
477   */
478  public function getSourceArchiveUrl()
479  {
480    return $this->sourceArchiveUrl;
481  }
482  /**
483   * @param SourceRepository
484   */
485  public function setSourceRepository(SourceRepository $sourceRepository)
486  {
487    $this->sourceRepository = $sourceRepository;
488  }
489  /**
490   * @return SourceRepository
491   */
492  public function getSourceRepository()
493  {
494    return $this->sourceRepository;
495  }
496  /**
497   * @param string
498   */
499  public function setSourceToken($sourceToken)
500  {
501    $this->sourceToken = $sourceToken;
502  }
503  /**
504   * @return string
505   */
506  public function getSourceToken()
507  {
508    return $this->sourceToken;
509  }
510  /**
511   * @param string
512   */
513  public function setSourceUploadUrl($sourceUploadUrl)
514  {
515    $this->sourceUploadUrl = $sourceUploadUrl;
516  }
517  /**
518   * @return string
519   */
520  public function getSourceUploadUrl()
521  {
522    return $this->sourceUploadUrl;
523  }
524  /**
525   * @param string
526   */
527  public function setStatus($status)
528  {
529    $this->status = $status;
530  }
531  /**
532   * @return string
533   */
534  public function getStatus()
535  {
536    return $this->status;
537  }
538  /**
539   * @param string
540   */
541  public function setTimeout($timeout)
542  {
543    $this->timeout = $timeout;
544  }
545  /**
546   * @return string
547   */
548  public function getTimeout()
549  {
550    return $this->timeout;
551  }
552  /**
553   * @param string
554   */
555  public function setUpdateTime($updateTime)
556  {
557    $this->updateTime = $updateTime;
558  }
559  /**
560   * @return string
561   */
562  public function getUpdateTime()
563  {
564    return $this->updateTime;
565  }
566  /**
567   * @param string
568   */
569  public function setVersionId($versionId)
570  {
571    $this->versionId = $versionId;
572  }
573  /**
574   * @return string
575   */
576  public function getVersionId()
577  {
578    return $this->versionId;
579  }
580  /**
581   * @param string
582   */
583  public function setVpcConnector($vpcConnector)
584  {
585    $this->vpcConnector = $vpcConnector;
586  }
587  /**
588   * @return string
589   */
590  public function getVpcConnector()
591  {
592    return $this->vpcConnector;
593  }
594  /**
595   * @param string
596   */
597  public function setVpcConnectorEgressSettings($vpcConnectorEgressSettings)
598  {
599    $this->vpcConnectorEgressSettings = $vpcConnectorEgressSettings;
600  }
601  /**
602   * @return string
603   */
604  public function getVpcConnectorEgressSettings()
605  {
606    return $this->vpcConnectorEgressSettings;
607  }
608}
609
610// Adding a class alias for backwards compatibility with the previous class name.
611class_alias(CloudFunction::class, 'Google_Service_CloudFunctions_CloudFunction');
612