oneview-sdk 5.14.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +175 -1
  3. data/Dockerfile +2 -2
  4. data/Gemfile +1 -0
  5. data/Guardfile +1 -1
  6. data/LICENSE +1 -1
  7. data/README.md +128 -109
  8. data/Rakefile +1 -1
  9. data/TESTING.md +1 -0
  10. data/bin/oneview-sdk-ruby +1 -0
  11. data/endpoints-support.md +308 -307
  12. data/lib/oneview-sdk.rb +1 -1
  13. data/lib/oneview-sdk/client.rb +2 -2
  14. data/lib/oneview-sdk/image-streamer/resource/api2000.rb +39 -0
  15. data/lib/oneview-sdk/image-streamer/resource/api2000/artifact_bundle.rb +22 -0
  16. data/lib/oneview-sdk/image-streamer/resource/api2000/build_plan.rb +22 -0
  17. data/lib/oneview-sdk/image-streamer/resource/api2000/deployment_group.rb +22 -0
  18. data/lib/oneview-sdk/image-streamer/resource/api2000/deployment_plan.rb +22 -0
  19. data/lib/oneview-sdk/image-streamer/resource/api2000/golden_image.rb +22 -0
  20. data/lib/oneview-sdk/image-streamer/resource/api2000/os_volume.rb +22 -0
  21. data/lib/oneview-sdk/image-streamer/resource/api2000/plan_script.rb +22 -0
  22. data/lib/oneview-sdk/image-streamer/resource/api2010.rb +39 -0
  23. data/lib/oneview-sdk/image-streamer/resource/api2010/artifact_bundle.rb +22 -0
  24. data/lib/oneview-sdk/image-streamer/resource/api2010/build_plan.rb +22 -0
  25. data/lib/oneview-sdk/image-streamer/resource/api2010/deployment_group.rb +22 -0
  26. data/lib/oneview-sdk/image-streamer/resource/api2010/deployment_plan.rb +22 -0
  27. data/lib/oneview-sdk/image-streamer/resource/api2010/golden_image.rb +22 -0
  28. data/lib/oneview-sdk/image-streamer/resource/api2010/os_volume.rb +22 -0
  29. data/lib/oneview-sdk/image-streamer/resource/api2010/plan_script.rb +22 -0
  30. data/lib/oneview-sdk/image_streamer.rb +1 -1
  31. data/lib/oneview-sdk/resource.rb +1 -1
  32. data/lib/oneview-sdk/resource/api1800/synergy/os_deployment_plan.rb +22 -0
  33. data/lib/oneview-sdk/resource/api1800/synergy/server_profile.rb +3 -0
  34. data/lib/oneview-sdk/resource/api2000.rb +66 -0
  35. data/lib/oneview-sdk/resource/api2000/c7000.rb +27 -0
  36. data/lib/oneview-sdk/resource/api2000/c7000/connection_template.rb +22 -0
  37. data/lib/oneview-sdk/resource/api2000/c7000/enclosure.rb +22 -0
  38. data/lib/oneview-sdk/resource/api2000/c7000/enclosure_group.rb +22 -0
  39. data/lib/oneview-sdk/resource/api2000/c7000/ethernet_network.rb +22 -0
  40. data/lib/oneview-sdk/resource/api2000/c7000/fc_network.rb +22 -0
  41. data/lib/oneview-sdk/resource/api2000/c7000/fcoe_network.rb +22 -0
  42. data/lib/oneview-sdk/resource/api2000/c7000/firmware_driver.rb +22 -0
  43. data/lib/oneview-sdk/resource/api2000/c7000/hypervisor_cluster_profile.rb +22 -0
  44. data/lib/oneview-sdk/resource/api2000/c7000/hypervisor_manager.rb +22 -0
  45. data/lib/oneview-sdk/resource/api2000/c7000/interconnect.rb +26 -0
  46. data/lib/oneview-sdk/resource/api2000/c7000/lig_uplink_set.rb +21 -0
  47. data/lib/oneview-sdk/resource/api2000/c7000/logical_enclosure.rb +22 -0
  48. data/lib/oneview-sdk/resource/api2000/c7000/logical_interconnect.rb +33 -0
  49. data/lib/oneview-sdk/resource/api2000/c7000/logical_interconnect_group.rb +25 -0
  50. data/lib/oneview-sdk/resource/api2000/c7000/network_set.rb +22 -0
  51. data/lib/oneview-sdk/resource/api2000/c7000/scope.rb +22 -0
  52. data/lib/oneview-sdk/resource/api2000/c7000/server_certificate.rb +22 -0
  53. data/lib/oneview-sdk/resource/api2000/c7000/server_hardware.rb +22 -0
  54. data/lib/oneview-sdk/resource/api2000/c7000/server_hardware_type.rb +25 -0
  55. data/lib/oneview-sdk/resource/api2000/c7000/server_profile.rb +22 -0
  56. data/lib/oneview-sdk/resource/api2000/c7000/server_profile_template.rb +22 -0
  57. data/lib/oneview-sdk/resource/api2000/c7000/storage_pool.rb +22 -0
  58. data/lib/oneview-sdk/resource/api2000/c7000/storage_system.rb +22 -0
  59. data/lib/oneview-sdk/resource/api2000/c7000/uplink_set.rb +22 -0
  60. data/lib/oneview-sdk/resource/api2000/c7000/volume.rb +22 -0
  61. data/lib/oneview-sdk/resource/api2000/c7000/volume_attachment.rb +22 -0
  62. data/lib/oneview-sdk/resource/api2000/c7000/volume_template.rb +22 -0
  63. data/lib/oneview-sdk/resource/api2000/synergy.rb +27 -0
  64. data/lib/oneview-sdk/resource/api2000/synergy/connection_template.rb +22 -0
  65. data/lib/oneview-sdk/resource/api2000/synergy/enclosure.rb +22 -0
  66. data/lib/oneview-sdk/resource/api2000/synergy/enclosure_group.rb +22 -0
  67. data/lib/oneview-sdk/resource/api2000/synergy/ethernet_network.rb +22 -0
  68. data/lib/oneview-sdk/resource/api2000/synergy/fc_network.rb +22 -0
  69. data/lib/oneview-sdk/resource/api2000/synergy/fcoe_network.rb +22 -0
  70. data/lib/oneview-sdk/resource/api2000/synergy/firmware_driver.rb +22 -0
  71. data/lib/oneview-sdk/resource/api2000/synergy/hypervisor_cluster_profile.rb +22 -0
  72. data/lib/oneview-sdk/resource/api2000/synergy/hypervisor_manager.rb +22 -0
  73. data/lib/oneview-sdk/resource/api2000/synergy/interconnect.rb +25 -0
  74. data/lib/oneview-sdk/resource/api2000/synergy/lig_uplink_set.rb +21 -0
  75. data/lib/oneview-sdk/resource/api2000/synergy/logical_enclosure.rb +22 -0
  76. data/lib/oneview-sdk/resource/api2000/synergy/logical_interconnect.rb +22 -0
  77. data/lib/oneview-sdk/resource/api2000/synergy/logical_interconnect_group.rb +25 -0
  78. data/lib/oneview-sdk/resource/api2000/synergy/network_set.rb +22 -0
  79. data/lib/oneview-sdk/resource/api2000/synergy/os_deployment_plan.rb +22 -0
  80. data/lib/oneview-sdk/resource/api2000/synergy/scope.rb +22 -0
  81. data/lib/oneview-sdk/resource/api2000/synergy/server_certificate.rb +22 -0
  82. data/lib/oneview-sdk/resource/api2000/synergy/server_hardware.rb +22 -0
  83. data/lib/oneview-sdk/resource/api2000/synergy/server_hardware_type.rb +22 -0
  84. data/lib/oneview-sdk/resource/api2000/synergy/server_profile.rb +25 -0
  85. data/lib/oneview-sdk/resource/api2000/synergy/server_profile_template.rb +22 -0
  86. data/lib/oneview-sdk/resource/api2000/synergy/storage_pool.rb +22 -0
  87. data/lib/oneview-sdk/resource/api2000/synergy/storage_system.rb +22 -0
  88. data/lib/oneview-sdk/resource/api2000/synergy/uplink_set.rb +22 -0
  89. data/lib/oneview-sdk/resource/api2000/synergy/volume.rb +22 -0
  90. data/lib/oneview-sdk/resource/api2000/synergy/volume_attachment.rb +22 -0
  91. data/lib/oneview-sdk/resource/api2000/synergy/volume_template.rb +22 -0
  92. data/lib/oneview-sdk/resource/api2200.rb +66 -0
  93. data/lib/oneview-sdk/resource/api2200/c7000.rb +27 -0
  94. data/lib/oneview-sdk/resource/api2200/c7000/connection_template.rb +22 -0
  95. data/lib/oneview-sdk/resource/api2200/c7000/enclosure.rb +22 -0
  96. data/lib/oneview-sdk/resource/api2200/c7000/enclosure_group.rb +22 -0
  97. data/lib/oneview-sdk/resource/api2200/c7000/ethernet_network.rb +22 -0
  98. data/lib/oneview-sdk/resource/api2200/c7000/fc_network.rb +22 -0
  99. data/lib/oneview-sdk/resource/api2200/c7000/fcoe_network.rb +22 -0
  100. data/lib/oneview-sdk/resource/api2200/c7000/firmware_driver.rb +22 -0
  101. data/lib/oneview-sdk/resource/api2200/c7000/hypervisor_cluster_profile.rb +27 -0
  102. data/lib/oneview-sdk/resource/api2200/c7000/hypervisor_manager.rb +22 -0
  103. data/lib/oneview-sdk/resource/api2200/c7000/interconnect.rb +23 -0
  104. data/lib/oneview-sdk/resource/api2200/c7000/lig_uplink_set.rb +21 -0
  105. data/lib/oneview-sdk/resource/api2200/c7000/logical_enclosure.rb +22 -0
  106. data/lib/oneview-sdk/resource/api2200/c7000/logical_interconnect.rb +22 -0
  107. data/lib/oneview-sdk/resource/api2200/c7000/logical_interconnect_group.rb +22 -0
  108. data/lib/oneview-sdk/resource/api2200/c7000/network_set.rb +22 -0
  109. data/lib/oneview-sdk/resource/api2200/c7000/scope.rb +22 -0
  110. data/lib/oneview-sdk/resource/api2200/c7000/server_certificate.rb +22 -0
  111. data/lib/oneview-sdk/resource/api2200/c7000/server_hardware.rb +22 -0
  112. data/lib/oneview-sdk/resource/api2200/c7000/server_hardware_type.rb +22 -0
  113. data/lib/oneview-sdk/resource/api2200/c7000/server_profile.rb +22 -0
  114. data/lib/oneview-sdk/resource/api2200/c7000/server_profile_template.rb +22 -0
  115. data/lib/oneview-sdk/resource/api2200/c7000/storage_pool.rb +22 -0
  116. data/lib/oneview-sdk/resource/api2200/c7000/storage_system.rb +22 -0
  117. data/lib/oneview-sdk/resource/api2200/c7000/uplink_set.rb +22 -0
  118. data/lib/oneview-sdk/resource/api2200/c7000/volume.rb +22 -0
  119. data/lib/oneview-sdk/resource/api2200/c7000/volume_attachment.rb +22 -0
  120. data/lib/oneview-sdk/resource/api2200/c7000/volume_template.rb +22 -0
  121. data/lib/oneview-sdk/resource/api2200/synergy.rb +27 -0
  122. data/lib/oneview-sdk/resource/api2200/synergy/connection_template.rb +22 -0
  123. data/lib/oneview-sdk/resource/api2200/synergy/enclosure.rb +22 -0
  124. data/lib/oneview-sdk/resource/api2200/synergy/enclosure_group.rb +22 -0
  125. data/lib/oneview-sdk/resource/api2200/synergy/ethernet_network.rb +22 -0
  126. data/lib/oneview-sdk/resource/api2200/synergy/fc_network.rb +22 -0
  127. data/lib/oneview-sdk/resource/api2200/synergy/fcoe_network.rb +22 -0
  128. data/lib/oneview-sdk/resource/api2200/synergy/firmware_driver.rb +22 -0
  129. data/lib/oneview-sdk/resource/api2200/synergy/hypervisor_cluster_profile.rb +22 -0
  130. data/lib/oneview-sdk/resource/api2200/synergy/hypervisor_manager.rb +22 -0
  131. data/lib/oneview-sdk/resource/api2200/synergy/interconnect.rb +22 -0
  132. data/lib/oneview-sdk/resource/api2200/synergy/lig_uplink_set.rb +21 -0
  133. data/lib/oneview-sdk/resource/api2200/synergy/logical_enclosure.rb +22 -0
  134. data/lib/oneview-sdk/resource/api2200/synergy/logical_interconnect.rb +22 -0
  135. data/lib/oneview-sdk/resource/api2200/synergy/logical_interconnect_group.rb +22 -0
  136. data/lib/oneview-sdk/resource/api2200/synergy/network_set.rb +22 -0
  137. data/lib/oneview-sdk/resource/api2200/synergy/os_deployment_plan.rb +22 -0
  138. data/lib/oneview-sdk/resource/api2200/synergy/scope.rb +22 -0
  139. data/lib/oneview-sdk/resource/api2200/synergy/server_certificate.rb +22 -0
  140. data/lib/oneview-sdk/resource/api2200/synergy/server_hardware.rb +22 -0
  141. data/lib/oneview-sdk/resource/api2200/synergy/server_hardware_type.rb +22 -0
  142. data/lib/oneview-sdk/resource/api2200/synergy/server_profile.rb +25 -0
  143. data/lib/oneview-sdk/resource/api2200/synergy/server_profile_template.rb +22 -0
  144. data/lib/oneview-sdk/resource/api2200/synergy/storage_pool.rb +22 -0
  145. data/lib/oneview-sdk/resource/api2200/synergy/storage_system.rb +22 -0
  146. data/lib/oneview-sdk/resource/api2200/synergy/uplink_set.rb +22 -0
  147. data/lib/oneview-sdk/resource/api2200/synergy/volume.rb +22 -0
  148. data/lib/oneview-sdk/resource/api2200/synergy/volume_attachment.rb +22 -0
  149. data/lib/oneview-sdk/resource/api2200/synergy/volume_template.rb +22 -0
  150. data/lib/oneview-sdk/resource/api2400.rb +66 -0
  151. data/lib/oneview-sdk/resource/api2400/c7000.rb +27 -0
  152. data/lib/oneview-sdk/resource/api2400/c7000/connection_template.rb +22 -0
  153. data/lib/oneview-sdk/resource/api2400/c7000/enclosure.rb +22 -0
  154. data/lib/oneview-sdk/resource/api2400/c7000/enclosure_group.rb +22 -0
  155. data/lib/oneview-sdk/resource/api2400/c7000/ethernet_network.rb +22 -0
  156. data/lib/oneview-sdk/resource/api2400/c7000/fc_network.rb +22 -0
  157. data/lib/oneview-sdk/resource/api2400/c7000/fcoe_network.rb +22 -0
  158. data/lib/oneview-sdk/resource/api2400/c7000/firmware_driver.rb +22 -0
  159. data/lib/oneview-sdk/resource/api2400/c7000/hypervisor_cluster_profile.rb +22 -0
  160. data/lib/oneview-sdk/resource/api2400/c7000/hypervisor_manager.rb +22 -0
  161. data/lib/oneview-sdk/resource/api2400/c7000/interconnect.rb +22 -0
  162. data/lib/oneview-sdk/resource/api2400/c7000/lig_uplink_set.rb +21 -0
  163. data/lib/oneview-sdk/resource/api2400/c7000/logical_enclosure.rb +22 -0
  164. data/lib/oneview-sdk/resource/api2400/c7000/logical_interconnect.rb +33 -0
  165. data/lib/oneview-sdk/resource/api2400/c7000/logical_interconnect_group.rb +22 -0
  166. data/lib/oneview-sdk/resource/api2400/c7000/network_set.rb +22 -0
  167. data/lib/oneview-sdk/resource/api2400/c7000/scope.rb +22 -0
  168. data/lib/oneview-sdk/resource/api2400/c7000/server_certificate.rb +22 -0
  169. data/lib/oneview-sdk/resource/api2400/c7000/server_hardware.rb +22 -0
  170. data/lib/oneview-sdk/resource/api2400/c7000/server_hardware_type.rb +22 -0
  171. data/lib/oneview-sdk/resource/api2400/c7000/server_profile.rb +22 -0
  172. data/lib/oneview-sdk/resource/api2400/c7000/server_profile_template.rb +22 -0
  173. data/lib/oneview-sdk/resource/api2400/c7000/storage_pool.rb +22 -0
  174. data/lib/oneview-sdk/resource/api2400/c7000/storage_system.rb +22 -0
  175. data/lib/oneview-sdk/resource/api2400/c7000/uplink_set.rb +22 -0
  176. data/lib/oneview-sdk/resource/api2400/c7000/volume.rb +22 -0
  177. data/lib/oneview-sdk/resource/api2400/c7000/volume_attachment.rb +22 -0
  178. data/lib/oneview-sdk/resource/api2400/c7000/volume_template.rb +22 -0
  179. data/lib/oneview-sdk/resource/api2400/synergy.rb +27 -0
  180. data/lib/oneview-sdk/resource/api2400/synergy/connection_template.rb +22 -0
  181. data/lib/oneview-sdk/resource/api2400/synergy/enclosure.rb +22 -0
  182. data/lib/oneview-sdk/resource/api2400/synergy/enclosure_group.rb +22 -0
  183. data/lib/oneview-sdk/resource/api2400/synergy/ethernet_network.rb +22 -0
  184. data/lib/oneview-sdk/resource/api2400/synergy/fc_network.rb +22 -0
  185. data/lib/oneview-sdk/resource/api2400/synergy/fcoe_network.rb +22 -0
  186. data/lib/oneview-sdk/resource/api2400/synergy/firmware_driver.rb +22 -0
  187. data/lib/oneview-sdk/resource/api2400/synergy/hypervisor_cluster_profile.rb +22 -0
  188. data/lib/oneview-sdk/resource/api2400/synergy/hypervisor_manager.rb +22 -0
  189. data/lib/oneview-sdk/resource/api2400/synergy/interconnect.rb +22 -0
  190. data/lib/oneview-sdk/resource/api2400/synergy/lig_uplink_set.rb +21 -0
  191. data/lib/oneview-sdk/resource/api2400/synergy/logical_enclosure.rb +22 -0
  192. data/lib/oneview-sdk/resource/api2400/synergy/logical_interconnect.rb +22 -0
  193. data/lib/oneview-sdk/resource/api2400/synergy/logical_interconnect_group.rb +22 -0
  194. data/lib/oneview-sdk/resource/api2400/synergy/network_set.rb +22 -0
  195. data/lib/oneview-sdk/resource/api2400/synergy/os_deployment_plan.rb +22 -0
  196. data/lib/oneview-sdk/resource/api2400/synergy/scope.rb +22 -0
  197. data/lib/oneview-sdk/resource/api2400/synergy/server_certificate.rb +22 -0
  198. data/lib/oneview-sdk/resource/api2400/synergy/server_hardware.rb +22 -0
  199. data/lib/oneview-sdk/resource/api2400/synergy/server_hardware_type.rb +22 -0
  200. data/lib/oneview-sdk/resource/api2400/synergy/server_profile.rb +23 -0
  201. data/lib/oneview-sdk/resource/api2400/synergy/server_profile_template.rb +22 -0
  202. data/lib/oneview-sdk/resource/api2400/synergy/storage_pool.rb +22 -0
  203. data/lib/oneview-sdk/resource/api2400/synergy/storage_system.rb +22 -0
  204. data/lib/oneview-sdk/resource/api2400/synergy/uplink_set.rb +22 -0
  205. data/lib/oneview-sdk/resource/api2400/synergy/volume.rb +22 -0
  206. data/lib/oneview-sdk/resource/api2400/synergy/volume_attachment.rb +22 -0
  207. data/lib/oneview-sdk/resource/api2400/synergy/volume_template.rb +22 -0
  208. data/lib/oneview-sdk/resource/api2600.rb +66 -0
  209. data/lib/oneview-sdk/resource/api2600/c7000.rb +27 -0
  210. data/lib/oneview-sdk/resource/api2600/c7000/connection_template.rb +22 -0
  211. data/lib/oneview-sdk/resource/api2600/c7000/enclosure.rb +22 -0
  212. data/lib/oneview-sdk/resource/api2600/c7000/enclosure_group.rb +22 -0
  213. data/lib/oneview-sdk/resource/api2600/c7000/ethernet_network.rb +22 -0
  214. data/lib/oneview-sdk/resource/api2600/c7000/fc_network.rb +22 -0
  215. data/lib/oneview-sdk/resource/api2600/c7000/fcoe_network.rb +22 -0
  216. data/lib/oneview-sdk/resource/api2600/c7000/firmware_driver.rb +22 -0
  217. data/lib/oneview-sdk/resource/api2600/c7000/hypervisor_cluster_profile.rb +22 -0
  218. data/lib/oneview-sdk/resource/api2600/c7000/hypervisor_manager.rb +22 -0
  219. data/lib/oneview-sdk/resource/api2600/c7000/interconnect.rb +22 -0
  220. data/lib/oneview-sdk/resource/api2600/c7000/lig_uplink_set.rb +21 -0
  221. data/lib/oneview-sdk/resource/api2600/c7000/logical_enclosure.rb +22 -0
  222. data/lib/oneview-sdk/resource/api2600/c7000/logical_interconnect.rb +22 -0
  223. data/lib/oneview-sdk/resource/api2600/c7000/logical_interconnect_group.rb +22 -0
  224. data/lib/oneview-sdk/resource/api2600/c7000/network_set.rb +22 -0
  225. data/lib/oneview-sdk/resource/api2600/c7000/scope.rb +22 -0
  226. data/lib/oneview-sdk/resource/api2600/c7000/server_certificate.rb +22 -0
  227. data/lib/oneview-sdk/resource/api2600/c7000/server_hardware.rb +22 -0
  228. data/lib/oneview-sdk/resource/api2600/c7000/server_hardware_type.rb +22 -0
  229. data/lib/oneview-sdk/resource/api2600/c7000/server_profile.rb +22 -0
  230. data/lib/oneview-sdk/resource/api2600/c7000/server_profile_template.rb +22 -0
  231. data/lib/oneview-sdk/resource/api2600/c7000/storage_pool.rb +22 -0
  232. data/lib/oneview-sdk/resource/api2600/c7000/storage_system.rb +22 -0
  233. data/lib/oneview-sdk/resource/api2600/c7000/uplink_set.rb +22 -0
  234. data/lib/oneview-sdk/resource/api2600/c7000/volume.rb +22 -0
  235. data/lib/oneview-sdk/resource/api2600/c7000/volume_attachment.rb +22 -0
  236. data/lib/oneview-sdk/resource/api2600/c7000/volume_template.rb +22 -0
  237. data/lib/oneview-sdk/resource/api2600/synergy.rb +27 -0
  238. data/lib/oneview-sdk/resource/api2600/synergy/connection_template.rb +22 -0
  239. data/lib/oneview-sdk/resource/api2600/synergy/enclosure.rb +22 -0
  240. data/lib/oneview-sdk/resource/api2600/synergy/enclosure_group.rb +22 -0
  241. data/lib/oneview-sdk/resource/api2600/synergy/ethernet_network.rb +22 -0
  242. data/lib/oneview-sdk/resource/api2600/synergy/fc_network.rb +22 -0
  243. data/lib/oneview-sdk/resource/api2600/synergy/fcoe_network.rb +22 -0
  244. data/lib/oneview-sdk/resource/api2600/synergy/firmware_driver.rb +22 -0
  245. data/lib/oneview-sdk/resource/api2600/synergy/hypervisor_cluster_profile.rb +22 -0
  246. data/lib/oneview-sdk/resource/api2600/synergy/hypervisor_manager.rb +22 -0
  247. data/lib/oneview-sdk/resource/api2600/synergy/interconnect.rb +22 -0
  248. data/lib/oneview-sdk/resource/api2600/synergy/lig_uplink_set.rb +21 -0
  249. data/lib/oneview-sdk/resource/api2600/synergy/logical_enclosure.rb +22 -0
  250. data/lib/oneview-sdk/resource/api2600/synergy/logical_interconnect.rb +22 -0
  251. data/lib/oneview-sdk/resource/api2600/synergy/logical_interconnect_group.rb +22 -0
  252. data/lib/oneview-sdk/resource/api2600/synergy/network_set.rb +22 -0
  253. data/lib/oneview-sdk/resource/api2600/synergy/scope.rb +22 -0
  254. data/lib/oneview-sdk/resource/api2600/synergy/server_certificate.rb +22 -0
  255. data/lib/oneview-sdk/resource/api2600/synergy/server_hardware.rb +22 -0
  256. data/lib/oneview-sdk/resource/api2600/synergy/server_hardware_type.rb +22 -0
  257. data/lib/oneview-sdk/resource/api2600/synergy/server_profile.rb +23 -0
  258. data/lib/oneview-sdk/resource/api2600/synergy/server_profile_template.rb +22 -0
  259. data/lib/oneview-sdk/resource/api2600/synergy/storage_pool.rb +22 -0
  260. data/lib/oneview-sdk/resource/api2600/synergy/storage_system.rb +22 -0
  261. data/lib/oneview-sdk/resource/api2600/synergy/uplink_set.rb +22 -0
  262. data/lib/oneview-sdk/resource/api2600/synergy/volume.rb +22 -0
  263. data/lib/oneview-sdk/resource/api2600/synergy/volume_attachment.rb +22 -0
  264. data/lib/oneview-sdk/resource/api2600/synergy/volume_template.rb +22 -0
  265. data/lib/oneview-sdk/version.rb +2 -2
  266. data/oneview-sdk.gemspec +2 -2
  267. metadata +252 -5
