Skip to content

Commit

Permalink
api800 support template
Browse files Browse the repository at this point in the history
  • Loading branch information
sijeesh committed Mar 20, 2018
1 parent 920b08a commit b20aa81
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 4,577 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Metrics/PerceivedComplexity:
Enabled: false

Style/GlobalVars:
AllowedVariables: [$config, $secrets, $client, $client_120, $client_300, $client_300_synergy, $config_synergy, $secrets_synergy, $config_i3s, $client_i3s_300, $client_500, $client_500_synergy, $client_600, $client_600_synergy]
AllowedVariables: [$config, $secrets, $client, $client_120, $client_300, $client_300_synergy, $config_synergy, $secrets_synergy, $config_i3s, $client_i3s_300, $client_500, $client_500_synergy, $client_600, $client_600_synergy, $client_800, $client_800_synergy]

Style/FrozenStringLiteralComment:
Enabled: false
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v5.5.0(Unreleased)

#### Notes
Extends support of the SDK to OneView Rest API version 800 (OneView v4.10).

#### Features Supported
This release adds support to OneView Rest API version 800 for the hardware variants C7000 and Synergy to the already existing features:


## v5.4.0(Unreleased)

#### Notes
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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]
OneviewSDK::SUPPORTED_API_VERSIONS # [200, 300, 500, 600, 800]
OneviewSDK::DEFAULT_API_VERSION # 200
OneviewSDK.api_version # 200
OneviewSDK.api_version_updated? # false
Expand All @@ -183,7 +183,7 @@ OneviewSDK.api_version = 300
OneviewSDK.api_version # 300
OneviewSDK.api_version_updated? # true

# The API200 module has no variants, but API300, API500 and API600 has 2 (C7000 & Synergy):
# The API200 module has no variants, but API300 and above has 2 (C7000 & Synergy):
OneviewSDK::API300::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
OneviewSDK::API300::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API300.variant # 'C7000'
Expand All @@ -199,6 +199,11 @@ OneviewSDK::API600::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API600.variant # 'C7000'
OneviewSDK::API600.variant_updated? # false

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

# Therefore, there is 1 more namespace level to the real resource class name
OneviewSDK::EthernetNetwork # OneviewSDK::API300::C7000::EthernetNetwork
OneviewSDK::API300::EthernetNetwork # OneviewSDK::API300::C7000::EthernetNetwork
Expand Down
36 changes: 18 additions & 18 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)

## HPE OneView

| Endpoints | Verb | V200 | V300 | V500 | V600 |
| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: |
| Endpoints | Verb | V200 | V300 | V500 | V600 | V800
| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: |
| **Alerts** |
|<sub>/rest/alerts </sub> |GET | | |
|<sub>/rest/alerts </sub> |DELETE | | |
|<sub>/rest/alerts/{id} </sub> |GET | | |
|<sub>/rest/alerts/{id} </sub> |PUT | | |
|<sub>/rest/alerts/{id} </sub> |DELETE | | |
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | | |
|<sub>/rest/alerts </sub> |GET | | |
|<sub>/rest/alerts </sub> |DELETE | | |
|<sub>/rest/alerts/{id} </sub> |GET | | |
|<sub>/rest/alerts/{id} </sub> |PUT | | |
|<sub>/rest/alerts/{id} </sub> |DELETE | | |
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | | |
| **Appliance Time and Locale Configuration** |
|<sub>/rest/appliance/configuration/time-locale</sub> |GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
|<sub>/rest/appliance/configuration/time-locale</sub> |POST | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
| **Backups** |
|<sub>/rest/backups</sub> |GET | | |
|<sub>/rest/backups</sub> |POST | | |
|<sub>/rest/backups/archive</sub> |POST | | |
|<sub>/rest/backups/archive/{id}</sub> |GET | | |
|<sub>/rest/backups/config</sub> |GET | :heavy_minus_sign: | |
|<sub>/rest/backups/config</sub> |PUT | :heavy_minus_sign: | |
|<sub>/rest/backups/remotearchive/{id}</sub> |PUT | :heavy_minus_sign: | |
|<sub>/rest/backups/remotearchive/{id}</sub> |DELETE | :heavy_minus_sign: | |
|<sub>/rest/backups/{id}</sub> |GET | | |
|<sub>/rest/backups/{id}</sub> |DELETE | | |
|<sub>/rest/backups</sub> |GET | | |
|<sub>/rest/backups</sub> |POST | | |
|<sub>/rest/backups/archive</sub> |POST | | |
|<sub>/rest/backups/archive/{id}</sub> |GET | | |
|<sub>/rest/backups/config</sub> |GET | :heavy_minus_sign: | |
|<sub>/rest/backups/config</sub> |PUT | :heavy_minus_sign: | |
|<sub>/rest/backups/remotearchive/{id}</sub> |PUT | :heavy_minus_sign: | |
|<sub>/rest/backups/remotearchive/{id}</sub> |DELETE | :heavy_minus_sign: | |
|<sub>/rest/backups/{id}</sub> |GET | | |
|<sub>/rest/backups/{id}</sub> |DELETE | | |
| **Certificate Authority** |
|<sub>/rest/certificates/ca</sub> |GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x:
|<sub>/rest/certificates/ca/crl</sub> |GET | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x:
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]
# Versions supported: [200, 300, 500, 600, 800]
# Variants supported[C7000, Synergy]
# OneviewSDK::API<version>.variant='Synergy'

Expand Down
60 changes: 0 additions & 60 deletions examples/shared_samples/client_certificate.rb

This file was deleted.

68 changes: 0 additions & 68 deletions examples/shared_samples/connection_template.rb

This file was deleted.

77 changes: 0 additions & 77 deletions examples/shared_samples/datacenter.rb

This file was deleted.

0 comments on commit b20aa81

Please sign in to comment.