Skip to content

Commit

Permalink
Merge d52731e into c2b1229
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanka Sood committed Nov 4, 2019
2 parents c2b1229 + d52731e commit 7d08b0b
Show file tree
Hide file tree
Showing 43 changed files with 1,009 additions and 216 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,8 +1,8 @@
language: ruby
rvm:
- 2.2.6
- 2.3.1
- 2.4.1
- 2.5.1

before_install: gem update bundler

Expand All @@ -12,4 +12,4 @@ script:

matrix:
allow_failures:
- rvm: 2.4
- rvm: 2.5
27 changes: 26 additions & 1 deletion CHANGELOG.md
@@ -1,9 +1,34 @@
## v5.7.1 (Unreleased)

#### Notes
This release removes the support for Ruby 2.2 and added support for Ruby 2.5.
Extends support of the SDK to OneView Rest API version 800 (OneView v4.10).
This release fixes one bug listed below.

#### Features Supported
This release adds support to OneView Rest API version 800 for the hardware variants C7000 and Synergy to the already existing features:
- Enclosure
- Enclosure Group
- Ethernet Network
- FC Network
- FCoE Network
- Interconnect
- Logical Enclosure
- Logical Interconnect
- Logical Interconnect Group
- Network Set
- Scope
- Server Hardware
- Server Hardware Types
- Server Profile
- Storage Pool
- Storage System
- Uplink Set
- Volume
- Volume Template

