Skip to content

Commit

Permalink
Merge pull request #453 from HewlettPackard/release-5_14
Browse files Browse the repository at this point in the history
release PR for v5.14
  • Loading branch information
VenkateshRavula authored Jul 17, 2020
2 parents 1338f28 + 0456177 commit a1f2818
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## v5.14.0 (unreleased)
## v5.14.0

#### Notes
This release extends support to OneView Rest API version 1800 (OneView v5.30) for the hardware variants C7000 and Synergy to the following features:
Expand All @@ -15,9 +15,9 @@ This release extends support to OneView Rest API version 1800 (OneView v5.30) fo
- Hypervisor Manager
- Interconnects
- Interconnect Types
- LIG UplinkSet
- Logical Enclosure
- Logical Interconnect
- LIG UplinkSet
- Logical Interconnect Group
- Network Set
- Scope
Expand Down
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ The Docker Store image tag consist of two sections: <sdk_version-OV_version>
```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.13.0-OV5.2
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.14.0-OV5.3
# 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.13.0-OV5.2 /bin/sh
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.14.0-OV5.3 /bin/sh
```

### Local Setup
- Require the gem in your Gemfile:

```ruby
gem 'oneview-sdk', '~> 5.2'
gem 'oneview-sdk', '~> 5.3'
```

Then run `$ bundle install`
Expand Down Expand Up @@ -145,7 +145,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": 200
"api_version": 1800
}
```

Expand Down Expand Up @@ -183,7 +183,7 @@ You may notice resource classes being accessed in a few different ways; for exam
require 'oneview-sdk'

# Show defaults:
OneviewSDK::SUPPORTED_API_VERSIONS # [200, 300, 500, 600, 800, 1000,1200, 1600]
OneviewSDK::SUPPORTED_API_VERSIONS # [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800]
OneviewSDK::DEFAULT_API_VERSION # 200
OneviewSDK.api_version # 200
OneviewSDK.api_version_updated? # false
Expand Down Expand Up @@ -245,13 +245,18 @@ OneviewSDK::API1600::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API1600.variant # 'C7000'
OneviewSDK::API1600.variant_updated? # false

# Likewise, we can set a new default variant for the API1600 module:
OneviewSDK::API1600.variant = 'Synergy'
OneviewSDK::API1600.variant # 'Synergy'
OneviewSDK::API1600.variant_updated? # true
OneviewSDK::API1800::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
OneviewSDK::API1800::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API1800.variant # 'C7000'
OneviewSDK::API1800.variant_updated? # false

# Likewise, we can set a new default variant for the API1800 module:
OneviewSDK::API1800.variant = 'Synergy'
OneviewSDK::API1800.variant # 'Synergy'
OneviewSDK::API1800.variant_updated? # true
# Therefore, there is 1 more namespace level to the real resource class name
OneviewSDK::EthernetNetwork # OneviewSDK::API300::C7000::EthernetNetwork
OneviewSDK::API1600::EthernetNetwork # OneviewSDK::API1600::C7000::EthernetNetwork
OneviewSDK::API1800::EthernetNetwork # OneviewSDK::API1800::C7000::EthernetNetwork
```

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::API300.variant = <variant>`, as the defaults may change.
Expand Down
8 changes: 4 additions & 4 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/ethernet-networks</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: |
|<sub>/rest/ethernet-networks</sub> | POST | :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/ethernet-networks/bulk</sub> | POST | :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/ethernet-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/ethernet-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/ethernet-networks/{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: |
|<sub>/rest/ethernet-networks/{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: |
|<sub>/rest/ethernet-networks/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
Expand All @@ -96,15 +96,15 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
| **FC Networks** |
|<sub>/rest/fc-networks</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: |
|<sub>/rest/fc-networks</sub> | POST | :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/fc-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/fc-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/fc-networks/{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: |
|<sub>/rest/fc-networks/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
|<sub>/rest/fc-networks/{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: |
|<sub>/rest/fc-networks/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **FCoE Networks** |
|<sub>/rest/fcoe-networks</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: |
|<sub>/rest/fcoe-networks</sub> | POST | :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/fcoe-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/fcoe-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/fcoe-networks/{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: |
|<sub>/rest/fcoe-networks/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
|<sub>/rest/fcoe-networks/{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: |
Expand Down Expand Up @@ -185,7 +185,7 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/logical-interconnect-groups/defaultSettings</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: |
|<sub>/rest/logical-interconnect-groups/{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: |
|<sub>/rest/logical-interconnect-groups/{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: |
|<sub>/rest/logical-interconnect-groups/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-interconnect-groups/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
|<sub>/rest/logical-interconnect-groups/{id}</sub> | DELETE | :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/logical-interconnect-groups/{id}/settings</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: |
| **Logical Interconnects** |
Expand Down
2 changes: 1 addition & 1 deletion examples/_client.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require 'pry'

# This setting allows for use of the shortened name of the resources, like OneviewSDK::<Resource_name>,
# when referring to OneviewSDK::<API_version>::Synergy::<Resource_name>
# Versions supported: [200, 300, 500, 600, 800, 1000, 1200, 1600]
# Versions supported: [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800]
# Variants supported[C7000, Synergy]
# OneviewSDK::API<version>.variant='Synergy'

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 = '5.13.0'.freeze
VERSION = '5.14.0'.freeze
end

0 comments on commit a1f2818

Please sign in to comment.