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\MigrationCenterAPI;
|
---|
19 |
|
---|
20 | class MachineDetails extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $architectureType = MachineArchitectureDetails::class;
|
---|
23 | protected $architectureDataType = '';
|
---|
24 | /**
|
---|
25 | * @var int
|
---|
26 | */
|
---|
27 | public $coreCount;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $createTime;
|
---|
32 | protected $disksType = MachineDiskDetails::class;
|
---|
33 | protected $disksDataType = '';
|
---|
34 | protected $guestOsType = GuestOsDetails::class;
|
---|
35 | protected $guestOsDataType = '';
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $machineName;
|
---|
40 | /**
|
---|
41 | * @var int
|
---|
42 | */
|
---|
43 | public $memoryMb;
|
---|
44 | protected $networkType = MachineNetworkDetails::class;
|
---|
45 | protected $networkDataType = '';
|
---|
46 | protected $platformType = PlatformDetails::class;
|
---|
47 | protected $platformDataType = '';
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $powerState;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $uuid;
|
---|
56 |
|
---|
57 | /**
|
---|
58 | * @param MachineArchitectureDetails
|
---|
59 | */
|
---|
60 | public function setArchitecture(MachineArchitectureDetails $architecture)
|
---|
61 | {
|
---|
62 | $this->architecture = $architecture;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @return MachineArchitectureDetails
|
---|
66 | */
|
---|
67 | public function getArchitecture()
|
---|
68 | {
|
---|
69 | return $this->architecture;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @param int
|
---|
73 | */
|
---|
74 | public function setCoreCount($coreCount)
|
---|
75 | {
|
---|
76 | $this->coreCount = $coreCount;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @return int
|
---|
80 | */
|
---|
81 | public function getCoreCount()
|
---|
82 | {
|
---|
83 | return $this->coreCount;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @param string
|
---|
87 | */
|
---|
88 | public function setCreateTime($createTime)
|
---|
89 | {
|
---|
90 | $this->createTime = $createTime;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @return string
|
---|
94 | */
|
---|
95 | public function getCreateTime()
|
---|
96 | {
|
---|
97 | return $this->createTime;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @param MachineDiskDetails
|
---|
101 | */
|
---|
102 | public function setDisks(MachineDiskDetails $disks)
|
---|
103 | {
|
---|
104 | $this->disks = $disks;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @return MachineDiskDetails
|
---|
108 | */
|
---|
109 | public function getDisks()
|
---|
110 | {
|
---|
111 | return $this->disks;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @param GuestOsDetails
|
---|
115 | */
|
---|
116 | public function setGuestOs(GuestOsDetails $guestOs)
|
---|
117 | {
|
---|
118 | $this->guestOs = $guestOs;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @return GuestOsDetails
|
---|
122 | */
|
---|
123 | public function getGuestOs()
|
---|
124 | {
|
---|
125 | return $this->guestOs;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @param string
|
---|
129 | */
|
---|
130 | public function setMachineName($machineName)
|
---|
131 | {
|
---|
132 | $this->machineName = $machineName;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return string
|
---|
136 | */
|
---|
137 | public function getMachineName()
|
---|
138 | {
|
---|
139 | return $this->machineName;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param int
|
---|
143 | */
|
---|
144 | public function setMemoryMb($memoryMb)
|
---|
145 | {
|
---|
146 | $this->memoryMb = $memoryMb;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return int
|
---|
150 | */
|
---|
151 | public function getMemoryMb()
|
---|
152 | {
|
---|
153 | return $this->memoryMb;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @param MachineNetworkDetails
|
---|
157 | */
|
---|
158 | public function setNetwork(MachineNetworkDetails $network)
|
---|
159 | {
|
---|
160 | $this->network = $network;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @return MachineNetworkDetails
|
---|
164 | */
|
---|
165 | public function getNetwork()
|
---|
166 | {
|
---|
167 | return $this->network;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @param PlatformDetails
|
---|
171 | */
|
---|
172 | public function setPlatform(PlatformDetails $platform)
|
---|
173 | {
|
---|
174 | $this->platform = $platform;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @return PlatformDetails
|
---|
178 | */
|
---|
179 | public function getPlatform()
|
---|
180 | {
|
---|
181 | return $this->platform;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @param string
|
---|
185 | */
|
---|
186 | public function setPowerState($powerState)
|
---|
187 | {
|
---|
188 | $this->powerState = $powerState;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @return string
|
---|
192 | */
|
---|
193 | public function getPowerState()
|
---|
194 | {
|
---|
195 | return $this->powerState;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @param string
|
---|
199 | */
|
---|
200 | public function setUuid($uuid)
|
---|
201 | {
|
---|
202 | $this->uuid = $uuid;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @return string
|
---|
206 | */
|
---|
207 | public function getUuid()
|
---|
208 | {
|
---|
209 | return $this->uuid;
|
---|
210 | }
|
---|
211 | }
|
---|
212 |
|
---|
213 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
214 | class_alias(MachineDetails::class, 'Google_Service_MigrationCenterAPI_MachineDetails');
|
---|