oneview-sdk 5.7.0 → 5.8.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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -1
  3. data/Gemfile +2 -1
  4. data/README.md +10 -1
  5. data/endpoints-support.md +227 -333
  6. data/lib/oneview-sdk.rb +1 -1
  7. data/lib/oneview-sdk/resource/api1000.rb +66 -0
  8. data/lib/oneview-sdk/resource/api1000/c7000.rb +27 -0
  9. data/lib/oneview-sdk/resource/api1000/c7000/enclosure.rb +22 -0
  10. data/lib/oneview-sdk/resource/api1000/c7000/enclosure_group.rb +22 -0
  11. data/lib/oneview-sdk/resource/api1000/c7000/ethernet_network.rb +22 -0
  12. data/lib/oneview-sdk/resource/api1000/c7000/fc_network.rb +22 -0
  13. data/lib/oneview-sdk/resource/api1000/c7000/fcoe_network.rb +23 -0
  14. data/lib/oneview-sdk/resource/api1000/c7000/interconnect.rb +23 -0
  15. data/lib/oneview-sdk/resource/api1000/c7000/lig_uplink_set.rb +21 -0
  16. data/lib/oneview-sdk/resource/api1000/c7000/logical_enclosure.rb +22 -0
  17. data/lib/oneview-sdk/resource/api1000/c7000/logical_interconnect.rb +32 -0
  18. data/lib/oneview-sdk/resource/api1000/c7000/logical_interconnect_group.rb +32 -0
  19. data/lib/oneview-sdk/resource/api1000/c7000/network_set.rb +22 -0
  20. data/lib/oneview-sdk/resource/api1000/c7000/scope.rb +22 -0
  21. data/lib/oneview-sdk/resource/api1000/c7000/server_hardware.rb +32 -0
  22. data/lib/oneview-sdk/resource/api1000/c7000/server_hardware_type.rb +32 -0
  23. data/lib/oneview-sdk/resource/api1000/c7000/server_profile.rb +32 -0
  24. data/lib/oneview-sdk/resource/api1000/c7000/server_profile_template.rb +33 -0
  25. data/lib/oneview-sdk/resource/api1000/c7000/storage_pool.rb +22 -0
  26. data/lib/oneview-sdk/resource/api1000/c7000/storage_system.rb +35 -0
  27. data/lib/oneview-sdk/resource/api1000/c7000/uplink_set.rb +32 -0
  28. data/lib/oneview-sdk/resource/api1000/c7000/volume.rb +22 -0
  29. data/lib/oneview-sdk/resource/api1000/c7000/volume_attachment.rb +22 -0
  30. data/lib/oneview-sdk/resource/api1000/c7000/volume_template.rb +22 -0
  31. data/lib/oneview-sdk/resource/api1000/synergy.rb +27 -0
  32. data/lib/oneview-sdk/resource/api1000/synergy/enclosure.rb +22 -0
  33. data/lib/oneview-sdk/resource/api1000/synergy/enclosure_group.rb +22 -0
  34. data/lib/oneview-sdk/resource/api1000/synergy/ethernet_network.rb +22 -0
  35. data/lib/oneview-sdk/resource/api1000/synergy/fc_network.rb +22 -0
  36. data/lib/oneview-sdk/resource/api1000/synergy/fcoe_network.rb +22 -0
  37. data/lib/oneview-sdk/resource/api1000/synergy/interconnect.rb +22 -0
  38. data/lib/oneview-sdk/resource/api1000/synergy/lig_uplink_set.rb +21 -0
  39. data/lib/oneview-sdk/resource/api1000/synergy/logical_enclosure.rb +22 -0
  40. data/lib/oneview-sdk/resource/api1000/synergy/logical_interconnect.rb +32 -0
  41. data/lib/oneview-sdk/resource/api1000/synergy/logical_interconnect_group.rb +33 -0
  42. data/lib/oneview-sdk/resource/api1000/synergy/network_set.rb +22 -0
  43. data/lib/oneview-sdk/resource/api1000/synergy/os_deployment_plan.rb +22 -0
  44. data/lib/oneview-sdk/resource/api1000/synergy/scope.rb +22 -0
  45. data/lib/oneview-sdk/resource/api1000/synergy/server_hardware.rb +32 -0
  46. data/lib/oneview-sdk/resource/api1000/synergy/server_hardware_type.rb +22 -0
  47. data/lib/oneview-sdk/resource/api1000/synergy/server_profile.rb +25 -0
  48. data/lib/oneview-sdk/resource/api1000/synergy/server_profile_template.rb +22 -0
  49. data/lib/oneview-sdk/resource/api1000/synergy/storage_pool.rb +22 -0
  50. data/lib/oneview-sdk/resource/api1000/synergy/storage_system.rb +22 -0
  51. data/lib/oneview-sdk/resource/api1000/synergy/uplink_set.rb +32 -0
  52. data/lib/oneview-sdk/resource/api1000/synergy/volume.rb +22 -0
  53. data/lib/oneview-sdk/resource/api1000/synergy/volume_attachment.rb +22 -0
  54. data/lib/oneview-sdk/resource/api1000/synergy/volume_template.rb +22 -0
  55. data/lib/oneview-sdk/resource/api1200.rb +66 -0
  56. data/lib/oneview-sdk/resource/api1200/c7000.rb +27 -0
  57. data/lib/oneview-sdk/resource/api1200/c7000/enclosure.rb +32 -0
  58. data/lib/oneview-sdk/resource/api1200/c7000/enclosure_group.rb +32 -0
  59. data/lib/oneview-sdk/resource/api1200/c7000/ethernet_network.rb +35 -0
  60. data/lib/oneview-sdk/resource/api1200/c7000/fc_network.rb +22 -0
  61. data/lib/oneview-sdk/resource/api1200/c7000/fcoe_network.rb +23 -0
  62. data/lib/oneview-sdk/resource/api1200/c7000/interconnect.rb +33 -0
  63. data/lib/oneview-sdk/resource/api1200/c7000/lig_uplink_set.rb +21 -0
  64. data/lib/oneview-sdk/resource/api1200/c7000/logical_enclosure.rb +22 -0
  65. data/lib/oneview-sdk/resource/api1200/c7000/logical_interconnect.rb +32 -0
  66. data/lib/oneview-sdk/resource/api1200/c7000/logical_interconnect_group.rb +32 -0
  67. data/lib/oneview-sdk/resource/api1200/c7000/network_set.rb +32 -0
  68. data/lib/oneview-sdk/resource/api1200/c7000/scope.rb +22 -0
  69. data/lib/oneview-sdk/resource/api1200/c7000/server_hardware.rb +22 -0
  70. data/lib/oneview-sdk/resource/api1200/c7000/server_hardware_type.rb +22 -0
  71. data/lib/oneview-sdk/resource/api1200/c7000/server_profile.rb +32 -0
  72. data/lib/oneview-sdk/resource/api1200/c7000/server_profile_template.rb +33 -0
  73. data/lib/oneview-sdk/resource/api1200/c7000/storage_pool.rb +22 -0
  74. data/lib/oneview-sdk/resource/api1200/c7000/storage_system.rb +22 -0
  75. data/lib/oneview-sdk/resource/api1200/c7000/uplink_set.rb +32 -0
  76. data/lib/oneview-sdk/resource/api1200/c7000/volume.rb +22 -0
  77. data/lib/oneview-sdk/resource/api1200/c7000/volume_attachment.rb +22 -0
  78. data/lib/oneview-sdk/resource/api1200/c7000/volume_template.rb +22 -0
  79. data/lib/oneview-sdk/resource/api1200/synergy.rb +27 -0
  80. data/lib/oneview-sdk/resource/api1200/synergy/enclosure.rb +32 -0
  81. data/lib/oneview-sdk/resource/api1200/synergy/enclosure_group.rb +32 -0
  82. data/lib/oneview-sdk/resource/api1200/synergy/ethernet_network.rb +35 -0
  83. data/lib/oneview-sdk/resource/api1200/synergy/fc_network.rb +22 -0
  84. data/lib/oneview-sdk/resource/api1200/synergy/fcoe_network.rb +22 -0
  85. data/lib/oneview-sdk/resource/api1200/synergy/interconnect.rb +22 -0
  86. data/lib/oneview-sdk/resource/api1200/synergy/lig_uplink_set.rb +21 -0
  87. data/lib/oneview-sdk/resource/api1200/synergy/logical_enclosure.rb +32 -0
  88. data/lib/oneview-sdk/resource/api1200/synergy/logical_interconnect.rb +32 -0
  89. data/lib/oneview-sdk/resource/api1200/synergy/logical_interconnect_group.rb +32 -0
  90. data/lib/oneview-sdk/resource/api1200/synergy/network_set.rb +22 -0
  91. data/lib/oneview-sdk/resource/api1200/synergy/os_deployment_plan.rb +22 -0
  92. data/lib/oneview-sdk/resource/api1200/synergy/scope.rb +22 -0
  93. data/lib/oneview-sdk/resource/api1200/synergy/server_hardware.rb +22 -0
  94. data/lib/oneview-sdk/resource/api1200/synergy/server_hardware_type.rb +22 -0
  95. data/lib/oneview-sdk/resource/api1200/synergy/server_profile.rb +25 -0
  96. data/lib/oneview-sdk/resource/api1200/synergy/server_profile_template.rb +22 -0
  97. data/lib/oneview-sdk/resource/api1200/synergy/storage_pool.rb +22 -0
  98. data/lib/oneview-sdk/resource/api1200/synergy/storage_system.rb +22 -0
  99. data/lib/oneview-sdk/resource/api1200/synergy/uplink_set.rb +32 -0
  100. data/lib/oneview-sdk/resource/api1200/synergy/volume.rb +22 -0
  101. data/lib/oneview-sdk/resource/api1200/synergy/volume_attachment.rb +22 -0
  102. data/lib/oneview-sdk/resource/api1200/synergy/volume_template.rb +22 -0
  103. data/lib/oneview-sdk/resource/api600/synergy/logical_interconnect_group.rb +2 -2
  104. data/lib/oneview-sdk/resource/api800/c7000/enclosure.rb +22 -0
  105. data/lib/oneview-sdk/resource/api800/c7000/fc_network.rb +22 -0
  106. data/lib/oneview-sdk/resource/api800/c7000/fcoe_network.rb +23 -0
  107. data/lib/oneview-sdk/resource/api800/c7000/interconnect.rb +23 -0
  108. data/lib/oneview-sdk/resource/api800/c7000/lig_uplink_set.rb +21 -0
  109. data/lib/oneview-sdk/resource/api800/c7000/logical_enclosure.rb +22 -0
  110. data/lib/oneview-sdk/resource/api800/c7000/logical_interconnect.rb +32 -0
  111. data/lib/oneview-sdk/resource/api800/c7000/logical_interconnect_group.rb +32 -0
  112. data/lib/oneview-sdk/resource/api800/c7000/network_set.rb +22 -0
  113. data/lib/oneview-sdk/resource/api800/c7000/server_hardware.rb +22 -0
  114. data/lib/oneview-sdk/resource/api800/c7000/server_hardware_type.rb +10 -0
  115. data/lib/oneview-sdk/resource/api800/c7000/server_profile.rb +10 -0
  116. data/lib/oneview-sdk/resource/api800/c7000/storage_pool.rb +22 -0
  117. data/lib/oneview-sdk/resource/api800/c7000/storage_system.rb +22 -0
  118. data/lib/oneview-sdk/resource/api800/c7000/uplink_set.rb +22 -0
  119. data/lib/oneview-sdk/resource/api800/c7000/volume.rb +22 -0
  120. data/lib/oneview-sdk/resource/api800/c7000/volume_attachment.rb +22 -0
  121. data/lib/oneview-sdk/resource/api800/c7000/volume_template.rb +22 -0
  122. data/lib/oneview-sdk/resource/api800/synergy/enclosure.rb +22 -0
  123. data/lib/oneview-sdk/resource/api800/synergy/fc_network.rb +22 -0
  124. data/lib/oneview-sdk/resource/api800/synergy/fcoe_network.rb +22 -0
  125. data/lib/oneview-sdk/resource/api800/synergy/interconnect.rb +22 -0
  126. data/lib/oneview-sdk/resource/api800/synergy/lig_uplink_set.rb +21 -0
  127. data/lib/oneview-sdk/resource/api800/synergy/logical_enclosure.rb +22 -0
  128. data/lib/oneview-sdk/resource/api800/synergy/logical_interconnect.rb +32 -0
  129. data/lib/oneview-sdk/resource/api800/synergy/logical_interconnect_group.rb +33 -0
  130. data/lib/oneview-sdk/resource/api800/synergy/network_set.rb +22 -0
  131. data/lib/oneview-sdk/resource/api800/synergy/server_hardware.rb +22 -0
  132. data/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb +2 -2
  133. data/lib/oneview-sdk/resource/api800/synergy/server_profile.rb +1 -1
  134. data/lib/oneview-sdk/resource/api800/synergy/storage_pool.rb +22 -0
  135. data/lib/oneview-sdk/resource/api800/synergy/storage_system.rb +22 -0
  136. data/lib/oneview-sdk/resource/api800/synergy/uplink_set.rb +22 -0
  137. data/lib/oneview-sdk/resource/api800/synergy/volume.rb +22 -0
  138. data/lib/oneview-sdk/resource/api800/synergy/volume_attachment.rb +22 -0
  139. data/lib/oneview-sdk/resource/api800/synergy/volume_template.rb +22 -0
  140. data/lib/oneview-sdk/version.rb +1 -1
  141. data/oneview-sdk.gemspec +1 -1
  142. metadata +132 -5
