oneview-sdk 5.4.0 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a1801cd0e7dd409ade80931f6fe90eb5b614ac7
4
- data.tar.gz: abd9af71bf37116502824941bb98e1b392b16f0f
3
+ metadata.gz: 07152fbade09de6bccc4077a3a17602c4c8705a5
4
+ data.tar.gz: 66d087bf3b22dcd35011801e35591c27ae8d2a9d
5
5
  SHA512:
6
- metadata.gz: 2513d1c54f36dec19ae78caa47119ba32f49b5ed978aa036840fdd3f8028f6b6042bc76738d7d4f22e0c5facbe3c027af4936c572dcc0c4af44e2c63cf727b4f
7
- data.tar.gz: b9191bc268e64ad3156e5db412f8e399517ac240daa3bd7fc5e7a218812af6115d473108861e473ba4c7cd739fa0d85d69a666c757f864660217adf04e8726f5
6
+ metadata.gz: 9c88f8021a2dd818843e610acbadacd17ad57a654728c45cd8e36d44d4fabae1ee608aa6ff468e35a282fd784d32d3a1648c852d506b35e4eb11fcd097e536be
7
+ data.tar.gz: 2d3605fc700804ef84386b5154d54801bd152b139f1b4fd5eb12f287de796c61c55cb3fd3a255b227bb643ed6022a8c2ea7d04cc5bdada1c20fba58c29dedaa5
@@ -1,3 +1,19 @@
1
+ ## v5.5.0
2
+
3
+ #### Notes
4
+ Extended support to Image Streamer Rest API version 500((ImageStreamer v3.10)) and API version 600 (ImageStreamer v4.0).
5
+
6
+ #### Features supported
7
+ Extends support to OneView Rest API version 600 for the hardware variants C7000 and Synergy to the already existing features:
8
+ - OS Deployment Plan
9
+
10
+ Extended support to Image Streamer Rest API version 500 and 600 to the already existing features:
11
+ - Build Plan
12
+ - Deployment Plan
13
+ - Golden Image
14
+ - OS Volume
15
+
16
+
1
17
  ## v5.4.0
2
18
 
3
19
  #### Notes
@@ -252,8 +252,8 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
252
252
  |<sub>/rest/logical-interconnect-groups/{id}/settings</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
253
253
  | **Logical Interconnects** |
254
254
  |<sub>/rest/logical-interconnects</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
255
- |<sub>/rest/logical-interconnects/locations/interconnects</sub> | POST | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
256
- |<sub>/rest/logical-interconnects/locations/interconnects</sub> | DELETE | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
255
+ |<sub>/rest/logical-interconnects/locations/interconnects</sub> | POST | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
256
+ |<sub>/rest/logical-interconnects/locations/interconnects</sub> | DELETE | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
257
257
  |<sub>/rest/logical-interconnects/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
258
258
  |<sub>/rest/logical-interconnects/{id}/compliance</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
259
259
  |<sub>/rest/logical-interconnects/{id}/ethernetSettings</sub> | GET | :heavy_minus_sign: | :heavy_multiplication_x: |:heavy_multiplication_x: | :heavy_multiplication_x: |
@@ -262,12 +262,12 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
262
262
  |<sub>/rest/logical-interconnects/{id}/firmware</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
263
263
  |<sub>/rest/logical-interconnects/{id}/forwarding-information-base</sub> | GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
264
264
  |<sub>/rest/logical-interconnects/{id}/forwarding-information-base</sub> | POST | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
265
- |<sub>/rest/logical-interconnects/{id}/forwarding-information-base/{dumpFileName}.{suffix}</sub> | GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
265
+ |<sub>/rest/logical-interconnects/{id}/forwarding-information-base/{dumpFileName}.{suffix}</sub> | GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
266
266
  |<sub>/rest/logical-interconnects/{id}/internalNetworks</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
267
267
  |<sub>/rest/logical-interconnects/{id}/internalVlans</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
268
268
  |<sub>/rest/logical-interconnects/{id}/qos-aggregated-configuration</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
269
269
  |<sub>/rest/logical-interconnects/{id}/qos-aggregated-configuration</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
270
- |<sub>/rest/logical-interconnects/{id}/settings</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: || :heavy_minus_sign: |
270
+ |<sub>/rest/logical-interconnects/{id}/settings</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |
271
271
  |<sub>/rest/logical-interconnects/{id}/snmp-configuration</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
272
272
  |<sub>/rest/logical-interconnects/{id}/snmp-configuration</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
