oneview-sdk 5.3.0 → 5.4.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 (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +7 -2
  4. data/bin/oneview-sdk-ruby +0 -0
  5. data/endpoints-support.md +296 -288
  6. data/lib/oneview-sdk.rb +1 -1
  7. data/lib/oneview-sdk/image-streamer/resource/api500.rb +39 -0
  8. data/lib/oneview-sdk/image-streamer/resource/api500/plan_script.rb +22 -0
  9. data/lib/oneview-sdk/image-streamer/resource/api600.rb +39 -0
  10. data/lib/oneview-sdk/image-streamer/resource/api600/plan_script.rb +31 -0
  11. data/lib/oneview-sdk/image_streamer.rb +1 -1
  12. data/lib/oneview-sdk/resource.rb +11 -0
  13. data/lib/oneview-sdk/resource/api600.rb +66 -0
  14. data/lib/oneview-sdk/resource/api600/c7000.rb +27 -0
  15. data/lib/oneview-sdk/resource/api600/c7000/client_certificate.rb +22 -0
  16. data/lib/oneview-sdk/resource/api600/c7000/connection_template.rb +22 -0
  17. data/lib/oneview-sdk/resource/api600/c7000/datacenter.rb +22 -0
  18. data/lib/oneview-sdk/resource/api600/c7000/enclosure.rb +71 -0
  19. data/lib/oneview-sdk/resource/api600/c7000/enclosure_group.rb +39 -0
  20. data/lib/oneview-sdk/resource/api600/c7000/ethernet_network.rb +47 -0
  21. data/lib/oneview-sdk/resource/api600/c7000/event.rb +22 -0
  22. data/lib/oneview-sdk/resource/api600/c7000/fabric.rb +22 -0
  23. data/lib/oneview-sdk/resource/api600/c7000/fc_network.rb +35 -0
  24. data/lib/oneview-sdk/resource/api600/c7000/fcoe_network.rb +33 -0
  25. data/lib/oneview-sdk/resource/api600/c7000/firmware_bundle.rb +21 -0
  26. data/lib/oneview-sdk/resource/api600/c7000/firmware_driver.rb +22 -0
  27. data/lib/oneview-sdk/resource/api600/c7000/id_pool.rb +22 -0
  28. data/lib/oneview-sdk/resource/api600/c7000/interconnect.rb +34 -0
  29. data/lib/oneview-sdk/resource/api600/c7000/internal_link_set.rb +22 -0
  30. data/lib/oneview-sdk/resource/api600/c7000/lig_uplink_set.rb +21 -0
  31. data/lib/oneview-sdk/resource/api600/c7000/logical_downlink.rb +22 -0
  32. data/lib/oneview-sdk/resource/api600/c7000/logical_enclosure.rb +22 -0
  33. data/lib/oneview-sdk/resource/api600/c7000/logical_interconnect.rb +39 -0
  34. data/lib/oneview-sdk/resource/api600/c7000/logical_interconnect_group.rb +33 -0
  35. data/lib/oneview-sdk/resource/api600/c7000/logical_switch.rb +32 -0
  36. data/lib/oneview-sdk/resource/api600/c7000/logical_switch_group.rb +32 -0
  37. data/lib/oneview-sdk/resource/api600/c7000/login_detail.rb +23 -0
  38. data/lib/oneview-sdk/resource/api600/c7000/managed_san.rb +22 -0
  39. data/lib/oneview-sdk/resource/api600/c7000/network_set.rb +32 -0
  40. data/lib/oneview-sdk/resource/api600/c7000/power_device.rb +21 -0
  41. data/lib/oneview-sdk/resource/api600/c7000/rack.rb +22 -0
  42. data/lib/oneview-sdk/resource/api600/c7000/resource.rb +21 -0
  43. data/lib/oneview-sdk/resource/api600/c7000/san_manager.rb +22 -0
  44. data/lib/oneview-sdk/resource/api600/c7000/scope.rb +92 -0
  45. data/lib/oneview-sdk/resource/api600/c7000/server_hardware.rb +44 -0
  46. data/lib/oneview-sdk/resource/api600/c7000/server_hardware_type.rb +22 -0
  47. data/lib/oneview-sdk/resource/api600/c7000/server_profile.rb +50 -0
  48. data/lib/oneview-sdk/resource/api600/c7000/server_profile_template.rb +49 -0
  49. data/lib/oneview-sdk/resource/api600/c7000/storage_pool.rb +32 -0
  50. data/lib/oneview-sdk/resource/api600/c7000/storage_system.rb +22 -0
  51. data/lib/oneview-sdk/resource/api600/c7000/switch.rb +22 -0
  52. data/lib/oneview-sdk/resource/api600/c7000/unmanaged_device.rb +22 -0
  53. data/lib/oneview-sdk/resource/api600/c7000/uplink_set.rb +33 -0
  54. data/lib/oneview-sdk/resource/api600/c7000/user.rb +22 -0
  55. data/lib/oneview-sdk/resource/api600/c7000/version.rb +23 -0
  56. data/lib/oneview-sdk/resource/api600/c7000/volume.rb +22 -0
  57. data/lib/oneview-sdk/resource/api600/c7000/volume_attachment.rb +45 -0
  58. data/lib/oneview-sdk/resource/api600/c7000/volume_snapshot.rb +32 -0
  59. data/lib/oneview-sdk/resource/api600/c7000/volume_template.rb +34 -0
  60. data/lib/oneview-sdk/resource/api600/c7000/web_server_certificate.rb +22 -0
  61. data/lib/oneview-sdk/resource/api600/synergy.rb +27 -0
  62. data/lib/oneview-sdk/resource/api600/synergy/client_certificate.rb +22 -0
  63. data/lib/oneview-sdk/resource/api600/synergy/connection_template.rb +22 -0
  64. data/lib/oneview-sdk/resource/api600/synergy/datacenter.rb +22 -0
  65. data/lib/oneview-sdk/resource/api600/synergy/drive_enclosure.rb +22 -0
  66. data/lib/oneview-sdk/resource/api600/synergy/enclosure.rb +71 -0
  67. data/lib/oneview-sdk/resource/api600/synergy/enclosure_group.rb +41 -0
  68. data/lib/oneview-sdk/resource/api600/synergy/ethernet_network.rb +47 -0
  69. data/lib/oneview-sdk/resource/api600/synergy/event.rb +22 -0
  70. data/lib/oneview-sdk/resource/api600/synergy/fabric.rb +22 -0
  71. data/lib/oneview-sdk/resource/api600/synergy/fc_network.rb +35 -0
  72. data/lib/oneview-sdk/resource/api600/synergy/fcoe_network.rb +33 -0
  73. data/lib/oneview-sdk/resource/api600/synergy/firmware_bundle.rb +21 -0
  74. data/lib/oneview-sdk/resource/api600/synergy/firmware_driver.rb +22 -0
  75. data/lib/oneview-sdk/resource/api600/synergy/id_pool.rb +22 -0
  76. data/lib/oneview-sdk/resource/api600/synergy/interconnect.rb +23 -0
  77. data/lib/oneview-sdk/resource/api600/synergy/internal_link_set.rb +22 -0
  78. data/lib/oneview-sdk/resource/api600/synergy/lig_uplink_set.rb +21 -0
  79. data/lib/oneview-sdk/resource/api600/synergy/logical_downlink.rb +22 -0
  80. data/lib/oneview-sdk/resource/api600/synergy/logical_enclosure.rb +22 -0
  81. data/lib/oneview-sdk/resource/api600/synergy/logical_interconnect.rb +39 -0
  82. data/lib/oneview-sdk/resource/api600/synergy/logical_interconnect_group.rb +22 -0
  83. data/lib/oneview-sdk/resource/api600/synergy/login_detail.rb +23 -0
  84. data/lib/oneview-sdk/resource/api600/synergy/managed_san.rb +22 -0
  85. data/lib/oneview-sdk/resource/api600/synergy/network_set.rb +22 -0
  86. data/lib/oneview-sdk/resource/api600/synergy/os_deployment_plan.rb +22 -0
  87. data/lib/oneview-sdk/resource/api600/synergy/power_device.rb +21 -0
  88. data/lib/oneview-sdk/resource/api600/synergy/rack.rb +22 -0
  89. data/lib/oneview-sdk/resource/api600/synergy/resource.rb +21 -0
  90. data/lib/oneview-sdk/resource/api600/synergy/san_manager.rb +22 -0
  91. data/lib/oneview-sdk/resource/api600/synergy/sas_interconnect.rb +22 -0
  92. data/lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect.rb +22 -0
  93. data/lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect_group.rb +33 -0
  94. data/lib/oneview-sdk/resource/api600/synergy/scope.rb +22 -0
  95. data/lib/oneview-sdk/resource/api600/synergy/server_hardware.rb +33 -0
  96. data/lib/oneview-sdk/resource/api600/synergy/server_hardware_type.rb +22 -0
  97. data/lib/oneview-sdk/resource/api600/synergy/server_profile.rb +25 -0
  98. data/lib/oneview-sdk/resource/api600/synergy/server_profile_template.rb +22 -0
  99. data/lib/oneview-sdk/resource/api600/synergy/storage_pool.rb +22 -0
  100. data/lib/oneview-sdk/resource/api600/synergy/storage_system.rb +22 -0
  101. data/lib/oneview-sdk/resource/api600/synergy/switch.rb +22 -0
  102. data/lib/oneview-sdk/resource/api600/synergy/unmanaged_device.rb +22 -0
  103. data/lib/oneview-sdk/resource/api600/synergy/uplink_set.rb +33 -0
  104. data/lib/oneview-sdk/resource/api600/synergy/user.rb +22 -0
  105. data/lib/oneview-sdk/resource/api600/synergy/version.rb +23 -0
  106. data/lib/oneview-sdk/resource/api600/synergy/volume.rb +22 -0
  107. data/lib/oneview-sdk/resource/api600/synergy/volume_attachment.rb +22 -0
  108. data/lib/oneview-sdk/resource/api600/synergy/volume_snapshot.rb +22 -0
  109. data/lib/oneview-sdk/resource/api600/synergy/volume_template.rb +22 -0
  110. data/lib/oneview-sdk/resource/api600/synergy/web_server_certificate.rb +22 -0
  111. data/lib/oneview-sdk/version.rb +1 -1
  112. metadata +105 -3
@@ -0,0 +1,47 @@
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 '../../api500/c7000/ethernet_network'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Ethernet network resource implementation for API600 C7000
18
+ class EthernetNetwork < OneviewSDK::API500::C7000::EthernetNetwork
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['ethernetNetworkType'] ||= 'Tagged'
27
+ @data['type'] ||= 'ethernet-networkV4'
28
+ super
29
+ end
30
+
31
+ # Bulk create the ethernet networks
32
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
33
+ # @param [Hash] options information necessary to create networks
34
+ # @return [Array] list of ethernet networks created
35
+ def self.bulk_create(client, options)
36
+ range = options[:vlanIdRange].split('-').map(&:to_i)
37
+ options[:type] = 'bulk-ethernet-networkV1'
38
+ response = client.rest_post(BASE_URI + '/bulk', { 'body' => options }, client.api_version)
39
+ client.response_handler(response)
40
+ network_names = []
41
+ range[0].upto(range[1]) { |i| network_names << "#{options[:namePrefix]}_#{i}" }
42
+ OneviewSDK::EthernetNetwork.get_all(client).select { |network| network_names.include?(network['name']) }
43
+ end
44
+ end
45
+ end
46
+ end
47
+ 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/event'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Event resource implementation for API600 C7000
18
+ class Event < OneviewSDK::API300::C7000::Event
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 API600
16
+ module C7000
17
+ # Fabric resource implementation for API600 C7000
18
+ class Fabric < OneviewSDK::API300::C7000::Fabric
19
+ end
20
+ end
21
+ end
22
+ 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 '../../api500/c7000/fc_network'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # FC network resource implementation for API600 C7000
18
+ class FCNetwork < OneviewSDK::API500::C7000::FCNetwork
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['autoLoginRedistribution'] ||= false
27
+ @data['type'] ||= 'fc-networkV4'
28
+ @data['linkStabilityTime'] ||= 30
29
+ @data['fabricType'] ||= 'FabricAttach'
30
+ super
31
+ end
32
+ end
33
+ end
34
+ end
35
+ 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 '../../api500/c7000/fcoe_network'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # FCoE network resource implementation for API600 C7000
18
+ class FCoENetwork < OneviewSDK::API500::C7000::FCoENetwork
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['connectionTemplateUri'] ||= nil
27
+ @data['type'] ||= 'fcoe-networkV4'
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 '../../api300/c7000/firmware_bundle'
13
+
14
+ module OneviewSDK
15
+ module API600
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 API600
16
+ module C7000
17
+ # FirmwareDriver resource implementation for API600 C7000
18
+ class FirmwareDriver < OneviewSDK::API300::C7000::FirmwareDriver
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/id_pool'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # IDPool resource implementation for API600 C7000
18
+ class IDPool < OneviewSDK::API300::C7000::IDPool
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,34 @@
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 '../../api500/c7000/interconnect'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Interconnect resource implementation on API600 C7000
18
+ class Interconnect < OneviewSDK::API500::C7000::Interconnect
19
+ include OneviewSDK::ResourceHelper::ConfigurationOperation
20
+
21
+ # Create a resource object, associate it with a client, and set its properties.
22
+ # @param [OneviewSDK::Client] client The client object for the OneView appliance
23
+ # @param [Hash] params The options for this resource (key-value pairs)
24
+ # @param [Integer] api_ver The api version to use when interracting with this resource.
25
+ def initialize(client, params = {}, api_ver = nil)
26
+ @data ||= {}
27
+ # Default values:
28
+ @data['type'] ||= 'InterconnectV4'
29
+ super
30
+ end
31
+ end
32
+ end
33
+ end
34
+ 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 '../../api500/c7000/internal_link_set'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Internal Link Set resource implementation for API500 C7000
18
+ class InternalLinkSet < OneviewSDK::API500::C7000::InternalLinkSet
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/lig_uplink_set'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ class LIGUplinkSet < OneviewSDK::API300::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 '../../api300/c7000/logical_downlink'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Logical downlink resource implementation for API600 C7000
18
+ class LogicalDownlink < OneviewSDK::API300::C7000::LogicalDownlink
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 '../../api500/c7000/logical_enclosure'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Logical Enclosure resource implementation on API600 C7000
18
+ class LogicalEnclosure < OneviewSDK::API500::C7000::LogicalEnclosure
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,39 @@
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 '../../api500/c7000/logical_interconnect'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Logical interconnect resource implementation for API600 C7000
18
+ class LogicalInterconnect < OneviewSDK::API500::C7000::LogicalInterconnect
19
+
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'] ||= 'logical-interconnectV4'
28
+ super
29
+ end
30
+
31
+ # @param options Options to update the Logical Interconnect
32
+ # @return Updated instance of the Logical Interconnect
33
+ def update_settings(*)
34
+ unavailable_method
35
+ end
36
+ end
37
+ end
38
+ end
39
+ 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 '../../api500/c7000/logical_interconnect_group'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Logical interconnect group resource implementation on API600 C7000
18
+ class LogicalInterconnectGroup < OneviewSDK::API500::C7000::LogicalInterconnectGroup
19
+
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'] ||= 'logical-interconnect-groupV4'
28
+ super
29
+ end
30
+ end
31
+ end
32
+ end
33
+ 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 '../../api500/c7000/logical_switch'
13
+
14
+ module OneviewSDK
15
+ module API600
16
+ module C7000
17
+ # Logical switch resource implementation for API600 C7000
18
+ class LogicalSwitch < OneviewSDK::API500::C7000::LogicalSwitch
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-switchV4'
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end