oneview-sdk 5.8.0 → 5.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +89 -0
  3. data/Dockerfile +21 -0
  4. data/README.md +14 -1
  5. data/endpoints-support.md +503 -497
  6. data/lib/oneview-sdk.rb +2 -2
  7. data/lib/oneview-sdk/image-streamer/resource/api1000.rb +39 -0
  8. data/lib/oneview-sdk/image-streamer/resource/api1000/artifact_bundle.rb +22 -0
  9. data/lib/oneview-sdk/image-streamer/resource/api1000/build_plan.rb +22 -0
  10. data/lib/oneview-sdk/image-streamer/resource/api1000/deployment_group.rb +22 -0
  11. data/lib/oneview-sdk/image-streamer/resource/api1000/deployment_plan.rb +22 -0
  12. data/lib/oneview-sdk/image-streamer/resource/api1000/golden_image.rb +22 -0
  13. data/lib/oneview-sdk/image-streamer/resource/api1000/os_volume.rb +22 -0
  14. data/lib/oneview-sdk/image-streamer/resource/api1000/plan_script.rb +22 -0
  15. data/lib/oneview-sdk/image-streamer/resource/api1020.rb +39 -0
  16. data/lib/oneview-sdk/image-streamer/resource/api1020/artifact_bundle.rb +22 -0
  17. data/lib/oneview-sdk/image-streamer/resource/api1020/build_plan.rb +22 -0
  18. data/lib/oneview-sdk/image-streamer/resource/api1020/deployment_group.rb +22 -0
  19. data/lib/oneview-sdk/image-streamer/resource/api1020/deployment_plan.rb +22 -0
  20. data/lib/oneview-sdk/image-streamer/resource/api1020/golden_image.rb +22 -0
  21. data/lib/oneview-sdk/image-streamer/resource/api1020/os_volume.rb +22 -0
  22. data/lib/oneview-sdk/image-streamer/resource/api1020/plan_script.rb +22 -0
  23. data/lib/oneview-sdk/image-streamer/resource/api1600.rb +39 -0
  24. data/lib/oneview-sdk/image-streamer/resource/api1600/artifact_bundle.rb +22 -0
  25. data/lib/oneview-sdk/image-streamer/resource/api1600/build_plan.rb +22 -0
  26. data/lib/oneview-sdk/image-streamer/resource/api1600/deployment_group.rb +22 -0
  27. data/lib/oneview-sdk/image-streamer/resource/api1600/deployment_plan.rb +22 -0
  28. data/lib/oneview-sdk/image-streamer/resource/api1600/golden_image.rb +22 -0
  29. data/lib/oneview-sdk/image-streamer/resource/api1600/os_volume.rb +22 -0
  30. data/lib/oneview-sdk/image-streamer/resource/api1600/plan_script.rb +22 -0
  31. data/lib/oneview-sdk/image-streamer/resource/api500/artifact_bundle.rb +22 -0
  32. data/lib/oneview-sdk/image-streamer/resource/api500/deployment_group.rb +22 -0
  33. data/lib/oneview-sdk/image-streamer/resource/api600/artifact_bundle.rb +22 -0
  34. data/lib/oneview-sdk/image-streamer/resource/api600/deployment_group.rb +22 -0
  35. data/lib/oneview-sdk/image-streamer/resource/api600/os_volume.rb +2 -1
  36. data/lib/oneview-sdk/image-streamer/resource/api800.rb +39 -0
  37. data/lib/oneview-sdk/image-streamer/resource/api800/artifact_bundle.rb +22 -0
  38. data/lib/oneview-sdk/image-streamer/resource/api800/build_plan.rb +22 -0
  39. data/lib/oneview-sdk/image-streamer/resource/api800/deployment_group.rb +22 -0
  40. data/lib/oneview-sdk/image-streamer/resource/api800/deployment_plan.rb +22 -0
  41. data/lib/oneview-sdk/image-streamer/resource/api800/golden_image.rb +22 -0
  42. data/lib/oneview-sdk/image-streamer/resource/api800/os_volume.rb +22 -0
  43. data/lib/oneview-sdk/image-streamer/resource/api800/plan_script.rb +22 -0
  44. data/lib/oneview-sdk/image_streamer.rb +2 -2
  45. data/lib/oneview-sdk/resource/api1000/c7000/connection_template.rb +22 -0
  46. data/lib/oneview-sdk/resource/api1000/c7000/fc_network.rb +3 -3
  47. data/lib/oneview-sdk/resource/api1000/c7000/firmware_driver.rb +22 -0
  48. data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_cluster_profile.rb +22 -0
  49. data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_manager.rb +22 -0
  50. data/lib/oneview-sdk/resource/api1000/c7000/server_certificate.rb +22 -0
  51. data/lib/oneview-sdk/resource/api1000/synergy/connection_template.rb +22 -0
  52. data/lib/oneview-sdk/resource/api1000/synergy/firmware_driver.rb +22 -0
  53. data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_cluster_profile.rb +22 -0
  54. data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_manager.rb +22 -0
  55. data/lib/oneview-sdk/resource/api1000/synergy/interconnect.rb +2 -2
  56. data/lib/oneview-sdk/resource/api1000/synergy/sas_logical_interconnect_group.rb +22 -0
  57. data/lib/oneview-sdk/resource/api1000/synergy/server_certificate.rb +22 -0
  58. data/lib/oneview-sdk/resource/api1200/c7000/connection_template.rb +22 -0
  59. data/lib/oneview-sdk/resource/api1200/c7000/enclosure_group.rb +4 -0
  60. data/lib/oneview-sdk/resource/api1200/c7000/fc_network.rb +3 -3
  61. data/lib/oneview-sdk/resource/api1200/c7000/fcoe_network.rb +3 -3
  62. data/lib/oneview-sdk/resource/api1200/c7000/firmware_driver.rb +22 -0
  63. data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_cluster_profile.rb +22 -0
  64. data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_manager.rb +22 -0
  65. data/lib/oneview-sdk/resource/api1200/c7000/server_certificate.rb +22 -0
  66. data/lib/oneview-sdk/resource/api1200/synergy/connection_template.rb +22 -0
  67. data/lib/oneview-sdk/resource/api1200/synergy/enclosure_group.rb +4 -0
  68. data/lib/oneview-sdk/resource/api1200/synergy/firmware_driver.rb +22 -0
  69. data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_cluster_profile.rb +22 -0
  70. data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_manager.rb +22 -0
  71. data/lib/oneview-sdk/resource/api1200/synergy/interconnect.rb +12 -2
  72. data/lib/oneview-sdk/resource/api1200/synergy/logical_enclosure.rb +0 -10
  73. data/lib/oneview-sdk/resource/api1200/synergy/sas_logical_interconnect_group.rb +22 -0
  74. data/lib/oneview-sdk/resource/api1200/synergy/server_certificate.rb +22 -0
  75. data/lib/oneview-sdk/resource/api1600.rb +66 -0
  76. data/lib/oneview-sdk/resource/api1600/c7000.rb +27 -0
  77. data/lib/oneview-sdk/resource/api1600/c7000/connection_template.rb +22 -0
  78. data/lib/oneview-sdk/resource/api1600/c7000/enclosure.rb +22 -0
  79. data/lib/oneview-sdk/resource/api1600/c7000/enclosure_group.rb +22 -0
  80. data/lib/oneview-sdk/resource/api1600/c7000/ethernet_network.rb +22 -0
  81. data/lib/oneview-sdk/resource/api1600/c7000/fc_network.rb +22 -0
  82. data/lib/oneview-sdk/resource/api1600/c7000/fcoe_network.rb +23 -0
  83. data/lib/oneview-sdk/resource/api1600/c7000/firmware_driver.rb +22 -0
  84. data/lib/oneview-sdk/resource/api1600/c7000/hypervisor_cluster_profile.rb +36 -0
  85. data/lib/oneview-sdk/resource/api1600/c7000/hypervisor_manager.rb +22 -0
  86. data/lib/oneview-sdk/resource/api1600/c7000/interconnect.rb +26 -0
  87. data/lib/oneview-sdk/resource/api1600/c7000/lig_uplink_set.rb +21 -0
  88. data/lib/oneview-sdk/resource/api1600/c7000/logical_enclosure.rb +22 -0
  89. data/lib/oneview-sdk/resource/api1600/c7000/logical_interconnect.rb +32 -0
  90. data/lib/oneview-sdk/resource/api1600/c7000/logical_interconnect_group.rb +36 -0
  91. data/lib/oneview-sdk/resource/api1600/c7000/network_set.rb +22 -0
  92. data/lib/oneview-sdk/resource/api1600/c7000/scope.rb +22 -0
  93. data/lib/oneview-sdk/resource/api1600/c7000/server_certificate.rb +22 -0
  94. data/lib/oneview-sdk/resource/api1600/c7000/server_hardware.rb +22 -0
  95. data/lib/oneview-sdk/resource/api1600/c7000/server_hardware_type.rb +25 -0
  96. data/lib/oneview-sdk/resource/api1600/c7000/server_profile.rb +40 -0
  97. data/lib/oneview-sdk/resource/api1600/c7000/server_profile_template.rb +32 -0
  98. data/lib/oneview-sdk/resource/api1600/c7000/storage_pool.rb +22 -0
  99. data/lib/oneview-sdk/resource/api1600/c7000/storage_system.rb +22 -0
  100. data/lib/oneview-sdk/resource/api1600/c7000/uplink_set.rb +32 -0
  101. data/lib/oneview-sdk/resource/api1600/c7000/volume.rb +22 -0
  102. data/lib/oneview-sdk/resource/api1600/c7000/volume_attachment.rb +22 -0
  103. data/lib/oneview-sdk/resource/api1600/c7000/volume_template.rb +22 -0
  104. data/lib/oneview-sdk/resource/api1600/synergy.rb +27 -0
  105. data/lib/oneview-sdk/resource/api1600/synergy/connection_template.rb +22 -0
  106. data/lib/oneview-sdk/resource/api1600/synergy/enclosure.rb +22 -0
  107. data/lib/oneview-sdk/resource/api1600/synergy/enclosure_group.rb +22 -0
  108. data/lib/oneview-sdk/resource/api1600/synergy/ethernet_network.rb +22 -0
  109. data/lib/oneview-sdk/resource/api1600/synergy/fc_network.rb +22 -0
  110. data/lib/oneview-sdk/resource/api1600/synergy/fcoe_network.rb +22 -0
  111. data/lib/oneview-sdk/resource/api1600/synergy/firmware_driver.rb +22 -0
  112. data/lib/oneview-sdk/resource/api1600/synergy/hypervisor_cluster_profile.rb +22 -0
  113. data/lib/oneview-sdk/resource/api1600/synergy/hypervisor_manager.rb +22 -0
  114. data/lib/oneview-sdk/resource/api1600/synergy/interconnect.rb +25 -0
  115. data/lib/oneview-sdk/resource/api1600/synergy/lig_uplink_set.rb +21 -0
  116. data/lib/oneview-sdk/resource/api1600/synergy/logical_enclosure.rb +22 -0
  117. data/lib/oneview-sdk/resource/api1600/synergy/logical_interconnect.rb +32 -0
  118. data/lib/oneview-sdk/resource/api1600/synergy/logical_interconnect_group.rb +36 -0
  119. data/lib/oneview-sdk/resource/api1600/synergy/network_set.rb +22 -0
  120. data/lib/oneview-sdk/resource/api1600/synergy/os_deployment_plan.rb +22 -0
  121. data/lib/oneview-sdk/resource/api1600/synergy/scope.rb +22 -0
  122. data/lib/oneview-sdk/resource/api1600/synergy/server_certificate.rb +22 -0
  123. data/lib/oneview-sdk/resource/api1600/synergy/server_hardware.rb +22 -0
  124. data/lib/oneview-sdk/resource/api1600/synergy/server_hardware_type.rb +25 -0
  125. data/lib/oneview-sdk/resource/api1600/synergy/server_profile.rb +25 -0
  126. data/lib/oneview-sdk/resource/api1600/synergy/server_profile_template.rb +22 -0
  127. data/lib/oneview-sdk/resource/api1600/synergy/storage_pool.rb +22 -0
  128. data/lib/oneview-sdk/resource/api1600/synergy/storage_system.rb +22 -0
  129. data/lib/oneview-sdk/resource/api1600/synergy/uplink_set.rb +32 -0
  130. data/lib/oneview-sdk/resource/api1600/synergy/volume.rb +22 -0
  131. data/lib/oneview-sdk/resource/api1600/synergy/volume_attachment.rb +22 -0
  132. data/lib/oneview-sdk/resource/api1600/synergy/volume_template.rb +22 -0
  133. data/lib/oneview-sdk/resource/api200/volume.rb +2 -2
  134. data/lib/oneview-sdk/resource/api600/c7000/server_certificate.rb +63 -0
  135. data/lib/oneview-sdk/resource/api600/synergy/server_certificate.rb +22 -0
  136. data/lib/oneview-sdk/resource/api800/c7000/connection_template.rb +22 -0
  137. data/lib/oneview-sdk/resource/api800/c7000/firmware_driver.rb +22 -0
  138. data/lib/oneview-sdk/resource/api800/c7000/server_certificate.rb +22 -0
  139. data/lib/oneview-sdk/resource/api800/synergy/connection_template.rb +22 -0
  140. data/lib/oneview-sdk/resource/api800/synergy/firmware_driver.rb +22 -0
  141. data/lib/oneview-sdk/resource/api800/synergy/interconnect.rb +2 -2
  142. data/lib/oneview-sdk/resource/api800/synergy/sas_logical_interconnect_group.rb +22 -0
  143. data/lib/oneview-sdk/resource/api800/synergy/server_certificate.rb +22 -0
  144. data/lib/oneview-sdk/version.rb +2 -2
  145. data/oneview-sdk.gemspec +1 -1
  146. metadata +134 -7
