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 GceSetup extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tags';
|
---|
23 | protected $acceleratorConfigsType = AcceleratorConfig::class;
|
---|
24 | protected $acceleratorConfigsDataType = 'array';
|
---|
25 | protected $bootDiskType = BootDisk::class;
|
---|
26 | protected $bootDiskDataType = '';
|
---|
27 | protected $containerImageType = ContainerImage::class;
|
---|
28 | protected $containerImageDataType = '';
|
---|
29 | protected $dataDisksType = DataDisk::class;
|
---|
30 | protected $dataDisksDataType = 'array';
|
---|
31 | /**
|
---|
32 | * @var bool
|
---|
33 | */
|
---|
34 | public $disablePublicIp;
|
---|
35 | /**
|
---|
36 | * @var bool
|
---|
37 | */
|
---|
38 | public $enableIpForwarding;
|
---|
39 | protected $gpuDriverConfigType = GPUDriverConfig::class;
|
---|
40 | protected $gpuDriverConfigDataType = '';
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $machineType;
|
---|
45 | /**
|
---|
46 | * @var string[]
|
---|
47 | */
|
---|
48 | public $metadata;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $minCpuPlatform;
|
---|
53 | protected $networkInterfacesType = NetworkInterface::class;
|
---|
54 | protected $networkInterfacesDataType = 'array';
|
---|
55 | protected $serviceAccountsType = ServiceAccount::class;
|
---|
56 | protected $serviceAccountsDataType = 'array';
|
---|
57 | protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
|
---|
58 | protected $shieldedInstanceConfigDataType = '';
|
---|
59 | /**
|
---|
60 | * @var string[]
|
---|
61 | */
|
---|
62 | public $tags;
|
---|
63 | protected $vmImageType = VmImage::class;
|
---|
64 | protected $vmImageDataType = '';
|
---|
65 |
|
---|
66 | /**
|
---|
67 | * @param AcceleratorConfig[]
|
---|
68 | */
|
---|
69 | public function setAcceleratorConfigs($acceleratorConfigs)
|
---|
70 | {
|
---|
71 | $this->acceleratorConfigs = $acceleratorConfigs;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @return AcceleratorConfig[]
|
---|
75 | */
|
---|
76 | public function getAcceleratorConfigs()
|
---|
77 | {
|
---|
78 | return $this->acceleratorConfigs;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @param BootDisk
|
---|
82 | */
|
---|
83 | public function setBootDisk(BootDisk $bootDisk)
|
---|
84 | {
|
---|
85 | $this->bootDisk = $bootDisk;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @return BootDisk
|
---|
89 | */
|
---|
90 | public function getBootDisk()
|
---|
91 | {
|
---|
92 | return $this->bootDisk;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @param ContainerImage
|
---|
96 | */
|
---|
97 | public function setContainerImage(ContainerImage $containerImage)
|
---|
98 | {
|
---|
99 | $this->containerImage = $containerImage;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @return ContainerImage
|
---|
103 | */
|
---|
104 | public function getContainerImage()
|
---|
105 | {
|
---|
106 | return $this->containerImage;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @param DataDisk[]
|
---|
110 | */
|
---|
111 | public function setDataDisks($dataDisks)
|
---|
112 | {
|
---|
113 | $this->dataDisks = $dataDisks;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return DataDisk[]
|
---|
117 | */
|
---|
118 | public function getDataDisks()
|
---|
119 | {
|
---|
120 | return $this->dataDisks;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @param bool
|
---|
124 | */
|
---|
125 | public function setDisablePublicIp($disablePublicIp)
|
---|
126 | {
|
---|
127 | $this->disablePublicIp = $disablePublicIp;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @return bool
|
---|
131 | */
|
---|
132 | public function getDisablePublicIp()
|
---|
133 | {
|
---|
134 | return $this->disablePublicIp;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @param bool
|
---|
138 | */
|
---|
139 | public function setEnableIpForwarding($enableIpForwarding)
|
---|
140 | {
|
---|
141 | $this->enableIpForwarding = $enableIpForwarding;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @return bool
|
---|
145 | */
|
---|
146 | public function getEnableIpForwarding()
|
---|
147 | {
|
---|
148 | return $this->enableIpForwarding;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @param GPUDriverConfig
|
---|
152 | */
|
---|
153 | public function setGpuDriverConfig(GPUDriverConfig $gpuDriverConfig)
|
---|
154 | {
|
---|
155 | $this->gpuDriverConfig = $gpuDriverConfig;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @return GPUDriverConfig
|
---|
159 | */
|
---|
160 | public function getGpuDriverConfig()
|
---|
161 | {
|
---|
162 | return $this->gpuDriverConfig;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @param string
|
---|
166 | */
|
---|
167 | public function setMachineType($machineType)
|
---|
168 | {
|
---|
169 | $this->machineType = $machineType;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @return string
|
---|
173 | */
|
---|
174 | public function getMachineType()
|
---|
175 | {
|
---|
176 | return $this->machineType;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @param string[]
|
---|
180 | */
|
---|
181 | public function setMetadata($metadata)
|
---|
182 | {
|
---|
183 | $this->metadata = $metadata;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @return string[]
|
---|
187 | */
|
---|
188 | public function getMetadata()
|
---|
189 | {
|
---|
190 | return $this->metadata;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @param string
|
---|
194 | */
|
---|
195 | public function setMinCpuPlatform($minCpuPlatform)
|
---|
196 | {
|
---|
197 | $this->minCpuPlatform = $minCpuPlatform;
|
---|
198 | }
|
---|
199 | /**
|
---|
200 | * @return string
|
---|
201 | */
|
---|
202 | public function getMinCpuPlatform()
|
---|
203 | {
|
---|
204 | return $this->minCpuPlatform;
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * @param NetworkInterface[]
|
---|
208 | */
|
---|
209 | public function setNetworkInterfaces($networkInterfaces)
|
---|
210 | {
|
---|
211 | $this->networkInterfaces = $networkInterfaces;
|
---|
212 | }
|
---|
213 | /**
|
---|
214 | * @return NetworkInterface[]
|
---|
215 | */
|
---|
216 | public function getNetworkInterfaces()
|
---|
217 | {
|
---|
218 | return $this->networkInterfaces;
|
---|
219 | }
|
---|
220 | /**
|
---|
221 | * @param ServiceAccount[]
|
---|
222 | */
|
---|
223 | public function setServiceAccounts($serviceAccounts)
|
---|
224 | {
|
---|
225 | $this->serviceAccounts = $serviceAccounts;
|
---|
226 | }
|
---|
227 | /**
|
---|
228 | * @return ServiceAccount[]
|
---|
229 | */
|
---|
230 | public function getServiceAccounts()
|
---|
231 | {
|
---|
232 | return $this->serviceAccounts;
|
---|
233 | }
|
---|
234 | /**
|
---|
235 | * @param ShieldedInstanceConfig
|
---|
236 | */
|
---|
237 | public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
238 | {
|
---|
239 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
240 | }
|
---|
241 | /**
|
---|
242 | * @return ShieldedInstanceConfig
|
---|
243 | */
|
---|
244 | public function getShieldedInstanceConfig()
|
---|
245 | {
|
---|
246 | return $this->shieldedInstanceConfig;
|
---|
247 | }
|
---|
248 | /**
|
---|
249 | * @param string[]
|
---|
250 | */
|
---|
251 | public function setTags($tags)
|
---|
252 | {
|
---|
253 | $this->tags = $tags;
|
---|
254 | }
|
---|
255 | /**
|
---|
256 | * @return string[]
|
---|
257 | */
|
---|
258 | public function getTags()
|
---|
259 | {
|
---|
260 | return $this->tags;
|
---|
261 | }
|
---|
262 | /**
|
---|
263 | * @param VmImage
|
---|
264 | */
|
---|
265 | public function setVmImage(VmImage $vmImage)
|
---|
266 | {
|
---|
267 | $this->vmImage = $vmImage;
|
---|
268 | }
|
---|
269 | /**
|
---|
270 | * @return VmImage
|
---|
271 | */
|
---|
272 | public function getVmImage()
|
---|
273 | {
|
---|
274 | return $this->vmImage;
|
---|
275 | }
|
---|
276 | }
|
---|
277 |
|
---|
278 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
279 | class_alias(GceSetup::class, 'Google_Service_AIPlatformNotebooks_GceSetup');
|
---|