Skip to content

Commit

Permalink
Merge branch 'master' into api1200/firmware_driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanka Sood committed Feb 17, 2020
2 parents b03bb91 + a42d890 commit e3a7d2a
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## v5.9.0(unreleased)

#### Notes
## v5.9.0 (Unreleased)
- This release supports OneView Rest API versions 800/1000/1200 minimally where we can use OneView v4.10/v4.20/v5.0 with this SDK. No new fields are added/deleted to support OneView Rest API 800/1000/1200. Complete support will be done in next releases.
- Bugfix for the update request for enclosure group.

#### Features Supported
This release adds support to OneView Rest API version 800/1000/1200 for the hardware variants C7000 and Synergy to the already existing features:
- Connection Template
- Firmware Driver

## v5.8.0
Expand Down
8 changes: 4 additions & 4 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,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: | :white_check_mark: |
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | :white_check_mark: | :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: |
|<sub>/rest/connection-templates/defaultConnectionTemplate</sub> |GET | :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: |
|<sub>/rest/connection-templates/{id}</sub> |PUT | :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: |
|<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: |
|<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: |
|<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: |
| **Datacenters** |
|<sub>/rest/datacenters</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/datacenters</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1000/c7000/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api800/c7000/connection_template'

module OneviewSDK
module API1000
module C7000
# Connection template resource implementation for API1000 C7000
class ConnectionTemplate < OneviewSDK::API800::C7000::ConnectionTemplate
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1000/synergy/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api800/synergy/connection_template'

module OneviewSDK
module API1000
module Synergy
# Connection template resource implementation for API1000 Synergy
class ConnectionTemplate < OneviewSDK::API800::Synergy::ConnectionTemplate
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1200/c7000/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api1000/c7000/connection_template'

module OneviewSDK
module API1200
module C7000
# Connection template resource implementation for API1200 C7000
class ConnectionTemplate < OneviewSDK::API1000::C7000::ConnectionTemplate
end
end
end
end
4 changes: 4 additions & 0 deletions lib/oneview-sdk/resource/api1200/c7000/enclosure_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class EnclosureGroup < OneviewSDK::API1000::C7000::EnclosureGroup
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values:
super
end

def update(attributes = {})
@data['type'] ||= 'EnclosureGroupV8'
super
end
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1200/synergy/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api1000/synergy/connection_template'

module OneviewSDK
module API1200
module Synergy
# Connection template resource implementation for API1200 Synergy
class ConnectionTemplate < OneviewSDK::API1000::Synergy::ConnectionTemplate
end
end
end
end
4 changes: 4 additions & 0 deletions lib/oneview-sdk/resource/api1200/synergy/enclosure_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class EnclosureGroup < OneviewSDK::API1000::Synergy::EnclosureGroup
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values:
super
end

def update(attributes = {})
@data['type'] ||= 'EnclosureGroupV8'
super
end
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api600/c7000/connection_template'

module OneviewSDK
module API800
module C7000
# Connection template resource implementation for API800 C7000
class ConnectionTemplate < OneviewSDK::API600::C7000::ConnectionTemplate
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/synergy/connection_template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (c) Copyright 2017 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.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api600/synergy/connection_template'

module OneviewSDK
module API800
module Synergy
# Connection template resource implementation for API800 Synergy
class ConnectionTemplate < OneviewSDK::API600::Synergy::ConnectionTemplate
end
end
end
end
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.8.0'.freeze
VERSION = '5.9.0'.freeze
end

0 comments on commit e3a7d2a

Please sign in to comment.