273
273
  |<sub>/rest/logical-interconnects/{id}/support-dumps</sub> | POST | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
@@ -277,7 +277,7 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
277
277
  |<sub>/rest/logical-interconnects/{id}/port-monitor</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
278
278
  |<sub>/rest/logical-interconnects/{id}/telemetry-configurations/{tcId}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
279
279
  |<sub>/rest/logical-interconnects/{id}/telemetry-configurations/{tcId}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
280
- |<sub>/rest/logical-interconnects/compliance</sub> | POST | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
280
+ |<sub>/rest/logical-interconnects/compliance</sub> | PUT | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
281
281
  |<sub>/rest/logical-interconnects/{id}</sub> | PATCH | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |
282
282
  | **Logical Switch Groups** |
283
283
  |<sub>/rest/logical-switch-groups</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
@@ -324,8 +324,8 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
324
324
  |<sub>/rest/network-sets/{id}/withoutEthernet</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
325
325
  |<sub>/rest/network-sets/{id}</sub> | PATCH | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |
326
326
  | **OS Deployment Plans** |
327
- |<sub>/rest/os-deployment-plans/</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
328
- |<sub>/rest/os-deployment-plans/{id}</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
327
+ |<sub>/rest/os-deployment-plans/</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
328
+ |<sub>/rest/os-deployment-plans/{id}</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
329
329
  | **OS Deployment Servers** |
330
330
  |<sub>/rest/os-deployment-servers</sub> | GET | :heavy_minus_sign: | | |
331
331
  |<sub>/rest/os-deployment-servers</sub> | POST | :heavy_minus_sign: | | |
@@ -425,7 +425,7 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
425
425
  |<sub>/rest/server-hardware/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
426
426
  |<sub>/rest/server-hardware/{id}/bios</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
427
427
  |<sub>/rest/server-hardware/{id}/environmentalConfiguration</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
428
- |<sub>/rest/server-hardware/{id}/environmentalConfiguration</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
428
+ |<sub>/rest/server-hardware/{id}/environmentalConfiguration</sub> | PUT | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
429
429
  |<sub>/rest/server-hardware/{id}/iloSsoUrl</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
430
430
  |<sub>/rest/server-hardware/{id}/javaRemoteConsoleUrl</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
431
431
  |<sub>/rest/server-hardware/{id}/mpFirmwareVersion</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
@@ -595,30 +595,33 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
595
595
  |<sub> /rest/deployment-groups</sub> | GET | :white_check_mark: |
596
596
  |<sub> /rest/deployment-groups/{id}</sub> | GET | :white_check_mark: |
597
597
  | **Deployment Plans** |
598
- |<sub> /rest/deployment-plans </sub> | POST | :white_check_mark: |
599
- |<sub> /rest/deployment-plans </sub> | GET | :white_check_mark: |
600
- |<sub> /rest/deployment-plans/{id} </sub> | GET | :white_check_mark: |
601
- |<sub> /rest/deployment-plans/{id} </sub> | PUT | :white_check_mark: |
602
- |<sub> /rest/deployment-plans/{id} </sub> | DELETE | :white_check_mark: |
598
+ |<sub> /rest/deployment-plans </sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
599
+ |<sub> /rest/deployment-plans </sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
600
+ |<sub> /rest/deployment-plans/{id} </sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
601
+ |<sub> /rest/deployment-plans/{id} </sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |
602
+ |<sub> /rest/deployment-plans/{id} </sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |
603
+ |<sub> /rest/deployment-plans/{id}/osdp </sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
604
+ |<sub> /rest/deployment-plans/{id}/usedby </sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
603
605
  | **Golden Images** |
604
- |<sub> /rest/golden-images</sub> | POST(create) | :white_check_mark: |
605
- |<sub> /rest/golden-images</sub> | POST(upload) | :white_check_mark: |
606
- |<sub> /rest/golden-images</sub> | GET | :white_check_mark: |
607
- |<sub> /rest/golden-images/{id}</sub> | GET | :white_check_mark: |
608
- |<sub> /rest/golden-images/archive/{id}</sub> | GET | :white_check_mark: |
609
- |<sub> /rest/golden-images/download/{id}</sub> | GET | :white_check_mark: |
610
- |<sub> /rest/golden-images/{id}</sub> | PUT | :white_check_mark: |
611
- |<sub> /rest/golden-images/{id}</sub> | DELETE | :white_check_mark: |
606
+ |<sub> /rest/golden-images</sub> | POST(create) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
607
+ |<sub> /rest/golden-images</sub> | POST(upload) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
608
+ |<sub> /rest/golden-images</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
609
+ |<sub> /rest/golden-images/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
610
+ |<sub> /rest/golden-images/archive/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
611
+ |<sub> /rest/golden-images/download/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
612
+ |<sub> /rest/golden-images/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |
613
+ |<sub> /rest/golden-images/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |
612
614
  | **OS Build Plan** |
