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\AIPlatformNotebooks;
|
---|
19 |
|
---|
20 | class VirtualMachineConfig extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tags';
|
---|
23 | protected $acceleratorConfigType = RuntimeAcceleratorConfig::class;
|
---|
24 | protected $acceleratorConfigDataType = '';
|
---|
25 | public $acceleratorConfig;
|
---|
26 | protected $bootImageType = BootImage::class;
|
---|
27 | protected $bootImageDataType = '';
|
---|
28 | public $bootImage;
|
---|
29 | protected $containerImagesType = ContainerImage::class;
|
---|
30 | protected $containerImagesDataType = 'array';
|
---|
31 | public $containerImages = [];
|
---|
32 | protected $dataDiskType = LocalDisk::class;
|
---|
33 | protected $dataDiskDataType = '';
|
---|
34 | public $dataDisk;
|
---|
35 | protected $encryptionConfigType = EncryptionConfig::class;
|
---|
36 | protected $encryptionConfigDataType = '';
|
---|
37 | public $encryptionConfig;
|
---|
38 | /**
|
---|
39 | * @var string[]
|
---|
40 | */
|
---|
41 | public $guestAttributes = [];
|
---|
42 | /**
|
---|
43 | * @var bool
|
---|
44 | */
|
---|
45 | public $internalIpOnly;
|
---|
46 | /**
|
---|
47 | * @var string[]
|
---|
48 | */
|
---|
49 | public $labels = [];
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $machineType;
|
---|
54 | /**
|
---|
55 | * @var string[]
|
---|
56 | */
|
---|
57 | public $metadata = [];
|
---|
58 | /**
|
---|
59 | * @var string
|
---|
60 | */
|
---|
61 | public $network;
|
---|
62 | /**
|
---|
63 | * @var string
|
---|
64 | */
|
---|
65 | public $nicType;
|
---|
66 | /**
|
---|
67 | * @var string
|
---|
68 | */
|
---|
69 | public $reservedIpRange;
|
---|
70 | protected $shieldedInstanceConfigType = RuntimeShieldedInstanceConfig::class;
|
---|
71 | protected $shieldedInstanceConfigDataType = '';
|
---|
72 | public $shieldedInstanceConfig;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $subnet;
|
---|
77 | /**
|
---|
78 | * @var string[]
|
---|
79 | */
|
---|
80 | public $tags = [];
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $zone;
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * @param RuntimeAcceleratorConfig
|
---|
88 | */
|
---|
89 | public function setAcceleratorConfig(RuntimeAcceleratorConfig $acceleratorConfig)
|
---|
90 | {
|
---|
91 | $this->acceleratorConfig = $acceleratorConfig;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return RuntimeAcceleratorConfig
|
---|
95 | */
|
---|
96 | public function getAcceleratorConfig()
|
---|
97 | {
|
---|
98 | return $this->acceleratorConfig;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param BootImage
|
---|
102 | */
|
---|
103 | public function setBootImage(BootImage $bootImage)
|
---|
104 | {
|
---|
105 | $this->bootImage = $bootImage;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return BootImage
|
---|
109 | */
|
---|
110 | public function getBootImage()
|
---|
111 | {
|
---|
112 | return $this->bootImage;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param ContainerImage[]
|
---|
116 | */
|
---|
117 | public function setContainerImages($containerImages)
|
---|
118 | {
|
---|
119 | $this->containerImages = $containerImages;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return ContainerImage[]
|
---|
123 | */
|
---|
124 | public function getContainerImages()
|
---|
125 | {
|
---|
126 | return $this->containerImages;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param LocalDisk
|
---|
130 | */
|
---|
131 | public function setDataDisk(LocalDisk $dataDisk)
|
---|
132 | {
|
---|
133 | $this->dataDisk = $dataDisk;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return LocalDisk
|
---|
137 | */
|
---|
138 | public function getDataDisk()
|
---|
139 | {
|
---|
140 | return $this->dataDisk;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param EncryptionConfig
|
---|
144 | */
|
---|
145 | public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
|
---|
146 | {
|
---|
147 | $this->encryptionConfig = $encryptionConfig;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return EncryptionConfig
|
---|
151 | */
|
---|
152 | public function getEncryptionConfig()
|
---|
153 | {
|
---|
154 | return $this->encryptionConfig;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param string[]
|
---|
158 | */
|
---|
159 | public function setGuestAttributes($guestAttributes)
|
---|
160 | {
|
---|
161 | $this->guestAttributes = $guestAttributes;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return string[]
|
---|
165 | */
|
---|
166 | public function getGuestAttributes()
|
---|
167 | {
|
---|
168 | return $this->guestAttributes;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param bool
|
---|
172 | */
|
---|
173 | public function setInternalIpOnly($internalIpOnly)
|
---|
174 | {
|
---|
175 | $this->internalIpOnly = $internalIpOnly;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return bool
|
---|
179 | */
|
---|
180 | public function getInternalIpOnly()
|
---|
181 | {
|
---|
182 | return $this->internalIpOnly;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param string[]
|
---|
186 | */
|
---|
187 | public function setLabels($labels)
|
---|
188 | {
|
---|
189 | $this->labels = $labels;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return string[]
|
---|
193 | */
|
---|
194 | public function getLabels()
|
---|
195 | {
|
---|
196 | return $this->labels;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param string
|
---|
200 | */
|
---|
201 | public function setMachineType($machineType)
|
---|
202 | {
|
---|
203 | $this->machineType = $machineType;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return string
|
---|
207 | */
|
---|
208 | public function getMachineType()
|
---|
209 | {
|
---|
210 | return $this->machineType;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @param string[]
|
---|
214 | */
|
---|
215 | public function setMetadata($metadata)
|
---|
216 | {
|
---|
217 | $this->metadata = $metadata;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @return string[]
|
---|
221 | */
|
---|
222 | public function getMetadata()
|
---|
223 | {
|
---|
224 | return $this->metadata;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @param string
|
---|
228 | */
|
---|
229 | public function setNetwork($network)
|
---|
230 | {
|
---|
231 | $this->network = $network;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @return string
|
---|
235 | */
|
---|
236 | public function getNetwork()
|
---|
237 | {
|
---|
238 | return $this->network;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @param string
|
---|
242 | */
|
---|
243 | public function setNicType($nicType)
|
---|
244 | {
|
---|
245 | $this->nicType = $nicType;
|
---|
246 | }
|
---|
247 | /**
|
---|
248 | * @return string
|
---|
249 | */
|
---|
250 | public function getNicType()
|
---|
251 | {
|
---|
252 | return $this->nicType;
|
---|
253 | }
|
---|
254 | /**
|
---|
255 | * @param string
|
---|
256 | */
|
---|
257 | public function setReservedIpRange($reservedIpRange)
|
---|
258 | {
|
---|
259 | $this->reservedIpRange = $reservedIpRange;
|
---|
260 | }
|
---|
261 | /**
|
---|
262 | * @return string
|
---|
263 | */
|
---|
264 | public function getReservedIpRange()
|
---|
265 | {
|
---|
266 | return $this->reservedIpRange;
|
---|
267 | }
|
---|
268 | /**
|
---|
269 | * @param RuntimeShieldedInstanceConfig
|
---|
270 | */
|
---|
271 | public function setShieldedInstanceConfig(RuntimeShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
272 | {
|
---|
273 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
274 | }
|
---|
275 | /**
|
---|
276 | * @return RuntimeShieldedInstanceConfig
|
---|
277 | */
|
---|
278 | public function getShieldedInstanceConfig()
|
---|
279 | {
|
---|
280 | return $this->shieldedInstanceConfig;
|
---|
281 | }
|
---|
282 | /**
|
---|
283 | * @param string
|
---|
284 | */
|
---|
285 | public function setSubnet($subnet)
|
---|
286 | {
|
---|
287 | $this->subnet = $subnet;
|
---|
288 | }
|
---|
289 | /**
|
---|
290 | * @return string
|
---|
291 | */
|
---|
292 | public function getSubnet()
|
---|
293 | {
|
---|
294 | return $this->subnet;
|
---|
295 | }
|
---|
296 | /**
|
---|
297 | * @param string[]
|
---|
298 | */
|
---|
299 | public function setTags($tags)
|
---|
300 | {
|
---|
301 | $this->tags = $tags;
|
---|
302 | }
|
---|
303 | /**
|
---|
304 | * @return string[]
|
---|
305 | */
|
---|
306 | public function getTags()
|
---|
307 | {
|
---|
308 | return $this->tags;
|
---|
309 | }
|
---|
310 | /**
|
---|
311 | * @param string
|
---|
312 | */
|
---|
313 | public function setZone($zone)
|
---|
314 | {
|
---|
315 | $this->zone = $zone;
|
---|
316 | }
|
---|
317 | /**
|
---|
318 | * @return string
|
---|
319 | */
|
---|
320 | public function getZone()
|
---|
321 | {
|
---|
322 | return $this->zone;
|
---|
323 | }
|
---|
324 | }
|
---|
325 |
|
---|
326 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
327 | class_alias(VirtualMachineConfig::class, 'Google_Service_AIPlatformNotebooks_VirtualMachineConfig');
|
---|