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 CutoverStep extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $endTime;
|
---|
26 | protected $finalSyncType = ReplicationCycle::class;
|
---|
27 | protected $finalSyncDataType = '';
|
---|
28 | protected $instantiatingMigratedVmType = InstantiatingMigratedVMStep::class;
|
---|
29 | protected $instantiatingMigratedVmDataType = '';
|
---|
30 | protected $preparingVmDisksType = PreparingVMDisksStep::class;
|
---|
31 | protected $preparingVmDisksDataType = '';
|
---|
32 | protected $previousReplicationCycleType = ReplicationCycle::class;
|
---|
33 | protected $previousReplicationCycleDataType = '';
|
---|
34 | protected $shuttingDownSourceVmType = ShuttingDownSourceVMStep::class;
|
---|
35 | protected $shuttingDownSourceVmDataType = '';
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $startTime;
|
---|
40 |
|
---|
41 | /**
|
---|
42 | * @param string
|
---|
43 | */
|
---|
44 | public function setEndTime($endTime)
|
---|
45 | {
|
---|
46 | $this->endTime = $endTime;
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * @return string
|
---|
50 | */
|
---|
51 | public function getEndTime()
|
---|
52 | {
|
---|
53 | return $this->endTime;
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * @param ReplicationCycle
|
---|
57 | */
|
---|
58 | public function setFinalSync(ReplicationCycle $finalSync)
|
---|
59 | {
|
---|
60 | $this->finalSync = $finalSync;
|
---|
61 | }
|
---|
62 | /**
|
---|
63 | * @return ReplicationCycle
|
---|
64 | */
|
---|
65 | public function getFinalSync()
|
---|
66 | {
|
---|
67 | return $this->finalSync;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @param InstantiatingMigratedVMStep
|
---|
71 | */
|
---|
72 | public function setInstantiatingMigratedVm(InstantiatingMigratedVMStep $instantiatingMigratedVm)
|
---|
73 | {
|
---|
74 | $this->instantiatingMigratedVm = $instantiatingMigratedVm;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @return InstantiatingMigratedVMStep
|
---|
78 | */
|
---|
79 | public function getInstantiatingMigratedVm()
|
---|
80 | {
|
---|
81 | return $this->instantiatingMigratedVm;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @param PreparingVMDisksStep
|
---|
85 | */
|
---|
86 | public function setPreparingVmDisks(PreparingVMDisksStep $preparingVmDisks)
|
---|
87 | {
|
---|
88 | $this->preparingVmDisks = $preparingVmDisks;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @return PreparingVMDisksStep
|
---|
92 | */
|
---|
93 | public function getPreparingVmDisks()
|
---|
94 | {
|
---|
95 | return $this->preparingVmDisks;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @param ReplicationCycle
|
---|
99 | */
|
---|
100 | public function setPreviousReplicationCycle(ReplicationCycle $previousReplicationCycle)
|
---|
101 | {
|
---|
102 | $this->previousReplicationCycle = $previousReplicationCycle;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @return ReplicationCycle
|
---|
106 | */
|
---|
107 | public function getPreviousReplicationCycle()
|
---|
108 | {
|
---|
109 | return $this->previousReplicationCycle;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @param ShuttingDownSourceVMStep
|
---|
113 | */
|
---|
114 | public function setShuttingDownSourceVm(ShuttingDownSourceVMStep $shuttingDownSourceVm)
|
---|
115 | {
|
---|
116 | $this->shuttingDownSourceVm = $shuttingDownSourceVm;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @return ShuttingDownSourceVMStep
|
---|
120 | */
|
---|
121 | public function getShuttingDownSourceVm()
|
---|
122 | {
|
---|
123 | return $this->shuttingDownSourceVm;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @param string
|
---|
127 | */
|
---|
128 | public function setStartTime($startTime)
|
---|
129 | {
|
---|
130 | $this->startTime = $startTime;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @return string
|
---|
134 | */
|
---|
135 | public function getStartTime()
|
---|
136 | {
|
---|
137 | return $this->startTime;
|
---|
138 | }
|
---|
139 | }
|
---|
140 |
|
---|
141 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
142 | class_alias(CutoverStep::class, 'Google_Service_VMMigrationService_CutoverStep');
|
---|