613
- |<sub> /rest/build-plans</sub> | POST | :white_check_mark: |
614
- |<sub> /rest/build-plans</sub> | GET | :white_check_mark: |
615
- |<sub> /rest/build-plans/{id}</sub> | GET | :white_check_mark: |
616
- |<sub> /rest/build-plans/{id}</sub> | PUT | :white_check_mark: |
617
- |<sub> /rest/build-plans/{id}</sub> | DELETE | :white_check_mark: |
615
+ |<sub> /rest/build-plans</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
616
+ |<sub> /rest/build-plans</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
617
+ |<sub> /rest/build-plans/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
618
+ |<sub> /rest/build-plans/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |
619
+ |<sub> /rest/build-plans/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |
618
620
  | **OS Volumes** |
619
- |<sub> /rest/os-volumes</sub> | GET | :white_check_mark: |
620
- |<sub> /rest/os-volumes/{id}</sub> | GET | :white_check_mark: |
621
- |<sub> /rest/os-volumes/archive/{id}</sub> | GET | :white_check_mark: |
621
+ |<sub> /rest/os-volumes</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
622
+ |<sub> /rest/os-volumes/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
623
+ |<sub> /rest/os-volumes/archive/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
624
+ |<sub> /rest/os-volumes/{id}/storage</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
622
625
  | **Plan Scripts** |
623
626
  |<sub> /rest/plan-scripts</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
624
627
  |<sub> /rest/plan-scripts/differences/{id}</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
@@ -0,0 +1,32 @@
1
+ # (C) Copyright 2018 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/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API300::BuildPlan
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::ImageStreamer::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values:
26
+ @data['type'] ||= 'OeBuildPlanV5'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,42 @@
1
+ # (C) Copyright 2018 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_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API300::DeploymentPlan
19
+
20
+ # Create a resource object, associate it with a client, and set its properties.
21
+ # @param [OneviewSDK::ImageStreamer::Client] client The client object for the OneView appliance
22
+ # @param [Hash] params The options for this resource (key-value pairs)
23
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
24
+ def initialize(client, params = {}, api_ver = nil)
25
+ @data ||= {}
26
+ # Default values:
27
+ @data['type'] ||= 'OEDeploymentPlanV5'
28
+ super
29
+ end
30
+
31
+ # Retrieves the Deployment Plan details as per the selected attributes.
32
+ # @return [Hash] The OS Deployment Plan.
33
+ def get_used_by
34
+ ensure_client && ensure_uri
35
+ path = "#{BASE_URI}/#{@data['uri'].split('/').last}/usedby/"
36
+ response = @client.rest_get(path, { 'Content-Type' => 'none' }, @api_version)
37
+ @client.response_handler(response)
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2018 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/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API300::GoldenImage
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2018 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/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API500
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API300::OSVolume
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2018 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/build_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # Build Plan resource implementation for Image Streamer
18
+ class BuildPlan < OneviewSDK::ImageStreamer::API500::BuildPlan
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,31 @@
1
+ # (C) Copyright 2018 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_plan'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # Deployment Plan resource implementation for Image Streamer
18
+ class DeploymentPlan < OneviewSDK::ImageStreamer::API500::DeploymentPlan
19
+
20
+ # Retrieves the Deployment Plan details as per the selected attributes.
21
+ # @return [Hash] The OS Deployment Plan.
22
+ def get_osdp
23
+ ensure_client && ensure_uri
24
+ path = "#{BASE_URI}/#{@data['uri'].split('/').last}/osdp/"
25
+ response = @client.rest_get(path, { 'Content-Type' => 'none' }, @api_version)
26
+ @client.response_handler(response)
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2018 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/golden_image'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # Golden Image resource implementation for Image Streamer
18
+ class GoldenImage < OneviewSDK::ImageStreamer::API500::GoldenImage
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,38 @@
1
+ # (C) Copyright 2018 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/os_volume'
13
+
14
+ module OneviewSDK
15
+ module ImageStreamer
16
+ module API600
17
+ # OS Volume resource implementation for Image Streamer
18
+ class OSVolume < OneviewSDK::ImageStreamer::API500::OSVolume
19
+ # Get the details of the archived OS volume with the specified attribute.
20
+ # @return [Hash] The details of the archived OS volume with the specified attribute
21
+ def get_details_archive
22
+ ensure_client && ensure_uri
23
+ response = @client.rest_get("#{BASE_URI}/archive/#{data['name']}")
24
+ @client.response_handler(response)
25
+ end
26
+
27
+ # Retrieves the os volumes storage of the selected os volumes as per the selected attributes.
28
+ # @return [Hash] The readonly artifacts of the selected OS Volumes.
29
+ def get_os_volumes_storage
30
+ ensure_client && ensure_uri
31
+ path = "#{BASE_URI}/#{@data['uri'].split('/').last}/storage"
32
+ response = @client.rest_get(path, { 'Content-Type' => 'none' }, @api_version)
33
+ @client.response_handler(response)
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -204,21 +204,6 @@ module OneviewSDK
204
204
  @client.response_handler(response)
