From c0ac3c78a3d281765afe13d67a98cff3d817f1b8 Mon Sep 17 00:00:00 2001 From: yuvirani Date: Tue, 9 Mar 2021 11:33:11 +0530 Subject: [PATCH 1/3] Release changes for 2600 --- .github/workflows/dockerimage.yml | 4 +-- README.md | 52 +++++++++++++++---------------- examples/_client.rb.example | 4 +-- lib/oneview-sdk/version.rb | 2 +- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index b209b8f9a..f9ce0c837 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -23,6 +23,6 @@ jobs: - name: Login to Docker Hub run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - name: Build the tagged Docker image - run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV5.6 + run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV6.0 - name: Push the tagged Docker image - run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV5.6 + run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV6.0 diff --git a/README.md b/README.md index e010384fa..f1fb3af09 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ ## Build Status -OV Version | 5.60 | 5.50 | 5.40 | 5.30 | +OV Version | 6.0 | 5.60 | 5.50 | 5.40 | | ------------- |:-------------:| -------------:| -------------:| -------------:| -SDK Version/Tag | [Master](https://github.com/HewlettPackard/oneview-sdk-ruby/tree/master) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) | [v5.15.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.15.0) | +SDK Version/Tag | [Master](https://github.com/HewlettPackard/oneview-sdk-ruby/tree/master) | [v5.18.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.18.0) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) | Build Status | ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| @@ -18,7 +18,7 @@ You can find the latest supported HPE OneView Ruby SDK [here](https://github.com ## What's New -HPE OneView Ruby library extends support of the SDK to OneView REST API version 2400 (OneView v5.60) +HPE OneView Ruby library extends support of the SDK to OneView REST API version 2600 (OneView v6.0) Please refer to [notes](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version @@ -34,17 +34,17 @@ The light weight containerized version of the HPE OneView SDK for Ruby is availa ```bash # Download and store a local copy of oneview-sdk-ruby and use it as a Docker Image. -$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.18.0-OV5.6 +$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.0.0-OV6.0 # Run docker commands below given, which will in turn create a sh session # where you can create files, issue commands and execute the examples. -$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.18.0-OV5.6 /bin/sh +$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.0.0-OV6.0 /bin/sh ``` ### Local Setup - Local installation requires the gem in your Gemfile: ```ruby - gem 'oneview-sdk', '~> 5.18' + gem 'oneview-sdk', '~> 6.0.0' ``` Then run `$ bundle install` @@ -72,7 +72,7 @@ client = OneviewSDK::Client.new( logger: Logger.new(STDOUT), # This is the default log_level: :info, # This is the default domain: 'LOCAL', # This is the default - api_version: 2400 # Defaults to appliance's max API version which is API version of OneView 5.60 + api_version: 2600 # Defaults to appliance's max API version which is API version of OneView 5.60 ) ``` @@ -93,7 +93,7 @@ i3s_client = OneviewSDK::ImageStreamer::Client.new( ssl_enabled: true, # This is the default and strongly encouraged logger: Logger.new(STDOUT), # This is the default log_level: :info, # This is the default - api_version: 2000 # Defaults to appliance's max API version + api_version: 2010 # Defaults to appliance's max API version ) ``` @@ -107,7 +107,7 @@ i3s_client = client.new_i3s_client( ssl_enabled: true, # This is the default and strongly encouraged logger: Logger.new(STDOUT), # This is the default log_level: :info, # This is the default - api_version: 2000 # Defaults to appliance's max API version + api_version: 2010 # Defaults to appliance's max API version ) ``` @@ -165,7 +165,7 @@ Configuration files can also be used to define client configuration (json or yam "url": "https://oneview.example.com", "user": "Administrator", "password": "secret123", - "api_version": 2400 + "api_version": 2600 } ``` @@ -203,20 +203,20 @@ You may notice resource classes being accessed in a few different ways; for exam require 'oneview-sdk' # Show defaults: -OneviewSDK::SUPPORTED_API_VERSIONS # [1000, 1200, 1600, 1800, 2000, 2200, 2400] -OneviewSDK::DEFAULT_API_VERSION # 2400 -OneviewSDK.api_version # 2400 +OneviewSDK::SUPPORTED_API_VERSIONS # [1000, 1200, 1600, 1800, 2000, 2200, 2600] +OneviewSDK::DEFAULT_API_VERSION # 2600 +OneviewSDK.api_version # 2600 OneviewSDK.api_version_updated? # false # Notice the automatic redirection/resolution when we use the shorthand accessor: -OneviewSDK::EthernetNetwork # OneviewSDK::API2400::EthernetNetwork +OneviewSDK::EthernetNetwork # OneviewSDK::API2600::EthernetNetwork # Even this comparison is true: -OneviewSDK::EthernetNetwork == OneviewSDK::API2400::EthernetNetwork # true +OneviewSDK::EthernetNetwork == OneviewSDK::API2600::EthernetNetwork # true # Now let's set a new API version default: -OneviewSDK.api_version = 2400 -OneviewSDK.api_version # 2400 +OneviewSDK.api_version = 2600 +OneviewSDK.api_version # 2600 OneviewSDK.api_version_updated? # true # The API300 and above has 2 variants (C7000 & Synergy): For eg @@ -236,19 +236,19 @@ OneviewSDK::API2200::DEFAULT_VARIANT # 'C7000' OneviewSDK::API2200.variant # 'C7000' OneviewSDK::API2200.variant_updated? # false -OneviewSDK::API2400::SUPPORTED_VARIANTS # ['C7000', 'Synergy'] -OneviewSDK::API2400::DEFAULT_VARIANT # 'C7000' -OneviewSDK::API2400.variant # 'C7000' -OneviewSDK::API2400.variant_updated? # false +OneviewSDK::API2600::SUPPORTED_VARIANTS # ['C7000', 'Synergy'] +OneviewSDK::API2600::DEFAULT_VARIANT # 'C7000' +OneviewSDK::API2600.variant # 'C7000' +OneviewSDK::API2600.variant_updated? # false -# Likewise, we can set a new default variant for the API2400 module: -OneviewSDK::2400.variant = 'Synergy' -OneviewSDK::API2400.variant # 'Synergy' -OneviewSDK::API2400.variant_updated? # true +# Likewise, we can set a new default variant for the API2600 module: +OneviewSDK::2600.variant = 'Synergy' +OneviewSDK::API2600.variant # 'Synergy' +OneviewSDK::API2600.variant_updated? # true ``` -:lock: Tip: We understand that this can be confusing, so to avoid any confusion or unexpected behavior, we recommend specifying the full namespace identifier in your code. At the very least, set defaults explicitly using `OneviewSDK.api_version = ` and `OneviewSDK::API2400.variant = `, as the defaults may change. +:lock: Tip: We understand that this can be confusing, so to avoid any confusion or unexpected behavior, we recommend specifying the full namespace identifier in your code. At the very least, set defaults explicitly using `OneviewSDK.api_version = ` and `OneviewSDK::API2600.variant = `, as the defaults may change. ## Resources Each OneView and Image Streamer resource is exposed via a Ruby class, enabling CRUD-like functionality (with some exceptions). diff --git a/examples/_client.rb.example b/examples/_client.rb.example index bc2eff095..87afb6b22 100644 --- a/examples/_client.rb.example +++ b/examples/_client.rb.example @@ -6,7 +6,7 @@ require 'pry' user: 'Administrator', # or set ENV['ONEVIEWSDK_USER'] password: 'secret123', # or set ENV['ONEVIEWSDK_PASSWORD'] ssl_enabled: false, - api_version: 2400 + api_version: 2600 ) ## This setting allows the SDK to flush messages to the screen as it is being run. @@ -16,7 +16,7 @@ require 'pry' # This setting allows for use of the shortened name of the resources, like OneviewSDK::, # when referring to OneviewSDK::::Synergy:: -# Versions supported: [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800, 2000, 2200, 2400] +# Versions supported: [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800, 2000, 2200, 2400, 2600] # Variants supported[C7000, Synergy] # OneviewSDK::API.variant='Synergy' diff --git a/lib/oneview-sdk/version.rb b/lib/oneview-sdk/version.rb index 21d994c74..0f3313950 100644 --- a/lib/oneview-sdk/version.rb +++ b/lib/oneview-sdk/version.rb @@ -11,5 +11,5 @@ # Gem version defined here module OneviewSDK - VERSION = '5.18.0'.freeze + VERSION = '6.0.0'.freeze end From 448e3973972beb5aeab7989a204469d483efaf4a Mon Sep 17 00:00:00 2001 From: yuvirani Date: Tue, 9 Mar 2021 11:38:07 +0530 Subject: [PATCH 2/3] rake fix --- lib/oneview-sdk/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oneview-sdk/version.rb b/lib/oneview-sdk/version.rb index 0f3313950..b86d66938 100644 --- a/lib/oneview-sdk/version.rb +++ b/lib/oneview-sdk/version.rb @@ -11,5 +11,5 @@ # Gem version defined here module OneviewSDK - VERSION = '6.0.0'.freeze + VERSION = '6.0.0'.freeze end From 4acd8c1f65df9c72e0a196c1a0d7b790d1cf9d9f Mon Sep 17 00:00:00 2001 From: yuvirani Date: Tue, 9 Mar 2021 12:08:41 +0530 Subject: [PATCH 3/3] review comments --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f1fb3af09..13032cf64 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ ## Build Status -OV Version | 6.0 | 5.60 | 5.50 | 5.40 | +OV Version | 6.00 | 5.60 | 5.50 | 5.40 | | ------------- |:-------------:| -------------:| -------------:| -------------:| -SDK Version/Tag | [Master](https://github.com/HewlettPackard/oneview-sdk-ruby/tree/master) | [v5.18.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.18.0) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) | +SDK Version/Tag | [v6.0.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.0.0) | [v5.18.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.18.0) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) | Build Status | ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| @@ -18,7 +18,7 @@ You can find the latest supported HPE OneView Ruby SDK [here](https://github.com ## What's New -HPE OneView Ruby library extends support of the SDK to OneView REST API version 2600 (OneView v6.0) +HPE OneView Ruby library extends support of the SDK to OneView REST API version 2600 (OneView v6.00) Please refer to [notes](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version @@ -72,7 +72,7 @@ client = OneviewSDK::Client.new( logger: Logger.new(STDOUT), # This is the default log_level: :info, # This is the default domain: 'LOCAL', # This is the default - api_version: 2600 # Defaults to appliance's max API version which is API version of OneView 5.60 + api_version: 2600 # Defaults to appliance's max API version which is API version of OneView 6.00 ) ```