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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +61 -15
  4. data/Rakefile +39 -1
  5. data/lib/oneview-sdk.rb +38 -3
  6. data/lib/oneview-sdk/cli.rb +85 -30
  7. data/lib/oneview-sdk/client.rb +21 -18
  8. data/lib/oneview-sdk/config_loader.rb +1 -1
  9. data/lib/oneview-sdk/resource.rb +44 -36
  10. data/lib/oneview-sdk/resource/api200.rb +34 -0
  11. data/lib/oneview-sdk/resource/api200/connection_template.rb +52 -0
  12. data/lib/oneview-sdk/resource/api200/datacenter.rb +81 -0
  13. data/lib/oneview-sdk/resource/api200/enclosure.rb +203 -0
  14. data/lib/oneview-sdk/resource/api200/enclosure_group.rb +86 -0
  15. data/lib/oneview-sdk/resource/api200/ethernet_network.rb +60 -0
  16. data/lib/oneview-sdk/resource/api200/fabric.rb +45 -0
  17. data/lib/oneview-sdk/resource/api200/fc_network.rb +34 -0
  18. data/lib/oneview-sdk/resource/api200/fcoe_network.rb +32 -0
  19. data/lib/oneview-sdk/resource/api200/firmware_bundle.rb +56 -0
  20. data/lib/oneview-sdk/resource/{fcoe_network.rb → api200/firmware_driver.rb} +21 -12
  21. data/lib/oneview-sdk/resource/api200/interconnect.rb +112 -0
  22. data/lib/oneview-sdk/resource/api200/lig_uplink_set.rb +84 -0
  23. data/lib/oneview-sdk/resource/api200/logical_downlink.rb +57 -0
  24. data/lib/oneview-sdk/resource/api200/logical_enclosure.rb +88 -0
  25. data/lib/oneview-sdk/resource/api200/logical_interconnect.rb +251 -0
  26. data/lib/oneview-sdk/resource/api200/logical_interconnect_group.rb +116 -0
  27. data/lib/oneview-sdk/resource/api200/logical_switch.rb +188 -0
  28. data/lib/oneview-sdk/resource/api200/logical_switch_group.rb +70 -0
  29. data/lib/oneview-sdk/resource/api200/managed_san.rb +83 -0
  30. data/lib/oneview-sdk/resource/api200/network_set.rb +68 -0
  31. data/lib/oneview-sdk/resource/api200/power_device.rb +178 -0
  32. data/lib/oneview-sdk/resource/api200/rack.rb +88 -0
  33. data/lib/oneview-sdk/resource/api200/resource.rb +18 -0
  34. data/lib/oneview-sdk/resource/api200/san_manager.rb +92 -0
  35. data/lib/oneview-sdk/resource/api200/server_hardware.rb +244 -0
  36. data/lib/oneview-sdk/resource/api200/server_hardware_type.rb +61 -0
  37. data/lib/oneview-sdk/resource/api200/server_profile.rb +385 -0
  38. data/lib/oneview-sdk/resource/api200/server_profile_template.rb +217 -0
  39. data/lib/oneview-sdk/resource/api200/storage_pool.rb +92 -0
  40. data/lib/oneview-sdk/resource/api200/storage_system.rb +157 -0
  41. data/lib/oneview-sdk/resource/api200/switch.rb +91 -0
  42. data/lib/oneview-sdk/resource/api200/unmanaged_device.rb +59 -0
  43. data/lib/oneview-sdk/resource/api200/uplink_set.rb +83 -0
  44. data/lib/oneview-sdk/resource/api200/volume.rb +192 -0
  45. data/lib/oneview-sdk/resource/api200/volume_attachment.rb +83 -0
  46. data/lib/oneview-sdk/resource/api200/volume_snapshot.rb +50 -0
  47. data/lib/oneview-sdk/resource/api200/volume_template.rb +99 -0
  48. data/lib/oneview-sdk/resource/api300.rb +66 -0
  49. data/lib/oneview-sdk/resource/api300/c7000.rb +27 -0
  50. data/lib/oneview-sdk/resource/api300/c7000/connection_template.rb +30 -0
  51. data/lib/oneview-sdk/resource/api300/c7000/datacenter.rb +22 -0
  52. data/lib/oneview-sdk/resource/api300/c7000/enclosure.rb +48 -0
  53. data/lib/oneview-sdk/resource/api300/c7000/enclosure_group.rb +37 -0
  54. data/lib/oneview-sdk/resource/api300/c7000/ethernet_network.rb +35 -0
  55. data/lib/oneview-sdk/resource/api300/c7000/fabric.rb +22 -0
  56. data/lib/oneview-sdk/resource/api300/c7000/fc_network.rb +37 -0
  57. data/lib/oneview-sdk/resource/api300/c7000/fcoe_network.rb +35 -0
  58. data/lib/oneview-sdk/resource/api300/c7000/firmware_bundle.rb +21 -0
  59. data/lib/oneview-sdk/resource/api300/c7000/firmware_driver.rb +22 -0
  60. data/lib/oneview-sdk/resource/api300/c7000/interconnect.rb +21 -0
  61. data/lib/oneview-sdk/resource/api300/c7000/lig_uplink_set.rb +21 -0
  62. data/lib/oneview-sdk/resource/api300/c7000/logical_downlink.rb +34 -0
  63. data/lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb +35 -0
  64. data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb +21 -0
  65. data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect_group.rb +33 -0
  66. data/lib/oneview-sdk/resource/api300/c7000/logical_switch.rb +51 -0
  67. data/lib/oneview-sdk/resource/api300/c7000/logical_switch_group.rb +33 -0
  68. data/lib/oneview-sdk/resource/api300/c7000/managed_san.rb +36 -0
  69. data/lib/oneview-sdk/resource/api300/c7000/network_set.rb +37 -0
  70. data/lib/oneview-sdk/resource/api300/c7000/power_device.rb +21 -0
  71. data/lib/oneview-sdk/resource/api300/c7000/rack.rb +22 -0
  72. data/lib/oneview-sdk/resource/api300/c7000/resource.rb +21 -0
  73. data/lib/oneview-sdk/resource/api300/c7000/san_manager.rb +22 -0
  74. data/lib/oneview-sdk/resource/api300/c7000/server_hardware.rb +93 -0
  75. data/lib/oneview-sdk/resource/api300/c7000/server_hardware_type.rb +21 -0
  76. data/lib/oneview-sdk/resource/api300/c7000/server_profile.rb +33 -0
  77. data/lib/oneview-sdk/resource/api300/c7000/server_profile_template.rb +50 -0
  78. data/lib/oneview-sdk/resource/api300/c7000/storage_pool.rb +29 -0
  79. data/lib/oneview-sdk/resource/api300/c7000/storage_system.rb +21 -0
  80. data/lib/oneview-sdk/resource/api300/c7000/switch.rb +31 -0
  81. data/lib/oneview-sdk/resource/api300/c7000/unmanaged_device.rb +21 -0
  82. data/lib/oneview-sdk/resource/api300/c7000/uplink_set.rb +21 -0
  83. data/lib/oneview-sdk/resource/api300/c7000/volume.rb +22 -0
  84. data/lib/oneview-sdk/resource/api300/c7000/volume_attachment.rb +21 -0
  85. data/lib/oneview-sdk/resource/api300/c7000/volume_snapshot.rb +21 -0
  86. data/lib/oneview-sdk/resource/api300/c7000/volume_template.rb +32 -0
  87. data/lib/oneview-sdk/resource/api300/synergy.rb +27 -0
  88. data/lib/oneview-sdk/resource/api300/synergy/connection_template.rb +30 -0
  89. data/lib/oneview-sdk/resource/api300/synergy/datacenter.rb +22 -0
  90. data/lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb +71 -0
  91. data/lib/oneview-sdk/resource/api300/synergy/enclosure.rb +110 -0
  92. data/lib/oneview-sdk/resource/api300/synergy/enclosure_group.rb +43 -0
  93. data/lib/oneview-sdk/resource/api300/synergy/ethernet_network.rb +35 -0
  94. data/lib/oneview-sdk/resource/api300/synergy/fabric.rb +46 -0
  95. data/lib/oneview-sdk/resource/api300/synergy/fc_network.rb +37 -0
  96. data/lib/oneview-sdk/resource/api300/synergy/fcoe_network.rb +35 -0
  97. data/lib/oneview-sdk/resource/api300/synergy/firmware_bundle.rb +21 -0
  98. data/lib/oneview-sdk/resource/api300/synergy/firmware_driver.rb +22 -0
  99. data/lib/oneview-sdk/resource/api300/synergy/interconnect.rb +43 -0
  100. data/lib/oneview-sdk/resource/api300/synergy/lig_uplink_set.rb +21 -0
  101. data/lib/oneview-sdk/resource/api300/synergy/logical_downlink.rb +34 -0
  102. data/lib/oneview-sdk/resource/api300/synergy/logical_enclosure.rb +59 -0
  103. data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect.rb +21 -0
  104. data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect_group.rb +119 -0
  105. data/lib/oneview-sdk/resource/api300/synergy/logical_switch.rb +33 -0
  106. data/lib/oneview-sdk/resource/api300/synergy/logical_switch_group.rb +45 -0
  107. data/lib/oneview-sdk/resource/{firmware_driver.rb → api300/synergy/managed_san.rb} +7 -17
  108. data/lib/oneview-sdk/resource/api300/synergy/network_set.rb +37 -0
  109. data/lib/oneview-sdk/resource/api300/synergy/power_device.rb +21 -0
  110. data/lib/oneview-sdk/resource/api300/synergy/rack.rb +22 -0
  111. data/lib/oneview-sdk/resource/api300/synergy/resource.rb +21 -0
  112. data/lib/oneview-sdk/resource/api300/synergy/san_manager.rb +22 -0
  113. data/lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb +87 -0
  114. data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect.rb +110 -0
  115. data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect_group.rb +87 -0
  116. data/lib/oneview-sdk/resource/api300/synergy/server_hardware.rb +30 -0
  117. data/lib/oneview-sdk/resource/api300/synergy/server_hardware_type.rb +21 -0
  118. data/lib/oneview-sdk/resource/api300/synergy/server_profile.rb +78 -0
  119. data/lib/oneview-sdk/resource/api300/synergy/server_profile_template.rb +34 -0
  120. data/lib/oneview-sdk/resource/api300/synergy/storage_pool.rb +22 -0
  121. data/lib/oneview-sdk/resource/api300/synergy/storage_system.rb +21 -0
  122. data/lib/oneview-sdk/resource/api300/synergy/switch.rb +37 -0
  123. data/lib/oneview-sdk/resource/api300/synergy/unmanaged_device.rb +21 -0
  124. data/lib/oneview-sdk/resource/api300/synergy/uplink_set.rb +21 -0
  125. data/lib/oneview-sdk/resource/api300/synergy/volume.rb +22 -0
  126. data/lib/oneview-sdk/resource/api300/synergy/volume_attachment.rb +21 -0
  127. data/lib/oneview-sdk/resource/api300/synergy/volume_snapshot.rb +21 -0
  128. data/lib/oneview-sdk/resource/api300/synergy/volume_template.rb +32 -0
  129. data/lib/oneview-sdk/rest.rb +7 -10
  130. data/lib/oneview-sdk/ssl_helper.rb +3 -3
  131. data/lib/oneview-sdk/version.rb +1 -1
  132. data/oneview-sdk.gemspec +5 -5
  133. metadata +126 -47
  134. data/.gitattributes +0 -2
  135. data/.gitignore +0 -29
  136. data/.rubocop.yml +0 -80
  137. data/.travis.yml +0 -12
  138. data/lib/oneview-sdk/resource/connection_template.rb +0 -48
  139. data/lib/oneview-sdk/resource/datacenter.rb +0 -77
  140. data/lib/oneview-sdk/resource/enclosure.rb +0 -191
  141. data/lib/oneview-sdk/resource/enclosure_group.rb +0 -82
  142. data/lib/oneview-sdk/resource/ethernet_network.rb +0 -56
  143. data/lib/oneview-sdk/resource/fabric.rb +0 -41
  144. data/lib/oneview-sdk/resource/fc_network.rb +0 -30
  145. data/lib/oneview-sdk/resource/firmware_bundle.rb +0 -50
  146. data/lib/oneview-sdk/resource/interconnect.rb +0 -107
  147. data/lib/oneview-sdk/resource/lig_uplink_set.rb +0 -80
  148. data/lib/oneview-sdk/resource/logical_downlink.rb +0 -53
  149. data/lib/oneview-sdk/resource/logical_enclosure.rb +0 -86
  150. data/lib/oneview-sdk/resource/logical_interconnect.rb +0 -247
  151. data/lib/oneview-sdk/resource/logical_interconnect_group.rb +0 -112
  152. data/lib/oneview-sdk/resource/logical_switch.rb +0 -184
  153. data/lib/oneview-sdk/resource/logical_switch_group.rb +0 -66
  154. data/lib/oneview-sdk/resource/managed_san.rb +0 -79
  155. data/lib/oneview-sdk/resource/network_set.rb +0 -64
  156. data/lib/oneview-sdk/resource/power_device.rb +0 -174
  157. data/lib/oneview-sdk/resource/rack.rb +0 -83
  158. data/lib/oneview-sdk/resource/san_manager.rb +0 -88
  159. data/lib/oneview-sdk/resource/server_hardware.rb +0 -209
  160. data/lib/oneview-sdk/resource/server_hardware_type.rb +0 -58
  161. data/lib/oneview-sdk/resource/server_profile.rb +0 -380
  162. data/lib/oneview-sdk/resource/server_profile_template.rb +0 -213
  163. data/lib/oneview-sdk/resource/storage_pool.rb +0 -63
  164. data/lib/oneview-sdk/resource/storage_system.rb +0 -113
  165. data/lib/oneview-sdk/resource/switch.rb +0 -86
  166. data/lib/oneview-sdk/resource/unmanaged_device.rb +0 -55
  167. data/lib/oneview-sdk/resource/uplink_set.rb +0 -79
  168. data/lib/oneview-sdk/resource/volume.rb +0 -188
  169. data/lib/oneview-sdk/resource/volume_attachment.rb +0 -79
  170. data/lib/oneview-sdk/resource/volume_snapshot.rb +0 -46
  171. 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
