Instance.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. namespace Google\Service\Baremetalsolution;
  18. class Instance extends \Google\Collection
  19. {
  20. protected $collection_key = 'networks';
  21. /**
  22. * @var string
  23. */
  24. public $createTime;
  25. /**
  26. * @var bool
  27. */
  28. public $hyperthreadingEnabled;
  29. /**
  30. * @var string
  31. */
  32. public $id;
  33. /**
  34. * @var bool
  35. */
  36. public $interactiveSerialConsoleEnabled;
  37. /**
  38. * @var string[]
  39. */
  40. public $labels;
  41. protected $logicalInterfacesType = GoogleCloudBaremetalsolutionV2LogicalInterface::class;
  42. protected $logicalInterfacesDataType = 'array';
  43. protected $lunsType = Lun::class;
  44. protected $lunsDataType = 'array';
  45. /**
  46. * @var string
  47. */
  48. public $machineType;
  49. /**
  50. * @var string
  51. */
  52. public $name;
  53. /**
  54. * @var string
  55. */
  56. public $networkTemplate;
  57. protected $networksType = Network::class;
  58. protected $networksDataType = 'array';
  59. /**
  60. * @var string
  61. */
  62. public $osImage;
  63. /**
  64. * @var string
  65. */
  66. public $pod;
  67. /**
  68. * @var string
  69. */
  70. public $state;
  71. /**
  72. * @var string
  73. */
  74. public $updateTime;
  75. /**
  76. * @param string
  77. */
  78. public function setCreateTime($createTime)
  79. {
  80. $this->createTime = $createTime;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getCreateTime()
  86. {
  87. return $this->createTime;
  88. }
  89. /**
  90. * @param bool
  91. */
  92. public function setHyperthreadingEnabled($hyperthreadingEnabled)
  93. {
  94. $this->hyperthreadingEnabled = $hyperthreadingEnabled;
  95. }
  96. /**
  97. * @return bool
  98. */
  99. public function getHyperthreadingEnabled()
  100. {
  101. return $this->hyperthreadingEnabled;
  102. }
  103. /**
  104. * @param string
  105. */
  106. public function setId($id)
  107. {
  108. $this->id = $id;
  109. }
  110. /**
  111. * @return string
  112. */
  113. public function getId()
  114. {
  115. return $this->id;
  116. }
  117. /**
  118. * @param bool
  119. */
  120. public function setInteractiveSerialConsoleEnabled($interactiveSerialConsoleEnabled)
  121. {
  122. $this->interactiveSerialConsoleEnabled = $interactiveSerialConsoleEnabled;
  123. }
  124. /**
  125. * @return bool
  126. */
  127. public function getInteractiveSerialConsoleEnabled()
  128. {
  129. return $this->interactiveSerialConsoleEnabled;
  130. }
  131. /**
  132. * @param string[]
  133. */
  134. public function setLabels($labels)
  135. {
  136. $this->labels = $labels;
  137. }
  138. /**
  139. * @return string[]
  140. */
  141. public function getLabels()
  142. {
  143. return $this->labels;
  144. }
  145. /**
  146. * @param GoogleCloudBaremetalsolutionV2LogicalInterface[]
  147. */
  148. public function setLogicalInterfaces($logicalInterfaces)
  149. {
  150. $this->logicalInterfaces = $logicalInterfaces;
  151. }
  152. /**
  153. * @return GoogleCloudBaremetalsolutionV2LogicalInterface[]
  154. */
  155. public function getLogicalInterfaces()
  156. {
  157. return $this->logicalInterfaces;
  158. }
  159. /**
  160. * @param Lun[]
  161. */
  162. public function setLuns($luns)
  163. {
  164. $this->luns = $luns;
  165. }
  166. /**
  167. * @return Lun[]
  168. */
  169. public function getLuns()
  170. {
  171. return $this->luns;
  172. }
  173. /**
  174. * @param string
  175. */
  176. public function setMachineType($machineType)
  177. {
  178. $this->machineType = $machineType;
  179. }
  180. /**
  181. * @return string
  182. */
  183. public function getMachineType()
  184. {
  185. return $this->machineType;
  186. }
  187. /**
  188. * @param string
  189. */
  190. public function setName($name)
  191. {
  192. $this->name = $name;
  193. }
  194. /**
  195. * @return string
  196. */
  197. public function getName()
  198. {
  199. return $this->name;
  200. }
  201. /**
  202. * @param string
  203. */
  204. public function setNetworkTemplate($networkTemplate)
  205. {
  206. $this->networkTemplate = $networkTemplate;
  207. }
  208. /**
  209. * @return string
  210. */
  211. public function getNetworkTemplate()
  212. {
  213. return $this->networkTemplate;
  214. }
  215. /**
  216. * @param Network[]
  217. */
  218. public function setNetworks($networks)
  219. {
  220. $this->networks = $networks;
  221. }
  222. /**
  223. * @return Network[]
  224. */
  225. public function getNetworks()
  226. {
  227. return $this->networks;
  228. }
  229. /**
  230. * @param string
  231. */
  232. public function setOsImage($osImage)
  233. {
  234. $this->osImage = $osImage;
  235. }
  236. /**
  237. * @return string
  238. */
  239. public function getOsImage()
  240. {
  241. return $this->osImage;
  242. }
  243. /**
  244. * @param string
  245. */
  246. public function setPod($pod)
  247. {
  248. $this->pod = $pod;
  249. }
  250. /**
  251. * @return string
  252. */
  253. public function getPod()
  254. {
  255. return $this->pod;
  256. }
  257. /**
  258. * @param string
  259. */
  260. public function setState($state)
  261. {
  262. $this->state = $state;
  263. }
  264. /**
  265. * @return string
  266. */
  267. public function getState()
  268. {
  269. return $this->state;
  270. }
  271. /**
  272. * @param string
  273. */
  274. public function setUpdateTime($updateTime)
  275. {
  276. $this->updateTime = $updateTime;
  277. }
  278. /**
  279. * @return string
  280. */
  281. public function getUpdateTime()
  282. {
  283. return $this->updateTime;
  284. }
  285. }
  286. // Adding a class alias for backwards compatibility with the previous class name.
  287. class_alias(Instance::class, 'Google_Service_Baremetalsolution_Instance');