Skip to content

Commit

Permalink
Merge pull request #501 from HewlettPackard/Release-3000
Browse files Browse the repository at this point in the history
Release PR
  • Loading branch information
AsisBagga authored Jun 30, 2021
2 parents 11499dc + c11de7b commit 3f7adbd
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}-OV6.1
run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV6.2
- name: Push the tagged Docker image
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV6.1
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:${{ env.GITHUB_REF }}-OV6.2
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 6.2.0 [Unreleased]
## 6.2.0
#### Notes
Extends support of the SDK to OneView REST API version 3000 (OneView v6.20).

Expand Down
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

## Build Status

OV Version | 6.10 | 6.00 | 5.60 | 5.50 | 5.40 |
| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
SDK Version/Tag | [v6.1.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.1.0) | [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://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/769868941)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/634796649)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/519793086)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/349360042)|[![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/343154951)|
OV Version | 6.20 | 6.10 | 6.00 | 5.60 | 5.50 | 5.40 |
| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
SDK Version/Tag | [v6.2.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.2.0) | [v6.1.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.1.0) | [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://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/runs/2949080207) | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/769868941)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/634796649)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/519793086)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/349360042)|[![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/343154951)|


## Introduction
Expand All @@ -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 2800 (OneView v6.10)
HPE OneView Ruby library extends support of the SDK to OneView REST API version 3000 (OneView v6.20)

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

Expand Down Expand Up @@ -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: 2800 # Defaults to appliance's max API version which is API version of OneView 6.10
api_version: 3000 # Defaults to appliance's max API version which is API version of OneView 6.20
)
```

Expand Down Expand Up @@ -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": 2800
"api_version": 3000
}
```

Expand Down Expand Up @@ -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, 2600, 2800]
OneviewSDK::DEFAULT_API_VERSION # 2800
OneviewSDK.api_version # 2800
OneviewSDK::SUPPORTED_API_VERSIONS # [1000, 1200, 1600, 1800, 2000, 2200, 2600, 2800, 3000]
OneviewSDK::DEFAULT_API_VERSION # 3000
OneviewSDK.api_version # 3000
OneviewSDK.api_version_updated? # false

# Notice the automatic redirection/resolution when we use the shorthand accessor:
OneviewSDK::EthernetNetwork # OneviewSDK::API2800::EthernetNetwork
OneviewSDK::EthernetNetwork # OneviewSDK::API3000::EthernetNetwork

# Even this comparison is true:
OneviewSDK::EthernetNetwork == OneviewSDK::API2800::EthernetNetwork # true
OneviewSDK::EthernetNetwork == OneviewSDK::API3000::EthernetNetwork # true

# Now let's set a new API version default:
OneviewSDK.api_version = 2800
OneviewSDK.api_version # 2800
OneviewSDK.api_version = 3000
OneviewSDK.api_version # 3000
OneviewSDK.api_version_updated? # true

# The API300 and above has 2 variants (C7000 & Synergy): For eg
Expand All @@ -236,19 +236,19 @@ OneviewSDK::API2200::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API2200.variant # 'C7000'
OneviewSDK::API2200.variant_updated? # false

OneviewSDK::API2800::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
OneviewSDK::API2800::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API2800.variant # 'C7000'
OneviewSDK::API2800.variant_updated? # false
OneviewSDK::API3000::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
OneviewSDK::API3000::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API3000.variant # 'C7000'
OneviewSDK::API3000.variant_updated? # false

# Likewise, we can set a new default variant for the API2800 module:
OneviewSDK::2800.variant = 'Synergy'
OneviewSDK::API2800.variant # 'Synergy'
OneviewSDK::API2800.variant_updated? # true
# Likewise, we can set a new default variant for the API3000 module:
OneviewSDK::3000.variant = 'Synergy'
OneviewSDK::API3000.variant # 'Synergy'
OneviewSDK::API3000.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 = <ver>` and `OneviewSDK::API2800.variant = <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 = <ver>` and `OneviewSDK::API3000.variant = <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).
Expand Down
8 changes: 4 additions & 4 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/alerts/{id}</sub> |DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | :white_check_mark: |:white_check_mark: | :white_check_mark: |
| **Connection Templates** |
|<sub>/rest/connection-templates</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/connection-templates/defaultConnectionTemplate</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/connection-templates/{id}</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/connection-templates/{id}</sub> |PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/connection-templates</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |
|<sub>/rest/connection-templates/defaultConnectionTemplate</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |
|<sub>/rest/connection-templates/{id}</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |
|<sub>/rest/connection-templates/{id}</sub> |PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |
| **Datacenters** |
|<sub>/rest/datacenters</sub> | GET | :white_check_mark: | :white_check_mark: |
|<sub>/rest/datacenters</sub> | POST | :white_check_mark: | :white_check_mark: |
Expand Down
2 changes: 1 addition & 1 deletion examples/_client.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2600
api_version: 3000
)

## This setting allows the SDK to flush messages to the screen as it is being run.
Expand Down
2 changes: 1 addition & 1 deletion lib/oneview-sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

# Gem version defined here
module OneviewSDK
VERSION = '6.1.0'.freeze
VERSION = '6.2.0'.freeze
end

0 comments on commit 3f7adbd

Please sign in to comment.