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\CloudWorkstations;
|
---|
19 |
|
---|
20 | class GceInstance extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tags';
|
---|
23 | protected $acceleratorsType = Accelerator::class;
|
---|
24 | protected $acceleratorsDataType = 'array';
|
---|
25 | protected $boostConfigsType = BoostConfig::class;
|
---|
26 | protected $boostConfigsDataType = 'array';
|
---|
27 | /**
|
---|
28 | * @var int
|
---|
29 | */
|
---|
30 | public $bootDiskSizeGb;
|
---|
31 | protected $confidentialInstanceConfigType = GceConfidentialInstanceConfig::class;
|
---|
32 | protected $confidentialInstanceConfigDataType = '';
|
---|
33 | /**
|
---|
34 | * @var bool
|
---|
35 | */
|
---|
36 | public $disablePublicIpAddresses;
|
---|
37 | /**
|
---|
38 | * @var bool
|
---|
39 | */
|
---|
40 | public $disableSsh;
|
---|
41 | /**
|
---|
42 | * @var bool
|
---|
43 | */
|
---|
44 | public $enableNestedVirtualization;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $machineType;
|
---|
49 | /**
|
---|
50 | * @var int
|
---|
51 | */
|
---|
52 | public $poolSize;
|
---|
53 | /**
|
---|
54 | * @var int
|
---|
55 | */
|
---|
56 | public $pooledInstances;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $serviceAccount;
|
---|
61 | /**
|
---|
62 | * @var string[]
|
---|
63 | */
|
---|
64 | public $serviceAccountScopes;
|
---|
65 | protected $shieldedInstanceConfigType = GceShieldedInstanceConfig::class;
|
---|
66 | protected $shieldedInstanceConfigDataType = '';
|
---|
67 | /**
|
---|
68 | * @var string[]
|
---|
69 | */
|
---|
70 | public $tags;
|
---|
71 | /**
|
---|
72 | * @var string[]
|
---|
73 | */
|
---|
74 | public $vmTags;
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * @param Accelerator[]
|
---|
78 | */
|
---|
79 | public function setAccelerators($accelerators)
|
---|
80 | {
|
---|
81 | $this->accelerators = $accelerators;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return Accelerator[]
|
---|
85 | */
|
---|
86 | public function getAccelerators()
|
---|
87 | {
|
---|
88 | return $this->accelerators;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @param BoostConfig[]
|
---|
92 | */
|
---|
93 | public function setBoostConfigs($boostConfigs)
|
---|
94 | {
|
---|
95 | $this->boostConfigs = $boostConfigs;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return BoostConfig[]
|
---|
99 | */
|
---|
100 | public function getBoostConfigs()
|
---|
101 | {
|
---|
102 | return $this->boostConfigs;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param int
|
---|
106 | */
|
---|
107 | public function setBootDiskSizeGb($bootDiskSizeGb)
|
---|
108 | {
|
---|
109 | $this->bootDiskSizeGb = $bootDiskSizeGb;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return int
|
---|
113 | */
|
---|
114 | public function getBootDiskSizeGb()
|
---|
115 | {
|
---|
116 | return $this->bootDiskSizeGb;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param GceConfidentialInstanceConfig
|
---|
120 | */
|
---|
121 | public function setConfidentialInstanceConfig(GceConfidentialInstanceConfig $confidentialInstanceConfig)
|
---|
122 | {
|
---|
123 | $this->confidentialInstanceConfig = $confidentialInstanceConfig;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return GceConfidentialInstanceConfig
|
---|
127 | */
|
---|
128 | public function getConfidentialInstanceConfig()
|
---|
129 | {
|
---|
130 | return $this->confidentialInstanceConfig;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param bool
|
---|
134 | */
|
---|
135 | public function setDisablePublicIpAddresses($disablePublicIpAddresses)
|
---|
136 | {
|
---|
137 | $this->disablePublicIpAddresses = $disablePublicIpAddresses;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return bool
|
---|
141 | */
|
---|
142 | public function getDisablePublicIpAddresses()
|
---|
143 | {
|
---|
144 | return $this->disablePublicIpAddresses;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param bool
|
---|
148 | */
|
---|
149 | public function setDisableSsh($disableSsh)
|
---|
150 | {
|
---|
151 | $this->disableSsh = $disableSsh;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return bool
|
---|
155 | */
|
---|
156 | public function getDisableSsh()
|
---|
157 | {
|
---|
158 | return $this->disableSsh;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param bool
|
---|
162 | */
|
---|
163 | public function setEnableNestedVirtualization($enableNestedVirtualization)
|
---|
164 | {
|
---|
165 | $this->enableNestedVirtualization = $enableNestedVirtualization;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return bool
|
---|
169 | */
|
---|
170 | public function getEnableNestedVirtualization()
|
---|
171 | {
|
---|
172 | return $this->enableNestedVirtualization;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setMachineType($machineType)
|
---|
178 | {
|
---|
179 | $this->machineType = $machineType;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getMachineType()
|
---|
185 | {
|
---|
186 | return $this->machineType;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param int
|
---|
190 | */
|
---|
191 | public function setPoolSize($poolSize)
|
---|
192 | {
|
---|
193 | $this->poolSize = $poolSize;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return int
|
---|
197 | */
|
---|
198 | public function getPoolSize()
|
---|
199 | {
|
---|
200 | return $this->poolSize;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param int
|
---|
204 | */
|
---|
205 | public function setPooledInstances($pooledInstances)
|
---|
206 | {
|
---|
207 | $this->pooledInstances = $pooledInstances;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return int
|
---|
211 | */
|
---|
212 | public function getPooledInstances()
|
---|
213 | {
|
---|
214 | return $this->pooledInstances;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string
|
---|
218 | */
|
---|
219 | public function setServiceAccount($serviceAccount)
|
---|
220 | {
|
---|
221 | $this->serviceAccount = $serviceAccount;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string
|
---|
225 | */
|
---|
226 | public function getServiceAccount()
|
---|
227 | {
|
---|
228 | return $this->serviceAccount;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string[]
|
---|
232 | */
|
---|
233 | public function setServiceAccountScopes($serviceAccountScopes)
|
---|
234 | {
|
---|
235 | $this->serviceAccountScopes = $serviceAccountScopes;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string[]
|
---|
239 | */
|
---|
240 | public function getServiceAccountScopes()
|
---|
241 | {
|
---|
242 | return $this->serviceAccountScopes;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param GceShieldedInstanceConfig
|
---|
246 | */
|
---|
247 | public function setShieldedInstanceConfig(GceShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
248 | {
|
---|
249 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return GceShieldedInstanceConfig
|
---|
253 | */
|
---|
254 | public function getShieldedInstanceConfig()
|
---|
255 | {
|
---|
256 | return $this->shieldedInstanceConfig;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string[]
|
---|
260 | */
|
---|
261 | public function setTags($tags)
|
---|
262 | {
|
---|
263 | $this->tags = $tags;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string[]
|
---|
267 | */
|
---|
268 | public function getTags()
|
---|
269 | {
|
---|
270 | return $this->tags;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string[]
|
---|
274 | */
|
---|
275 | public function setVmTags($vmTags)
|
---|
276 | {
|
---|
277 | $this->vmTags = $vmTags;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string[]
|
---|
281 | */
|
---|
282 | public function getVmTags()
|
---|
283 | {
|
---|
284 | return $this->vmTags;
|
---|
285 | }
|
---|
286 | }
|
---|
287 |
|
---|
288 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
289 | class_alias(GceInstance::class, 'Google_Service_CloudWorkstations_GceInstance');
|
---|