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 GoogleCloudRunV2TaskTemplate extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'volumes';
|
---|
23 | protected $containersType = GoogleCloudRunV2Container::class;
|
---|
24 | protected $containersDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $encryptionKey;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $executionEnvironment;
|
---|
33 | /**
|
---|
34 | * @var int
|
---|
35 | */
|
---|
36 | public $maxRetries;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $serviceAccount;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $timeout;
|
---|
45 | protected $volumesType = GoogleCloudRunV2Volume::class;
|
---|
46 | protected $volumesDataType = 'array';
|
---|
47 | protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
|
---|
48 | protected $vpcAccessDataType = '';
|
---|
49 |
|
---|
50 | /**
|
---|
51 | * @param GoogleCloudRunV2Container[]
|
---|
52 | */
|
---|
53 | public function setContainers($containers)
|
---|
54 | {
|
---|
55 | $this->containers = $containers;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @return GoogleCloudRunV2Container[]
|
---|
59 | */
|
---|
60 | public function getContainers()
|
---|
61 | {
|
---|
62 | return $this->containers;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @param string
|
---|
66 | */
|
---|
67 | public function setEncryptionKey($encryptionKey)
|
---|
68 | {
|
---|
69 | $this->encryptionKey = $encryptionKey;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @return string
|
---|
73 | */
|
---|
74 | public function getEncryptionKey()
|
---|
75 | {
|
---|
76 | return $this->encryptionKey;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @param string
|
---|
80 | */
|
---|
81 | public function setExecutionEnvironment($executionEnvironment)
|
---|
82 | {
|
---|
83 | $this->executionEnvironment = $executionEnvironment;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @return string
|
---|
87 | */
|
---|
88 | public function getExecutionEnvironment()
|
---|
89 | {
|
---|
90 | return $this->executionEnvironment;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @param int
|
---|
94 | */
|
---|
95 | public function setMaxRetries($maxRetries)
|
---|
96 | {
|
---|
97 | $this->maxRetries = $maxRetries;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @return int
|
---|
101 | */
|
---|
102 | public function getMaxRetries()
|
---|
103 | {
|
---|
104 | return $this->maxRetries;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @param string
|
---|
108 | */
|
---|
109 | public function setServiceAccount($serviceAccount)
|
---|
110 | {
|
---|
111 | $this->serviceAccount = $serviceAccount;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @return string
|
---|
115 | */
|
---|
116 | public function getServiceAccount()
|
---|
117 | {
|
---|
118 | return $this->serviceAccount;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @param string
|
---|
122 | */
|
---|
123 | public function setTimeout($timeout)
|
---|
124 | {
|
---|
125 | $this->timeout = $timeout;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @return string
|
---|
129 | */
|
---|
130 | public function getTimeout()
|
---|
131 | {
|
---|
132 | return $this->timeout;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @param GoogleCloudRunV2Volume[]
|
---|
136 | */
|
---|
137 | public function setVolumes($volumes)
|
---|
138 | {
|
---|
139 | $this->volumes = $volumes;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @return GoogleCloudRunV2Volume[]
|
---|
143 | */
|
---|
144 | public function getVolumes()
|
---|
145 | {
|
---|
146 | return $this->volumes;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @param GoogleCloudRunV2VpcAccess
|
---|
150 | */
|
---|
151 | public function setVpcAccess(GoogleCloudRunV2VpcAccess $vpcAccess)
|
---|
152 | {
|
---|
153 | $this->vpcAccess = $vpcAccess;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @return GoogleCloudRunV2VpcAccess
|
---|
157 | */
|
---|
158 | public function getVpcAccess()
|
---|
159 | {
|
---|
160 | return $this->vpcAccess;
|
---|
161 | }
|
---|
162 | }
|
---|
163 |
|
---|
164 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
165 | class_alias(GoogleCloudRunV2TaskTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunV2TaskTemplate');
|
---|