data/lib/oneview-sdk.rb CHANGED
@@ -26,7 +26,7 @@ module OneviewSDK
26
26
  env_i3s = %w[I3S_URL I3S_SSL_ENABLED]
27
27
  ENV_VARS = env_sdk.concat(env_i3s).freeze
28
28
 
29
- SUPPORTED_API_VERSIONS = [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800].freeze
29
+ SUPPORTED_API_VERSIONS = [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800, 2000, 2200, 2400, 2600].freeze
30
30
  DEFAULT_API_VERSION = 200
31
31
  @api_version = DEFAULT_API_VERSION
32
32
  @api_version_updated = false # Whether or not the API version has been set by the user
@@ -35,7 +35,7 @@ module OneviewSDK
35
35
  # @option options [String] :domain ('LOCAL') The name of the domain directory used for authentication
36
36
  # @option options [String] :token (ENV['ONEVIEWSDK_TOKEN']) The token to use for authentication with OneView appliance
37
37
  # Use the token or the username and password (not both). The token has precedence.
38
- # @option options [Integer] :api_version (200) This is the API version to use by default for requests
38
+ # @option options [Integer] :api_version (1800) Appliance's max API version to be used by default for requests
39
39
  # @option options [Boolean] :ssl_enabled (true) Use ssl for requests? Respects ENV['ONEVIEWSDK_SSL_ENABLED']