205
205
  end
206
206
 
207
- private
208
-
209
- # Converts Date, Time, or String objects to iso8601 string
210
- def convert_time(t)
211
- case t
212
- when nil then nil
213
- when Date then t.to_time.utc.iso8601(3)
214
- when Time then t.utc.iso8601(3)
215
- when String then Time.parse(t).utc.iso8601(3)
216
- else raise InvalidResource, "Invalid time format '#{t.class}'. Valid options are Time, Date, or String"
217
- end
218
- rescue StandardError => e
219
- raise InvalidResource, "Failed to parse time value '#{t}'. #{e.message}"
220
- end
221
-
222
207
  # Set power state. Takes into consideration the current state and does the right thing
223
208
  def set_power_state(state, force)
224
209
  refresh
@@ -245,6 +230,21 @@ module OneviewSDK
245
230
  set_all(body)
246
231
  true
247
232
  end
233
+
234
+ private
235
+
236
+ # Converts Date, Time, or String objects to iso8601 string
237
+ def convert_time(t)
238
+ case t
239
+ when nil then nil
240
+ when Date then t.to_time.utc.iso8601(3)
241
+ when Time then t.utc.iso8601(3)
242
+ when String then Time.parse(t).utc.iso8601(3)
243
+ else raise InvalidResource, "Invalid time format '#{t.class}'. Valid options are Time, Date, or String"
244
+ end
245
+ rescue StandardError => e
246
+ raise InvalidResource, "Failed to parse time value '#{t}'. #{e.message}"
247
+ end
248
248
  end
249
249
  end
250
250
  end
@@ -11,5 +11,5 @@
11
11
 
12
12
  # Gem version defined here
13
13
  module OneviewSDK
14
- VERSION = '5.4.0'.freeze
14
+ VERSION = '5.5.0'.freeze
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneview-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Diomede
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-04-03 00:00:00.000000000 Z
14
+ date: 2018-05-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
@@ -231,8 +231,16 @@ files:
231
231
  - lib/oneview-sdk/image-streamer/resource/api300/plan_script.rb
232
232
  - lib/oneview-sdk/image-streamer/resource/api300/resource.rb
233
233
  - lib/oneview-sdk/image-streamer/resource/api500.rb
234
+ - lib/oneview-sdk/image-streamer/resource/api500/build_plan.rb
235
+ - lib/oneview-sdk/image-streamer/resource/api500/deployment_plan.rb
236
+ - lib/oneview-sdk/image-streamer/resource/api500/golden_image.rb
237
+ - lib/oneview-sdk/image-streamer/resource/api500/os_volume.rb
234
238
  - lib/oneview-sdk/image-streamer/resource/api500/plan_script.rb
235
239
  - lib/oneview-sdk/image-streamer/resource/api600.rb
240
+ - lib/oneview-sdk/image-streamer/resource/api600/build_plan.rb
241
+ - lib/oneview-sdk/image-streamer/resource/api600/deployment_plan.rb
242
+ - lib/oneview-sdk/image-streamer/resource/api600/golden_image.rb
243
+ - lib/oneview-sdk/image-streamer/resource/api600/os_volume.rb
236
244
  - lib/oneview-sdk/image-streamer/resource/api600/plan_script.rb
237
245
  - lib/oneview-sdk/image_streamer.rb
238
246
  - lib/oneview-sdk/resource.rb
@@ -601,7 +609,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
601
609
  version: '0'
602
610
  requirements: []
603
611
  rubyforge_project:
604
- rubygems_version: 2.6.11
612
+ rubygems_version: 2.6.14
605
613
  signing_key:
606
614
  specification_version: 4
607
615
  summary: Gem to interact with the HPE OneView API