oneview-sdk 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -2
  3. data/Gemfile +11 -0
  4. data/Guardfile +26 -0
  5. data/README.md +9 -3
  6. data/lib/oneview-sdk.rb +1 -1
  7. data/lib/oneview-sdk/image-streamer/resource/{api_300.rb → api300.rb} +0 -0
  8. data/lib/oneview-sdk/image-streamer/resource/api300/artifact_bundle.rb +10 -12
  9. data/lib/oneview-sdk/image-streamer/resource/api300/golden_image.rb +6 -61
  10. data/lib/oneview-sdk/resource.rb +23 -6
  11. data/lib/oneview-sdk/resource/api200/firmware_bundle.rb +4 -37
  12. data/lib/oneview-sdk/resource/api200/lig_uplink_set.rb +1 -1
  13. data/lib/oneview-sdk/resource/api200/logical_interconnect_group.rb +47 -29
  14. data/lib/oneview-sdk/resource/api200/volume.rb +2 -22
  15. data/lib/oneview-sdk/resource/api300/c7000/server_hardware.rb +1 -13
  16. data/lib/oneview-sdk/resource/api300/synergy/os_deployment_plan.rb +41 -0
  17. data/lib/oneview-sdk/resource/api300/synergy/server_profile.rb +13 -0
  18. data/lib/oneview-sdk/resource/api500.rb +66 -0
  19. data/lib/oneview-sdk/resource/api500/c7000.rb +27 -0
  20. data/lib/oneview-sdk/resource/api500/c7000/connection_template.rb +22 -0
  21. data/lib/oneview-sdk/resource/api500/c7000/datacenter.rb +22 -0
  22. data/lib/oneview-sdk/resource/api500/c7000/enclosure.rb +22 -0
  23. data/lib/oneview-sdk/resource/api500/c7000/enclosure_group.rb +22 -0
  24. data/lib/oneview-sdk/resource/api500/c7000/ethernet_network.rb +22 -0
  25. data/lib/oneview-sdk/resource/api500/c7000/fabric.rb +22 -0
  26. data/lib/oneview-sdk/resource/api500/c7000/fc_network.rb +22 -0
  27. data/lib/oneview-sdk/resource/api500/c7000/fcoe_network.rb +22 -0
  28. data/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.rb +21 -0
  29. data/lib/oneview-sdk/resource/api500/c7000/firmware_driver.rb +22 -0
  30. data/lib/oneview-sdk/resource/api500/c7000/interconnect.rb +22 -0
  31. data/lib/oneview-sdk/resource/api500/c7000/lig_uplink_set.rb +21 -0
  32. data/lib/oneview-sdk/resource/api500/c7000/logical_downlink.rb +22 -0
  33. data/lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb +22 -0
  34. data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.rb +22 -0
  35. data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.rb +22 -0
  36. data/lib/oneview-sdk/resource/api500/c7000/logical_switch.rb +22 -0
  37. data/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.rb +22 -0
  38. data/lib/oneview-sdk/resource/api500/c7000/managed_san.rb +22 -0
  39. data/lib/oneview-sdk/resource/api500/c7000/network_set.rb +22 -0
  40. data/lib/oneview-sdk/resource/api500/c7000/power_device.rb +21 -0
  41. data/lib/oneview-sdk/resource/api500/c7000/rack.rb +22 -0
  42. data/lib/oneview-sdk/resource/api500/c7000/resource.rb +21 -0
  43. data/lib/oneview-sdk/resource/api500/c7000/san_manager.rb +22 -0
  44. data/lib/oneview-sdk/resource/api500/c7000/scope.rb +22 -0
  45. data/lib/oneview-sdk/resource/api500/c7000/server_hardware.rb +22 -0
  46. data/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.rb +21 -0
  47. data/lib/oneview-sdk/resource/api500/c7000/server_profile.rb +22 -0
  48. data/lib/oneview-sdk/resource/api500/c7000/server_profile_template.rb +22 -0
  49. data/lib/oneview-sdk/resource/api500/c7000/storage_pool.rb +22 -0
  50. data/lib/oneview-sdk/resource/api500/c7000/storage_system.rb +22 -0
  51. data/lib/oneview-sdk/resource/api500/c7000/switch.rb +22 -0
  52. data/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.rb +22 -0
  53. data/lib/oneview-sdk/resource/api500/c7000/uplink_set.rb +22 -0
  54. data/lib/oneview-sdk/resource/api500/c7000/user.rb +22 -0
  55. data/lib/oneview-sdk/resource/api500/c7000/volume.rb +22 -0
  56. data/lib/oneview-sdk/resource/api500/c7000/volume_attachment.rb +22 -0
  57. data/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.rb +22 -0
  58. data/lib/oneview-sdk/resource/api500/c7000/volume_template.rb +22 -0
  59. data/lib/oneview-sdk/resource/api500/synergy.rb +27 -0
  60. data/lib/oneview-sdk/resource/api500/synergy/connection_template.rb +22 -0
  61. data/lib/oneview-sdk/resource/api500/synergy/datacenter.rb +22 -0
  62. data/lib/oneview-sdk/resource/api500/synergy/drive_enclosure.rb +22 -0
  63. data/lib/oneview-sdk/resource/api500/synergy/enclosure.rb +22 -0
  64. data/lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb +22 -0
  65. data/lib/oneview-sdk/resource/api500/synergy/ethernet_network.rb +22 -0
  66. data/lib/oneview-sdk/resource/api500/synergy/fabric.rb +22 -0
  67. data/lib/oneview-sdk/resource/api500/synergy/fc_network.rb +22 -0
  68. data/lib/oneview-sdk/resource/api500/synergy/fcoe_network.rb +22 -0
  69. data/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.rb +21 -0
  70. data/lib/oneview-sdk/resource/api500/synergy/firmware_driver.rb +22 -0
  71. data/lib/oneview-sdk/resource/api500/synergy/interconnect.rb +22 -0
  72. data/lib/oneview-sdk/resource/api500/synergy/lig_uplink_set.rb +21 -0
  73. data/lib/oneview-sdk/resource/api500/synergy/logical_downlink.rb +22 -0
  74. data/lib/oneview-sdk/resource/api500/synergy/logical_enclosure.rb +22 -0
  75. data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.rb +22 -0
  76. data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.rb +22 -0
  77. data/lib/oneview-sdk/resource/api500/synergy/logical_switch.rb +22 -0
  78. data/lib/oneview-sdk/resource/api500/synergy/managed_san.rb +22 -0
  79. data/lib/oneview-sdk/resource/api500/synergy/network_set.rb +22 -0
  80. data/lib/oneview-sdk/resource/api500/synergy/power_device.rb +21 -0
  81. data/lib/oneview-sdk/resource/api500/synergy/rack.rb +22 -0
  82. data/lib/oneview-sdk/resource/api500/synergy/resource.rb +21 -0
  83. data/lib/oneview-sdk/resource/api500/synergy/san_manager.rb +22 -0
  84. data/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.rb +22 -0
  85. data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.rb +22 -0
  86. data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.rb +22 -0
  87. data/lib/oneview-sdk/resource/api500/synergy/scope.rb +22 -0
  88. data/lib/oneview-sdk/resource/api500/synergy/server_hardware.rb +22 -0
  89. data/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.rb +22 -0
  90. data/lib/oneview-sdk/resource/api500/synergy/server_profile.rb +22 -0
  91. data/lib/oneview-sdk/resource/api500/synergy/server_profile_template.rb +22 -0
  92. data/lib/oneview-sdk/resource/api500/synergy/storage_pool.rb +22 -0
  93. data/lib/oneview-sdk/resource/api500/synergy/storage_system.rb +22 -0
  94. data/lib/oneview-sdk/resource/api500/synergy/switch.rb +22 -0
  95. data/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.rb +22 -0
  96. data/lib/oneview-sdk/resource/api500/synergy/uplink_set.rb +22 -0
  97. data/lib/oneview-sdk/resource/api500/synergy/user.rb +22 -0
  98. data/lib/oneview-sdk/resource/api500/synergy/volume.rb +22 -0
  99. data/lib/oneview-sdk/resource/api500/synergy/volume_attachment.rb +22 -0
  100. data/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.rb +22 -0
  101. data/lib/oneview-sdk/resource/api500/synergy/volume_template.rb +22 -0
  102. data/lib/oneview-sdk/rest.rb +21 -8
  103. data/lib/oneview-sdk/version.rb +1 -1
  104. metadata +90 -4
