Skip to content

Commit

Permalink
Extended Support to OV6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AsisBagga committed Apr 7, 2021
1 parent b741786 commit 5021e2e
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 65 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,45 @@
## 6.1.0 (Unreleased)
#### Notes
Extends support of the SDK to OneView REST API version 2800 (OneView v6.10) and ImageStreamer REST API version 2020 (I3S v6.10).

#### Features supported
- Artifact Bundle
- Build Plan
- Connection Template
- Deployment Group
- Deployment Plan
- Enclosure
- Enclosure Group
- Ethernet Network
- FC Network
- FCOE Network
- Firmware Driver
- Golden Image
- Hypervisor Cluster Profile
- Hypervisor Manager
- Interconnects
- Interconnect Type
- LIG Uplink Set
- Logical Enclosure
- Logical Interconnect
- Logical Interconnect Group
- Network Set
- OS Deployment Plan
- OS Volume
- Plan Script
- Scope
- Server Certificate
- Server Hardware
- Server Hardware Type
- Server Profile
- Server Profile Template
- Storage Pool
- Storage System
- Uplink Set
- Volume
- Volume Attachment
- Volume Template

## 6.0.0
#### Notes
Extends support of the SDK to OneView REST API version 2600 (OneView v6.00) and ImageStreamer REST API version 2010 (I3S v6.00).
Expand Down
102 changes: 51 additions & 51 deletions endpoints-support.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions examples/image-streamer/artifact_bundle.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -13,13 +13,15 @@
require_relative '../_client_i3s' # Gives access to @client

# Supported APIs:
# - 1000, 1020, 1600, 2000
# - 1000, 1020, 1600, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::ArtifactBundle
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::ArtifactBundle
# api_version = 1600 & variant = Synergy to OneviewSDK::ImageStreamer::API1600::ArtifactBundle
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::ArtifactBundle
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::ArtifactBundle
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::ArtifactBundle

# Example:
# - Create, update, download, upload, extract and delete an artifact bundle for an Image Streamer
Expand Down
6 changes: 4 additions & 2 deletions examples/image-streamer/build_plan.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,14 @@

require_relative '../_client_i3s' # Gives access to @client
# Supported APIs:
# - 1000, 1020, 2000
# - 1000, 1020, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::BuildPlan
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::BuildPlan
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::BuildPlan
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::BuildPlan
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::BuildPlan

# Example: Create a build plan for an Image Streamer
# NOTE: This will create three build plans with the following names 'Build_Plan_1', 'Build_Plan_2' and 'Build_Plan_3', then delete them.
Expand Down
6 changes: 4 additions & 2 deletions examples/image-streamer/deployment_group.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -12,13 +12,15 @@
require_relative '../_client_i3s' # Gives access to @client

# Supported APIs:
# - 1000, 1020, 1600, 2000
# - 1000, 1020, 1600, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::DeploymentGroup
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::DeploymentGroup
# api_version = 1600 & variant = Synergy to OneviewSDK::ImageStreamer::API1600::DeploymentGroup
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::DeploymentGroup
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::DeploymentGroup
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::DeploymentGroup

# Example:
# - Gets the Deployment Groups
Expand Down
4 changes: 3 additions & 1 deletion examples/image-streamer/deployment_plan.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,8 @@
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::DeploymentPlan
# api_version = 1600 & variant = Synergy to OneviewSDK::ImageStreamer::API1600::DeploymentPlan
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::DeploymentPlan
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::DeploymentPlan
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::DeploymentPlan

# Example: Create a deployment plan for an Image Streamer
# NOTE: This will create a deployment plan named 'Deployment_Plan_1', then delete it.
Expand Down
6 changes: 4 additions & 2 deletions examples/image-streamer/golden_image.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,14 @@

require_relative '../_client_i3s' # Gives access to @client
# Supported APIs:
# - 1000, 1020, 2000
# - 1000, 1020, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::GoldenImage
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::GoldenImage
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::GoldenImage
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::GoldenImage
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::GoldenImage

# Example: Create a golden image for an Image Streamer
# NOTE: This will create a golden images named 'Golden_Image_1' and 'Golden_Image_2', and then, it will delete them.
Expand Down
6 changes: 4 additions & 2 deletions examples/image-streamer/os_volume.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,14 @@

require_relative '../_client_i3s' # Gives access to @client
# Supported APIs:
# - 1000, 1020, 2000
# - 1000, 1020, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::OSVolume
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::OSVolume
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::OSVolume
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::OSVolume
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::OSVolume

# Example: Os Volume for an Image Streamer
# NOTE: You must have one os volume.
Expand Down
6 changes: 4 additions & 2 deletions examples/image-streamer/plan_script.rb
@@ -1,4 +1,4 @@
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -12,12 +12,14 @@
require_relative '../_client_i3s' # Gives access to @client

# Supported APIs:
# - 1000, 1020, 2000
# - 1000, 1020, 2000, 2010, 2020

# Resources that can be created according to parameters:
# api_version = 1000 & variant = Synergy to OneviewSDK::ImageStreamer::API1000::PlanScript
# api_version = 1020 & variant = Synergy to OneviewSDK::ImageStreamer::API1020::PlanScript
# api_version = 2000 & variant = Synergy to OneviewSDK::ImageStreamer::API2000::PlanScript
# api_version = 2010 & variant = Synergy to OneviewSDK::ImageStreamer::API2010::PlanScript
# api_version = 2020 & variant = Synergy to OneviewSDK::ImageStreamer::API2020::PlanScript

# Example: Create a plan script for an Image Streamer
# NOTE: This will create a plan script named 'Plan_Script_1', then delete it.
Expand Down
2 changes: 1 addition & 1 deletion lib/oneview-sdk/image_streamer.rb
Expand Up @@ -19,7 +19,7 @@
module OneviewSDK
# Module for interacting with the Image Streamer
module ImageStreamer
SUPPORTED_API_VERSIONS = [300, 500, 600, 800, 1000, 1020, 1600, 2000, 2010].freeze
SUPPORTED_API_VERSIONS = [300, 500, 600, 800, 1000, 1020, 1600, 2000, 2010, 2020].freeze
DEFAULT_API_VERSION = 300
@api_version = DEFAULT_API_VERSION
@api_version_updated = false # Whether or not the API version has been set by the user
Expand Down

0 comments on commit 5021e2e

Please sign in to comment.