#### Bug fixes & Enhancements
- [#377](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/377) Travis build failed as Listen dependency does not support Ruby 2.2.x.
- [#372](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/372) Failed to create logical interconnect groups for API600. Fixed by inheriting from API500 resource.

## v5.7.0
Expand All @@ -30,7 +55,7 @@ This release fixes few bugs which are listed below.

#### New Resource
Alerts

#### Bug fixes & Enhancements
- [#362](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/362) Added helper method to change request body for Server Profile for API600.
- [#354](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/354) Input data has be to be a part of body, but not the header for import certificate method in enclosure.
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
@@ -1,8 +1,9 @@
source 'https://rubygems.org'
ruby RUBY_VERSION
gemspec

begin
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.6')
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.1')
group :development do
gem 'guard-rspec'
gem 'guard-rubocop'
Expand Down
415 changes: 208 additions & 207 deletions endpoints-support.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/api600/volume.rb
Expand Up @@ -147,6 +147,7 @@
description: 'Volume store virtual',
size: 1024 * 1024 * 1024,
provisioningType: 'Thin',
isShareable: false,
dataProtectionLevel: 'NetworkRaid10Mirror2Way'
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/shared_samples/storage_system.rb
Expand Up @@ -26,7 +26,7 @@
raise 'ERROR: Must set @storage_system_username in _client.rb' unless @storage_system_username
raise 'ERROR: Must set @storage_system_password in _client.rb' unless @storage_system_password

if @client.api_version == 600
if @client.api_version >= 600
raise "If you want execute sample for API #{@client.api_version}," \
"you should execute the ruby file '/examples/api600/storage_system.rb'"
elsif @client.api_version == 500
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/enclosure.rb
@@ -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/enclosure'

module OneviewSDK
module API800
module C7000
# Enclosure resource implementation for API800 C7000
class Enclosure < OneviewSDK::API600::C7000::Enclosure
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/fc_network.rb
@@ -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/fc_network'

module OneviewSDK
module API800
module C7000
# FC network resource implementation for API800 C7000
class FCNetwork < OneviewSDK::API600::C7000::FCNetwork
end
end
end
end
23 changes: 23 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/fcoe_network.rb
@@ -0,0 +1,23 @@
# (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/fcoe_network'

module OneviewSDK
module API800
module C7000
# FCoE network resource implementation for API800 C7000
class FCoENetwork < OneviewSDK::API600::C7000::FCoENetwork

end
end
end
end
23 changes: 23 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/interconnect.rb
@@ -0,0 +1,23 @@
# (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/interconnect'

module OneviewSDK
module API800
module C7000
# Interconnect resource implementation on API800 C7000
class Interconnect < OneviewSDK::API600::C7000::Interconnect
include OneviewSDK::ResourceHelper::ConfigurationOperation
end
end
end
end
21 changes: 21 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/lig_uplink_set.rb
@@ -0,0 +1,21 @@
# (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/lig_uplink_set'

module OneviewSDK
module API800
module C7000
class LIGUplinkSet < OneviewSDK::API600::C7000::LIGUplinkSet
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/logical_enclosure.rb
@@ -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/logical_enclosure'

module OneviewSDK
module API800
module C7000
# Logical Enclosure resource implementation on API800 C7000
class LogicalEnclosure < OneviewSDK::API600::C7000::LogicalEnclosure
end
end
end
end
32 changes: 32 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/logical_interconnect.rb
@@ -0,0 +1,32 @@
# (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/logical_interconnect'

module OneviewSDK
module API800
module C7000
# Logical interconnect resource implementation for API800 C7000
class LogicalInterconnect < OneviewSDK::API600::C7000::LogicalInterconnect
# Create a resource object, associate it with a client, and set its properties.
# @param [OneviewSDK::Client] client The client object for the OneView appliance
# @param [Hash] params The options for this resource (key-value pairs)
# @param [Integer] api_ver The api version to use when interracting with this resource.
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values:
@data['type'] ||= 'logical-interconnectV5'
super
end
end
end
end
end
@@ -0,0 +1,32 @@
# (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/logical_interconnect_group'

module OneviewSDK
module API800
module C7000
# Logical interconnect group resource implementation on API800 C7000
class LogicalInterconnectGroup < OneviewSDK::API600::C7000::LogicalInterconnectGroup
# Create a resource object, associate it with a client, and set its properties.
# @param [OneviewSDK::Client] client The client object for the OneView appliance
# @param [Hash] params The options for this resource (key-value pairs)
# @param [Integer] api_ver The api version to use when interracting with this resource.
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values:
@data['type'] ||= 'logical-interconnect-groupV5'
super
end
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/network_set.rb
@@ -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/network_set'

module OneviewSDK
module API800
module C7000
# Network set resource implementation for API800 C7000
class NetworkSet < OneviewSDK::API600::C7000::NetworkSet
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/server_hardware.rb
@@ -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/server_hardware'

module OneviewSDK
module API800
module C7000
# Server Hardware resource implementation on API800 C7000
class ServerHardware < OneviewSDK::API600::C7000::ServerHardware
end
end
end
end
10 changes: 10 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/server_hardware_type.rb
Expand Up @@ -16,6 +16,16 @@ module API800
module C7000
# Server hardware type resource implementation for API800 C7000
class ServerHardwareType < OneviewSDK::API600::C7000::ServerHardwareType
# Create a resource object, associate it with a client, and set its properties.
# @param [OneviewSDK::Client] client The client object for the OneView appliance
# @param [Hash] params The options for this resource (key-value pairs)
# @param [Integer] api_ver The api version to use when interracting with this resource.
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values
@data['type'] ||= 'server-hardware-type-9'
super
end
end
end
end
Expand Down
10 changes: 10 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/server_profile.rb
Expand Up @@ -16,6 +16,16 @@ module API800
module C7000
# Server Profile resource implementation on API800 C7000
class ServerProfile < OneviewSDK::API600::C7000::ServerProfile
# Create a resource object, associate it with a client, and set its properties.
# @param [OneviewSDK::Client] client The client object for the OneView appliance
# @param [Hash] params The options for this resource (key-value pairs)
# @param [Integer] api_ver The api version to use when interracting with this resource.
def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values
@data['type'] ||= 'ServerProfileV9'
super
end
end
end
end
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api800/c7000/storage_pool.rb
@@ -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/storage_pool'

module OneviewSDK
module API800
module C7000
# Storage pool resource implementation for API800 C7000
class StoragePool < OneviewSDK::API600::C7000::StoragePool
end
end
end
end

0 comments on commit 7d08b0b

Please sign in to comment.