@@ -132,36 +132,16 @@ module OneviewSDK
132
132
  # @return [Array] Array of snapshots
133
133
  def get_snapshots
134
134
  ensure_uri && ensure_client
135
- results = []
136
135
  uri = "#{@data['uri']}/snapshots"
137
- loop do
138
- response = @client.rest_get(uri, @api_version)
139
- body = @client.response_handler(response)
140
- members = body['members']
141
- members.each do |member|
142
- results.push(member)
143
- end
144
- break unless body['nextPageUri']
145
- uri = body['nextPageUri']
146
- end
147
- results
136
+ self.class.find_with_pagination(@client, uri)
148
137
  end
149
138
 
150
139
  # Gets all the attachable volumes managed by the appliance
151
140
  # @param [OneviewSDK::Client] client The client object for the OneView appliance
152
141
  # @return [Array<OneviewSDK::Volume>] Array of volumes
153
142
  def self.get_attachable_volumes(client)
154
- results = []
155
143
  uri = "#{BASE_URI}/attachable-volumes"
156
- loop do
157
- response = client.rest_get(uri)
158
- body = client.response_handler(response)
159
- members = body['members']
160
- members.each { |member| results.push(OneviewSDK::Volume.new(client, member)) }
161
- break unless body['nextPageUri']
162
- uri = body['nextPageUri']
163
- end
164
- results
144
+ find_by(client, {}, uri)
165
145
  end