- fail InvalidURL, "Invalid url '#{url}'" unless uri.host
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
- fail InvalidURL, "Invalid url '#{url}'" unless uri.host
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
- fail "Could not download cert from #{url}. You may have to do it manually, and append it to '#{CERT_STORE}'" if pem.nil?
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"
@@ -11,5 +11,5 @@
11
11
 
12
12
  # Gem version defined here
13
13
  module OneviewSDK
14
- VERSION = '2.2.1'.freeze
14
+ VERSION = '3.0.0'.freeze
15
15
  end
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 oneview API'
23
- spec.description = 'Gem to interact with oneview API'
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 = `git ls-files -z`.split("\x0")
28
- spec.files = all_files.reject { |f| f.match(%r{^(examples\/)|(spec\/)}) }
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.36.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: 2.2.1
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-09-30 00:00:00.000000000 Z
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.36.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.36.0
142
- description: Gem to interact with oneview API
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/connection_template.rb
170
- - lib/oneview-sdk/resource/datacenter.rb
171
- - lib/oneview-sdk/resource/enclosure.rb
172
- - lib/oneview-sdk/resource/enclosure_group.rb
173
- - lib/oneview-sdk/resource/ethernet_network.rb
174
- - lib/oneview-sdk/resource/fabric.rb
175
- - lib/oneview-sdk/resource/fc_network.rb
176
- - lib/oneview-sdk/resource/fcoe_network.rb
177
- - lib/oneview-sdk/resource/firmware_bundle.rb
178
- - lib/oneview-sdk/resource/firmware_driver.rb
179
- - lib/oneview-sdk/resource/interconnect.rb
180
- - lib/oneview-sdk/resource/lig_uplink_set.rb
181
- - lib/oneview-sdk/resource/logical_downlink.rb
182
- - lib/oneview-sdk/resource/logical_enclosure.rb
183
- - lib/oneview-sdk/resource/logical_interconnect.rb
184
- - lib/oneview-sdk/resource/logical_interconnect_group.rb
185
- - lib/oneview-sdk/resource/logical_switch.rb
186
- - lib/oneview-sdk/resource/logical_switch_group.rb
187
- - lib/oneview-sdk/resource/managed_san.rb
188
- - lib/oneview-sdk/resource/network_set.rb
189
- - lib/oneview-sdk/resource/power_device.rb
190
- - lib/oneview-sdk/resource/rack.rb
191
- - lib/oneview-sdk/resource/san_manager.rb
192
- - lib/oneview-sdk/resource/server_hardware.rb
193
- - lib/oneview-sdk/resource/server_hardware_type.rb
194
- - lib/oneview-sdk/resource/server_profile.rb
195
- - lib/oneview-sdk/resource/server_profile_template.rb
196
- - lib/oneview-sdk/resource/storage_pool.rb
197
- - lib/oneview-sdk/resource/storage_system.rb
198
- - lib/oneview-sdk/resource/switch.rb
199
- - lib/oneview-sdk/resource/unmanaged_device.rb
200
- - lib/oneview-sdk/resource/uplink_set.rb
201
- - lib/oneview-sdk/resource/volume.rb
202
- - lib/oneview-sdk/resource/volume_attachment.rb
203
- - lib/oneview-sdk/resource/volume_snapshot.rb
204
- - lib/oneview-sdk/resource/volume_template.rb
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.6
308
+ rubygems_version: 2.6.7
230
309
  signing_key:
231
310
  specification_version: 4
232
- summary: Gem to interact with oneview API
311
+ summary: Gem to interact with the HPE OneView API
233
312
  test_files: []
data/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Convert all line endings to lf
2
- * text eol=lf
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,12 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.2.5
5
- - 2.3.1
6
-
7
- before_install: gem update bundler
8
-
9
- script:
10
- - rake build
11
- - rake test
12
-
@@ -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