40
40
  # @option options [Integer] :timeout (nil) Override the default request timeout value
41
41
  def initialize(options = {})
@@ -51,7 +51,7 @@ module OneviewSDK
51
51
  if options[:api_version] && options[:api_version].to_i > @max_api_version
52
52
  logger.warn "API version #{options[:api_version]} is greater than the appliance API version (#{@max_api_version})"
53
53
  end
54
- @api_version = options[:api_version] || [OneviewSDK::DEFAULT_API_VERSION, @max_api_version].min
54
+ @api_version = options[:api_version] || @max_api_version
55
55
  # Set the default OneviewSDK module API version
56
56
  OneviewSDK.api_version = @api_version unless OneviewSDK.api_version_updated? || !OneviewSDK::SUPPORTED_API_VERSIONS.include?(@api_version)
57
57
  @ssl_enabled = true
@@ -0,0 +1,39 @@
1
+ # (c) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../resource'
13
+
14
+ module OneviewSDK
15
+ # Module Image Streamer
16
+ module ImageStreamer
17
+ # Module API 2000
18
+ module API2000
19
+ # Get resource class that matches the type given
20
+ # @param [String] type Name of the desired class type
21
+ # @param [String] variant There is only 1 variant for this module, so this is not used.
22
+ # It exists only so that the parameters match API modules that do have multiple variants.
23
+ # @return [Class] Resource class or nil if not found
24
+ def self.resource_named(type, _variant = nil)
25
+ new_type = type.to_s.downcase.gsub(/[ -_]/, '')
26
+ constants.each do |c|
27
+ klass = const_get(c)
28
+ next unless klass.is_a?(Class) && klass < OneviewSDK::Resource
29
+ name = klass.name.split('::').last.downcase.delete('_').delete('-')
30
+ return klass if new_type =~ /^#{name}[s]?$/
31
+ end
32
+ nil
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ # Load all API-specific resources:
39
+ Dir[File.dirname(__FILE__) + '/api2000/*.rb'].each { |file| require file }
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API1600::ArtifactBundle
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API1600::BuildPlan
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API1600::DeploymentGroup
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/deployment_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API1600::DeploymentPlan
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API1600::GoldenImage
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API1600::OSVolume
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api1600/plan_script'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2000
17
+ # Plan Script resource implementation for Image Streamer
18
+ class PlanScript < OneviewSDK::ImageStreamer::API1600::PlanScript
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,39 @@
1
+ # (c) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../resource'
13
+
14
+ module OneviewSDK
15
+ # Module Image Streamer
16
+ module ImageStreamer
17
+ # Module API 2010
18
+ module API2010
19
+ # Get resource class that matches the type given
20
+ # @param [String] type Name of the desired class type
21
+ # @param [String] variant There is only 1 variant for this module, so this is not used.
22
+ # It exists only so that the parameters match API modules that do have multiple variants.
23
+ # @return [Class] Resource class or nil if not found
24
+ def self.resource_named(type, _variant = nil)
25
+ new_type = type.to_s.downcase.gsub(/[ -_]/, '')
26
+ constants.each do |c|
27
+ klass = const_get(c)
28
+ next unless klass.is_a?(Class) && klass < OneviewSDK::Resource
29
+ name = klass.name.split('::').last.downcase.delete('_').delete('-')
30
+ return klass if new_type =~ /^#{name}[s]?$/
31
+ end
32
+ nil
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ # Load all API-specific resources:
39
+ Dir[File.dirname(__FILE__) + '/api2010/*.rb'].each { |file| require file }
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API2000::ArtifactBundle
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API2000::BuildPlan
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API2000::DeploymentGroup
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/deployment_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API2000::DeploymentPlan
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API2000::GoldenImage
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API2000::OSVolume
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../api2000/plan_script'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API2010
17
+ # Plan Script resource implementation for Image Streamer
18
+ class PlanScript < OneviewSDK::ImageStreamer::API2000::PlanScript
19
+ end
20
+ end
21
+ end
22
+ end