166
146
 
167
147
  # Gets the list of extra managed storage volume paths
@@ -44,21 +44,9 @@ module OneviewSDK
44
44
  # @return [Array] Array of firmware inventory
45
45
  def get_firmwares(filters = [])
46
46
  ensure_client
47
- results = []
48
47
  uri = self.class::BASE_URI + '/*/firmware'
49
48
  uri_generate(uri, filters) unless filters.empty?
50
- response = @client.rest_get(uri)
51
- body = @client.response_handler(response)
52
-
53
- loop do
54
- members = body['members']
55
- members.each do |member|
56
- results.push(member)
57
- end
58
- break unless body['nextPageUri']
59
- uri = body['nextPageUri']
60
- end
61
- results
49
+ self.class.find_with_pagination(@client, uri)
62
50
  end
63
51
 
64
52
  private
@@ -0,0 +1,41 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative 'resource'
13
+
14
+ module OneviewSDK
15
+ module API300
16
+ module Synergy
17
+ # Network set resource implementation for API300 Synergy
18
+ class OSDeploymentPlan < OneviewSDK::API300::Synergy::Resource
19
+ BASE_URI = '/rest/os-deployment-plans'.freeze
20
+
21
+ # Method is not available
22
+ # @raise [OneviewSDK::MethodUnavailable] method is not available
23
+ def create(*)
24
+ unavailable_method
25
+ end
26
+
27
+ # Method is not available
28
+ # @raise [OneviewSDK::MethodUnavailable] method is not available
29
+ def update(*)
30
+ unavailable_method
31
+ end
32
+
33
+ # Method is not available
34
+ # @raise [OneviewSDK::MethodUnavailable] method is not available
35
+ def delete(*)
36
+ unavailable_method
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -72,6 +72,19 @@ module OneviewSDK
72
72
  results = get_sas_logical_jbod_attachments(client)
73
73
  results.find { |attachment| attachment['name'] == name }
74
74
  end
75
+
76
+ # Sets the OS deployment settings applicable when deployment is invoked through server profile
77
+ # @param [OneviewSDK::API300::Synergy::OSDeploymentPlan] os_deployment_plan the OSDeploymentPlan resource with valid URI
78
+ # @param [Array(Hash<String, String>)] custom_attributes The custom attributes to be configured on the OS deployment plan.
79
+ # The internal hashes may contain:
80
+ # - 'name' [String] name of the attribute
81
+ # - 'value' [String] value of the attribute
82
+ def set_os_deployment_setttings(os_deployment_plan, custom_attributes = [])
83
+ os_deployment_plan.ensure_uri
84
+ @data['osDeploymentSettings'] ||= {}
85
+ @data['osDeploymentSettings']['osDeploymentPlanUri'] = os_deployment_plan['uri']
86
+ @data['osDeploymentSettings']['osCustomAttributes'] = custom_attributes
87
+ end
75
88
  end
76
89
  end
77
90
  end
