VolumeConfig.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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 VolumeConfig extends \Google\Collection
  19. {
  20. protected $collection_key = 'nfsExports';
  21. /**
  22. * @var string
  23. */
  24. public $gcpService;
  25. /**
  26. * @var string
  27. */
  28. public $id;
  29. protected $lunRangesType = LunRange::class;
  30. protected $lunRangesDataType = 'array';
  31. /**
  32. * @var string[]
  33. */
  34. public $machineIds;
  35. /**
  36. * @var string
  37. */
  38. public $name;
  39. protected $nfsExportsType = NfsExport::class;
  40. protected $nfsExportsDataType = 'array';
  41. /**
  42. * @var string
  43. */
  44. public $protocol;
  45. /**
  46. * @var int
  47. */
  48. public $sizeGb;
  49. /**
  50. * @var bool
  51. */
  52. public $snapshotsEnabled;
  53. /**
  54. * @var string
  55. */
  56. public $type;
  57. /**
  58. * @var string
  59. */
  60. public $userNote;
  61. /**
  62. * @param string
  63. */
  64. public function setGcpService($gcpService)
  65. {
  66. $this->gcpService = $gcpService;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getGcpService()
  72. {
  73. return $this->gcpService;
  74. }
  75. /**
  76. * @param string
  77. */
  78. public function setId($id)
  79. {
  80. $this->id = $id;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getId()
  86. {
  87. return $this->id;
  88. }
  89. /**
  90. * @param LunRange[]
  91. */
  92. public function setLunRanges($lunRanges)
  93. {
  94. $this->lunRanges = $lunRanges;
  95. }
  96. /**
  97. * @return LunRange[]
  98. */
  99. public function getLunRanges()
  100. {
  101. return $this->lunRanges;
  102. }
  103. /**
  104. * @param string[]
  105. */
  106. public function setMachineIds($machineIds)
  107. {
  108. $this->machineIds = $machineIds;
  109. }
  110. /**
  111. * @return string[]
  112. */
  113. public function getMachineIds()
  114. {
  115. return $this->machineIds;
  116. }
  117. /**
  118. * @param string
  119. */
  120. public function setName($name)
  121. {
  122. $this->name = $name;
  123. }
  124. /**
  125. * @return string
  126. */
  127. public function getName()
  128. {
  129. return $this->name;
  130. }
  131. /**
  132. * @param NfsExport[]
  133. */
  134. public function setNfsExports($nfsExports)
  135. {
  136. $this->nfsExports = $nfsExports;
  137. }
  138. /**
  139. * @return NfsExport[]
  140. */
  141. public function getNfsExports()
  142. {
  143. return $this->nfsExports;
  144. }
  145. /**
  146. * @param string
  147. */
  148. public function setProtocol($protocol)
  149. {
  150. $this->protocol = $protocol;
  151. }
  152. /**
  153. * @return string
  154. */
  155. public function getProtocol()
  156. {
  157. return $this->protocol;
  158. }
  159. /**
  160. * @param int
  161. */
  162. public function setSizeGb($sizeGb)
  163. {
  164. $this->sizeGb = $sizeGb;
  165. }
  166. /**
  167. * @return int
  168. */
  169. public function getSizeGb()
  170. {
  171. return $this->sizeGb;
  172. }
  173. /**
  174. * @param bool
  175. */
  176. public function setSnapshotsEnabled($snapshotsEnabled)
  177. {
  178. $this->snapshotsEnabled = $snapshotsEnabled;
  179. }
  180. /**
  181. * @return bool
  182. */
  183. public function getSnapshotsEnabled()
  184. {
  185. return $this->snapshotsEnabled;
  186. }
  187. /**
  188. * @param string
  189. */
  190. public function setType($type)
  191. {
  192. $this->type = $type;
  193. }
  194. /**
  195. * @return string
  196. */
  197. public function getType()
  198. {
  199. return $this->type;
  200. }
  201. /**
  202. * @param string
  203. */
  204. public function setUserNote($userNote)
  205. {
  206. $this->userNote = $userNote;
  207. }
  208. /**
  209. * @return string
  210. */
  211. public function getUserNote()
  212. {
  213. return $this->userNote;
  214. }
  215. }
  216. // Adding a class alias for backwards compatibility with the previous class name.
  217. class_alias(VolumeConfig::class, 'Google_Service_Baremetalsolution_VolumeConfig');