diff --git a/.rubocop.yml b/.rubocop.yml index 051ec0a09..075ed6433 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -20,7 +20,7 @@ Metrics/ModuleLength: - 'lib/oneview-sdk/rest.rb' Style/GlobalVars: - AllowedVariables: [$config, $secrets, $client, $client_120, $client_300, $client_300_synergy, $config_synergy, $secrets_synergy, $config_i3s, $client_i3s_300] + 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] Style/IndentationWidth: Width: 2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7323be974..8821486b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Unreleased Changes +## Suggested release: v5.0.0 + +#### New Resources: (none) +#### Bug fixes & Enhancements: +- [#119](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/112) VolumeAttachment::remove_extra_unmanaged_volume throw Unexpected Http Error + +#### Design changes: + - Architecture for future API500 support. Features for API500 are not yet supported. + # v4.1.0 #### New Resources: diff --git a/README.md b/README.md index 893a62cb8..9a8d199e9 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,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] +OneviewSDK::SUPPORTED_API_VERSIONS # [200, 300, 500] OneviewSDK::DEFAULT_API_VERSION # 200 OneviewSDK.api_version # 200 OneviewSDK.api_version_updated? # false @@ -178,12 +178,17 @@ OneviewSDK.api_version = 300 OneviewSDK.api_version # 300 OneviewSDK.api_version_updated? # true -# The API200 module has no variants, but API300 has 2 (C7000 & Synergy): +# The API200 module has no variants, but API300 and API500 has 2 (C7000 & Synergy): OneviewSDK::API300::SUPPORTED_VARIANTS # ['C7000', 'Synergy'] OneviewSDK::API300::DEFAULT_VARIANT # 'C7000' OneviewSDK::API300.variant # 'C7000' OneviewSDK::API300.variant_updated? # false +OneviewSDK::API500::SUPPORTED_VARIANTS # ['C7000', 'Synergy'] +OneviewSDK::API500::DEFAULT_VARIANT # 'C7000' +OneviewSDK::API500.variant # 'C7000' +OneviewSDK::API500.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 diff --git a/examples/api500/c7000/.gitkeep b/examples/api500/c7000/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/examples/api500/synergy/.gitkeep b/examples/api500/synergy/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/lib/oneview-sdk.rb b/lib/oneview-sdk.rb index fe1b7a5f0..e9fa84e13 100644 --- a/lib/oneview-sdk.rb +++ b/lib/oneview-sdk.rb @@ -24,7 +24,7 @@ module OneviewSDK env_i3s = %w(I3S_URL I3S_SSL_ENABLED) ENV_VARS = env_sdk.concat(env_i3s).freeze - SUPPORTED_API_VERSIONS = [200, 300].freeze + SUPPORTED_API_VERSIONS = [200, 300, 500].freeze DEFAULT_API_VERSION = 200 @api_version = DEFAULT_API_VERSION @api_version_updated = false # Whether or not the API version has been set by the user diff --git a/lib/oneview-sdk/resource/api500.rb b/lib/oneview-sdk/resource/api500.rb new file mode 100644 index 000000000..2b24c71da --- /dev/null +++ b/lib/oneview-sdk/resource/api500.rb @@ -0,0 +1,66 @@ +# (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. + +module OneviewSDK + # Module for API v500 + module API500 + SUPPORTED_VARIANTS = %w(C7000 Synergy).freeze + DEFAULT_VARIANT = 'C7000'.freeze + @variant = DEFAULT_VARIANT + @variant_updated = false # Whether or not the API variant has been set by the user + + # Get resource class that matches the type given + # @param [String] type Name of the desired class type + # @param [String] variant Variant (C7000 or Synergy) + # @return [Class] Resource class or nil if not found + def self.resource_named(type, variant = @variant) + raise "API500 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant.to_s) + new_type = type.to_s.downcase.gsub(/[ -_]/, '') + api_module = OneviewSDK::API500.const_get(variant) + api_module.constants.each do |c| + klass = api_module.const_get(c) + next unless klass.is_a?(Class) + name = klass.name.split('::').last.downcase.delete('_').delete('-') + return klass if new_type =~ /^#{name}[s]?$/ + end + nil + end + + # Get the current API500 variant + def self.variant + @variant + end + + # Has the API500 variant been set by the user? + # @return [TrueClass, FalseClass] + def self.variant_updated? + @variant_updated + end + + # Sets the API500 variant + def self.variant=(variant) + raise "API500 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant) + @variant_updated = true + @variant = variant + end + + # Helps redirect resources to the correct API500 variant + def self.const_missing(const) + api500_module = OneviewSDK::API500.const_get(@variant.to_s) + api500_module.const_get(const) + rescue NameError + raise NameError, "The #{const} method or resource does not exist for OneView API500 variant #{@variant}." + end + end +end + +# Load all API500-specific resources: +Dir[File.dirname(__FILE__) + '/api500/*.rb'].each { |file| require file } diff --git a/lib/oneview-sdk/resource/api500/c7000.rb b/lib/oneview-sdk/resource/api500/c7000.rb new file mode 100644 index 000000000..3dc5e4748 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000.rb @@ -0,0 +1,27 @@ +# (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. + +module OneviewSDK + module API500 + # Module for API500 C7000 + module C7000 + # Get resource class that matches the type given + # @param [String] type Name of the desired class type + # @return [Class] Resource class or nil if not found + def self.resource_named(type) + OneviewSDK::API500.resource_named(type, 'C7000') + end + end + end +end + +# Load all API-specific resources: +Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file } diff --git a/lib/oneview-sdk/resource/api500/c7000/connection_template.rb b/lib/oneview-sdk/resource/api500/c7000/connection_template.rb new file mode 100644 index 000000000..5b62f5ec9 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/connection_template.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 '../../api300/c7000/connection_template' + +module OneviewSDK + module API500 + module C7000 + # Connection template resource implementation for API500 C7000 + class ConnectionTemplate < OneviewSDK::API300::C7000::ConnectionTemplate + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/datacenter.rb b/lib/oneview-sdk/resource/api500/c7000/datacenter.rb new file mode 100644 index 000000000..bf62bcdc3 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/datacenter.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 '../../api300/c7000/datacenter' + +module OneviewSDK + module API500 + module C7000 + # Datacenter resource implementation for API500 C7000 + class Datacenter < OneviewSDK::API300::C7000::Datacenter + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/enclosure.rb b/lib/oneview-sdk/resource/api500/c7000/enclosure.rb new file mode 100644 index 000000000..94555eeb1 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/enclosure' + +module OneviewSDK + module API500 + module C7000 + # Enclosure resource implementation for API500 C7000 + class Enclosure < OneviewSDK::API300::C7000::Enclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/enclosure_group.rb b/lib/oneview-sdk/resource/api500/c7000/enclosure_group.rb new file mode 100644 index 000000000..9348cbc9a --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/enclosure_group.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 '../../api300/c7000/enclosure_group' + +module OneviewSDK + module API500 + module C7000 + # Enclosure group resource implementation on API500 C7000 + class EnclosureGroup < OneviewSDK::API300::C7000::EnclosureGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/ethernet_network.rb b/lib/oneview-sdk/resource/api500/c7000/ethernet_network.rb new file mode 100644 index 000000000..d2838bb6a --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/ethernet_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 '../../api300/c7000/ethernet_network' + +module OneviewSDK + module API500 + module C7000 + # Ethernet network resource implementation for API500 C7000 + class EthernetNetwork < OneviewSDK::API300::C7000::EthernetNetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/fabric.rb b/lib/oneview-sdk/resource/api500/c7000/fabric.rb new file mode 100644 index 000000000..d44f38f36 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/fabric.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 '../../api300/c7000/fabric' + +module OneviewSDK + module API500 + module C7000 + # Fabric resource implementation for API500 C7000 + class Fabric < OneviewSDK::API300::C7000::Fabric + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/fc_network.rb b/lib/oneview-sdk/resource/api500/c7000/fc_network.rb new file mode 100644 index 000000000..a2cebbf9d --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/fc_network' + +module OneviewSDK + module API500 + module C7000 + # FC network resource implementation for API500 C7000 + class FCNetwork < OneviewSDK::API300::C7000::FCNetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/fcoe_network.rb b/lib/oneview-sdk/resource/api500/c7000/fcoe_network.rb new file mode 100644 index 000000000..cce5664d9 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/fcoe_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 '../../api300/c7000/fcoe_network' + +module OneviewSDK + module API500 + module C7000 + # FCoE network resource implementation for API500 C7000 + class FCoENetwork < OneviewSDK::API300::C7000::FCoENetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.rb b/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.rb new file mode 100644 index 000000000..020d849a1 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.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 '../../api300/c7000/firmware_bundle' + +module OneviewSDK + module API500 + module C7000 + class FirmwareBundle < OneviewSDK::API300::C7000::FirmwareBundle + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/firmware_driver.rb b/lib/oneview-sdk/resource/api500/c7000/firmware_driver.rb new file mode 100644 index 000000000..2591d7986 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/firmware_driver.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 '../../api300/c7000/firmware_driver' + +module OneviewSDK + module API500 + module C7000 + # FirmwareDriver resource implementation for API500 C7000 + class FirmwareDriver < OneviewSDK::API300::C7000::FirmwareDriver + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/interconnect.rb b/lib/oneview-sdk/resource/api500/c7000/interconnect.rb new file mode 100644 index 000000000..f63764452 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/interconnect.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 '../../api300/c7000/interconnect' + +module OneviewSDK + module API500 + module C7000 + # Interconnect resource implementation on API500 C7000 + class Interconnect < OneviewSDK::API300::C7000::Interconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/lig_uplink_set.rb b/lib/oneview-sdk/resource/api500/c7000/lig_uplink_set.rb new file mode 100644 index 000000000..d76fbc108 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/lig_uplink_set' + +module OneviewSDK + module API500 + module C7000 + class LIGUplinkSet < OneviewSDK::API300::C7000::LIGUplinkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_downlink.rb b/lib/oneview-sdk/resource/api500/c7000/logical_downlink.rb new file mode 100644 index 000000000..883f80155 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/logical_downlink.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 '../../api300/c7000/logical_downlink' + +module OneviewSDK + module API500 + module C7000 + # Logical downlink resource implementation for API500 C7000 + class LogicalDownlink < OneviewSDK::API300::C7000::LogicalDownlink + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb b/lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb new file mode 100644 index 000000000..1ae2fb00b --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/logical_enclosure' + +module OneviewSDK + module API500 + module C7000 + # Logical Enclosure resource implementation on API500 C7000 + class LogicalEnclosure < OneviewSDK::API300::C7000::LogicalEnclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.rb b/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.rb new file mode 100644 index 000000000..6cacef9f9 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.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 '../../api300/c7000/logical_interconnect' + +module OneviewSDK + module API500 + module C7000 + # Logical interconnect resource implementation for API500 C7000 + class LogicalInterconnect < OneviewSDK::API300::C7000::LogicalInterconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.rb b/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.rb new file mode 100644 index 000000000..396852d8b --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.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 '../../api300/c7000/logical_interconnect_group' + +module OneviewSDK + module API500 + module C7000 + # Logical interconnect group resource implementation on API500 C7000 + class LogicalInterconnectGroup < OneviewSDK::API300::C7000::LogicalInterconnectGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_switch.rb b/lib/oneview-sdk/resource/api500/c7000/logical_switch.rb new file mode 100644 index 000000000..f85c680f4 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/logical_switch.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 '../../api300/c7000/logical_switch' + +module OneviewSDK + module API500 + module C7000 + # Logical switch resource implementation for API500 C7000 + class LogicalSwitch < OneviewSDK::API300::C7000::LogicalSwitch + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.rb b/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.rb new file mode 100644 index 000000000..392f90c91 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.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 '../../api300/c7000/logical_switch_group' + +module OneviewSDK + module API500 + module C7000 + # Logical switch group resource implementation for API500 C7000 + class LogicalSwitchGroup < OneviewSDK::API300::C7000::LogicalSwitchGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/managed_san.rb b/lib/oneview-sdk/resource/api500/c7000/managed_san.rb new file mode 100644 index 000000000..51e686172 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/managed_san.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 '../../api300/c7000/managed_san' + +module OneviewSDK + module API500 + module C7000 + # Managed SAN resource implementation for API500 C7000 + class ManagedSAN < OneviewSDK::API300::C7000::ManagedSAN + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/network_set.rb b/lib/oneview-sdk/resource/api500/c7000/network_set.rb new file mode 100644 index 000000000..f436d63f0 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/network_set' + +module OneviewSDK + module API500 + module C7000 + # Network set resource implementation for API500 C7000 + class NetworkSet < OneviewSDK::API300::C7000::NetworkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/power_device.rb b/lib/oneview-sdk/resource/api500/c7000/power_device.rb new file mode 100644 index 000000000..b926eb7e2 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/power_device.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 '../../api300/c7000/power_device' + +module OneviewSDK + module API500 + module C7000 + class PowerDevice < OneviewSDK::API300::C7000::PowerDevice + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/rack.rb b/lib/oneview-sdk/resource/api500/c7000/rack.rb new file mode 100644 index 000000000..1d83cf159 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/rack.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 '../../api300/c7000/rack' + +module OneviewSDK + module API500 + module C7000 + # Rack resource implementation for API500 C7000 + class Rack < OneviewSDK::API300::C7000::Rack + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/resource.rb b/lib/oneview-sdk/resource/api500/c7000/resource.rb new file mode 100644 index 000000000..fa228caab --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/resource.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 '../../api300/c7000/resource' + +module OneviewSDK + module API500 + module C7000 + class Resource < OneviewSDK::API300::C7000::Resource + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/san_manager.rb b/lib/oneview-sdk/resource/api500/c7000/san_manager.rb new file mode 100644 index 000000000..8a697d8f3 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/san_manager.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 '../../api300/c7000/san_manager' + +module OneviewSDK + module API500 + module C7000 + # SAN manager resource implementation for API500 C7000 + class SANManager < OneviewSDK::API300::C7000::SANManager + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/scope.rb b/lib/oneview-sdk/resource/api500/c7000/scope.rb new file mode 100644 index 000000000..de2397026 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/scope.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 '../../api300/c7000/scope' + +module OneviewSDK + module API500 + module C7000 + # Scope resource implementation for API500 C7000 + class Scope < OneviewSDK::API300::C7000::Scope + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/server_hardware.rb b/lib/oneview-sdk/resource/api500/c7000/server_hardware.rb new file mode 100644 index 000000000..e9a0a9fcd --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/server_hardware' + +module OneviewSDK + module API500 + module C7000 + # Server Hardware resource implementation on API500 C7000 + class ServerHardware < OneviewSDK::API300::C7000::ServerHardware + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.rb b/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.rb new file mode 100644 index 000000000..b98fdc8f8 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.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 '../../api300/c7000/server_hardware_type' + +module OneviewSDK + module API500 + module C7000 + class ServerHardwareType < OneviewSDK::API300::C7000::ServerHardwareType + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/server_profile.rb b/lib/oneview-sdk/resource/api500/c7000/server_profile.rb new file mode 100644 index 000000000..f89e93174 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/server_profile.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 '../../api300/c7000/server_profile' + +module OneviewSDK + module API500 + module C7000 + # Server Profile resource implementation on API500 C7000 + class ServerProfile < OneviewSDK::API300::C7000::ServerProfile + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/server_profile_template.rb b/lib/oneview-sdk/resource/api500/c7000/server_profile_template.rb new file mode 100644 index 000000000..f205213e0 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/server_profile_template.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 '../../api300/c7000/server_profile_template' + +module OneviewSDK + module API500 + module C7000 + # Server Profile Template resource implementation on API500 C7000 + class ServerProfileTemplate < OneviewSDK::API300::C7000::ServerProfileTemplate + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/storage_pool.rb b/lib/oneview-sdk/resource/api500/c7000/storage_pool.rb new file mode 100644 index 000000000..5adb21c8c --- /dev/null +++ b/lib/oneview-sdk/resource/api500/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 '../../api300/c7000/storage_pool' + +module OneviewSDK + module API500 + module C7000 + # Storage pool resource implementation for API500 C7000 + class StoragePool < OneviewSDK::API300::C7000::StoragePool + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/storage_system.rb b/lib/oneview-sdk/resource/api500/c7000/storage_system.rb new file mode 100644 index 000000000..54e1854ee --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/storage_system.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 '../../api300/c7000/storage_system' + +module OneviewSDK + module API500 + module C7000 + # Storage System resource implementation for API500 C7000 + class StorageSystem < OneviewSDK::API300::C7000::StorageSystem + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/switch.rb b/lib/oneview-sdk/resource/api500/c7000/switch.rb new file mode 100644 index 000000000..ba0506034 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/switch.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 '../../api300/c7000/switch' + +module OneviewSDK + module API500 + module C7000 + # Switch resource implementation for API 500 C7000 + class Switch < OneviewSDK::API300::C7000::Switch + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.rb b/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.rb new file mode 100644 index 000000000..a8e95a90f --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.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 '../../api300/c7000/unmanaged_device' + +module OneviewSDK + module API500 + module C7000 + # Unmanaged Device resource implementation for API500 C7000 + class UnmanagedDevice < OneviewSDK::API300::C7000::UnmanagedDevice + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/uplink_set.rb b/lib/oneview-sdk/resource/api500/c7000/uplink_set.rb new file mode 100644 index 000000000..58eca0c9e --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/uplink_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 '../../api300/c7000/uplink_set' + +module OneviewSDK + module API500 + module C7000 + # Uplink set resource implementation for API500 C7000 + class UplinkSet < OneviewSDK::API300::C7000::UplinkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/user.rb b/lib/oneview-sdk/resource/api500/c7000/user.rb new file mode 100644 index 000000000..162415b8b --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/user.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 '../../api300/c7000/user' + +module OneviewSDK + module API500 + module C7000 + # User resource implementation for API500 C7000 + class User < OneviewSDK::API300::C7000::User + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/volume.rb b/lib/oneview-sdk/resource/api500/c7000/volume.rb new file mode 100644 index 000000000..5361c32a4 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/volume.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 '../../api300/c7000/volume' + +module OneviewSDK + module API500 + module C7000 + # Volume resource implementation on API500 C7000 + class Volume < OneviewSDK::API300::C7000::Volume + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/volume_attachment.rb b/lib/oneview-sdk/resource/api500/c7000/volume_attachment.rb new file mode 100644 index 000000000..ecc43713e --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/volume_attachment.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 '../../api300/c7000/volume_attachment' + +module OneviewSDK + module API500 + module C7000 + # Storage volume attachment resource implementation for API500 C7000 + class VolumeAttachment < OneviewSDK::API300::C7000::VolumeAttachment + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.rb b/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.rb new file mode 100644 index 000000000..f1fb8d5c2 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.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 '../../api300/c7000/volume_snapshot' + +module OneviewSDK + module API500 + module C7000 + # Volume snapshot resource implementation for API500 C7000 + class VolumeSnapshot < OneviewSDK::API300::C7000::VolumeSnapshot + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/c7000/volume_template.rb b/lib/oneview-sdk/resource/api500/c7000/volume_template.rb new file mode 100644 index 000000000..11b40e7cc --- /dev/null +++ b/lib/oneview-sdk/resource/api500/c7000/volume_template.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 '../../api300/c7000/volume_template' + +module OneviewSDK + module API500 + module C7000 + # Volume Template resource implementation for API500 Synergy + class VolumeTemplate < OneviewSDK::API300::C7000::VolumeTemplate + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy.rb b/lib/oneview-sdk/resource/api500/synergy.rb new file mode 100644 index 000000000..6cb6c168c --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy.rb @@ -0,0 +1,27 @@ +# (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. + +module OneviewSDK + module API500 + # Module for API500 Synergy + module Synergy + # Get resource class that matches the type given + # @param [String] type Name of the desired class type + # @return [Class] Resource class or nil if not found + def self.resource_named(type) + OneviewSDK::API500.resource_named(type, 'Synergy') + end + end + end +end + +# Load all API-specific resources: +Dir[File.dirname(__FILE__) + '/synergy/*.rb'].each { |file| require file } diff --git a/lib/oneview-sdk/resource/api500/synergy/connection_template.rb b/lib/oneview-sdk/resource/api500/synergy/connection_template.rb new file mode 100644 index 000000000..47266b316 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/connection_template.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 '../../api300/synergy/connection_template' + +module OneviewSDK + module API500 + module Synergy + # Connection template resource implementation for API500 Synergy + class ConnectionTemplate < OneviewSDK::API300::Synergy::ConnectionTemplate + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/datacenter.rb b/lib/oneview-sdk/resource/api500/synergy/datacenter.rb new file mode 100644 index 000000000..ba12d51c8 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/datacenter.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 '../../api300/synergy/datacenter' + +module OneviewSDK + module API500 + module Synergy + # Datacenter resource implementation for API500 Synergy + class Datacenter < OneviewSDK::API300::Synergy::Datacenter + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/drive_enclosure.rb b/lib/oneview-sdk/resource/api500/synergy/drive_enclosure.rb new file mode 100644 index 000000000..d105b2284 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/drive_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 '../../api300/synergy/drive_enclosure' + +module OneviewSDK + module API500 + module Synergy + # Drive enclosure resource implementation for API500 Synergy + class DriveEnclosure < OneviewSDK::API300::Synergy::DriveEnclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/enclosure.rb b/lib/oneview-sdk/resource/api500/synergy/enclosure.rb new file mode 100644 index 000000000..2207f1ea4 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/enclosure' + +module OneviewSDK + module API500 + module Synergy + # Enclosure resource implementation for API500 Synergy + class Enclosure < OneviewSDK::API300::Synergy::Enclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb b/lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb new file mode 100644 index 000000000..9804b0ad7 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/enclosure_group.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 '../../api300/synergy/enclosure_group' + +module OneviewSDK + module API500 + module Synergy + # Enclosure group resource implementation on API500 Synergy + class EnclosureGroup < OneviewSDK::API300::Synergy::EnclosureGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/ethernet_network.rb b/lib/oneview-sdk/resource/api500/synergy/ethernet_network.rb new file mode 100644 index 000000000..f20115779 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/ethernet_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 '../../api300/synergy/ethernet_network' + +module OneviewSDK + module API500 + module Synergy + # Ethernet network resource implementation for API500 Synergy + class EthernetNetwork < OneviewSDK::API300::Synergy::EthernetNetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/fabric.rb b/lib/oneview-sdk/resource/api500/synergy/fabric.rb new file mode 100644 index 000000000..6b9effdcd --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/fabric.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 '../../api300/synergy/fabric' + +module OneviewSDK + module API500 + module Synergy + # Fabric resource implementation for API500 Synergy + class Fabric < OneviewSDK::API300::Synergy::Fabric + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/fc_network.rb b/lib/oneview-sdk/resource/api500/synergy/fc_network.rb new file mode 100644 index 000000000..f1282c606 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/fc_network' + +module OneviewSDK + module API500 + module Synergy + # FC network resource implementation for API500 Synergy + class FCNetwork < OneviewSDK::API300::Synergy::FCNetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/fcoe_network.rb b/lib/oneview-sdk/resource/api500/synergy/fcoe_network.rb new file mode 100644 index 000000000..5ca771ce1 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/fcoe_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 '../../api300/synergy/fcoe_network' + +module OneviewSDK + module API500 + module Synergy + # FCoE network resource implementation for API500 Synergy + class FCoENetwork < OneviewSDK::API300::Synergy::FCoENetwork + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.rb b/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.rb new file mode 100644 index 000000000..ec3c2f33b --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.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 '../../api300/synergy/firmware_bundle' + +module OneviewSDK + module API500 + module Synergy + class FirmwareBundle < OneviewSDK::API300::Synergy::FirmwareBundle + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/firmware_driver.rb b/lib/oneview-sdk/resource/api500/synergy/firmware_driver.rb new file mode 100644 index 000000000..823fcdbfa --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/firmware_driver.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 '../../api300/synergy/firmware_driver' + +module OneviewSDK + module API500 + module Synergy + # FirmwareDriver resource implementation for API500 Synergy + class FirmwareDriver < OneviewSDK::API300::Synergy::FirmwareDriver + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/interconnect.rb b/lib/oneview-sdk/resource/api500/synergy/interconnect.rb new file mode 100644 index 000000000..ae0c49fbc --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/interconnect.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 '../../api300/synergy/interconnect' + +module OneviewSDK + module API500 + module Synergy + # Interconnect resource implementation on API500 Synergy + class Interconnect < OneviewSDK::API300::Synergy::Interconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/lig_uplink_set.rb b/lib/oneview-sdk/resource/api500/synergy/lig_uplink_set.rb new file mode 100644 index 000000000..e3dc150f8 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/lig_uplink_set' + +module OneviewSDK + module API500 + module Synergy + class LIGUplinkSet < OneviewSDK::API300::Synergy::LIGUplinkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/logical_downlink.rb b/lib/oneview-sdk/resource/api500/synergy/logical_downlink.rb new file mode 100644 index 000000000..d30bad2e3 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/logical_downlink.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 '../../api300/synergy/logical_downlink' + +module OneviewSDK + module API500 + module Synergy + # Logical downlink resource implementation for API500 Synergy + class LogicalDownlink < OneviewSDK::API300::Synergy::LogicalDownlink + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/logical_enclosure.rb b/lib/oneview-sdk/resource/api500/synergy/logical_enclosure.rb new file mode 100644 index 000000000..372900d7e --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/logical_enclosure' + +module OneviewSDK + module API500 + module Synergy + # Logical Enclosure resource implementation on API500 Synergy + class LogicalEnclosure < OneviewSDK::API300::Synergy::LogicalEnclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.rb b/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.rb new file mode 100644 index 000000000..c69c5afbb --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.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 '../../api300/synergy/logical_interconnect' + +module OneviewSDK + module API500 + module Synergy + # Logical interconnect resource implementation for API500 Synergy + class LogicalInterconnect < OneviewSDK::API300::Synergy::LogicalInterconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.rb b/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.rb new file mode 100644 index 000000000..60e3f1e46 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.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 '../../api300/synergy/logical_interconnect_group' + +module OneviewSDK + module API500 + module Synergy + # Logical interconnect group resource implementation for API500 Synergy + class LogicalInterconnectGroup < OneviewSDK::API300::Synergy::LogicalInterconnectGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/logical_switch.rb b/lib/oneview-sdk/resource/api500/synergy/logical_switch.rb new file mode 100644 index 000000000..6a4788c83 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/logical_switch.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 '../../api300/synergy/logical_switch' + +module OneviewSDK + module API500 + module Synergy + # Logical switch resource implementation for API500 Synergy + class LogicalSwitch + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/managed_san.rb b/lib/oneview-sdk/resource/api500/synergy/managed_san.rb new file mode 100644 index 000000000..e96908966 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/managed_san.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 '../../api300/synergy/managed_san' + +module OneviewSDK + module API500 + module Synergy + # Managed SAN resource implementation for API500 Synergy + class ManagedSAN < OneviewSDK::API300::Synergy::ManagedSAN + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/network_set.rb b/lib/oneview-sdk/resource/api500/synergy/network_set.rb new file mode 100644 index 000000000..2cc5bafd8 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/network_set' + +module OneviewSDK + module API500 + module Synergy + # Network set resource implementation for API500 Synergy + class NetworkSet < OneviewSDK::API300::Synergy::NetworkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/power_device.rb b/lib/oneview-sdk/resource/api500/synergy/power_device.rb new file mode 100644 index 000000000..c3511ec13 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/power_device.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 '../../api300/synergy/power_device' + +module OneviewSDK + module API500 + module Synergy + class PowerDevice < OneviewSDK::API300::Synergy::PowerDevice + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/rack.rb b/lib/oneview-sdk/resource/api500/synergy/rack.rb new file mode 100644 index 000000000..8148b3f01 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/rack.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 '../../api300/synergy/rack' + +module OneviewSDK + module API500 + module Synergy + # Rack resource implementation for API500 Synergy + class Rack < OneviewSDK::API300::Synergy::Rack + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/resource.rb b/lib/oneview-sdk/resource/api500/synergy/resource.rb new file mode 100644 index 000000000..ca2f3a503 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/resource.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 '../../api300/synergy/resource' + +module OneviewSDK + module API500 + module Synergy + class Resource < OneviewSDK::API300::Synergy::Resource + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/san_manager.rb b/lib/oneview-sdk/resource/api500/synergy/san_manager.rb new file mode 100644 index 000000000..7954ed6f7 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/san_manager.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 '../../api300/synergy/san_manager' + +module OneviewSDK + module API500 + module Synergy + # SAN manager resource implementation for API500 Synergy + class SANManager < OneviewSDK::API300::Synergy::SANManager + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.rb b/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.rb new file mode 100644 index 000000000..cd8cf0909 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.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 '../../api300/synergy/sas_interconnect' + +module OneviewSDK + module API500 + module Synergy + # SAS Interconnect resource implementation for API500 Synergy + class SASInterconnect < OneviewSDK::API300::Synergy::SASInterconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.rb b/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.rb new file mode 100644 index 000000000..6f05afa63 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.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 '../../api300/synergy/sas_logical_interconnect' + +module OneviewSDK + module API500 + module Synergy + # SAS Logical interconnect group resource implementation for API500 Synergy + class SASLogicalInterconnect < OneviewSDK::API300::Synergy::SASLogicalInterconnect + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.rb b/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.rb new file mode 100644 index 000000000..bf0ba82d3 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.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 '../../api300/synergy/sas_logical_interconnect_group' + +module OneviewSDK + module API500 + module Synergy + # SAS Logical interconnect group resource implementation for API500 Synergy + class SASLogicalInterconnectGroup < OneviewSDK::API300::Synergy::SASLogicalInterconnectGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/scope.rb b/lib/oneview-sdk/resource/api500/synergy/scope.rb new file mode 100644 index 000000000..23381273d --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/scope.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 '../../api300/synergy/scope' + +module OneviewSDK + module API500 + module Synergy + # Scope resource implementation for API500 Synergy + class Scope < OneviewSDK::API300::Synergy::Scope + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/server_hardware.rb b/lib/oneview-sdk/resource/api500/synergy/server_hardware.rb new file mode 100644 index 000000000..9f000a19f --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/server_hardware' + +module OneviewSDK + module API500 + module Synergy + # Server Hardware resource implementation on API500 Synergy + class ServerHardware < OneviewSDK::API300::Synergy::ServerHardware + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.rb b/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.rb new file mode 100644 index 000000000..ad899d7a4 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.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 '../../api300/synergy/server_hardware_type' + +module OneviewSDK + module API500 + module Synergy + # Server hardware type resource implementation for API500 Synergy + class ServerHardwareType < OneviewSDK::API300::Synergy::ServerHardwareType + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/server_profile.rb b/lib/oneview-sdk/resource/api500/synergy/server_profile.rb new file mode 100644 index 000000000..85a2ecfed --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/server_profile.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 '../../api300/synergy/server_profile' + +module OneviewSDK + module API500 + module Synergy + # Server profile resource implementation for API500 Synergy + class ServerProfile < OneviewSDK::API300::Synergy::ServerProfile + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/server_profile_template.rb b/lib/oneview-sdk/resource/api500/synergy/server_profile_template.rb new file mode 100644 index 000000000..9153cfc71 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/server_profile_template.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 '../../api300/synergy/server_profile_template' + +module OneviewSDK + module API500 + module Synergy + # Server Profile Template resource implementation for API500 Synergy + class ServerProfileTemplate < OneviewSDK::API300::Synergy::ServerProfileTemplate + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/storage_pool.rb b/lib/oneview-sdk/resource/api500/synergy/storage_pool.rb new file mode 100644 index 000000000..7087db353 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/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 '../../api300/synergy/storage_pool' + +module OneviewSDK + module API500 + module Synergy + # Storage pool resource implementation for API 500 Synergy + class StoragePool < OneviewSDK::API300::Synergy::StoragePool + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/storage_system.rb b/lib/oneview-sdk/resource/api500/synergy/storage_system.rb new file mode 100644 index 000000000..628b82ce4 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/storage_system.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 '../../api300/synergy/storage_system' + +module OneviewSDK + module API500 + module Synergy + # Storage system resource implementation for API 500 Synergy + class StorageSystem < OneviewSDK::API300::Synergy::StorageSystem + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/switch.rb b/lib/oneview-sdk/resource/api500/synergy/switch.rb new file mode 100644 index 000000000..4be8b9856 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/switch.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 '../../api300/synergy/switch' + +module OneviewSDK + module API500 + module Synergy + # Switch resource implementation for API 500 Synergy + class Switch < OneviewSDK::API300::Synergy::Switch + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.rb b/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.rb new file mode 100644 index 000000000..6b6abfdbb --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.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 '../../api300/synergy/unmanaged_device' + +module OneviewSDK + module API500 + module Synergy + # Unmanaged Device resource implementation for API500 Synergy + class UnmanagedDevice < OneviewSDK::API300::Synergy::UnmanagedDevice + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/uplink_set.rb b/lib/oneview-sdk/resource/api500/synergy/uplink_set.rb new file mode 100644 index 000000000..70532949d --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/uplink_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 '../../api300/synergy/uplink_set' + +module OneviewSDK + module API500 + module Synergy + # Uplink set resource implementation for API500 Synergy + class UplinkSet < OneviewSDK::API300::Synergy::UplinkSet + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/user.rb b/lib/oneview-sdk/resource/api500/synergy/user.rb new file mode 100644 index 000000000..59f4f65ff --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/user.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 '../../api300/synergy/user' + +module OneviewSDK + module API500 + module Synergy + # User resource implementation for API500 Synergy + class User < OneviewSDK::API300::Synergy::User + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/volume.rb b/lib/oneview-sdk/resource/api500/synergy/volume.rb new file mode 100644 index 000000000..c0afdb5f9 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/volume.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 '../../api300/synergy/volume' + +module OneviewSDK + module API500 + module Synergy + # Volume resource implementation for API500 Synergy + class Volume < OneviewSDK::API300::Synergy::Volume + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/volume_attachment.rb b/lib/oneview-sdk/resource/api500/synergy/volume_attachment.rb new file mode 100644 index 000000000..9ff5b0031 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/volume_attachment.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 '../../api300/synergy/volume_attachment' + +module OneviewSDK + module API500 + module Synergy + # Storage volume attachment resource implementation for API500 Synergy + class VolumeAttachment < OneviewSDK::API300::Synergy::VolumeAttachment + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.rb b/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.rb new file mode 100644 index 000000000..494ca2cae --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.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 '../../api300/synergy/volume_snapshot' + +module OneviewSDK + module API500 + module Synergy + # Volume snapshot resource implementation for API500 Synergy + class VolumeSnapshot < OneviewSDK::API300::Synergy::VolumeSnapshot + end + end + end +end diff --git a/lib/oneview-sdk/resource/api500/synergy/volume_template.rb b/lib/oneview-sdk/resource/api500/synergy/volume_template.rb new file mode 100644 index 000000000..90d658121 --- /dev/null +++ b/lib/oneview-sdk/resource/api500/synergy/volume_template.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 '../../api300/synergy/volume_template' + +module OneviewSDK + module API500 + module Synergy + # Volume Template resource implementation for API500 Synergy + class VolumeTemplate < OneviewSDK::API300::Synergy::VolumeTemplate + end + end + end +end diff --git a/spec/integration/resource/api500/c7000/.gitkeep b/spec/integration/resource/api500/c7000/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/spec/integration/resource/api500/synergy/.gitkeep b/spec/integration/resource/api500/synergy/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/spec/shared_context.rb b/spec/shared_context.rb index 55bac073d..52e35c0dc 100644 --- a/spec/shared_context.rb +++ b/spec/shared_context.rb @@ -50,6 +50,17 @@ integration_context_debugging end +# Context for API500 integration testing: +RSpec.shared_context 'integration api500 context', a: :b do + before :all do + integration_context + $client_500 ||= OneviewSDK::Client.new($config.merge(api_version: 500)) + $client_500_synergy ||= OneviewSDK::Client.new($config_synergy.merge(api_version: 500)) + end + + integration_context_debugging +end + # Context for Image Streamer API300 integration testing: RSpec.shared_context 'integration i3s api300 context', a: :b do before :all do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 54d13eb1a..5e85d27b0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -94,7 +94,7 @@ config.before(:each) do unless config.filter_manager.inclusions.rules[:integration] || config.filter_manager.inclusions.rules[:system] # Mock appliance version and login api requests, as well as loading trusted certs - allow_any_instance_of(OneviewSDK::Client).to receive(:appliance_api_version).and_return(300) + allow_any_instance_of(OneviewSDK::Client).to receive(:appliance_api_version).and_return(500) allow_any_instance_of(OneviewSDK::Client).to receive(:login).and_return('secretToken') allow_any_instance_of(OneviewSDK::ImageStreamer::Client).to receive(:appliance_i3s_api_version).and_return(300) allow(OneviewSDK::SSLHelper).to receive(:load_trusted_certs).and_return(nil) diff --git a/spec/unit/cli/version_spec.rb b/spec/unit/cli/version_spec.rb index 33733ca52..690095a22 100644 --- a/spec/unit/cli/version_spec.rb +++ b/spec/unit/cli/version_spec.rb @@ -11,7 +11,7 @@ end it 'prints the appliance version' do - expect { command }.to output(/OneView appliance API version at .* = 300/).to_stdout_from_any_process + expect { command }.to output(/OneView appliance API version at .* = 500/).to_stdout_from_any_process end it 'requires the url to be set' do diff --git a/spec/unit/resource/api500/c7000/resource_spec.rb b/spec/unit/resource/api500/c7000/resource_spec.rb new file mode 100644 index 000000000..7b0a299df --- /dev/null +++ b/spec/unit/resource/api500/c7000/resource_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API500::C7000::Resource do + include_context 'shared context' + + it 'inherits from OneviewSDK::Resource' do + expect(described_class).to be < OneviewSDK::Resource + end +end diff --git a/spec/unit/resource/api500/c7000_spec.rb b/spec/unit/resource/api500/c7000_spec.rb new file mode 100644 index 000000000..c9ccc9e47 --- /dev/null +++ b/spec/unit/resource/api500/c7000_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API500::C7000 do + describe '#resource_named' do + it 'calls the OneviewSDK::API500.resource_named method' do + expect(OneviewSDK::API500).to receive(:resource_named).with('ConnectionTemplate', 'C7000') + described_class.resource_named('ConnectionTemplate') + end + end +end diff --git a/spec/unit/resource/api500/synergy/resource_spec.rb b/spec/unit/resource/api500/synergy/resource_spec.rb new file mode 100644 index 000000000..af759a086 --- /dev/null +++ b/spec/unit/resource/api500/synergy/resource_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API500::Synergy::Resource do + include_context 'shared context' + + it 'inherits from OneviewSDK::Resource' do + expect(described_class).to be < OneviewSDK::Resource + end +end diff --git a/spec/unit/resource/api500/synergy_spec.rb b/spec/unit/resource/api500/synergy_spec.rb new file mode 100644 index 000000000..68b92ad77 --- /dev/null +++ b/spec/unit/resource/api500/synergy_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API500::Synergy do + describe '#resource_named' do + it 'calls the OneviewSDK::API500.resource_named method' do + expect(OneviewSDK::API500).to receive(:resource_named).with('ConnectionTemplate', 'Synergy') + described_class.resource_named('ConnectionTemplate') + end + end +end diff --git a/spec/unit/resource/api500_spec.rb b/spec/unit/resource/api500_spec.rb new file mode 100644 index 000000000..c70ac2b6a --- /dev/null +++ b/spec/unit/resource/api500_spec.rb @@ -0,0 +1,47 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API500 do + it 'has a list of supported variants' do + variants = described_class::SUPPORTED_VARIANTS + expect(variants).to be_a Array + %w(C7000 Synergy).each { |v| expect(variants).to include(v) } + end + + it 'returns a valid API500 variant' do + %w(C7000 Synergy).each { |v| expect { OneviewSDK::API500.const_get(v) }.not_to raise_error } + end + + it 'raises an error when an invalid API500 variant is called' do + expect { OneviewSDK::API500::C6000 } + .to raise_error(NameError, 'The C6000 method or resource does not exist for OneView API500 variant C7000.') + end + + it 'has a default api variant' do + expect(described_class::DEFAULT_VARIANT).to eq('C7000') + end + + describe '#resource_named' do + it 'gets the correct resource class' do + expect(described_class.resource_named('ServerProfile')).to eq(described_class::ServerProfile) + end + + it 'allows you to override the variant' do + expect(described_class.resource_named('ServerProfile', 'Synergy')).to eq(described_class::Synergy::ServerProfile) + expect(described_class.resource_named('ServerProfile', 'C7000')).to eq(described_class::C7000::ServerProfile) + end + end + + describe '#variant' do + it 'gets the current variant' do + expect(described_class::SUPPORTED_VARIANTS).to include(OneviewSDK::API500.variant) + end + end + + describe '#variant=' do + it 'sets the current variant' do + OneviewSDK::API500.variant = 'Synergy' + expect(OneviewSDK::API500.variant).to eq('Synergy') + expect(OneviewSDK::API500.variant_updated?).to eq(true) + end + end +end