@@ -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 API1200
14
+ # Module for API1200 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::API1200.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,32 @@
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 '../../api1000/c7000/enclosure'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Enclosure resource implementation for API1200 C7000
18
+ class Enclosure < OneviewSDK::API1000::C7000::Enclosure
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values:
26
+ @data['type'] ||= 'EnclosureV8'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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 '../../api1000/c7000/enclosure_group'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Enclosure group resource implementation on API1200 C7000
18
+ class EnclosureGroup < OneviewSDK::API1000::C7000::EnclosureGroup
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values:
26
+ @data['type'] ||= 'EnclosureGroupV8'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,35 @@
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 '../../api1000/c7000/ethernet_network'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Ethernet network resource implementation for API1200 C7000
18
+ class EthernetNetwork < OneviewSDK::API1000::C7000::EthernetNetwork
19
+ # Bulk create the ethernet networks
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] options information necessary to create networks
22
+ # @return [Array] list of ethernet networks created
23
+ def self.bulk_create(client, options)
24
+ range = options[:vlanIdRange].split('-').map(&:to_i)
25
+ options[:type] = 'bulk-ethernet-networkV2'
26
+ response = client.rest_post(BASE_URI + '/bulk', { 'body' => options }, client.api_version)
27
+ client.response_handler(response)
28
+ network_names = []
29
+ range[0].upto(range[1]) { |i| network_names << "#{options[:namePrefix]}_#{i}" }
30
+ OneviewSDK::EthernetNetwork.get_all(client).select { |network| network_names.include?(network['name']) }
31
+ end
32
+ end
33
+ end
34
+ end
35
+ 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 '../../api600/c7000/fc_network'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # FC network resource implementation for API1200 C7000
18
+ class FCNetwork < OneviewSDK::API600::C7000::FCNetwork
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,23 @@
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 '../../api800/c7000/fcoe_network'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # FCoE network resource implementation for API1200 C7000
18
+ class FCoENetwork < OneviewSDK::API800::C7000::FCoENetwork
19
+
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,33 @@
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 '../../api1000/c7000/interconnect'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Interconnect resource implementation on API1200 C7000
18
+ class Interconnect < OneviewSDK::API1000::C7000::Interconnect
19
+ include OneviewSDK::ResourceHelper::ConfigurationOperation
20
+ # Create a resource object, associate it with a client, and set its properties.
21
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
22
+ # @param [Hash] params The options for this resource (key-value pairs)
23
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
24
+ def initialize(client, params = {}, api_ver = nil)
25
+ @data ||= {}
26
+ # Default values
27
+ @data['type'] ||= 'InterconnectV6'
28
+ super
29
+ end
30
+ end
31
+ end
32
+ end
33
+ 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 '../../api1000/c7000/lig_uplink_set'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ class LIGUplinkSet < OneviewSDK::API1000::C7000::LIGUplinkSet
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 '../../api1000/c7000/logical_enclosure'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Logical Enclosure resource implementation on API1200 C7000
18
+ class LogicalEnclosure < OneviewSDK::API1000::C7000::LogicalEnclosure
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,32 @@
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 '../../api1000/c7000/logical_interconnect'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Logical interconnect resource implementation for API1200 C7000
18
+ class LogicalInterconnect < OneviewSDK::API1000::C7000::LogicalInterconnect
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values:
26
+ @data['type'] ||= 'logical-interconnectV7'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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 '../../api1000/c7000/logical_interconnect_group'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Logical interconnect group resource implementation on API1200 C7000
18
+ class LogicalInterconnectGroup < OneviewSDK::API1000::C7000::LogicalInterconnectGroup
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values:
26
+ @data['type'] ||= 'logical-interconnect-groupV7'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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 '../../api1000/c7000/network_set'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Network set resource implementation for API1200 C7000
18
+ class NetworkSet < OneviewSDK::API1000::C7000::NetworkSet
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ # Default values:
25
+ @data ||= {}
26
+ @data['type'] ||= 'network-setV5'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ 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 '../../api1000/c7000/scope'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Scope resource implementation for API1200 C7000
18
+ class Scope < OneviewSDK::API1000::C7000::Scope
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 '../../api1000/c7000/server_hardware'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Server Hardware resource implementation on API1200 C7000
18
+ class ServerHardware < OneviewSDK::API1000::C7000::ServerHardware
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 '../../api1000/c7000/server_hardware_type'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Server hardware type resource implementation for API1200 C7000
18
+ class ServerHardwareType < OneviewSDK::API1000::C7000::ServerHardwareType
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,32 @@
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 '../../api1000/c7000/server_profile'
13
+
14
+ module OneviewSDK
15
+ module API1200
16
+ module C7000
17
+ # Server Profile resource implementation on API1200 C7000
18
+ class ServerProfile < OneviewSDK::API1000::C7000::ServerProfile
19
+ # Create a resource object, associate it with a client, and set its properties.
20
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
21
+ # @param [Hash] params The options for this resource (key-value pairs)
22
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
23
+ def initialize(client, params = {}, api_ver = nil)
24
+ @data ||= {}
25
+ # Default values
26
+ @data['type'] ||= 'ServerProfileV11'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end