oneview-sdk 2.2.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/README.md +61 -15
- data/Rakefile +39 -1
- data/lib/oneview-sdk.rb +38 -3
- data/lib/oneview-sdk/cli.rb +85 -30
- data/lib/oneview-sdk/client.rb +21 -18
- data/lib/oneview-sdk/config_loader.rb +1 -1
- data/lib/oneview-sdk/resource.rb +44 -36
- data/lib/oneview-sdk/resource/api200.rb +34 -0
- data/lib/oneview-sdk/resource/api200/connection_template.rb +52 -0
- data/lib/oneview-sdk/resource/api200/datacenter.rb +81 -0
- data/lib/oneview-sdk/resource/api200/enclosure.rb +203 -0
- data/lib/oneview-sdk/resource/api200/enclosure_group.rb +86 -0
- data/lib/oneview-sdk/resource/api200/ethernet_network.rb +60 -0
- data/lib/oneview-sdk/resource/api200/fabric.rb +45 -0
- data/lib/oneview-sdk/resource/api200/fc_network.rb +34 -0
- data/lib/oneview-sdk/resource/api200/fcoe_network.rb +32 -0
- data/lib/oneview-sdk/resource/api200/firmware_bundle.rb +56 -0
- data/lib/oneview-sdk/resource/{fcoe_network.rb → api200/firmware_driver.rb} +21 -12
- data/lib/oneview-sdk/resource/api200/interconnect.rb +112 -0
- data/lib/oneview-sdk/resource/api200/lig_uplink_set.rb +84 -0
- data/lib/oneview-sdk/resource/api200/logical_downlink.rb +57 -0
- data/lib/oneview-sdk/resource/api200/logical_enclosure.rb +88 -0
- data/lib/oneview-sdk/resource/api200/logical_interconnect.rb +251 -0
- data/lib/oneview-sdk/resource/api200/logical_interconnect_group.rb +116 -0
- data/lib/oneview-sdk/resource/api200/logical_switch.rb +188 -0
- data/lib/oneview-sdk/resource/api200/logical_switch_group.rb +70 -0
- data/lib/oneview-sdk/resource/api200/managed_san.rb +83 -0
- data/lib/oneview-sdk/resource/api200/network_set.rb +68 -0
- data/lib/oneview-sdk/resource/api200/power_device.rb +178 -0
- data/lib/oneview-sdk/resource/api200/rack.rb +88 -0
- data/lib/oneview-sdk/resource/api200/resource.rb +18 -0
- data/lib/oneview-sdk/resource/api200/san_manager.rb +92 -0
- data/lib/oneview-sdk/resource/api200/server_hardware.rb +244 -0
- data/lib/oneview-sdk/resource/api200/server_hardware_type.rb +61 -0
- data/lib/oneview-sdk/resource/api200/server_profile.rb +385 -0
- data/lib/oneview-sdk/resource/api200/server_profile_template.rb +217 -0
- data/lib/oneview-sdk/resource/api200/storage_pool.rb +92 -0
- data/lib/oneview-sdk/resource/api200/storage_system.rb +157 -0
- data/lib/oneview-sdk/resource/api200/switch.rb +91 -0
- data/lib/oneview-sdk/resource/api200/unmanaged_device.rb +59 -0
- data/lib/oneview-sdk/resource/api200/uplink_set.rb +83 -0
- data/lib/oneview-sdk/resource/api200/volume.rb +192 -0
- data/lib/oneview-sdk/resource/api200/volume_attachment.rb +83 -0
- data/lib/oneview-sdk/resource/api200/volume_snapshot.rb +50 -0
- data/lib/oneview-sdk/resource/api200/volume_template.rb +99 -0
- data/lib/oneview-sdk/resource/api300.rb +66 -0
- data/lib/oneview-sdk/resource/api300/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api300/c7000/connection_template.rb +30 -0
- data/lib/oneview-sdk/resource/api300/c7000/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure.rb +48 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure_group.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/ethernet_network.rb +35 -0
- data/lib/oneview-sdk/resource/api300/c7000/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/fc_network.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/fcoe_network.rb +35 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/interconnect.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_downlink.rb +34 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb +35 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect_group.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch.rb +51 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch_group.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/managed_san.rb +36 -0
- data/lib/oneview-sdk/resource/api300/c7000/network_set.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware.rb +93 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware_type.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile_template.rb +50 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_pool.rb +29 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_system.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/switch.rb +31 -0
- data/lib/oneview-sdk/resource/api300/c7000/unmanaged_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_attachment.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_snapshot.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_template.rb +32 -0
- data/lib/oneview-sdk/resource/api300/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api300/synergy/connection_template.rb +30 -0
- data/lib/oneview-sdk/resource/api300/synergy/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb +71 -0
- data/lib/oneview-sdk/resource/api300/synergy/enclosure.rb +110 -0
- data/lib/oneview-sdk/resource/api300/synergy/enclosure_group.rb +43 -0
- data/lib/oneview-sdk/resource/api300/synergy/ethernet_network.rb +35 -0
- data/lib/oneview-sdk/resource/api300/synergy/fabric.rb +46 -0
- data/lib/oneview-sdk/resource/api300/synergy/fc_network.rb +37 -0
- data/lib/oneview-sdk/resource/api300/synergy/fcoe_network.rb +35 -0
- data/lib/oneview-sdk/resource/api300/synergy/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/interconnect.rb +43 -0
- data/lib/oneview-sdk/resource/api300/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_downlink.rb +34 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_enclosure.rb +59 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect_group.rb +119 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_switch.rb +33 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_switch_group.rb +45 -0
- data/lib/oneview-sdk/resource/{firmware_driver.rb → api300/synergy/managed_san.rb} +7 -17
- data/lib/oneview-sdk/resource/api300/synergy/network_set.rb +37 -0
- data/lib/oneview-sdk/resource/api300/synergy/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb +87 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect.rb +110 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect_group.rb +87 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware.rb +30 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware_type.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_profile.rb +78 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_profile_template.rb +34 -0
- data/lib/oneview-sdk/resource/api300/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/storage_system.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/switch.rb +37 -0
- data/lib/oneview-sdk/resource/api300/synergy/unmanaged_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_attachment.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_snapshot.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_template.rb +32 -0
- data/lib/oneview-sdk/rest.rb +7 -10
- data/lib/oneview-sdk/ssl_helper.rb +3 -3
- data/lib/oneview-sdk/version.rb +1 -1
- data/oneview-sdk.gemspec +5 -5
- metadata +126 -47
- data/.gitattributes +0 -2
- data/.gitignore +0 -29
- data/.rubocop.yml +0 -80
- data/.travis.yml +0 -12
- data/lib/oneview-sdk/resource/connection_template.rb +0 -48
- data/lib/oneview-sdk/resource/datacenter.rb +0 -77
- data/lib/oneview-sdk/resource/enclosure.rb +0 -191
- data/lib/oneview-sdk/resource/enclosure_group.rb +0 -82
- data/lib/oneview-sdk/resource/ethernet_network.rb +0 -56
- data/lib/oneview-sdk/resource/fabric.rb +0 -41
- data/lib/oneview-sdk/resource/fc_network.rb +0 -30
- data/lib/oneview-sdk/resource/firmware_bundle.rb +0 -50
- data/lib/oneview-sdk/resource/interconnect.rb +0 -107
- data/lib/oneview-sdk/resource/lig_uplink_set.rb +0 -80
- data/lib/oneview-sdk/resource/logical_downlink.rb +0 -53
- data/lib/oneview-sdk/resource/logical_enclosure.rb +0 -86
- data/lib/oneview-sdk/resource/logical_interconnect.rb +0 -247
- data/lib/oneview-sdk/resource/logical_interconnect_group.rb +0 -112
- data/lib/oneview-sdk/resource/logical_switch.rb +0 -184
- data/lib/oneview-sdk/resource/logical_switch_group.rb +0 -66
- data/lib/oneview-sdk/resource/managed_san.rb +0 -79
- data/lib/oneview-sdk/resource/network_set.rb +0 -64
- data/lib/oneview-sdk/resource/power_device.rb +0 -174
- data/lib/oneview-sdk/resource/rack.rb +0 -83
- data/lib/oneview-sdk/resource/san_manager.rb +0 -88
- data/lib/oneview-sdk/resource/server_hardware.rb +0 -209
- data/lib/oneview-sdk/resource/server_hardware_type.rb +0 -58
- data/lib/oneview-sdk/resource/server_profile.rb +0 -380
- data/lib/oneview-sdk/resource/server_profile_template.rb +0 -213
- data/lib/oneview-sdk/resource/storage_pool.rb +0 -63
- data/lib/oneview-sdk/resource/storage_system.rb +0 -113
- data/lib/oneview-sdk/resource/switch.rb +0 -86
- data/lib/oneview-sdk/resource/unmanaged_device.rb +0 -55
- data/lib/oneview-sdk/resource/uplink_set.rb +0 -79
- data/lib/oneview-sdk/resource/volume.rb +0 -188
- data/lib/oneview-sdk/resource/volume_attachment.rb +0 -79
- data/lib/oneview-sdk/resource/volume_snapshot.rb +0 -46
- data/lib/oneview-sdk/resource/volume_template.rb +0 -95
@@ -42,7 +42,7 @@ module OneviewSDK
|
|
42
42
|
# @raise [OneviewSDK::InvalidURL] if the url is invalid
|
43
43
|
def self.check_cert(url)
|
44
44
|
uri = URI.parse(URI.escape(url))
|
45
|
-
|
45
|
+
raise InvalidURL, "Invalid url '#{url}'" unless uri.host
|
46
46
|
http = Net::HTTP.new(uri.host, uri.port)
|
47
47
|
http.use_ssl = true if uri.scheme == 'https'
|
48
48
|
trusted_certs = load_trusted_certs
|
@@ -59,12 +59,12 @@ module OneviewSDK
|
|
59
59
|
# @raise [OneviewSDK::InvalidURL] if the url is invalid
|
60
60
|
def self.install_cert(url)
|
61
61
|
uri = URI.parse(URI.escape(url))
|
62
|
-
|
62
|
+
raise InvalidURL, "Invalid url '#{url}'" unless uri.host
|
63
63
|
options = { use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE }
|
64
64
|
pem = Net::HTTP.start(uri.host, uri.port, options) do |http|
|
65
65
|
http.peer_cert.to_pem
|
66
66
|
end
|
67
|
-
|
67
|
+
raise "Could not download cert from #{url}. You may have to do it manually, and append it to '#{CERT_STORE}'" if pem.nil?
|
68
68
|
|
69
69
|
name = "OneView at #{url}"
|
70
70
|
content = "\n#{name}\n"
|
data/lib/oneview-sdk/version.rb
CHANGED
data/oneview-sdk.gemspec
CHANGED
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.version = OneviewSDK::VERSION
|
20
20
|
spec.authors = ['Henrique Diomede', 'Thiago Miotto', 'Jared Smartt', 'Ricardo Piantola']
|
21
21
|
spec.email = ['henrique.diomede@hpe.com', 'tmiotto@hpe.com', 'jared.smartt@hpe.com', 'piantola@hpe.com']
|
22
|
-
spec.summary = 'Gem to interact with
|
23
|
-
spec.description = 'Gem to interact with
|
22
|
+
spec.summary = 'Gem to interact with the HPE OneView API'
|
23
|
+
spec.description = 'Gem to interact with the HPE OneView API'
|
24
24
|
spec.license = 'Apache-2.0'
|
25
25
|
spec.homepage = 'https://github.com/HewlettPackard/oneview-sdk-ruby'
|
26
26
|
|
27
|
-
all_files
|
28
|
-
spec.files = all_files.reject { |f| f.match(%r{^
|
27
|
+
all_files = `git ls-files -z`.split("\x0")
|
28
|
+
spec.files = all_files.reject { |f| f.match(%r{(^examples\/)|(^spec\/)|(^\.)}) }
|
29
29
|
spec.executables = all_files.grep(%r{^bin/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
@@ -38,6 +38,6 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency 'rspec'
|
39
39
|
spec.add_development_dependency 'rake'
|
40
40
|
spec.add_development_dependency 'simplecov'
|
41
|
-
spec.add_development_dependency 'rubocop', '= 0.
|
41
|
+
spec.add_development_dependency 'rubocop', '= 0.42.0'
|
42
42
|
|
43
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneview-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrique Diomede
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|
@@ -131,15 +131,15 @@ dependencies:
|
|
131
131
|
requirements:
|
132
132
|
- - '='
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: 0.
|
134
|
+
version: 0.42.0
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - '='
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.
|
142
|
-
description: Gem to interact with
|
141
|
+
version: 0.42.0
|
142
|
+
description: Gem to interact with the HPE OneView API
|
143
143
|
email:
|
144
144
|
- henrique.diomede@hpe.com
|
145
145
|
- tmiotto@hpe.com
|
@@ -150,10 +150,6 @@ executables:
|
|
150
150
|
extensions: []
|
151
151
|
extra_rdoc_files: []
|
152
152
|
files:
|
153
|
-
- ".gitattributes"
|
154
|
-
- ".gitignore"
|
155
|
-
- ".rubocop.yml"
|
156
|
-
- ".travis.yml"
|
157
153
|
- CHANGELOG.md
|
158
154
|
- Gemfile
|
159
155
|
- LICENSE
|
@@ -166,42 +162,125 @@ files:
|
|
166
162
|
- lib/oneview-sdk/config_loader.rb
|
167
163
|
- lib/oneview-sdk/exceptions.rb
|
168
164
|
- lib/oneview-sdk/resource.rb
|
169
|
-
- lib/oneview-sdk/resource/
|
170
|
-
- lib/oneview-sdk/resource/
|
171
|
-
- lib/oneview-sdk/resource/
|
172
|
-
- lib/oneview-sdk/resource/
|
173
|
-
- lib/oneview-sdk/resource/
|
174
|
-
- lib/oneview-sdk/resource/
|
175
|
-
- lib/oneview-sdk/resource/
|
176
|
-
- lib/oneview-sdk/resource/
|
177
|
-
- lib/oneview-sdk/resource/
|
178
|
-
- lib/oneview-sdk/resource/
|
179
|
-
- lib/oneview-sdk/resource/
|
180
|
-
- lib/oneview-sdk/resource/
|
181
|
-
- lib/oneview-sdk/resource/
|
182
|
-
- lib/oneview-sdk/resource/
|
183
|
-
- lib/oneview-sdk/resource/
|
184
|
-
- lib/oneview-sdk/resource/
|
185
|
-
- lib/oneview-sdk/resource/
|
186
|
-
- lib/oneview-sdk/resource/
|
187
|
-
- lib/oneview-sdk/resource/
|
188
|
-
- lib/oneview-sdk/resource/
|
189
|
-
- lib/oneview-sdk/resource/
|
190
|
-
- lib/oneview-sdk/resource/
|
191
|
-
- lib/oneview-sdk/resource/
|
192
|
-
- lib/oneview-sdk/resource/
|
193
|
-
- lib/oneview-sdk/resource/
|
194
|
-
- lib/oneview-sdk/resource/
|
195
|
-
- lib/oneview-sdk/resource/
|
196
|
-
- lib/oneview-sdk/resource/
|
197
|
-
- lib/oneview-sdk/resource/
|
198
|
-
- lib/oneview-sdk/resource/
|
199
|
-
- lib/oneview-sdk/resource/
|
200
|
-
- lib/oneview-sdk/resource/
|
201
|
-
- lib/oneview-sdk/resource/
|
202
|
-
- lib/oneview-sdk/resource/
|
203
|
-
- lib/oneview-sdk/resource/
|
204
|
-
- lib/oneview-sdk/resource/
|
165
|
+
- lib/oneview-sdk/resource/api200.rb
|
166
|
+
- lib/oneview-sdk/resource/api200/connection_template.rb
|
167
|
+
- lib/oneview-sdk/resource/api200/datacenter.rb
|
168
|
+
- lib/oneview-sdk/resource/api200/enclosure.rb
|
169
|
+
- lib/oneview-sdk/resource/api200/enclosure_group.rb
|
170
|
+
- lib/oneview-sdk/resource/api200/ethernet_network.rb
|
171
|
+
- lib/oneview-sdk/resource/api200/fabric.rb
|
172
|
+
- lib/oneview-sdk/resource/api200/fc_network.rb
|
173
|
+
- lib/oneview-sdk/resource/api200/fcoe_network.rb
|
174
|
+
- lib/oneview-sdk/resource/api200/firmware_bundle.rb
|
175
|
+
- lib/oneview-sdk/resource/api200/firmware_driver.rb
|
176
|
+
- lib/oneview-sdk/resource/api200/interconnect.rb
|
177
|
+
- lib/oneview-sdk/resource/api200/lig_uplink_set.rb
|
178
|
+
- lib/oneview-sdk/resource/api200/logical_downlink.rb
|
179
|
+
- lib/oneview-sdk/resource/api200/logical_enclosure.rb
|
180
|
+
- lib/oneview-sdk/resource/api200/logical_interconnect.rb
|
181
|
+
- lib/oneview-sdk/resource/api200/logical_interconnect_group.rb
|
182
|
+
- lib/oneview-sdk/resource/api200/logical_switch.rb
|
183
|
+
- lib/oneview-sdk/resource/api200/logical_switch_group.rb
|
184
|
+
- lib/oneview-sdk/resource/api200/managed_san.rb
|
185
|
+
- lib/oneview-sdk/resource/api200/network_set.rb
|
186
|
+
- lib/oneview-sdk/resource/api200/power_device.rb
|
187
|
+
- lib/oneview-sdk/resource/api200/rack.rb
|
188
|
+
- lib/oneview-sdk/resource/api200/resource.rb
|
189
|
+
- lib/oneview-sdk/resource/api200/san_manager.rb
|
190
|
+
- lib/oneview-sdk/resource/api200/server_hardware.rb
|
191
|
+
- lib/oneview-sdk/resource/api200/server_hardware_type.rb
|
192
|
+
- lib/oneview-sdk/resource/api200/server_profile.rb
|
193
|
+
- lib/oneview-sdk/resource/api200/server_profile_template.rb
|
194
|
+
- lib/oneview-sdk/resource/api200/storage_pool.rb
|
195
|
+
- lib/oneview-sdk/resource/api200/storage_system.rb
|
196
|
+
- lib/oneview-sdk/resource/api200/switch.rb
|
197
|
+
- lib/oneview-sdk/resource/api200/unmanaged_device.rb
|
198
|
+
- lib/oneview-sdk/resource/api200/uplink_set.rb
|
199
|
+
- lib/oneview-sdk/resource/api200/volume.rb
|
200
|
+
- lib/oneview-sdk/resource/api200/volume_attachment.rb
|
201
|
+
- lib/oneview-sdk/resource/api200/volume_snapshot.rb
|
202
|
+
- lib/oneview-sdk/resource/api200/volume_template.rb
|
203
|
+
- lib/oneview-sdk/resource/api300.rb
|
204
|
+
- lib/oneview-sdk/resource/api300/c7000.rb
|
205
|
+
- lib/oneview-sdk/resource/api300/c7000/connection_template.rb
|
206
|
+
- lib/oneview-sdk/resource/api300/c7000/datacenter.rb
|
207
|
+
- lib/oneview-sdk/resource/api300/c7000/enclosure.rb
|
208
|
+
- lib/oneview-sdk/resource/api300/c7000/enclosure_group.rb
|
209
|
+
- lib/oneview-sdk/resource/api300/c7000/ethernet_network.rb
|
210
|
+
- lib/oneview-sdk/resource/api300/c7000/fabric.rb
|
211
|
+
- lib/oneview-sdk/resource/api300/c7000/fc_network.rb
|
212
|
+
- lib/oneview-sdk/resource/api300/c7000/fcoe_network.rb
|
213
|
+
- lib/oneview-sdk/resource/api300/c7000/firmware_bundle.rb
|
214
|
+
- lib/oneview-sdk/resource/api300/c7000/firmware_driver.rb
|
215
|
+
- lib/oneview-sdk/resource/api300/c7000/interconnect.rb
|
216
|
+
- lib/oneview-sdk/resource/api300/c7000/lig_uplink_set.rb
|
217
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_downlink.rb
|
218
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb
|
219
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb
|
220
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_interconnect_group.rb
|
221
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_switch.rb
|
222
|
+
- lib/oneview-sdk/resource/api300/c7000/logical_switch_group.rb
|
223
|
+
- lib/oneview-sdk/resource/api300/c7000/managed_san.rb
|
224
|
+
- lib/oneview-sdk/resource/api300/c7000/network_set.rb
|
225
|
+
- lib/oneview-sdk/resource/api300/c7000/power_device.rb
|
226
|
+
- lib/oneview-sdk/resource/api300/c7000/rack.rb
|
227
|
+
- lib/oneview-sdk/resource/api300/c7000/resource.rb
|
228
|
+
- lib/oneview-sdk/resource/api300/c7000/san_manager.rb
|
229
|
+
- lib/oneview-sdk/resource/api300/c7000/server_hardware.rb
|
230
|
+
- lib/oneview-sdk/resource/api300/c7000/server_hardware_type.rb
|
231
|
+
- lib/oneview-sdk/resource/api300/c7000/server_profile.rb
|
232
|
+
- lib/oneview-sdk/resource/api300/c7000/server_profile_template.rb
|
233
|
+
- lib/oneview-sdk/resource/api300/c7000/storage_pool.rb
|
234
|
+
- lib/oneview-sdk/resource/api300/c7000/storage_system.rb
|
235
|
+
- lib/oneview-sdk/resource/api300/c7000/switch.rb
|
236
|
+
- lib/oneview-sdk/resource/api300/c7000/unmanaged_device.rb
|
237
|
+
- lib/oneview-sdk/resource/api300/c7000/uplink_set.rb
|
238
|
+
- lib/oneview-sdk/resource/api300/c7000/volume.rb
|
239
|
+
- lib/oneview-sdk/resource/api300/c7000/volume_attachment.rb
|
240
|
+
- lib/oneview-sdk/resource/api300/c7000/volume_snapshot.rb
|
241
|
+
- lib/oneview-sdk/resource/api300/c7000/volume_template.rb
|
242
|
+
- lib/oneview-sdk/resource/api300/synergy.rb
|
243
|
+
- lib/oneview-sdk/resource/api300/synergy/connection_template.rb
|
244
|
+
- lib/oneview-sdk/resource/api300/synergy/datacenter.rb
|
245
|
+
- lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb
|
246
|
+
- lib/oneview-sdk/resource/api300/synergy/enclosure.rb
|
247
|
+
- lib/oneview-sdk/resource/api300/synergy/enclosure_group.rb
|
248
|
+
- lib/oneview-sdk/resource/api300/synergy/ethernet_network.rb
|
249
|
+
- lib/oneview-sdk/resource/api300/synergy/fabric.rb
|
250
|
+
- lib/oneview-sdk/resource/api300/synergy/fc_network.rb
|
251
|
+
- lib/oneview-sdk/resource/api300/synergy/fcoe_network.rb
|
252
|
+
- lib/oneview-sdk/resource/api300/synergy/firmware_bundle.rb
|
253
|
+
- lib/oneview-sdk/resource/api300/synergy/firmware_driver.rb
|
254
|
+
- lib/oneview-sdk/resource/api300/synergy/interconnect.rb
|
255
|
+
- lib/oneview-sdk/resource/api300/synergy/lig_uplink_set.rb
|
256
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_downlink.rb
|
257
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_enclosure.rb
|
258
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_interconnect.rb
|
259
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_interconnect_group.rb
|
260
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_switch.rb
|
261
|
+
- lib/oneview-sdk/resource/api300/synergy/logical_switch_group.rb
|
262
|
+
- lib/oneview-sdk/resource/api300/synergy/managed_san.rb
|
263
|
+
- lib/oneview-sdk/resource/api300/synergy/network_set.rb
|
264
|
+
- lib/oneview-sdk/resource/api300/synergy/power_device.rb
|
265
|
+
- lib/oneview-sdk/resource/api300/synergy/rack.rb
|
266
|
+
- lib/oneview-sdk/resource/api300/synergy/resource.rb
|
267
|
+
- lib/oneview-sdk/resource/api300/synergy/san_manager.rb
|
268
|
+
- lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb
|
269
|
+
- lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect.rb
|
270
|
+
- lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect_group.rb
|
271
|
+
- lib/oneview-sdk/resource/api300/synergy/server_hardware.rb
|
272
|
+
- lib/oneview-sdk/resource/api300/synergy/server_hardware_type.rb
|
273
|
+
- lib/oneview-sdk/resource/api300/synergy/server_profile.rb
|
274
|
+
- lib/oneview-sdk/resource/api300/synergy/server_profile_template.rb
|
275
|
+
- lib/oneview-sdk/resource/api300/synergy/storage_pool.rb
|
276
|
+
- lib/oneview-sdk/resource/api300/synergy/storage_system.rb
|
277
|
+
- lib/oneview-sdk/resource/api300/synergy/switch.rb
|
278
|
+
- lib/oneview-sdk/resource/api300/synergy/unmanaged_device.rb
|
279
|
+
- lib/oneview-sdk/resource/api300/synergy/uplink_set.rb
|
280
|
+
- lib/oneview-sdk/resource/api300/synergy/volume.rb
|
281
|
+
- lib/oneview-sdk/resource/api300/synergy/volume_attachment.rb
|
282
|
+
- lib/oneview-sdk/resource/api300/synergy/volume_snapshot.rb
|
283
|
+
- lib/oneview-sdk/resource/api300/synergy/volume_template.rb
|
205
284
|
- lib/oneview-sdk/rest.rb
|
206
285
|
- lib/oneview-sdk/ssl_helper.rb
|
207
286
|
- lib/oneview-sdk/version.rb
|
@@ -226,8 +305,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
305
|
version: '0'
|
227
306
|
requirements: []
|
228
307
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.6.
|
308
|
+
rubygems_version: 2.6.7
|
230
309
|
signing_key:
|
231
310
|
specification_version: 4
|
232
|
-
summary: Gem to interact with
|
311
|
+
summary: Gem to interact with the HPE OneView API
|
233
312
|
test_files: []
|
data/.gitattributes
DELETED
data/.gitignore
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
Berksfile.lock
|
8
|
-
InstalledFiles
|
9
|
-
_yardoc
|
10
|
-
coverage
|
11
|
-
doc/
|
12
|
-
lib/bundler/man
|
13
|
-
pkg
|
14
|
-
rdoc
|
15
|
-
spec/reports
|
16
|
-
test/tmp
|
17
|
-
test/version_tmp
|
18
|
-
tmp
|
19
|
-
*.bundle
|
20
|
-
*.so
|
21
|
-
*.o
|
22
|
-
*.a
|
23
|
-
mkmf.log
|
24
|
-
*.sw*
|
25
|
-
examples/_client.rb
|
26
|
-
spec/integration/one_view_config.json
|
27
|
-
spec/integration/one_view_secrets.json
|
28
|
-
spec/system/one_view_config.json
|
29
|
-
spec/system/one_view_secrets.json
|
data/.rubocop.yml
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
# See default at https://github.com/bbatsov/rubocop/blob/master/config/default.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
Exclude:
|
5
|
-
- 'examples/_client.rb'
|
6
|
-
|
7
|
-
Metrics/ClassLength:
|
8
|
-
Max: 200
|
9
|
-
Exclude:
|
10
|
-
- 'lib/oneview-sdk/cli.rb'
|
11
|
-
|
12
|
-
Metrics/LineLength:
|
13
|
-
Max: 150
|
14
|
-
|
15
|
-
Metrics/ModuleLength:
|
16
|
-
Max: 150
|
17
|
-
|
18
|
-
Style/GlobalVars:
|
19
|
-
AllowedVariables: [$config, $secrets, $client, $client_120]
|
20
|
-
|
21
|
-
Style/IndentationWidth:
|
22
|
-
Width: 2
|
23
|
-
|
24
|
-
Style/VariableName:
|
25
|
-
EnforcedStyle: snake_case
|
26
|
-
Exclude:
|
27
|
-
- 'lib/oneview-sdk/resource/*'
|
28
|
-
|
29
|
-
Style/MethodName:
|
30
|
-
Exclude:
|
31
|
-
- 'lib/oneview-sdk/resource/*'
|
32
|
-
|
33
|
-
Style/FileName:
|
34
|
-
Exclude:
|
35
|
-
- 'lib/oneview-sdk.rb'
|
36
|
-
- 'bin/oneview-sdk'
|
37
|
-
|
38
|
-
Style/AlignParameters:
|
39
|
-
Exclude:
|
40
|
-
- 'lib/oneview-sdk/cli.rb'
|
41
|
-
|
42
|
-
|
43
|
-
Style/AccessorMethodName:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Style/EmptyLines:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Style/FrozenStringLiteralComment:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Style/IndentArray:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Style/MultilineOperationIndentation:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Style/RescueModifier:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Style/EmptyLinesAroundBlockBody:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
Style/EmptyLinesAroundClassBody:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Metrics/AbcSize:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Metrics/CyclomaticComplexity:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Metrics/MethodLength:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Metrics/PerceivedComplexity:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
Performance/Casecmp:
|
80
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# (C) Copyright 2016 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
|
-
# Connection template resource implementation
|
14
|
-
class ConnectionTemplate < Resource
|
15
|
-
BASE_URI = '/rest/connection-templates'.freeze
|
16
|
-
|
17
|
-
# Create a resource object, associate it with a client, and set its properties.
|
18
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
19
|
-
# @param [Hash] params The options for this resource (key-value pairs)
|
20
|
-
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
21
|
-
def initialize(client, params = {}, api_ver = nil)
|
22
|
-
super
|
23
|
-
# Default values:
|
24
|
-
@data['bandwidth'] ||= {}
|
25
|
-
@data['type'] ||= 'connection-template'
|
26
|
-
end
|
27
|
-
|
28
|
-
# Method is not available
|
29
|
-
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
30
|
-
def create
|
31
|
-
unavailable_method
|
32
|
-
end
|
33
|
-
|
34
|
-
# Method is not available
|
35
|
-
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
36
|
-
def delete
|
37
|
-
unavailable_method
|
38
|
-
end
|
39
|
-
|
40
|
-
# Get the default network connection template
|
41
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
42
|
-
# @return [OneviewSDK::ConnectionTemplate] Connection template
|
43
|
-
def self.get_default(client)
|
44
|
-
response = client.rest_get(BASE_URI + '/defaultConnectionTemplate')
|
45
|
-
OneviewSDK::ConnectionTemplate.new(client, client.response_handler(response))
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|