@@ -0,0 +1,66 @@
1
+ # (c) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ module OneviewSDK
13
+ # Module for API v500
14
+ module API500
15
+ SUPPORTED_VARIANTS = %w(C7000 Synergy).freeze
16
+ DEFAULT_VARIANT = 'C7000'.freeze
17
+ @variant = DEFAULT_VARIANT
18
+ @variant_updated = false # Whether or not the API variant has been set by the user
19
+
20
+ # Get resource class that matches the type given
21
+ # @param [String] type Name of the desired class type
22
+ # @param [String] variant Variant (C7000 or Synergy)
23
+ # @return [Class] Resource class or nil if not found
24
+ def self.resource_named(type, variant = @variant)
25
+ raise "API500 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant.to_s)
26
+ new_type = type.to_s.downcase.gsub(/[ -_]/, '')
27
+ api_module = OneviewSDK::API500.const_get(variant)
28
+ api_module.constants.each do |c|
29
+ klass = api_module.const_get(c)
30
+ next unless klass.is_a?(Class)
31
+ name = klass.name.split('::').last.downcase.delete('_').delete('-')
32
+ return klass if new_type =~ /^#{name}[s]?$/
33
+ end
34
+ nil
35
+ end
36
+
37
+ # Get the current API500 variant
38
+ def self.variant
39
+ @variant
40
+ end
41
+
42
+ # Has the API500 variant been set by the user?
43
+ # @return [TrueClass, FalseClass]
44
+ def self.variant_updated?
45
+ @variant_updated
46
+ end
47
+
48
+ # Sets the API500 variant
49
+ def self.variant=(variant)
50
+ raise "API500 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant)
51
+ @variant_updated = true
52
+ @variant = variant
53
+ end
54
+
55
+ # Helps redirect resources to the correct API500 variant
56
+ def self.const_missing(const)
57
+ api500_module = OneviewSDK::API500.const_get(@variant.to_s)
58
+ api500_module.const_get(const)
59
+ rescue NameError
60
+ raise NameError, "The #{const} method or resource does not exist for OneView API500 variant #{@variant}."
61
+ end
62
+ end
63
+ end
64
+
65
+ # Load all API500-specific resources:
66
+ Dir[File.dirname(__FILE__) + '/api500/*.rb'].each { |file| require file }
@@ -0,0 +1,27 @@
1
+ # (c) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ module OneviewSDK
13
+ module API500
14
+ # Module for API500 C7000
15
+ module C7000
16
+ # Get resource class that matches the type given
17
+ # @param [String] type Name of the desired class type
18
+ # @return [Class] Resource class or nil if not found
19
+ def self.resource_named(type)
20
+ OneviewSDK::API500.resource_named(type, 'C7000')
21
+ end
22
+ end
23
+ end
24
+ end
25
+
26
+ # Load all API-specific resources:
27
+ Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file }
@@ -0,0 +1,22 @@
1
+ # (c) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/connection_template'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Connection template resource implementation for API500 C7000
18
+ class ConnectionTemplate < OneviewSDK::API300::C7000::ConnectionTemplate
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (c) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/datacenter'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Datacenter resource implementation for API500 C7000
18
+ class Datacenter < OneviewSDK::API300::C7000::Datacenter
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (c) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/enclosure'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Enclosure resource implementation for API500 C7000
18
+ class Enclosure < OneviewSDK::API300::C7000::Enclosure
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/enclosure_group'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Enclosure group resource implementation on API500 C7000
18
+ class EnclosureGroup < OneviewSDK::API300::C7000::EnclosureGroup
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/ethernet_network'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Ethernet network resource implementation for API500 C7000
18
+ class EthernetNetwork < OneviewSDK::API300::C7000::EthernetNetwork
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/fabric'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # Fabric resource implementation for API500 C7000
18
+ class Fabric < OneviewSDK::API300::C7000::Fabric
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/fc_network'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # FC network resource implementation for API500 C7000
18
+ class FCNetwork < OneviewSDK::API300::C7000::FCNetwork
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/fcoe_network'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # FCoE network resource implementation for API500 C7000
18
+ class FCoENetwork < OneviewSDK::API300::C7000::FCoENetwork
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,21 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/firmware_bundle'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ class FirmwareBundle < OneviewSDK::API300::C7000::FirmwareBundle
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # You may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software distributed
8
+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
10
+ # language governing permissions and limitations under the License.
11
+
12
+ require_relative '../../api300/c7000/firmware_driver'
13
+
14
+ module OneviewSDK
15
+ module API500
16
+ module C7000
17
+ # FirmwareDriver resource implementation for API500 C7000
18
+ class FirmwareDriver < OneviewSDK::API300::C7000::FirmwareDriver
19
+ end
20
+ end
21
+ end
22
+ end