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\Backupdr;
|
---|
19 |
|
---|
20 | class AttachedDisk extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'license';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $autoDelete;
|
---|
27 | /**
|
---|
28 | * @var bool
|
---|
29 | */
|
---|
30 | public $boot;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $deviceName;
|
---|
35 | protected $diskEncryptionKeyType = CustomerEncryptionKey::class;
|
---|
36 | protected $diskEncryptionKeyDataType = '';
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $diskInterface;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $diskSizeGb;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $diskType;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $diskTypeDeprecated;
|
---|
53 | protected $guestOsFeatureType = GuestOsFeature::class;
|
---|
54 | protected $guestOsFeatureDataType = 'array';
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $index;
|
---|
59 | protected $initializeParamsType = InitializeParams::class;
|
---|
60 | protected $initializeParamsDataType = '';
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $kind;
|
---|
65 | /**
|
---|
66 | * @var string[]
|
---|
67 | */
|
---|
68 | public $license;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $mode;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $savedState;
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $source;
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $type;
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * @param bool
|
---|
88 | */
|
---|
89 | public function setAutoDelete($autoDelete)
|
---|
90 | {
|
---|
91 | $this->autoDelete = $autoDelete;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return bool
|
---|
95 | */
|
---|
96 | public function getAutoDelete()
|
---|
97 | {
|
---|
98 | return $this->autoDelete;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param bool
|
---|
102 | */
|
---|
103 | public function setBoot($boot)
|
---|
104 | {
|
---|
105 | $this->boot = $boot;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return bool
|
---|
109 | */
|
---|
110 | public function getBoot()
|
---|
111 | {
|
---|
112 | return $this->boot;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param string
|
---|
116 | */
|
---|
117 | public function setDeviceName($deviceName)
|
---|
118 | {
|
---|
119 | $this->deviceName = $deviceName;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return string
|
---|
123 | */
|
---|
124 | public function getDeviceName()
|
---|
125 | {
|
---|
126 | return $this->deviceName;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param CustomerEncryptionKey
|
---|
130 | */
|
---|
131 | public function setDiskEncryptionKey(CustomerEncryptionKey $diskEncryptionKey)
|
---|
132 | {
|
---|
133 | $this->diskEncryptionKey = $diskEncryptionKey;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return CustomerEncryptionKey
|
---|
137 | */
|
---|
138 | public function getDiskEncryptionKey()
|
---|
139 | {
|
---|
140 | return $this->diskEncryptionKey;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param string
|
---|
144 | */
|
---|
145 | public function setDiskInterface($diskInterface)
|
---|
146 | {
|
---|
147 | $this->diskInterface = $diskInterface;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return string
|
---|
151 | */
|
---|
152 | public function getDiskInterface()
|
---|
153 | {
|
---|
154 | return $this->diskInterface;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param string
|
---|
158 | */
|
---|
159 | public function setDiskSizeGb($diskSizeGb)
|
---|
160 | {
|
---|
161 | $this->diskSizeGb = $diskSizeGb;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return string
|
---|
165 | */
|
---|
166 | public function getDiskSizeGb()
|
---|
167 | {
|
---|
168 | return $this->diskSizeGb;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param string
|
---|
172 | */
|
---|
173 | public function setDiskType($diskType)
|
---|
174 | {
|
---|
175 | $this->diskType = $diskType;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return string
|
---|
179 | */
|
---|
180 | public function getDiskType()
|
---|
181 | {
|
---|
182 | return $this->diskType;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param string
|
---|
186 | */
|
---|
187 | public function setDiskTypeDeprecated($diskTypeDeprecated)
|
---|
188 | {
|
---|
189 | $this->diskTypeDeprecated = $diskTypeDeprecated;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return string
|
---|
193 | */
|
---|
194 | public function getDiskTypeDeprecated()
|
---|
195 | {
|
---|
196 | return $this->diskTypeDeprecated;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param GuestOsFeature[]
|
---|
200 | */
|
---|
201 | public function setGuestOsFeature($guestOsFeature)
|
---|
202 | {
|
---|
203 | $this->guestOsFeature = $guestOsFeature;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return GuestOsFeature[]
|
---|
207 | */
|
---|
208 | public function getGuestOsFeature()
|
---|
209 | {
|
---|
210 | return $this->guestOsFeature;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @param string
|
---|
214 | */
|
---|
215 | public function setIndex($index)
|
---|
216 | {
|
---|
217 | $this->index = $index;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @return string
|
---|
221 | */
|
---|
222 | public function getIndex()
|
---|
223 | {
|
---|
224 | return $this->index;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @param InitializeParams
|
---|
228 | */
|
---|
229 | public function setInitializeParams(InitializeParams $initializeParams)
|
---|
230 | {
|
---|
231 | $this->initializeParams = $initializeParams;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @return InitializeParams
|
---|
235 | */
|
---|
236 | public function getInitializeParams()
|
---|
237 | {
|
---|
238 | return $this->initializeParams;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @param string
|
---|
242 | */
|
---|
243 | public function setKind($kind)
|
---|
244 | {
|
---|
245 | $this->kind = $kind;
|
---|
246 | }
|
---|
247 | /**
|
---|
248 | * @return string
|
---|
249 | */
|
---|
250 | public function getKind()
|
---|
251 | {
|
---|
252 | return $this->kind;
|
---|
253 | }
|
---|
254 | /**
|
---|
255 | * @param string[]
|
---|
256 | */
|
---|
257 | public function setLicense($license)
|
---|
258 | {
|
---|
259 | $this->license = $license;
|
---|
260 | }
|
---|
261 | /**
|
---|
262 | * @return string[]
|
---|
263 | */
|
---|
264 | public function getLicense()
|
---|
265 | {
|
---|
266 | return $this->license;
|
---|
267 | }
|
---|
268 | /**
|
---|
269 | * @param string
|
---|
270 | */
|
---|
271 | public function setMode($mode)
|
---|
272 | {
|
---|
273 | $this->mode = $mode;
|
---|
274 | }
|
---|
275 | /**
|
---|
276 | * @return string
|
---|
277 | */
|
---|
278 | public function getMode()
|
---|
279 | {
|
---|
280 | return $this->mode;
|
---|
281 | }
|
---|
282 | /**
|
---|
283 | * @param string
|
---|
284 | */
|
---|
285 | public function setSavedState($savedState)
|
---|
286 | {
|
---|
287 | $this->savedState = $savedState;
|
---|
288 | }
|
---|
289 | /**
|
---|
290 | * @return string
|
---|
291 | */
|
---|
292 | public function getSavedState()
|
---|
293 | {
|
---|
294 | return $this->savedState;
|
---|
295 | }
|
---|
296 | /**
|
---|
297 | * @param string
|
---|
298 | */
|
---|
299 | public function setSource($source)
|
---|
300 | {
|
---|
301 | $this->source = $source;
|
---|
302 | }
|
---|
303 | /**
|
---|
304 | * @return string
|
---|
305 | */
|
---|
306 | public function getSource()
|
---|
307 | {
|
---|
308 | return $this->source;
|
---|
309 | }
|
---|
310 | /**
|
---|
311 | * @param string
|
---|
312 | */
|
---|
313 | public function setType($type)
|
---|
314 | {
|
---|
315 | $this->type = $type;
|
---|
316 | }
|
---|
317 | /**
|
---|
318 | * @return string
|
---|
319 | */
|
---|
320 | public function getType()
|
---|
321 | {
|
---|
322 | return $this->type;
|
---|
323 | }
|
---|
324 | }
|
---|
325 |
|
---|
326 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
327 | class_alias(AttachedDisk::class, 'Google_Service_Backupdr_AttachedDisk');
|
---|