Skip to content

Commit

Permalink
Merge 43d1774 into e876cf6
Browse files Browse the repository at this point in the history
  • Loading branch information
AsisBagga committed May 13, 2020
2 parents e876cf6 + 43d1774 commit bab3e97
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This release extends support of the SDK to OneView REST API version 1600 (OneVie

#### Features supported
- Enclosure
- Logical Enclosure

## v5.11.0

Expand Down
22 changes: 11 additions & 11 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/logical-downlinks/withoutEthernet</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: |
|<sub>/rest/logical-downlinks/{id}/withoutEthernet</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: |
| **Logical Enclosures** |
|<sub>/rest/logical-enclosures</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/configuration</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/script</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/script</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/support-dumps</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/updateFromGroup</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures</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/logical-enclosures</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{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/logical-enclosures/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/configuration</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/script</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/logical-enclosures/{id}/script</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/support-dumps</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/logical-enclosures/{id}/updateFromGroup</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Logical Interconnect Groups** |
|<sub>/rest/logical-interconnect-groups</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/logical-interconnect-groups</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1600/c7000/logical_enclosure.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (C) Copyright 2020 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 '../../api1200/c7000/logical_enclosure'

module OneviewSDK
module API1600
module C7000
# Logical Enclosure resource implementation on API1600 C7000
class LogicalEnclosure < OneviewSDK::API1200::C7000::LogicalEnclosure
end
end
end
end
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1600/synergy/logical_enclosure.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# (C) Copyright 2020 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 '../../api1200/synergy/logical_enclosure'

module OneviewSDK
module API1600
module Synergy
# Logical Enclosure resource implementation on API1600 Synergy
class LogicalEnclosure < OneviewSDK::API1200::Synergy::LogicalEnclosure
end
end
end
end
9 changes: 9 additions & 0 deletions spec/unit/resource/api1600/c7000/logical_enclosure_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

RSpec.describe OneviewSDK::API1600::C7000::LogicalEnclosure do
include_context 'shared context'

it 'inherits from OneviewSDK::API1200::C7000::LogicalEnclosure' do
expect(described_class).to be < OneviewSDK::API1200::C7000::LogicalEnclosure
end
end
9 changes: 9 additions & 0 deletions spec/unit/resource/api1600/synergy/logical_enclosure_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

RSpec.describe OneviewSDK::API1600::Synergy::LogicalEnclosure do
include_context 'shared context'

it 'inherits from OneviewSDK::API1200::Synergy::LogicalEnclosure' do
expect(described_class).to be < OneviewSDK::API1200::Synergy::LogicalEnclosure
end
end

0 comments on commit bab3e97

Please sign in to comment.