@@ -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 '../api1020/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API1020::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 '../api1020/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API1020::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 '../api1020/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API1020::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 '../api1020/deployment_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API1020::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 '../api1020/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API1020::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 '../api1020/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API1020::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 '../api1020/plan_script'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API1600
17
+ # Plan Script resource implementation for Image Streamer
18
+ class PlanScript < OneviewSDK::ImageStreamer::API1020::PlanScript
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 '../api300/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API300::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 '../api300/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API300::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 '../api500/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API500::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 '../api500/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API500::DeploymentGroup
19
+ end
20
+ end
21
+ end
22
+ end
@@ -20,7 +20,8 @@ module OneviewSDK
20
20
  # @return [Hash] The details of the archived OS volume with the specified attribute
21
21
  def get_details_archive
22
22
  ensure_client && ensure_uri
23
- response = @client.rest_get("#{BASE_URI}/archive/#{data['name']}")
23
+ path = "#{BASE_URI}/archive/#{@data['uri'].split('/').last}"
24
+ response = @client.rest_get(path)
24
25
  @client.response_handler(response)
25
26
  end
26
27
 
@@ -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 800
18
+ module API800
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__) + '/api800/*.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 '../api600/artifact_bundle'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # Artifact Bundle resource implementation for Image Streamer
18
+ class ArtifactBundle < OneviewSDK::ImageStreamer::API600::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 '../api600/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API600::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 '../api600/deployment_group'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # Deployment Group resource implementation for Image Streamer
18
+ class DeploymentGroup < OneviewSDK::ImageStreamer::API600::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 '../api600/deployment_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API600::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 '../api600/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API600::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 '../api600/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API800
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API600::OSVolume
19
+ end
20
+ end
21
+ end
22
+ end