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\VMMigrationService;
|
---|
19 |
|
---|
20 | class MigratingVm extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'recentCutoverJobs';
|
---|
23 | protected $awsSourceVmDetailsType = AwsSourceVmDetails::class;
|
---|
24 | protected $awsSourceVmDetailsDataType = '';
|
---|
25 | protected $azureSourceVmDetailsType = AzureSourceVmDetails::class;
|
---|
26 | protected $azureSourceVmDetailsDataType = '';
|
---|
27 | protected $computeEngineDisksTargetDefaultsType = ComputeEngineDisksTargetDefaults::class;
|
---|
28 | protected $computeEngineDisksTargetDefaultsDataType = '';
|
---|
29 | protected $computeEngineTargetDefaultsType = ComputeEngineTargetDefaults::class;
|
---|
30 | protected $computeEngineTargetDefaultsDataType = '';
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $createTime;
|
---|
35 | protected $currentSyncInfoType = ReplicationCycle::class;
|
---|
36 | protected $currentSyncInfoDataType = '';
|
---|
37 | protected $cutoverForecastType = CutoverForecast::class;
|
---|
38 | protected $cutoverForecastDataType = '';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $description;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $displayName;
|
---|
47 | protected $errorType = Status::class;
|
---|
48 | protected $errorDataType = '';
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $group;
|
---|
53 | /**
|
---|
54 | * @var string[]
|
---|
55 | */
|
---|
56 | public $labels;
|
---|
57 | protected $lastReplicationCycleType = ReplicationCycle::class;
|
---|
58 | protected $lastReplicationCycleDataType = '';
|
---|
59 | protected $lastSyncType = ReplicationSync::class;
|
---|
60 | protected $lastSyncDataType = '';
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $name;
|
---|
65 | protected $policyType = SchedulePolicy::class;
|
---|
66 | protected $policyDataType = '';
|
---|
67 | protected $recentCloneJobsType = CloneJob::class;
|
---|
68 | protected $recentCloneJobsDataType = 'array';
|
---|
69 | protected $recentCutoverJobsType = CutoverJob::class;
|
---|
70 | protected $recentCutoverJobsDataType = 'array';
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $sourceVmId;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $state;
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $stateTime;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $updateTime;
|
---|
87 | protected $vmwareSourceVmDetailsType = VmwareSourceVmDetails::class;
|
---|
88 | protected $vmwareSourceVmDetailsDataType = '';
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * @param AwsSourceVmDetails
|
---|
92 | */
|
---|
93 | public function setAwsSourceVmDetails(AwsSourceVmDetails $awsSourceVmDetails)
|
---|
94 | {
|
---|
95 | $this->awsSourceVmDetails = $awsSourceVmDetails;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return AwsSourceVmDetails
|
---|
99 | */
|
---|
100 | public function getAwsSourceVmDetails()
|
---|
101 | {
|
---|
102 | return $this->awsSourceVmDetails;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param AzureSourceVmDetails
|
---|
106 | */
|
---|
107 | public function setAzureSourceVmDetails(AzureSourceVmDetails $azureSourceVmDetails)
|
---|
108 | {
|
---|
109 | $this->azureSourceVmDetails = $azureSourceVmDetails;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return AzureSourceVmDetails
|
---|
113 | */
|
---|
114 | public function getAzureSourceVmDetails()
|
---|
115 | {
|
---|
116 | return $this->azureSourceVmDetails;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param ComputeEngineDisksTargetDefaults
|
---|
120 | */
|
---|
121 | public function setComputeEngineDisksTargetDefaults(ComputeEngineDisksTargetDefaults $computeEngineDisksTargetDefaults)
|
---|
122 | {
|
---|
123 | $this->computeEngineDisksTargetDefaults = $computeEngineDisksTargetDefaults;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return ComputeEngineDisksTargetDefaults
|
---|
127 | */
|
---|
128 | public function getComputeEngineDisksTargetDefaults()
|
---|
129 | {
|
---|
130 | return $this->computeEngineDisksTargetDefaults;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param ComputeEngineTargetDefaults
|
---|
134 | */
|
---|
135 | public function setComputeEngineTargetDefaults(ComputeEngineTargetDefaults $computeEngineTargetDefaults)
|
---|
136 | {
|
---|
137 | $this->computeEngineTargetDefaults = $computeEngineTargetDefaults;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return ComputeEngineTargetDefaults
|
---|
141 | */
|
---|
142 | public function getComputeEngineTargetDefaults()
|
---|
143 | {
|
---|
144 | return $this->computeEngineTargetDefaults;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setCreateTime($createTime)
|
---|
150 | {
|
---|
151 | $this->createTime = $createTime;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getCreateTime()
|
---|
157 | {
|
---|
158 | return $this->createTime;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param ReplicationCycle
|
---|
162 | */
|
---|
163 | public function setCurrentSyncInfo(ReplicationCycle $currentSyncInfo)
|
---|
164 | {
|
---|
165 | $this->currentSyncInfo = $currentSyncInfo;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return ReplicationCycle
|
---|
169 | */
|
---|
170 | public function getCurrentSyncInfo()
|
---|
171 | {
|
---|
172 | return $this->currentSyncInfo;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param CutoverForecast
|
---|
176 | */
|
---|
177 | public function setCutoverForecast(CutoverForecast $cutoverForecast)
|
---|
178 | {
|
---|
179 | $this->cutoverForecast = $cutoverForecast;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return CutoverForecast
|
---|
183 | */
|
---|
184 | public function getCutoverForecast()
|
---|
185 | {
|
---|
186 | return $this->cutoverForecast;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setDescription($description)
|
---|
192 | {
|
---|
193 | $this->description = $description;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getDescription()
|
---|
199 | {
|
---|
200 | return $this->description;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setDisplayName($displayName)
|
---|
206 | {
|
---|
207 | $this->displayName = $displayName;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getDisplayName()
|
---|
213 | {
|
---|
214 | return $this->displayName;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param Status
|
---|
218 | */
|
---|
219 | public function setError(Status $error)
|
---|
220 | {
|
---|
221 | $this->error = $error;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return Status
|
---|
225 | */
|
---|
226 | public function getError()
|
---|
227 | {
|
---|
228 | return $this->error;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setGroup($group)
|
---|
234 | {
|
---|
235 | $this->group = $group;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getGroup()
|
---|
241 | {
|
---|
242 | return $this->group;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string[]
|
---|
246 | */
|
---|
247 | public function setLabels($labels)
|
---|
248 | {
|
---|
249 | $this->labels = $labels;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string[]
|
---|
253 | */
|
---|
254 | public function getLabels()
|
---|
255 | {
|
---|
256 | return $this->labels;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param ReplicationCycle
|
---|
260 | */
|
---|
261 | public function setLastReplicationCycle(ReplicationCycle $lastReplicationCycle)
|
---|
262 | {
|
---|
263 | $this->lastReplicationCycle = $lastReplicationCycle;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return ReplicationCycle
|
---|
267 | */
|
---|
268 | public function getLastReplicationCycle()
|
---|
269 | {
|
---|
270 | return $this->lastReplicationCycle;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param ReplicationSync
|
---|
274 | */
|
---|
275 | public function setLastSync(ReplicationSync $lastSync)
|
---|
276 | {
|
---|
277 | $this->lastSync = $lastSync;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return ReplicationSync
|
---|
281 | */
|
---|
282 | public function getLastSync()
|
---|
283 | {
|
---|
284 | return $this->lastSync;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string
|
---|
288 | */
|
---|
289 | public function setName($name)
|
---|
290 | {
|
---|
291 | $this->name = $name;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string
|
---|
295 | */
|
---|
296 | public function getName()
|
---|
297 | {
|
---|
298 | return $this->name;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param SchedulePolicy
|
---|
302 | */
|
---|
303 | public function setPolicy(SchedulePolicy $policy)
|
---|
304 | {
|
---|
305 | $this->policy = $policy;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return SchedulePolicy
|
---|
309 | */
|
---|
310 | public function getPolicy()
|
---|
311 | {
|
---|
312 | return $this->policy;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param CloneJob[]
|
---|
316 | */
|
---|
317 | public function setRecentCloneJobs($recentCloneJobs)
|
---|
318 | {
|
---|
319 | $this->recentCloneJobs = $recentCloneJobs;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return CloneJob[]
|
---|
323 | */
|
---|
324 | public function getRecentCloneJobs()
|
---|
325 | {
|
---|
326 | return $this->recentCloneJobs;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param CutoverJob[]
|
---|
330 | */
|
---|
331 | public function setRecentCutoverJobs($recentCutoverJobs)
|
---|
332 | {
|
---|
333 | $this->recentCutoverJobs = $recentCutoverJobs;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return CutoverJob[]
|
---|
337 | */
|
---|
338 | public function getRecentCutoverJobs()
|
---|
339 | {
|
---|
340 | return $this->recentCutoverJobs;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param string
|
---|
344 | */
|
---|
345 | public function setSourceVmId($sourceVmId)
|
---|
346 | {
|
---|
347 | $this->sourceVmId = $sourceVmId;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return string
|
---|
351 | */
|
---|
352 | public function getSourceVmId()
|
---|
353 | {
|
---|
354 | return $this->sourceVmId;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param string
|
---|
358 | */
|
---|
359 | public function setState($state)
|
---|
360 | {
|
---|
361 | $this->state = $state;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return string
|
---|
365 | */
|
---|
366 | public function getState()
|
---|
367 | {
|
---|
368 | return $this->state;
|
---|
369 | }
|
---|
370 | /**
|
---|
371 | * @param string
|
---|
372 | */
|
---|
373 | public function setStateTime($stateTime)
|
---|
374 | {
|
---|
375 | $this->stateTime = $stateTime;
|
---|
376 | }
|
---|
377 | /**
|
---|
378 | * @return string
|
---|
379 | */
|
---|
380 | public function getStateTime()
|
---|
381 | {
|
---|
382 | return $this->stateTime;
|
---|
383 | }
|
---|
384 | /**
|
---|
385 | * @param string
|
---|
386 | */
|
---|
387 | public function setUpdateTime($updateTime)
|
---|
388 | {
|
---|
389 | $this->updateTime = $updateTime;
|
---|
390 | }
|
---|
391 | /**
|
---|
392 | * @return string
|
---|
393 | */
|
---|
394 | public function getUpdateTime()
|
---|
395 | {
|
---|
396 | return $this->updateTime;
|
---|
397 | }
|
---|
398 | /**
|
---|
399 | * @param VmwareSourceVmDetails
|
---|
400 | */
|
---|
401 | public function setVmwareSourceVmDetails(VmwareSourceVmDetails $vmwareSourceVmDetails)
|
---|
402 | {
|
---|
403 | $this->vmwareSourceVmDetails = $vmwareSourceVmDetails;
|
---|
404 | }
|
---|
405 | /**
|
---|
406 | * @return VmwareSourceVmDetails
|
---|
407 | */
|
---|
408 | public function getVmwareSourceVmDetails()
|
---|
409 | {
|
---|
410 | return $this->vmwareSourceVmDetails;
|
---|
411 | }
|
---|
412 | }
|
---|
413 |
|
---|
414 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
415 | class_alias(MigratingVm::class, 'Google_Service_VMMigrationService_MigratingVm');
|
---|