ruby-linstor-client 1.0.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 (193) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +86 -0
  4. data/LICENSE +21 -0
  5. data/README.md +21 -0
  6. data/Rakefile +10 -0
  7. data/codegen.sh +22 -0
  8. data/generator/custom/one_of_drbd_resource_definition_layer.rb +7 -0
  9. data/generator/custom/one_of_drbd_volume_definition.rb +7 -0
  10. data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +11 -0
  11. data/generator/openapi-generator.yaml +11 -0
  12. data/generator/template/Gemfile.mustache +9 -0
  13. data/generator/template/README.mustache +148 -0
  14. data/generator/template/Rakefile.mustache +10 -0
  15. data/generator/template/api.mustache +209 -0
  16. data/generator/template/api_client.mustache +264 -0
  17. data/generator/template/api_client_faraday_partial.mustache +136 -0
  18. data/generator/template/api_client_spec.mustache +220 -0
  19. data/generator/template/api_client_typhoeus_partial.mustache +153 -0
  20. data/generator/template/api_doc.mustache +118 -0
  21. data/generator/template/api_error.mustache +49 -0
  22. data/generator/template/api_info.mustache +12 -0
  23. data/generator/template/api_test.mustache +47 -0
  24. data/generator/template/base_object.mustache +120 -0
  25. data/generator/template/configuration.mustache +385 -0
  26. data/generator/template/configuration_spec.mustache +34 -0
  27. data/generator/template/configuration_tls_faraday_partial.mustache +29 -0
  28. data/generator/template/configuration_tls_typhoeus_partial.mustache +34 -0
  29. data/generator/template/gem.mustache +53 -0
  30. data/generator/template/gemspec.mustache +35 -0
  31. data/generator/template/git_push.sh.mustache +57 -0
  32. data/generator/template/gitignore.mustache +39 -0
  33. data/generator/template/model.mustache +26 -0
  34. data/generator/template/model_doc.mustache +12 -0
  35. data/generator/template/model_test.mustache +77 -0
  36. data/generator/template/partial_model_enum_class.mustache +20 -0
  37. data/generator/template/partial_model_generic.mustache +371 -0
  38. data/generator/template/partial_model_generic_doc.mustache +28 -0
  39. data/generator/template/partial_oneof_module.mustache +137 -0
  40. data/generator/template/partial_oneof_module_doc.mustache +92 -0
  41. data/generator/template/rspec.mustache +2 -0
  42. data/generator/template/rubocop.mustache +148 -0
  43. data/generator/template/spec_helper.mustache +103 -0
  44. data/generator/template/travis.mustache +14 -0
  45. data/generator/template/version.mustache +7 -0
  46. data/lib/ruby-linstor-client/api/developers_api.rb +5856 -0
  47. data/lib/ruby-linstor-client/api_client.rb +393 -0
  48. data/lib/ruby-linstor-client/api_error.rb +57 -0
  49. data/lib/ruby-linstor-client/configuration.rb +298 -0
  50. data/lib/ruby-linstor-client/models/api_call_rc.rb +293 -0
  51. data/lib/ruby-linstor-client/models/auto_place_request.rb +245 -0
  52. data/lib/ruby-linstor-client/models/auto_select_filter.rb +305 -0
  53. data/lib/ruby-linstor-client/models/candidate.rb +248 -0
  54. data/lib/ruby-linstor-client/models/controller_props_modify.rb +243 -0
  55. data/lib/ruby-linstor-client/models/controller_version.rb +245 -0
  56. data/lib/ruby-linstor-client/models/drbd_proxy_enable.rb +219 -0
  57. data/lib/ruby-linstor-client/models/drbd_proxy_modify.rb +288 -0
  58. data/lib/ruby-linstor-client/models/drbd_resource.rb +276 -0
  59. data/lib/ruby-linstor-client/models/drbd_resource_definition_layer.rb +283 -0
  60. data/lib/ruby-linstor-client/models/drbd_volume.rb +285 -0
  61. data/lib/ruby-linstor-client/models/drbd_volume_definition.rb +236 -0
  62. data/lib/ruby-linstor-client/models/error_report.rb +252 -0
  63. data/lib/ruby-linstor-client/models/key_value_store.rb +231 -0
  64. data/lib/ruby-linstor-client/models/key_value_store_modify.rb +243 -0
  65. data/lib/ruby-linstor-client/models/layer_type.rb +40 -0
  66. data/lib/ruby-linstor-client/models/luks_resource.rb +220 -0
  67. data/lib/ruby-linstor-client/models/luks_volume.rb +275 -0
  68. data/lib/ruby-linstor-client/models/max_volume_sizes.rb +229 -0
  69. data/lib/ruby-linstor-client/models/net_interface.rb +309 -0
  70. data/lib/ruby-linstor-client/models/node.rb +381 -0
  71. data/lib/ruby-linstor-client/models/node_modify.rb +252 -0
  72. data/lib/ruby-linstor-client/models/nvme_resource.rb +220 -0
  73. data/lib/ruby-linstor-client/models/nvme_volume.rb +266 -0
  74. data/lib/ruby-linstor-client/models/one_of_drbd_resource_definition_layer.rb +7 -0
  75. data/lib/ruby-linstor-client/models/one_of_drbd_volume_definition.rb +7 -0
  76. data/lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +11 -0
  77. data/lib/ruby-linstor-client/models/pass_phrase_create.rb +227 -0
  78. data/lib/ruby-linstor-client/models/physical_storage.rb +238 -0
  79. data/lib/ruby-linstor-client/models/physical_storage_create.rb +337 -0
  80. data/lib/ruby-linstor-client/models/physical_storage_device.rb +245 -0
  81. data/lib/ruby-linstor-client/models/physical_storage_storage_pool_create.rb +232 -0
  82. data/lib/ruby-linstor-client/models/provider_kind.rb +43 -0
  83. data/lib/ruby-linstor-client/models/resource.rb +278 -0
  84. data/lib/ruby-linstor-client/models/resource_connection.rb +261 -0
  85. data/lib/ruby-linstor-client/models/resource_connection_modify.rb +243 -0
  86. data/lib/ruby-linstor-client/models/resource_create.rb +238 -0
  87. data/lib/ruby-linstor-client/models/resource_definition.rb +295 -0
  88. data/lib/ruby-linstor-client/models/resource_definition_create.rb +262 -0
  89. data/lib/ruby-linstor-client/models/resource_definition_layer.rb +228 -0
  90. data/lib/ruby-linstor-client/models/resource_definition_modify.rb +274 -0
  91. data/lib/ruby-linstor-client/models/resource_group.rb +262 -0
  92. data/lib/ruby-linstor-client/models/resource_group_modify.rb +261 -0
  93. data/lib/ruby-linstor-client/models/resource_group_spawn.rb +255 -0
  94. data/lib/ruby-linstor-client/models/resource_layer.rb +283 -0
  95. data/lib/ruby-linstor-client/models/resource_modify.rb +243 -0
  96. data/lib/ruby-linstor-client/models/resource_state.rb +218 -0
  97. data/lib/ruby-linstor-client/models/resource_with_volumes.rb +297 -0
  98. data/lib/ruby-linstor-client/models/resource_with_volumes_all_of.rb +220 -0
  99. data/lib/ruby-linstor-client/models/snapshot.rb +282 -0
  100. data/lib/ruby-linstor-client/models/snapshot_restore.rb +236 -0
  101. data/lib/ruby-linstor-client/models/snapshot_volume_definition.rb +228 -0
  102. data/lib/ruby-linstor-client/models/storage_pool.rb +333 -0
  103. data/lib/ruby-linstor-client/models/storage_pool_definition.rb +230 -0
  104. data/lib/ruby-linstor-client/models/storage_pool_definition_modify.rb +243 -0
  105. data/lib/ruby-linstor-client/models/storage_resource.rb +220 -0
  106. data/lib/ruby-linstor-client/models/storage_volume.rb +256 -0
  107. data/lib/ruby-linstor-client/models/volume.rb +327 -0
  108. data/lib/ruby-linstor-client/models/volume_definition.rb +277 -0
  109. data/lib/ruby-linstor-client/models/volume_definition_create.rb +232 -0
  110. data/lib/ruby-linstor-client/models/volume_definition_layer.rb +233 -0
  111. data/lib/ruby-linstor-client/models/volume_definition_modify.rb +264 -0
  112. data/lib/ruby-linstor-client/models/volume_group.rb +251 -0
  113. data/lib/ruby-linstor-client/models/volume_group_modify.rb +255 -0
  114. data/lib/ruby-linstor-client/models/volume_layer.rb +228 -0
  115. data/lib/ruby-linstor-client/models/volume_modify.rb +243 -0
  116. data/lib/ruby-linstor-client/models/volume_state.rb +218 -0
  117. data/lib/ruby-linstor-client/models/writecache_resource.rb +220 -0
  118. data/lib/ruby-linstor-client/models/writecache_volume.rb +266 -0
  119. data/lib/ruby-linstor-client/version.rb +15 -0
  120. data/lib/ruby-linstor-client.rb +109 -0
  121. data/pkg/ruby-linstor-client-1.0.0.gem +0 -0
  122. data/ruby-linstor-client.gemspec +39 -0
  123. data/spec/api/developers_api_spec.rb +1116 -0
  124. data/spec/api_client_spec.rb +188 -0
  125. data/spec/configuration_spec.rb +42 -0
  126. data/spec/models/api_call_rc_spec.rb +70 -0
  127. data/spec/models/auto_place_request_spec.rb +46 -0
  128. data/spec/models/auto_select_filter_spec.rb +82 -0
  129. data/spec/models/candidate_spec.rb +52 -0
  130. data/spec/models/controller_props_modify_spec.rb +46 -0
  131. data/spec/models/controller_version_spec.rb +52 -0
  132. data/spec/models/drbd_proxy_enable_spec.rb +34 -0
  133. data/spec/models/drbd_proxy_modify_spec.rb +56 -0
  134. data/spec/models/drbd_resource_definition_layer_spec.rb +76 -0
  135. data/spec/models/drbd_resource_spec.rb +70 -0
  136. data/spec/models/drbd_volume_definition_spec.rb +46 -0
  137. data/spec/models/drbd_volume_spec.rb +76 -0
  138. data/spec/models/error_report_spec.rb +52 -0
  139. data/spec/models/key_value_store_modify_spec.rb +46 -0
  140. data/spec/models/key_value_store_spec.rb +40 -0
  141. data/spec/models/layer_type_spec.rb +28 -0
  142. data/spec/models/luks_resource_spec.rb +34 -0
  143. data/spec/models/luks_volume_spec.rb +70 -0
  144. data/spec/models/max_volume_sizes_spec.rb +40 -0
  145. data/spec/models/net_interface_spec.rb +68 -0
  146. data/spec/models/node_modify_spec.rb +52 -0
  147. data/spec/models/node_spec.rb +102 -0
  148. data/spec/models/nvme_resource_spec.rb +34 -0
  149. data/spec/models/nvme_volume_spec.rb +64 -0
  150. data/spec/models/pass_phrase_create_spec.rb +40 -0
  151. data/spec/models/physical_storage_create_spec.rb +80 -0
  152. data/spec/models/physical_storage_device_spec.rb +52 -0
  153. data/spec/models/physical_storage_spec.rb +46 -0
  154. data/spec/models/physical_storage_storage_pool_create_spec.rb +40 -0
  155. data/spec/models/provider_kind_spec.rb +28 -0
  156. data/spec/models/resource_connection_modify_spec.rb +46 -0
  157. data/spec/models/resource_connection_spec.rb +58 -0
  158. data/spec/models/resource_create_spec.rb +46 -0
  159. data/spec/models/resource_definition_create_spec.rb +58 -0
  160. data/spec/models/resource_definition_layer_spec.rb +40 -0
  161. data/spec/models/resource_definition_modify_spec.rb +64 -0
  162. data/spec/models/resource_definition_spec.rb +76 -0
  163. data/spec/models/resource_group_modify_spec.rb +58 -0
  164. data/spec/models/resource_group_spawn_spec.rb +52 -0
  165. data/spec/models/resource_group_spec.rb +58 -0
  166. data/spec/models/resource_layer_spec.rb +76 -0
  167. data/spec/models/resource_modify_spec.rb +46 -0
  168. data/spec/models/resource_spec.rb +70 -0
  169. data/spec/models/resource_state_spec.rb +34 -0
  170. data/spec/models/resource_with_volumes_all_of_spec.rb +34 -0
  171. data/spec/models/resource_with_volumes_spec.rb +76 -0
  172. data/spec/models/snapshot_restore_spec.rb +40 -0
  173. data/spec/models/snapshot_spec.rb +70 -0
  174. data/spec/models/snapshot_volume_definition_spec.rb +40 -0
  175. data/spec/models/storage_pool_definition_modify_spec.rb +46 -0
  176. data/spec/models/storage_pool_definition_spec.rb +40 -0
  177. data/spec/models/storage_pool_spec.rb +94 -0
  178. data/spec/models/storage_resource_spec.rb +34 -0
  179. data/spec/models/storage_volume_spec.rb +58 -0
  180. data/spec/models/volume_definition_create_spec.rb +40 -0
  181. data/spec/models/volume_definition_layer_spec.rb +40 -0
  182. data/spec/models/volume_definition_modify_spec.rb +58 -0
  183. data/spec/models/volume_definition_spec.rb +64 -0
  184. data/spec/models/volume_group_modify_spec.rb +52 -0
  185. data/spec/models/volume_group_spec.rb +52 -0
  186. data/spec/models/volume_layer_spec.rb +40 -0
  187. data/spec/models/volume_modify_spec.rb +46 -0
  188. data/spec/models/volume_spec.rb +100 -0
  189. data/spec/models/volume_state_spec.rb +34 -0
  190. data/spec/models/writecache_resource_spec.rb +34 -0
  191. data/spec/models/writecache_volume_spec.rb +64 -0
  192. data/spec/spec_helper.rb +111 -0
  193. metadata +344 -0
@@ -0,0 +1,1116 @@
1
+ =begin
2
+ #Linstor REST API
3
+
4
+ #Linstor REST API V1 The V1 rest api of Linstor should stay compatible and only additions are made to the API, If there are breaking changes or redesigned a new major REST API version will be issued. Server runs per default on port `3370` on `::` ipv6 and ipv4. To change the bind address or port you can use the following linstor client commands: ``` linstor controller set-property REST/bindAddress 127.0.0.1 linstor controller set-property REST/port 8080 ``` After setting this properties restart the controller and the new values should be used. Changelog: * 1.0.13 - Fixed broken volume definition modify `flags` handling - Added flags to volume groups (create/modify) * 1.0.12 - Added WritecacheResource and WritecacheVolume schemas. - Removed support for swordfish - Added `with_storage_pool` to PhysicalStorageCreate post request, allowing to create linstor storage pools too - Added `gross` flag for volume-definition size - Added flags to VolumeDefinitionModify (so that `gross` flag can be changed) - Added query-max-volume-size to resource-groups * 1.0.11 - Added /v1/physical-storage endpoint, that lets you query and create lvm/zfs pools - Extended Node with list of supported providers and layers as well as lists of reasons for unsupported providers and layers * 1.0.10 - Added `reports` array field to Volume object, contains ApiCallRcs for problems - Changed `ResourceDefinitions` can now include `VolumeDefinitions` in `volume_definitions` field - Added various filter query parameters * 1.0.9 - Added supports_snapshots to StoragePool * 1.0.8 - Added /v1/resource-groups - Added /v1/resource-groups/{rscgrp}/volume-groups - Moved AutoSelectFilter::place_count default indirectly to create resource implementation - Added diskless_on_remaining to AutoSelectFilter - Changed /v1/view/resources return type to ResourceWithVolumes ResourceWithVolumes is now a child type of Resource (removed volumes from Resource) * 1.0.7 - Added ext_meta_stor_pool to DrbdVolume - Added is_active field to the NetInterface type * 1.0.6 - Added /v1/resource-definitions/{rscName}/resources/{nodeName}/volumes/{vlmnr} PUT * 1.0.5 - Added `reports` field to StoragePool object * 1.0.4 - Added /v1/view/storage-pools overview path - Added uuid fields for objects * 1.0.3 - Added /v1/view/resources overview path - documentation schema extraction * 1.0.2 - Added /v1/storage-pool-definitions object path - added NVME layer object type * 1.0.1 - Documentation review and updates - no functional changes * 1.0.0 - Initial REST API v1
5
+
6
+ The version of the OpenAPI document: 1.0.13
7
+ Contact: rene.peinthor@linbit.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for LinstorClient::DevelopersApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DevelopersApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = LinstorClient::DevelopersApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DevelopersApi' do
30
+ it 'should create an instance of DevelopersApi' do
31
+ expect(@api_instance).to be_instance_of(LinstorClient::DevelopersApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for controller_property_delete
36
+ # Deletes a controller property
37
+ # Delete a controller property
38
+ # @param key
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [ApiCallRc]
41
+ describe 'controller_property_delete test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for controller_property_list
48
+ # lists all controller properties
49
+ # Lists all controller properties.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Hash<String, String>]
52
+ describe 'controller_property_list test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for controller_property_modify
59
+ # sets or modifies controller properties
60
+ # Sets or modifies properties Possible properties are: - &#x60;TcpPortAutoRange&#x60; - regex[&#x60;[0-9]+-[0-9]+&#x60;] Range for auto-allocation of resource TCP ports - &#x60;MinorNrAutoRange&#x60; - regex[&#x60;[0-9]+-[0-9]+&#x60;] Range for auto-allocation of volume minor numbers - &#x60;PeerSlotsNewResource&#x60; - range[&#x60;1-31&#x60;] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - &#x60;StorDriver/DMStats&#x60; - boolean_true_false Enable dmstats on lvm create - &#x60;GlobSeqApiCalls&#x60; - boolean_true_false Globally sequentialize all ctrl -&gt; stlt api calls - &#x60;REST/bindAddress&#x60; - string Bind address of the REST API - &#x60;REST/port&#x60; - range[&#x60;1-65535&#x60;] TCP Port of the REST API - &#x60;REST/enabled&#x60; - boolean_true_false Bool if REST API should be enabled - &#x60;NVMe/enabled&#x60; - enum * rdma * tcp - &#x60;NVMe/enabled&#x60; - range[&#x60;1-65535&#x60;] - &#x60;NVMe/PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;StorDriver/WaitTimeoutAfterCreate&#x60; - regex[&#x60;[0-9]+&#x60;] - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - &#x60;SearchDomain&#x60; - string Search domain node names, if no FQDN is given. - &#x60;ExtCmdWaitTimeout&#x60; - long Wait timeout for an external command in milliseconds - &#x60;DrbdOptions/auto-quorum&#x60; - enum Enables automatic setting of the &#39;quroum&#39; and &#39;on-no-quroum&#39; property * io-error * suspend-io * disabled - &#x60;DrbdOptions/auto-add-quorum-tiebreaker&#x60; - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - &#x60;Writecache/PoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name for writecache - &#x60;Writecache/Size&#x60; - regex[&#x60;^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$&#x60;] Size of the writecache in % (0-100) or KiB otherwise - &#x60;Writecache/Blocksize&#x60; - long 4096 is recommended; the maximum block size is the page size - &#x60;Writecache/Options/StartSector&#x60; - long offset from the start of cache device in 512-byte sectors - &#x60;Writecache/Options/HighWatermark&#x60; - long start writeback when the number of used blocks reach this watermark - &#x60;Writecache/Options/LowWatermark&#x60; - long stop writeback when the number of used blocks drops below this watermark - &#x60;Writecache/Options/WritebackJobs&#x60; - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - &#x60;Writecache/Options/AutocommitBlocks&#x60; - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - &#x60;Writecache/Options/AutocommitTime&#x60; - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - &#x60;Writecache/Options/Fua&#x60; - enum \&quot;On\&quot; results in \&quot;fua\&quot; as argument, whereas the value \&quot;Off\&quot; results in \&quot;nofua\&quot; argument * On * Off - &#x60;Writecache/Options/Additional&#x60; - string Additional arguments passed through - &#x60;DrbdOptions/Disk/read-balancing&#x60; - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - &#x60;DrbdOptions/Disk/on-io-error&#x60; - enum * pass_on * call-local-io-error * detach - &#x60;DrbdOptions/Disk/disk-drain&#x60; - boolean - &#x60;DrbdOptions/Disk/resync-after&#x60; - string - &#x60;DrbdOptions/Disk/disk-timeout&#x60; - range[&#x60;0-6000&#x60;] - &#x60;DrbdOptions/Disk/disable-write-same&#x60; - boolean - &#x60;DrbdOptions/Disk/rs-discard-granularity&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/Disk/disk-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/al-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Disk/al-updates&#x60; - boolean - &#x60;DrbdOptions/Disk/md-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/disk-barrier&#x60; - boolean - &#x60;DrbdOptions/Disk/discard-zeroes-if-aligned&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-fill-target&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/PeerDevice/c-max-rate&#x60; - range[&#x60;250-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/resync-rate&#x60; - range[&#x60;1-8388608&#x60;] - &#x60;DrbdOptions/PeerDevice/c-delay-target&#x60; - range[&#x60;1-100&#x60;] - &#x60;DrbdOptions/PeerDevice/c-min-rate&#x60; - range[&#x60;0-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/bitmap&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-plan-ahead&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-delay&#x60; - range[&#x60;1-10000&#x60;] - &#x60;DrbdOptions/Resource/quorum-minimum-redundancy&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/max-io-depth&#x60; - range[&#x60;4-4294967295&#x60;] - &#x60;DrbdOptions/Resource/auto-promote-timeout&#x60; - range[&#x60;0-600&#x60;] - &#x60;DrbdOptions/Resource/quorum&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/on-no-data-accessible&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Resource/auto-promote&#x60; - boolean - &#x60;DrbdOptions/Resource/cpu-mask&#x60; - string - &#x60;DrbdOptions/Resource/twopc-timeout&#x60; - range[&#x60;50-600&#x60;] - &#x60;DrbdOptions/Resource/twopc-retry-timeout&#x60; - range[&#x60;1-50&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-window&#x60; - range[&#x60;2048-204800&#x60;] - &#x60;DrbdOptions/Resource/on-no-quorum&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Net/max-epoch-size&#x60; - range[&#x60;1-20000&#x60;] - &#x60;DrbdOptions/Net/protocol&#x60; - enum * A * B * C - &#x60;DrbdOptions/Net/allow-two-primaries&#x60; - boolean - &#x60;DrbdOptions/Net/after-sb-0pri&#x60; - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - &#x60;DrbdOptions/Net/ko-count&#x60; - range[&#x60;0-200&#x60;] - &#x60;DrbdOptions/Net/data-integrity-alg&#x60; - string - &#x60;DrbdOptions/Net/ping-timeout&#x60; - range[&#x60;1-300&#x60;] - &#x60;DrbdOptions/Net/sndbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/transport&#x60; - string - &#x60;DrbdOptions/Net/rcvbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/max-buffers&#x60; - range[&#x60;32-131072&#x60;] - &#x60;DrbdOptions/Net/fencing&#x60; - enum * dont-care * resource-only * resource-and-stonith - &#x60;DrbdOptions/Net/csums-alg&#x60; - string - &#x60;DrbdOptions/Net/always-asbp&#x60; - boolean - &#x60;DrbdOptions/Net/congestion-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Net/on-congestion&#x60; - enum * block * pull-ahead * disconnect - &#x60;DrbdOptions/Net/ping-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/rr-conflict&#x60; - enum * disconnect * call-pri-lost * violently - &#x60;DrbdOptions/Net/tcp-cork&#x60; - boolean - &#x60;DrbdOptions/Net/use-rle&#x60; - boolean - &#x60;DrbdOptions/Net/csums-after-crash-only&#x60; - boolean - &#x60;DrbdOptions/Net/socket-check-timeout&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Net/congestion-fill&#x60; - range[&#x60;0-20971520&#x60;] - &#x60;DrbdOptions/Net/cram-hmac-alg&#x60; - string - &#x60;DrbdOptions/Net/verify-alg&#x60; - string - &#x60;DrbdOptions/Net/shared-secret&#x60; - string - &#x60;DrbdOptions/Net/connect-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/timeout&#x60; - range[&#x60;1-600&#x60;] - &#x60;DrbdOptions/Net/after-sb-2pri&#x60; - enum * disconnect * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Net/after-sb-1pri&#x60; - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Handlers/after-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-source&#x60; - string - &#x60;DrbdOptions/Handlers/out-of-sync&#x60; - string - &#x60;DrbdOptions/Handlers/quorum-lost&#x60; - string - &#x60;DrbdOptions/Handlers/fence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/unfence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/initial-split-brain&#x60; - string - &#x60;DrbdOptions/Handlers/local-io-error&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost-after-sb&#x60; - string - &#x60;DrbdOptions/Handlers/pri-on-incon-degr&#x60; - string - &#x60;DrbdOptions/Handlers/split-brain&#x60; - string
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [ControllerPropsModify] :controller_props_modify
63
+ # @return [ApiCallRc]
64
+ describe 'controller_property_modify test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for controller_version
71
+ # show controller version info
72
+ # Show Controller version info
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [ControllerVersion]
75
+ describe 'controller_version test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ # unit tests for create_device_pool
82
+ # creates an LVM, LVM-thin or ZFS pool, optional VDO under it
83
+ # Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used is used. Also note VDO can only used with LVM-fat.
84
+ # @param node node to use
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [PhysicalStorageCreate] :physical_storage_create
87
+ # @return [ApiCallRc]
88
+ describe 'create_device_pool test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ # unit tests for encryption_passphrase_create
95
+ # create a encryption passphrase
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [PassPhraseCreate] :pass_phrase_create
98
+ # @return [ApiCallRc]
99
+ describe 'encryption_passphrase_create test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for encryption_passphrase_enter
106
+ # enter the encryption passphrase
107
+ # @param [Hash] opts the optional parameters
108
+ # @option opts [String] :body
109
+ # @return [ApiCallRc]
110
+ describe 'encryption_passphrase_enter test' do
111
+ it 'should work' do
112
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
113
+ end
114
+ end
115
+
116
+ # unit tests for encryption_passphrase_modify
117
+ # modifies the encryption passphrase
118
+ # @param [Hash] opts the optional parameters
119
+ # @option opts [PassPhraseCreate] :pass_phrase_create
120
+ # @return [ApiCallRc]
121
+ describe 'encryption_passphrase_modify test' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
127
+ # unit tests for error_report_list
128
+ # list all error reports
129
+ # List all error reports
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :node Only show error reports of this node
132
+ # @option opts [Integer] :since Unix timestamp from the starting interval
133
+ # @option opts [Integer] :to Unix timestamp to the ending interval
134
+ # @option opts [Boolean] :with_content Include error report text in response.
135
+ # @option opts [Integer] :offset number of records to skip for pagination
136
+ # @option opts [Integer] :limit maximum number of records to return
137
+ # @return [Array<ErrorReport>]
138
+ describe 'error_report_list test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
141
+ end
142
+ end
143
+
144
+ # unit tests for error_report_show
145
+ # query the specified reportid
146
+ # Query the specified reportid
147
+ # @param reportid Error id to select
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :node Only show error reports of this node
150
+ # @option opts [Integer] :since Unix timestamp from the starting interval
151
+ # @option opts [Integer] :to Unix timestamp to the ending interval
152
+ # @option opts [Boolean] :with_content Include error report text in response.
153
+ # @option opts [Integer] :offset number of records to skip for pagination
154
+ # @option opts [Integer] :limit maximum number of records to return
155
+ # @return [Array<ErrorReport>]
156
+ describe 'error_report_show test' do
157
+ it 'should work' do
158
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
159
+ end
160
+ end
161
+
162
+ # unit tests for key_value_store_delete
163
+ # delete a key value store
164
+ # Delete a key value store
165
+ # @param instance
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [ApiCallRc]
168
+ describe 'key_value_store_delete test' do
169
+ it 'should work' do
170
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
171
+ end
172
+ end
173
+
174
+ # unit tests for key_value_store_list
175
+ # list all key value stores
176
+ # List all known key value store instances
177
+ # @param instance
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [Array<KeyValueStore>]
180
+ describe 'key_value_store_list test' do
181
+ it 'should work' do
182
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
183
+ end
184
+ end
185
+
186
+ # unit tests for key_value_store_modify
187
+ # modify a key value store
188
+ # Modify a key value store
189
+ # @param instance
190
+ # @param [Hash] opts the optional parameters
191
+ # @option opts [KeyValueStoreModify] :key_value_store_modify
192
+ # @return [ApiCallRc]
193
+ describe 'key_value_store_modify test' do
194
+ it 'should work' do
195
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
196
+ end
197
+ end
198
+
199
+ # unit tests for key_value_stores_list
200
+ # list all key value stores
201
+ # List all known key value store instances
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Array<KeyValueStore>]
204
+ describe 'key_value_stores_list test' do
205
+ it 'should work' do
206
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
207
+ end
208
+ end
209
+
210
+ # unit tests for netinterface_create
211
+ # create a netinterface on a node
212
+ # Create a netinterface on a node If satellite_port and satellite_encryption_type are given the netinterface can also work as connection to the controller
213
+ # @param node node to use
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [NetInterface] :net_interface
216
+ # @return [ApiCallRc]
217
+ describe 'netinterface_create test' do
218
+ it 'should work' do
219
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
220
+ end
221
+ end
222
+
223
+ # unit tests for netinterface_delete
224
+ # delete a netinterface from a node
225
+ # Delete a netinterface from a node
226
+ # @param node node to use
227
+ # @param netinterface netinterface name to use
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [ApiCallRc]
230
+ describe 'netinterface_delete test' do
231
+ it 'should work' do
232
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
233
+ end
234
+ end
235
+
236
+ # unit tests for netinterface_list
237
+ # return the list of net-interfaces
238
+ # Returns the list of netinterfaces for this node
239
+ # @param node node to use
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [Integer] :offset number of records to skip for pagination
242
+ # @option opts [Integer] :limit maximum number of records to return
243
+ # @return [Array<NetInterface>]
244
+ describe 'netinterface_list test' do
245
+ it 'should work' do
246
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
247
+ end
248
+ end
249
+
250
+ # unit tests for netinterface_modified
251
+ # modify a netinterface from a node
252
+ # Modify a netinterface from a node
253
+ # @param node node to use
254
+ # @param netinterface netinterface name to use
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [NetInterface] :net_interface
257
+ # @return [ApiCallRc]
258
+ describe 'netinterface_modified test' do
259
+ it 'should work' do
260
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
261
+ end
262
+ end
263
+
264
+ # unit tests for node_add
265
+ # add a node to Linstor
266
+ # Adds a node to Linstor If only one net-interface is specified and it is does not specify a &#x60;satellite_port&#x60; it will apply the default port and &#x60;satellite_encryption_type&#x60; for this net-interface.
267
+ # @param [Hash] opts the optional parameters
268
+ # @option opts [Node] :node Node to add to Linstor
269
+ # @return [ApiCallRc]
270
+ describe 'node_add test' do
271
+ it 'should work' do
272
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
273
+ end
274
+ end
275
+
276
+ # unit tests for node_delete
277
+ # delete a node
278
+ # Delete a node from Linstor
279
+ # @param node node to use
280
+ # @param [Hash] opts the optional parameters
281
+ # @return [ApiCallRc]
282
+ describe 'node_delete test' do
283
+ it 'should work' do
284
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
285
+ end
286
+ end
287
+
288
+ # unit tests for node_list
289
+ # Lists nodes registered to the controller
290
+ # Returns an array of all nodes registered to Linstor.
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [Integer] :offset number of records to skip for pagination
293
+ # @option opts [Integer] :limit maximum number of records to return
294
+ # @return [Array<Node>]
295
+ describe 'node_list test' do
296
+ it 'should work' do
297
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
298
+ end
299
+ end
300
+
301
+ # unit tests for node_lost
302
+ # delete an unrecoverable node
303
+ # Delete an unrecoverable node
304
+ # @param node node to use
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [ApiCallRc]
307
+ describe 'node_lost test' do
308
+ it 'should work' do
309
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
310
+ end
311
+ end
312
+
313
+ # unit tests for node_modify
314
+ # modify a node
315
+ # Sets or modifies properties Possible properties are: - &#x60;PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;StorPoolNameDrbdMeta&#x60; - regex[&#x60;^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;DrbdMetaType&#x60; - enum * external * internal - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - &#x60;Writecache/PoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name for writecache - &#x60;Writecache/Size&#x60; - regex[&#x60;^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$&#x60;] Size of the writecache in % (0-100) or KiB otherwise - &#x60;Writecache/Blocksize&#x60; - long 4096 is recommended; the maximum block size is the page size - &#x60;Writecache/Options/StartSector&#x60; - long offset from the start of cache device in 512-byte sectors - &#x60;Writecache/Options/HighWatermark&#x60; - long start writeback when the number of used blocks reach this watermark - &#x60;Writecache/Options/LowWatermark&#x60; - long stop writeback when the number of used blocks drops below this watermark - &#x60;Writecache/Options/WritebackJobs&#x60; - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - &#x60;Writecache/Options/AutocommitBlocks&#x60; - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - &#x60;Writecache/Options/AutocommitTime&#x60; - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - &#x60;Writecache/Options/Fua&#x60; - enum \&quot;On\&quot; results in \&quot;fua\&quot; as argument, whereas the value \&quot;Off\&quot; results in \&quot;nofua\&quot; argument * On * Off - &#x60;Writecache/Options/Additional&#x60; - string Additional arguments passed through
316
+ # @param node node to use
317
+ # @param [Hash] opts the optional parameters
318
+ # @option opts [NodeModify] :node_modify
319
+ # @return [ApiCallRc]
320
+ describe 'node_modify test' do
321
+ it 'should work' do
322
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
323
+ end
324
+ end
325
+
326
+ # unit tests for node_reconnect
327
+ # reconnect a node to the controller
328
+ # Reconnect a node to the controller
329
+ # @param node node to use
330
+ # @param [Hash] opts the optional parameters
331
+ # @return [ApiCallRc]
332
+ describe 'node_reconnect test' do
333
+ it 'should work' do
334
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
335
+ end
336
+ end
337
+
338
+ # unit tests for node_storage_pool_create
339
+ # creates a new storage pool on this node
340
+ # Creates a new storage pool on this node. &#x60;provider_kind&#x60; has to be specified and additional to that the linked &#x60;StorDriver&#x60; property that has the value to the backing pool: * &#x60;LVM&#x60;: &#x60;StorDriver/LvmVg&#x60; * &#x60;LVM_THIN&#x60;: &#x60;StorDriver/LvmVg&#x60; and &#x60;StorDriver/ThinPool&#x60; * &#x60;ZFS&#x60;: &#x60;StorDriver/ZPool&#x60; * &#x60;ZFS_THIN&#x60;: &#x60;StorDriver/ZPoolThin&#x60; * &#x60;DISKLESS&#x60;: Does not need a property as it has no backing pool
341
+ # @param node node to use
342
+ # @param [Hash] opts the optional parameters
343
+ # @option opts [StoragePool] :storage_pool
344
+ # @return [ApiCallRc]
345
+ describe 'node_storage_pool_create test' do
346
+ it 'should work' do
347
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
348
+ end
349
+ end
350
+
351
+ # unit tests for node_storage_pool_delete
352
+ # delete a storage pool
353
+ # Delete a storage pool
354
+ # @param node node to use
355
+ # @param storagepool
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [ApiCallRc]
358
+ describe 'node_storage_pool_delete test' do
359
+ it 'should work' do
360
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
361
+ end
362
+ end
363
+
364
+ # unit tests for node_storage_pool_list
365
+ # lists all storage pools for a node
366
+ # Lists all storage pools of a node
367
+ # @param node node to use
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
370
+ # @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
371
+ # @option opts [Integer] :offset number of records to skip for pagination
372
+ # @option opts [Integer] :limit maximum number of records to return
373
+ # @return [Array<StoragePool>]
374
+ describe 'node_storage_pool_list test' do
375
+ it 'should work' do
376
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
377
+ end
378
+ end
379
+
380
+ # unit tests for node_storage_pool_modify
381
+ # modify a storage pool
382
+ # Sets or modifies properties Possible properties are: - &#x60;StorDriver/LvmVg&#x60; - regex[&#x60;[a-zA-Z0-9_-]+&#x60;] - &#x60;StorDriver/ThinPool&#x60; - regex[&#x60;[a-zA-Z0-9_-]+&#x60;] - &#x60;StorDriver/ZPool&#x60; - regex[&#x60;[a-zA-Z0-9_/-]+&#x60;] - &#x60;StorDriver/ZPoolThin&#x60; - regex[&#x60;[a-zA-Z0-9_/-]+&#x60;] - &#x60;StorDriver/FileDir&#x60; - regex[&#x60;.*&#x60;] - &#x60;PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;NVMe/PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;StorDriver/LvcreateType&#x60; - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - &#x60;StorDriver/WaitTimeoutAfterCreate&#x60; - regex[&#x60;[0-9]+&#x60;] - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
383
+ # @param node node to use
384
+ # @param storagepool
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [StoragePoolDefinitionModify] :storage_pool_definition_modify
387
+ # @return [ApiCallRc]
388
+ describe 'node_storage_pool_modify test' do
389
+ it 'should work' do
390
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
391
+ end
392
+ end
393
+
394
+ # unit tests for query_max_volume_size
395
+ # query the maximum volume size
396
+ # Query the maximum possible volume size storage pools
397
+ # @param [Hash] opts the optional parameters
398
+ # @option opts [AutoSelectFilter] :auto_select_filter
399
+ # @return [MaxVolumeSizes]
400
+ describe 'query_max_volume_size test' do
401
+ it 'should work' do
402
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
403
+ end
404
+ end
405
+
406
+ # unit tests for query_max_volume_size_from_rsc_grp
407
+ # query the maximum volume size from a given resource group
408
+ # Query the maximum possible volume size storage pools
409
+ # @param resource_group resource group to use
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [MaxVolumeSizes]
412
+ describe 'query_max_volume_size_from_rsc_grp test' do
413
+ it 'should work' do
414
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
415
+ end
416
+ end
417
+
418
+ # unit tests for resource_autoplace
419
+ # autoplace resource
420
+ # Auto place the resource on the specified place_count redundency. If place_count isn&#39;t given 2 is the default.
421
+ # @param resource resource to use
422
+ # @param [Hash] opts the optional parameters
423
+ # @option opts [AutoPlaceRequest] :auto_place_request
424
+ # @return [ApiCallRc]
425
+ describe 'resource_autoplace test' do
426
+ it 'should work' do
427
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
428
+ end
429
+ end
430
+
431
+ # unit tests for resource_connection_list
432
+ # show the specified resource connection
433
+ # show the specified resource connection
434
+ # @param resource resource to use
435
+ # @param node_a source node of the connection
436
+ # @param node_b target node of the connection
437
+ # @param [Hash] opts the optional parameters
438
+ # @return [Array<ResourceConnection>]
439
+ describe 'resource_connection_list test' do
440
+ it 'should work' do
441
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
442
+ end
443
+ end
444
+
445
+ # unit tests for resource_connection_modify
446
+ # modify a resource connection
447
+ # Sets or modifies properties Possible properties are: - &#x60;DrbdOptions/PeerDevice/c-fill-target&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/PeerDevice/c-max-rate&#x60; - range[&#x60;250-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/resync-rate&#x60; - range[&#x60;1-8388608&#x60;] - &#x60;DrbdOptions/PeerDevice/c-delay-target&#x60; - range[&#x60;1-100&#x60;] - &#x60;DrbdOptions/PeerDevice/c-min-rate&#x60; - range[&#x60;0-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/bitmap&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-plan-ahead&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Net/max-epoch-size&#x60; - range[&#x60;1-20000&#x60;] - &#x60;DrbdOptions/Net/protocol&#x60; - enum * A * B * C - &#x60;DrbdOptions/Net/allow-two-primaries&#x60; - boolean - &#x60;DrbdOptions/Net/after-sb-0pri&#x60; - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - &#x60;DrbdOptions/Net/ko-count&#x60; - range[&#x60;0-200&#x60;] - &#x60;DrbdOptions/Net/data-integrity-alg&#x60; - string - &#x60;DrbdOptions/Net/ping-timeout&#x60; - range[&#x60;1-300&#x60;] - &#x60;DrbdOptions/Net/sndbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/transport&#x60; - string - &#x60;DrbdOptions/Net/rcvbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/max-buffers&#x60; - range[&#x60;32-131072&#x60;] - &#x60;DrbdOptions/Net/fencing&#x60; - enum * dont-care * resource-only * resource-and-stonith - &#x60;DrbdOptions/Net/csums-alg&#x60; - string - &#x60;DrbdOptions/Net/always-asbp&#x60; - boolean - &#x60;DrbdOptions/Net/congestion-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Net/on-congestion&#x60; - enum * block * pull-ahead * disconnect - &#x60;DrbdOptions/Net/ping-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/rr-conflict&#x60; - enum * disconnect * call-pri-lost * violently - &#x60;DrbdOptions/Net/tcp-cork&#x60; - boolean - &#x60;DrbdOptions/Net/use-rle&#x60; - boolean - &#x60;DrbdOptions/Net/csums-after-crash-only&#x60; - boolean - &#x60;DrbdOptions/Net/socket-check-timeout&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Net/congestion-fill&#x60; - range[&#x60;0-20971520&#x60;] - &#x60;DrbdOptions/Net/cram-hmac-alg&#x60; - string - &#x60;DrbdOptions/Net/verify-alg&#x60; - string - &#x60;DrbdOptions/Net/shared-secret&#x60; - string - &#x60;DrbdOptions/Net/connect-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/timeout&#x60; - range[&#x60;1-600&#x60;] - &#x60;DrbdOptions/Net/after-sb-2pri&#x60; - enum * disconnect * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Net/after-sb-1pri&#x60; - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p
448
+ # @param resource resource to use
449
+ # @param node_a source node of the connection
450
+ # @param node_b target node of the connection
451
+ # @param [Hash] opts the optional parameters
452
+ # @option opts [ResourceConnectionModify] :resource_connection_modify
453
+ # @return [ApiCallRc]
454
+ describe 'resource_connection_modify test' do
455
+ it 'should work' do
456
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
457
+ end
458
+ end
459
+
460
+ # unit tests for resource_connections_list
461
+ # list all resource connections for resource
462
+ # List all resource connections for resource
463
+ # @param resource resource to use
464
+ # @param [Hash] opts the optional parameters
465
+ # @return [Array<ResourceConnection>]
466
+ describe 'resource_connections_list test' do
467
+ it 'should work' do
468
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
469
+ end
470
+ end
471
+
472
+ # unit tests for resource_create
473
+ # create one or more resources.
474
+ # Adds one or more resource(s).
475
+ # @param resource resource to use
476
+ # @param [Hash] opts the optional parameters
477
+ # @option opts [Array<ResourceCreate>] :resource_create
478
+ # @return [ApiCallRc]
479
+ describe 'resource_create test' do
480
+ it 'should work' do
481
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
482
+ end
483
+ end
484
+
485
+ # unit tests for resource_create_on_node
486
+ # create a resource on a node
487
+ # Adds a resource on a node. To use a specific storage pool add the &#x60;StorPoolName&#x60; property and use the storage pool name as value. If the &#x60;StorPoolName&#x60; property is not set, the &#x60;DfltStorPool&#x60; will be used. To create a diskless resource you have to set the \&quot;DISKLESS\&quot; flag in the flags list. &#x60;&#x60;&#x60; { \&quot;resource\&quot;: { \&quot;flags\&quot;: [\&quot;DISKLESS\&quot;] } } &#x60;&#x60;&#x60;
488
+ # @param resource resource to use
489
+ # @param node node to use
490
+ # @param [Hash] opts the optional parameters
491
+ # @option opts [ResourceCreate] :resource_create
492
+ # @return [ApiCallRc]
493
+ describe 'resource_create_on_node test' do
494
+ it 'should work' do
495
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
496
+ end
497
+ end
498
+
499
+ # unit tests for resource_definition_create
500
+ # add a resource-definition
501
+ # Adds a resource-definition. Only required property is the name of the resource definition. All other properties are optional.
502
+ # @param [Hash] opts the optional parameters
503
+ # @option opts [ResourceDefinitionCreate] :resource_definition_create
504
+ # @return [ApiCallRc]
505
+ describe 'resource_definition_create test' do
506
+ it 'should work' do
507
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
508
+ end
509
+ end
510
+
511
+ # unit tests for resource_definition_delete
512
+ # delete a resource-definition
513
+ # Delete a resource-definition
514
+ # @param resource resource to use
515
+ # @param [Hash] opts the optional parameters
516
+ # @return [ApiCallRc]
517
+ describe 'resource_definition_delete test' do
518
+ it 'should work' do
519
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
520
+ end
521
+ end
522
+
523
+ # unit tests for resource_definition_list
524
+ # lists all resource-definitions
525
+ # Lists all resource definitions. A single resource definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1
526
+ # @param [Hash] opts the optional parameters
527
+ # @option opts [Array<String>] :resource_definitions Filter only for the specified resource definitions, if not specified no filtering.
528
+ # @option opts [Integer] :offset number of records to skip for pagination
529
+ # @option opts [Integer] :limit maximum number of records to return
530
+ # @return [Array<ResourceDefinition>]
531
+ describe 'resource_definition_list test' do
532
+ it 'should work' do
533
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
534
+ end
535
+ end
536
+
537
+ # unit tests for resource_definition_modify
538
+ # modify a resource-definition
539
+ # Sets or modifies properties Possible properties are: - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;StorPoolNameDrbdMeta&#x60; - regex[&#x60;^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;DrbdMetaType&#x60; - enum * external * internal - &#x60;PeerSlotsNewResource&#x60; - range[&#x60;1-31&#x60;] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - &#x60;DrbdProxy/CompressionType&#x60; - enum * zlib * lzma * lz4 * zstd - &#x60;FileSystem/Type&#x60; - enum File system type to use * ext4 * xfs - &#x60;FileSystem/MkfsParams&#x60; - string Additional parameters for the mkfs command - &#x60;NVMe/enabled&#x60; - enum * rdma * tcp - &#x60;NVMe/enabled&#x60; - range[&#x60;1-65535&#x60;] - &#x60;StorDriver/LvcreateType&#x60; - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - &#x60;DrbdOptions/auto-quorum&#x60; - enum Enables automatic setting of the &#39;quroum&#39; and &#39;on-no-quroum&#39; property * io-error * suspend-io * disabled - &#x60;DrbdOptions/auto-add-quorum-tiebreaker&#x60; - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - &#x60;Writecache/PoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name for writecache - &#x60;Writecache/Size&#x60; - regex[&#x60;^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$&#x60;] Size of the writecache in % (0-100) or KiB otherwise - &#x60;Writecache/Blocksize&#x60; - long 4096 is recommended; the maximum block size is the page size - &#x60;Writecache/Options/StartSector&#x60; - long offset from the start of cache device in 512-byte sectors - &#x60;Writecache/Options/HighWatermark&#x60; - long start writeback when the number of used blocks reach this watermark - &#x60;Writecache/Options/LowWatermark&#x60; - long stop writeback when the number of used blocks drops below this watermark - &#x60;Writecache/Options/WritebackJobs&#x60; - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - &#x60;Writecache/Options/AutocommitBlocks&#x60; - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - &#x60;Writecache/Options/AutocommitTime&#x60; - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - &#x60;Writecache/Options/Fua&#x60; - enum \&quot;On\&quot; results in \&quot;fua\&quot; as argument, whereas the value \&quot;Off\&quot; results in \&quot;nofua\&quot; argument * On * Off - &#x60;Writecache/Options/Additional&#x60; - string Additional arguments passed through - &#x60;DrbdOptions/Disk/read-balancing&#x60; - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - &#x60;DrbdOptions/Disk/on-io-error&#x60; - enum * pass_on * call-local-io-error * detach - &#x60;DrbdOptions/Disk/disk-drain&#x60; - boolean - &#x60;DrbdOptions/Disk/resync-after&#x60; - string - &#x60;DrbdOptions/Disk/disk-timeout&#x60; - range[&#x60;0-6000&#x60;] - &#x60;DrbdOptions/Disk/disable-write-same&#x60; - boolean - &#x60;DrbdOptions/Disk/rs-discard-granularity&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/Disk/disk-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/al-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Disk/al-updates&#x60; - boolean - &#x60;DrbdOptions/Disk/md-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/disk-barrier&#x60; - boolean - &#x60;DrbdOptions/Disk/discard-zeroes-if-aligned&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-fill-target&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/PeerDevice/c-max-rate&#x60; - range[&#x60;250-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/resync-rate&#x60; - range[&#x60;1-8388608&#x60;] - &#x60;DrbdOptions/PeerDevice/c-delay-target&#x60; - range[&#x60;1-100&#x60;] - &#x60;DrbdOptions/PeerDevice/c-min-rate&#x60; - range[&#x60;0-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/bitmap&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-plan-ahead&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-delay&#x60; - range[&#x60;1-10000&#x60;] - &#x60;DrbdOptions/Resource/quorum-minimum-redundancy&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/max-io-depth&#x60; - range[&#x60;4-4294967295&#x60;] - &#x60;DrbdOptions/Resource/auto-promote-timeout&#x60; - range[&#x60;0-600&#x60;] - &#x60;DrbdOptions/Resource/quorum&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/on-no-data-accessible&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Resource/auto-promote&#x60; - boolean - &#x60;DrbdOptions/Resource/cpu-mask&#x60; - string - &#x60;DrbdOptions/Resource/twopc-timeout&#x60; - range[&#x60;50-600&#x60;] - &#x60;DrbdOptions/Resource/twopc-retry-timeout&#x60; - range[&#x60;1-50&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-window&#x60; - range[&#x60;2048-204800&#x60;] - &#x60;DrbdOptions/Resource/on-no-quorum&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Net/max-epoch-size&#x60; - range[&#x60;1-20000&#x60;] - &#x60;DrbdOptions/Net/protocol&#x60; - enum * A * B * C - &#x60;DrbdOptions/Net/allow-two-primaries&#x60; - boolean - &#x60;DrbdOptions/Net/after-sb-0pri&#x60; - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - &#x60;DrbdOptions/Net/ko-count&#x60; - range[&#x60;0-200&#x60;] - &#x60;DrbdOptions/Net/data-integrity-alg&#x60; - string - &#x60;DrbdOptions/Net/ping-timeout&#x60; - range[&#x60;1-300&#x60;] - &#x60;DrbdOptions/Net/sndbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/transport&#x60; - string - &#x60;DrbdOptions/Net/rcvbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/max-buffers&#x60; - range[&#x60;32-131072&#x60;] - &#x60;DrbdOptions/Net/fencing&#x60; - enum * dont-care * resource-only * resource-and-stonith - &#x60;DrbdOptions/Net/csums-alg&#x60; - string - &#x60;DrbdOptions/Net/always-asbp&#x60; - boolean - &#x60;DrbdOptions/Net/congestion-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Net/on-congestion&#x60; - enum * block * pull-ahead * disconnect - &#x60;DrbdOptions/Net/ping-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/rr-conflict&#x60; - enum * disconnect * call-pri-lost * violently - &#x60;DrbdOptions/Net/tcp-cork&#x60; - boolean - &#x60;DrbdOptions/Net/use-rle&#x60; - boolean - &#x60;DrbdOptions/Net/csums-after-crash-only&#x60; - boolean - &#x60;DrbdOptions/Net/socket-check-timeout&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Net/congestion-fill&#x60; - range[&#x60;0-20971520&#x60;] - &#x60;DrbdOptions/Net/cram-hmac-alg&#x60; - string - &#x60;DrbdOptions/Net/verify-alg&#x60; - string - &#x60;DrbdOptions/Net/shared-secret&#x60; - string - &#x60;DrbdOptions/Net/connect-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/timeout&#x60; - range[&#x60;1-600&#x60;] - &#x60;DrbdOptions/Net/after-sb-2pri&#x60; - enum * disconnect * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Net/after-sb-1pri&#x60; - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Handlers/after-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-source&#x60; - string - &#x60;DrbdOptions/Handlers/out-of-sync&#x60; - string - &#x60;DrbdOptions/Handlers/quorum-lost&#x60; - string - &#x60;DrbdOptions/Handlers/fence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/unfence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/initial-split-brain&#x60; - string - &#x60;DrbdOptions/Handlers/local-io-error&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost-after-sb&#x60; - string - &#x60;DrbdOptions/Handlers/pri-on-incon-degr&#x60; - string - &#x60;DrbdOptions/Handlers/split-brain&#x60; - string
540
+ # @param resource resource to use
541
+ # @param [Hash] opts the optional parameters
542
+ # @option opts [ResourceDefinitionModify] :resource_definition_modify
543
+ # @return [ApiCallRc]
544
+ describe 'resource_definition_modify test' do
545
+ it 'should work' do
546
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
547
+ end
548
+ end
549
+
550
+ # unit tests for resource_delete
551
+ # delete a resource
552
+ # Delete a resource on a node
553
+ # @param resource resource to use
554
+ # @param node node to use
555
+ # @param [Hash] opts the optional parameters
556
+ # @return [ApiCallRc]
557
+ describe 'resource_delete test' do
558
+ it 'should work' do
559
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
560
+ end
561
+ end
562
+
563
+ # unit tests for resource_drbd_proxy_disable
564
+ # disables a drbd proxy on a node connection
565
+ # Disables a drbd proxy on a node connection
566
+ # @param resource resource to use
567
+ # @param node_a
568
+ # @param node_b
569
+ # @param [Hash] opts the optional parameters
570
+ # @return [ApiCallRc]
571
+ describe 'resource_drbd_proxy_disable test' do
572
+ it 'should work' do
573
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
574
+ end
575
+ end
576
+
577
+ # unit tests for resource_drbd_proxy_enable
578
+ # enable a drbd proxy on a node connection
579
+ # Enables a drbd proxy on a node connection
580
+ # @param resource resource to use
581
+ # @param node_a source node of the connection
582
+ # @param node_b target node of the connection
583
+ # @param [Hash] opts the optional parameters
584
+ # @option opts [DrbdProxyEnable] :drbd_proxy_enable
585
+ # @return [ApiCallRc]
586
+ describe 'resource_drbd_proxy_enable test' do
587
+ it 'should work' do
588
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
589
+ end
590
+ end
591
+
592
+ # unit tests for resource_drbd_proxy_modify
593
+ # modify drbd proxy option properties
594
+ # Sets or modifies properties Possible properties are: - &#x60;DrbdOptions/Proxy/memlimit&#x60; - range[&#x60;16777216-9223372036854775807&#x60;] - &#x60;DrbdOptions/Proxy/read-loops&#x60; - range[&#x60;0-2147483647&#x60;] - &#x60;DrbdOptions/Proxy/sndbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Proxy/rcvbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Proxy/ping-timeout&#x60; - range[&#x60;1-300&#x60;] - &#x60;DrbdOptions/ProxyCompression/dict-size&#x60; - range[&#x60;4096-1610612736&#x60;] - &#x60;DrbdOptions/ProxyCompression/lc&#x60; - range[&#x60;0-4&#x60;] - &#x60;DrbdOptions/ProxyCompression/lp&#x60; - range[&#x60;0-4&#x60;] - &#x60;DrbdOptions/ProxyCompression/pb&#x60; - range[&#x60;0-4&#x60;] - &#x60;DrbdOptions/ProxyCompression/nice-len&#x60; - range[&#x60;0-273&#x60;] - &#x60;DrbdOptions/ProxyCompression/mf&#x60; - enum * hc4 * hc3 * bt2 * bt3 * bt4 - &#x60;DrbdOptions/ProxyCompression/mode&#x60; - enum * fast * normal - &#x60;DrbdOptions/ProxyCompression/depth&#x60; - range[&#x60;0-1000&#x60;] - &#x60;DrbdOptions/ProxyCompression/level&#x60; - range[&#x60;1-9&#x60;] - &#x60;DrbdOptions/ProxyCompression/contexts&#x60; - range[&#x60;1-253&#x60;] - &#x60;DrbdOptions/ProxyCompression/fallback-to-zlib&#x60; - enum * off * on - &#x60;DrbdOptions/ProxyCompression/numa-threshold&#x60; - range[&#x60;0-253&#x60;] - &#x60;DrbdOptions/ProxyCompression/level&#x60; - range[&#x60;1-9&#x60;] - &#x60;DrbdOptions/ProxyCompression/level&#x60; - range[&#x60;1-22&#x60;]
595
+ # @param resource resource to use
596
+ # @param [Hash] opts the optional parameters
597
+ # @option opts [DrbdProxyModify] :drbd_proxy_modify
598
+ # @return [ApiCallRc]
599
+ describe 'resource_drbd_proxy_modify test' do
600
+ it 'should work' do
601
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
602
+ end
603
+ end
604
+
605
+ # unit tests for resource_group_create
606
+ # add a resource-group
607
+ # Adds a resource-group. Only required property is the name of the resource group. All other properties are optional.
608
+ # @param [Hash] opts the optional parameters
609
+ # @option opts [ResourceGroup] :resource_group
610
+ # @return [ApiCallRc]
611
+ describe 'resource_group_create test' do
612
+ it 'should work' do
613
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
614
+ end
615
+ end
616
+
617
+ # unit tests for resource_group_delete
618
+ # delete a resource-group
619
+ # Delete a resource-group
620
+ # @param resource_group resource group to use
621
+ # @param [Hash] opts the optional parameters
622
+ # @return [ApiCallRc]
623
+ describe 'resource_group_delete test' do
624
+ it 'should work' do
625
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
626
+ end
627
+ end
628
+
629
+ # unit tests for resource_group_list
630
+ # lists all resource-groups
631
+ # Lists all resource groups. A single resource group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1
632
+ # @param [Hash] opts the optional parameters
633
+ # @option opts [Array<String>] :resource_groups Filter only for the specified resource groups, if not specified no filtering.
634
+ # @option opts [Integer] :offset number of records to skip for pagination
635
+ # @option opts [Integer] :limit maximum number of records to return
636
+ # @return [Array<ResourceGroup>]
637
+ describe 'resource_group_list test' do
638
+ it 'should work' do
639
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
640
+ end
641
+ end
642
+
643
+ # unit tests for resource_group_modify
644
+ # modify a resource-group
645
+ # Sets or modifies properties Possible properties are: - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;PeerSlotsNewResource&#x60; - range[&#x60;1-31&#x60;] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - &#x60;DrbdProxy/CompressionType&#x60; - enum * zlib * lzma * lz4 - &#x60;FileSystem/Type&#x60; - enum File system type to use * ext4 * xfs - &#x60;FileSystem/MkfsParams&#x60; - string Additional parameters for the mkfs command - &#x60;NVMe/enabled&#x60; - enum * rdma * tcp - &#x60;NVMe/enabled&#x60; - range[&#x60;1-65535&#x60;] - &#x60;DrbdOptions/Disk/read-balancing&#x60; - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - &#x60;DrbdOptions/Disk/on-io-error&#x60; - enum * pass_on * call-local-io-error * detach - &#x60;DrbdOptions/Disk/disk-drain&#x60; - boolean - &#x60;DrbdOptions/Disk/resync-after&#x60; - string - &#x60;DrbdOptions/Disk/disk-timeout&#x60; - range[&#x60;0-6000&#x60;] - &#x60;DrbdOptions/Disk/disable-write-same&#x60; - boolean - &#x60;DrbdOptions/Disk/rs-discard-granularity&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/Disk/disk-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/al-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Disk/al-updates&#x60; - boolean - &#x60;DrbdOptions/Disk/md-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/disk-barrier&#x60; - boolean - &#x60;DrbdOptions/Disk/discard-zeroes-if-aligned&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-fill-target&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/PeerDevice/c-max-rate&#x60; - range[&#x60;250-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/resync-rate&#x60; - range[&#x60;1-8388608&#x60;] - &#x60;DrbdOptions/PeerDevice/c-delay-target&#x60; - range[&#x60;1-100&#x60;] - &#x60;DrbdOptions/PeerDevice/c-min-rate&#x60; - range[&#x60;0-4194304&#x60;] - &#x60;DrbdOptions/PeerDevice/bitmap&#x60; - boolean - &#x60;DrbdOptions/PeerDevice/c-plan-ahead&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-delay&#x60; - range[&#x60;1-10000&#x60;] - &#x60;DrbdOptions/Resource/quorum-minimum-redundancy&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/max-io-depth&#x60; - range[&#x60;4-4294967295&#x60;] - &#x60;DrbdOptions/Resource/auto-promote-timeout&#x60; - range[&#x60;0-600&#x60;] - &#x60;DrbdOptions/Resource/quorum&#x60; - enum [&#x60;1-32&#x60;] * off * majority * all - &#x60;DrbdOptions/Resource/on-no-data-accessible&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Resource/auto-promote&#x60; - boolean - &#x60;DrbdOptions/Resource/cpu-mask&#x60; - string - &#x60;DrbdOptions/Resource/twopc-timeout&#x60; - range[&#x60;50-600&#x60;] - &#x60;DrbdOptions/Resource/twopc-retry-timeout&#x60; - range[&#x60;1-50&#x60;] - &#x60;DrbdOptions/Resource/peer-ack-window&#x60; - range[&#x60;2048-204800&#x60;] - &#x60;DrbdOptions/Resource/on-no-quorum&#x60; - enum * io-error * suspend-io - &#x60;DrbdOptions/Net/max-epoch-size&#x60; - range[&#x60;1-20000&#x60;] - &#x60;DrbdOptions/Net/protocol&#x60; - enum * A * B * C - &#x60;DrbdOptions/Net/allow-two-primaries&#x60; - boolean - &#x60;DrbdOptions/Net/after-sb-0pri&#x60; - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - &#x60;DrbdOptions/Net/ko-count&#x60; - range[&#x60;0-200&#x60;] - &#x60;DrbdOptions/Net/data-integrity-alg&#x60; - string - &#x60;DrbdOptions/Net/ping-timeout&#x60; - range[&#x60;1-300&#x60;] - &#x60;DrbdOptions/Net/sndbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/transport&#x60; - string - &#x60;DrbdOptions/Net/rcvbuf-size&#x60; - range[&#x60;0-10485760&#x60;] - &#x60;DrbdOptions/Net/max-buffers&#x60; - range[&#x60;32-131072&#x60;] - &#x60;DrbdOptions/Net/fencing&#x60; - enum * dont-care * resource-only * resource-and-stonith - &#x60;DrbdOptions/Net/csums-alg&#x60; - string - &#x60;DrbdOptions/Net/always-asbp&#x60; - boolean - &#x60;DrbdOptions/Net/congestion-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Net/on-congestion&#x60; - enum * block * pull-ahead * disconnect - &#x60;DrbdOptions/Net/ping-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/rr-conflict&#x60; - enum * disconnect * call-pri-lost * violently - &#x60;DrbdOptions/Net/tcp-cork&#x60; - boolean - &#x60;DrbdOptions/Net/use-rle&#x60; - boolean - &#x60;DrbdOptions/Net/csums-after-crash-only&#x60; - boolean - &#x60;DrbdOptions/Net/socket-check-timeout&#x60; - range[&#x60;0-300&#x60;] - &#x60;DrbdOptions/Net/congestion-fill&#x60; - range[&#x60;0-20971520&#x60;] - &#x60;DrbdOptions/Net/cram-hmac-alg&#x60; - string - &#x60;DrbdOptions/Net/verify-alg&#x60; - string - &#x60;DrbdOptions/Net/shared-secret&#x60; - string - &#x60;DrbdOptions/Net/connect-int&#x60; - range[&#x60;1-120&#x60;] - &#x60;DrbdOptions/Net/timeout&#x60; - range[&#x60;1-600&#x60;] - &#x60;DrbdOptions/Net/after-sb-2pri&#x60; - enum * disconnect * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Net/after-sb-1pri&#x60; - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - &#x60;DrbdOptions/Handlers/after-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-target&#x60; - string - &#x60;DrbdOptions/Handlers/before-resync-source&#x60; - string - &#x60;DrbdOptions/Handlers/out-of-sync&#x60; - string - &#x60;DrbdOptions/Handlers/quorum-lost&#x60; - string - &#x60;DrbdOptions/Handlers/fence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/unfence-peer&#x60; - string - &#x60;DrbdOptions/Handlers/initial-split-brain&#x60; - string - &#x60;DrbdOptions/Handlers/local-io-error&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost&#x60; - string - &#x60;DrbdOptions/Handlers/pri-lost-after-sb&#x60; - string - &#x60;DrbdOptions/Handlers/pri-on-incon-degr&#x60; - string - &#x60;DrbdOptions/Handlers/split-brain&#x60; - string
646
+ # @param resource_group resource group to use
647
+ # @param [Hash] opts the optional parameters
648
+ # @option opts [ResourceGroupModify] :resource_group_modify
649
+ # @return [ApiCallRc]
650
+ describe 'resource_group_modify test' do
651
+ it 'should work' do
652
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
653
+ end
654
+ end
655
+
656
+ # unit tests for resource_group_spawn
657
+ # create a new resource-definition based on the given resource-group
658
+ # Creates a new resource-definition and auto-deploys if configured to do so.
659
+ # @param resource_group resource group to use
660
+ # @param [Hash] opts the optional parameters
661
+ # @option opts [ResourceGroupSpawn] :resource_group_spawn
662
+ # @return [ApiCallRc]
663
+ describe 'resource_group_spawn test' do
664
+ it 'should work' do
665
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
666
+ end
667
+ end
668
+
669
+ # unit tests for resource_list
670
+ # lists all resources for a resource-definition
671
+ # Lists all resources for a resource-definition. A single resource can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA
672
+ # @param resource resource to use
673
+ # @param [Hash] opts the optional parameters
674
+ # @option opts [Integer] :offset number of records to skip for pagination
675
+ # @option opts [Integer] :limit maximum number of records to return
676
+ # @return [Array<Resource>]
677
+ describe 'resource_list test' do
678
+ it 'should work' do
679
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
680
+ end
681
+ end
682
+
683
+ # unit tests for resource_migrate_disk
684
+ # migrate a resource to another node
685
+ # migrate a resource to another node without reducing the redundancy count
686
+ # @param resource resource to use
687
+ # @param node node to use
688
+ # @param fromnode
689
+ # @param [Hash] opts the optional parameters
690
+ # @return [ApiCallRc]
691
+ describe 'resource_migrate_disk test' do
692
+ it 'should work' do
693
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
694
+ end
695
+ end
696
+
697
+ # unit tests for resource_migrate_disk_storagepool
698
+ # migrate a resource to another node
699
+ # migrate a resource to another node without reducing the redundency count
700
+ # @param resource resource to use
701
+ # @param node node to use
702
+ # @param fromnode
703
+ # @param storagepool
704
+ # @param [Hash] opts the optional parameters
705
+ # @return [ApiCallRc]
706
+ describe 'resource_migrate_disk_storagepool test' do
707
+ it 'should work' do
708
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
709
+ end
710
+ end
711
+
712
+ # unit tests for resource_modify
713
+ # modify a resource
714
+ # Sets or modifies properties Possible properties are: - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;StorPoolNameDrbdMeta&#x60; - regex[&#x60;^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;DrbdMetaType&#x60; - enum * external * internal - &#x60;PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;PeerSlots&#x60; - range[&#x60;1-31&#x60;] DRBD peer slots present on resource - &#x60;FileSystem/Type&#x60; - enum File system type to use * ext4 * xfs - &#x60;FileSystem/MkfsParams&#x60; - string Additional parameters for the mkfs command - &#x60;NVMe/PrefNic&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Preferred network interface to use - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
715
+ # @param resource resource to use
716
+ # @param node node to use
717
+ # @param [Hash] opts the optional parameters
718
+ # @option opts [ResourceModify] :resource_modify
719
+ # @return [ApiCallRc]
720
+ describe 'resource_modify test' do
721
+ it 'should work' do
722
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
723
+ end
724
+ end
725
+
726
+ # unit tests for resource_snapshot_create
727
+ # create a snapshot
728
+ # Create a snapshot for a resource
729
+ # @param resource resource to use
730
+ # @param [Hash] opts the optional parameters
731
+ # @option opts [Snapshot] :snapshot
732
+ # @return [ApiCallRc]
733
+ describe 'resource_snapshot_create test' do
734
+ it 'should work' do
735
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
736
+ end
737
+ end
738
+
739
+ # unit tests for resource_snapshot_delete
740
+ # delete a snapshot
741
+ # Delete a snapshot
742
+ # @param resource resource to use
743
+ # @param snapshot
744
+ # @param [Hash] opts the optional parameters
745
+ # @return [ApiCallRc]
746
+ describe 'resource_snapshot_delete test' do
747
+ it 'should work' do
748
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
749
+ end
750
+ end
751
+
752
+ # unit tests for resource_snapshot_list
753
+ # list a specific snapshot
754
+ # List the given snapshot for a resource
755
+ # @param resource resource to use
756
+ # @param snapshot
757
+ # @param [Hash] opts the optional parameters
758
+ # @return [Snapshot]
759
+ describe 'resource_snapshot_list test' do
760
+ it 'should work' do
761
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
762
+ end
763
+ end
764
+
765
+ # unit tests for resource_snapshot_restore
766
+ # restore a snapshot
767
+ # Restore a snapshot to a new resource
768
+ # @param resource resource to use
769
+ # @param snapshot Snapshot name to use
770
+ # @param [Hash] opts the optional parameters
771
+ # @option opts [SnapshotRestore] :snapshot_restore
772
+ # @return [ApiCallRc]
773
+ describe 'resource_snapshot_restore test' do
774
+ it 'should work' do
775
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
776
+ end
777
+ end
778
+
779
+ # unit tests for resource_snapshot_rollback
780
+ # rollback a snapshot
781
+ # Rollback a resource to the snapshot state
782
+ # @param resource resource to use
783
+ # @param snapshot Snapshot name to use
784
+ # @param [Hash] opts the optional parameters
785
+ # @return [ApiCallRc]
786
+ describe 'resource_snapshot_rollback test' do
787
+ it 'should work' do
788
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
789
+ end
790
+ end
791
+
792
+ # unit tests for resource_snapshots_list
793
+ # list snapshots
794
+ # List snapshots for a resource
795
+ # @param resource resource to use
796
+ # @param [Hash] opts the optional parameters
797
+ # @return [Array<Snapshot>]
798
+ describe 'resource_snapshots_list test' do
799
+ it 'should work' do
800
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
801
+ end
802
+ end
803
+
804
+ # unit tests for resource_snapshots_restore_volume_definition
805
+ # restore a snapshot volume definition
806
+ # Restore a snapshot volume definition to a new resource
807
+ # @param resource resource to use
808
+ # @param snapshot Snapshot name to use
809
+ # @param [Hash] opts the optional parameters
810
+ # @option opts [SnapshotRestore] :snapshot_restore
811
+ # @return [ApiCallRc]
812
+ describe 'resource_snapshots_restore_volume_definition test' do
813
+ it 'should work' do
814
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
815
+ end
816
+ end
817
+
818
+ # unit tests for resource_toggle_diskful
819
+ # toggle a resource to a diskful resource
820
+ # toggle a resource to a diskful resource using the default storage pool
821
+ # @param resource resource to use
822
+ # @param node node to use
823
+ # @param [Hash] opts the optional parameters
824
+ # @return [ApiCallRc]
825
+ describe 'resource_toggle_diskful test' do
826
+ it 'should work' do
827
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
828
+ end
829
+ end
830
+
831
+ # unit tests for resource_toggle_diskful_storagepool
832
+ # toggle a resource to a diskful resource
833
+ # toggle a resource to a diskful resource
834
+ # @param resource resource to use
835
+ # @param node node to use
836
+ # @param storagepool
837
+ # @param [Hash] opts the optional parameters
838
+ # @return [ApiCallRc]
839
+ describe 'resource_toggle_diskful_storagepool test' do
840
+ it 'should work' do
841
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
842
+ end
843
+ end
844
+
845
+ # unit tests for resource_toggle_diskless
846
+ # toggle a resource to diskless
847
+ # toggle a resource to a diskless resource
848
+ # @param resource resource to use
849
+ # @param node node to use
850
+ # @param [Hash] opts the optional parameters
851
+ # @return [ApiCallRc]
852
+ describe 'resource_toggle_diskless test' do
853
+ it 'should work' do
854
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
855
+ end
856
+ end
857
+
858
+ # unit tests for resource_toggle_diskless_disklesspool
859
+ # toggle a resource to diskless resource
860
+ # toggle a resource to a diskless.
861
+ # @param resource resource to use
862
+ # @param node node to use
863
+ # @param disklesspool
864
+ # @param [Hash] opts the optional parameters
865
+ # @return [ApiCallRc]
866
+ describe 'resource_toggle_diskless_disklesspool test' do
867
+ it 'should work' do
868
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
869
+ end
870
+ end
871
+
872
+ # unit tests for resource_volume_list
873
+ # lists all volumes of a resources
874
+ # Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0
875
+ # @param resource resource to use
876
+ # @param node node to use
877
+ # @param [Hash] opts the optional parameters
878
+ # @option opts [Integer] :offset number of records to skip for pagination
879
+ # @option opts [Integer] :limit maximum number of records to return
880
+ # @return [Array<Volume>]
881
+ describe 'resource_volume_list test' do
882
+ it 'should work' do
883
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
884
+ end
885
+ end
886
+
887
+ # unit tests for stor_pool_dfn_modify
888
+ # modify a storage pool definition
889
+ # Sets or modifies properties Possible properties are: - &#x60;MaxOversubscriptionRatio&#x60; - range[&#x60;1-1000&#x60;]
890
+ # @param storagepool
891
+ # @param [Hash] opts the optional parameters
892
+ # @option opts [StoragePoolDefinitionModify] :storage_pool_definition_modify
893
+ # @return [ApiCallRc]
894
+ describe 'stor_pool_dfn_modify test' do
895
+ it 'should work' do
896
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
897
+ end
898
+ end
899
+
900
+ # unit tests for storage_pool_definition_delete
901
+ # delete a storage pool definition
902
+ # Delete a storage pool definition from Linstor
903
+ # @param storagepool
904
+ # @param [Hash] opts the optional parameters
905
+ # @return [ApiCallRc]
906
+ describe 'storage_pool_definition_delete test' do
907
+ it 'should work' do
908
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
909
+ end
910
+ end
911
+
912
+ # unit tests for storage_pool_dfn_add
913
+ # add a storage pool definition to Linstor
914
+ # Adds a storage pool definition to Linstor
915
+ # @param [Hash] opts the optional parameters
916
+ # @option opts [StoragePoolDefinition] :storage_pool_definition Storage pool definition to add
917
+ # @return [ApiCallRc]
918
+ describe 'storage_pool_dfn_add test' do
919
+ it 'should work' do
920
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
921
+ end
922
+ end
923
+
924
+ # unit tests for storage_pool_dfn_get
925
+ # Lists a specific storage pool definition
926
+ # Returns a specific storage pool definition
927
+ # @param storagepool
928
+ # @param [Hash] opts the optional parameters
929
+ # @return [StoragePoolDefinition]
930
+ describe 'storage_pool_dfn_get test' do
931
+ it 'should work' do
932
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
933
+ end
934
+ end
935
+
936
+ # unit tests for storage_pool_dfn_list
937
+ # Lists storage pool definitions
938
+ # Returns an array of all storage pool definitions
939
+ # @param [Hash] opts the optional parameters
940
+ # @option opts [Integer] :offset number of records to skip for pagination
941
+ # @option opts [Integer] :limit maximum number of records to return
942
+ # @return [Array<StoragePoolDefinition>]
943
+ describe 'storage_pool_dfn_list test' do
944
+ it 'should work' do
945
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
946
+ end
947
+ end
948
+
949
+ # unit tests for view_physica_storage
950
+ # show physical storage on nodes, to be used with LINSTOR
951
+ # Gives a grouped list of physical storage that can be turned into a LINSTOR storage-pool
952
+ # @param [Hash] opts the optional parameters
953
+ # @option opts [Integer] :offset number of records to skip for pagination
954
+ # @option opts [Integer] :limit maximum number of records to return
955
+ # @return [Array<PhysicalStorage>]
956
+ describe 'view_physica_storage test' do
957
+ it 'should work' do
958
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
959
+ end
960
+ end
961
+
962
+ # unit tests for view_resources
963
+ # query all resources with their volumes
964
+ # This REST-resource should be used if you want to get an overview of all resources with their volumes.
965
+ # @param [Hash] opts the optional parameters
966
+ # @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
967
+ # @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
968
+ # @option opts [Array<String>] :resources Filter only for the specified resources, if not specified no filtering.
969
+ # @option opts [Integer] :offset number of records to skip for pagination
970
+ # @option opts [Integer] :limit maximum number of records to return
971
+ # @return [Array<ResourceWithVolumes>]
972
+ describe 'view_resources test' do
973
+ it 'should work' do
974
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
975
+ end
976
+ end
977
+
978
+ # unit tests for view_storage_pools
979
+ # query all storage pools
980
+ # This REST-resource should be used if you want to get an overview of all storage pools.
981
+ # @param [Hash] opts the optional parameters
982
+ # @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
983
+ # @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
984
+ # @option opts [Integer] :offset number of records to skip for pagination
985
+ # @option opts [Integer] :limit maximum number of records to return
986
+ # @return [Array<StoragePool>]
987
+ describe 'view_storage_pools test' do
988
+ it 'should work' do
989
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
990
+ end
991
+ end
992
+
993
+ # unit tests for volume_definition_create
994
+ # add a volume-definition to a resource
995
+ # Adds a volume-definition. Required properties is only &#x60;size&#x60;, all other will be auto generated if not given.
996
+ # @param resource resource to use
997
+ # @param [Hash] opts the optional parameters
998
+ # @option opts [VolumeDefinitionCreate] :volume_definition_create
999
+ # @return [ApiCallRc]
1000
+ describe 'volume_definition_create test' do
1001
+ it 'should work' do
1002
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1003
+ end
1004
+ end
1005
+
1006
+ # unit tests for volume_definition_delete
1007
+ # delete a volume-definition
1008
+ # Delete a volume-definition
1009
+ # @param resource resource to use
1010
+ # @param volume_number
1011
+ # @param [Hash] opts the optional parameters
1012
+ # @return [ApiCallRc]
1013
+ describe 'volume_definition_delete test' do
1014
+ it 'should work' do
1015
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1016
+ end
1017
+ end
1018
+
1019
+ # unit tests for volume_definition_list
1020
+ # lists all volume-definitions
1021
+ # Lists all volume definitions. A single volume definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1/volume-definitions/0
1022
+ # @param resource resource to use
1023
+ # @param [Hash] opts the optional parameters
1024
+ # @option opts [Integer] :offset number of records to skip for pagination
1025
+ # @option opts [Integer] :limit maximum number of records to return
1026
+ # @return [Array<VolumeDefinition>]
1027
+ describe 'volume_definition_list test' do
1028
+ it 'should work' do
1029
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1030
+ end
1031
+ end
1032
+
1033
+ # unit tests for volume_definition_modify
1034
+ # modify a volume-definition
1035
+ # Sets or modifies properties Possible properties are: - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;StorPoolNameDrbdMeta&#x60; - regex[&#x60;^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;DrbdMetaType&#x60; - enum * external * internal - &#x60;OverrideVlmId&#x60; - regex[&#x60;.*&#x60;] Overwrites the generated &#39;&lt;resource-name&gt;_&lt;5 digit volume number&gt;&#39; volume name for migration purposes - &#x60;AllowLargerVolumeSize&#x60; - boolean_true_false Do not fail when the underlying volume is larger than expected - &#x60;FileSystem/Type&#x60; - enum File system type to use * ext4 * xfs - &#x60;FileSystem/MkfsParams&#x60; - string Additional parameters for the mkfs command - &#x60;StorDriver/LvcreateType&#x60; - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - &#x60;DrbdCurrentGi&#x60; - regex[&#x60;[a-fA-F0-9]{16}&#x60;] - &#x60;sys/fs/blkio_throttle_read&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - &#x60;sys/fs/blkio_throttle_write&#x60; - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - &#x60;Writecache/PoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name for writecache - &#x60;Writecache/Size&#x60; - regex[&#x60;^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$&#x60;] Size of the writecache in % (0-100) or KiB otherwise - &#x60;Writecache/Blocksize&#x60; - long 4096 is recommended; the maximum block size is the page size - &#x60;Writecache/Options/StartSector&#x60; - long offset from the start of cache device in 512-byte sectors - &#x60;Writecache/Options/HighWatermark&#x60; - long start writeback when the number of used blocks reach this watermark - &#x60;Writecache/Options/LowWatermark&#x60; - long stop writeback when the number of used blocks drops below this watermark - &#x60;Writecache/Options/WritebackJobs&#x60; - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - &#x60;Writecache/Options/AutocommitBlocks&#x60; - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - &#x60;Writecache/Options/AutocommitTime&#x60; - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - &#x60;Writecache/Options/Fua&#x60; - enum \&quot;On\&quot; results in \&quot;fua\&quot; as argument, whereas the value \&quot;Off\&quot; results in \&quot;nofua\&quot; argument * On * Off - &#x60;Writecache/Options/Additional&#x60; - string Additional arguments passed through - &#x60;DrbdOptions/Disk/read-balancing&#x60; - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - &#x60;DrbdOptions/Disk/on-io-error&#x60; - enum * pass_on * call-local-io-error * detach - &#x60;DrbdOptions/Disk/disk-drain&#x60; - boolean - &#x60;DrbdOptions/Disk/resync-after&#x60; - string - &#x60;DrbdOptions/Disk/disk-timeout&#x60; - range[&#x60;0-6000&#x60;] - &#x60;DrbdOptions/Disk/disable-write-same&#x60; - boolean - &#x60;DrbdOptions/Disk/rs-discard-granularity&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/Disk/disk-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/al-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Disk/al-updates&#x60; - boolean - &#x60;DrbdOptions/Disk/md-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/disk-barrier&#x60; - boolean - &#x60;DrbdOptions/Disk/discard-zeroes-if-aligned&#x60; - boolean
1036
+ # @param resource resource to use
1037
+ # @param volume_number
1038
+ # @param [Hash] opts the optional parameters
1039
+ # @option opts [VolumeDefinitionModify] :volume_definition_modify
1040
+ # @return [ApiCallRc]
1041
+ describe 'volume_definition_modify test' do
1042
+ it 'should work' do
1043
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1044
+ end
1045
+ end
1046
+
1047
+ # unit tests for volume_group_create
1048
+ # add a volume-group to a resource-group
1049
+ # Adds a volume-group.
1050
+ # @param resource_group resource group to use
1051
+ # @param [Hash] opts the optional parameters
1052
+ # @option opts [VolumeGroup] :volume_group
1053
+ # @return [ApiCallRc]
1054
+ describe 'volume_group_create test' do
1055
+ it 'should work' do
1056
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1057
+ end
1058
+ end
1059
+
1060
+ # unit tests for volume_group_delete
1061
+ # delete a volume-group
1062
+ # Delete a volume-group
1063
+ # @param resource_group resource group to use
1064
+ # @param volume_number
1065
+ # @param [Hash] opts the optional parameters
1066
+ # @return [ApiCallRc]
1067
+ describe 'volume_group_delete test' do
1068
+ it 'should work' do
1069
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1070
+ end
1071
+ end
1072
+
1073
+ # unit tests for volume_group_list
1074
+ # lists all volume-groups
1075
+ # Lists all volume groups. A single volume group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1/volume-groups/0
1076
+ # @param resource_group resource group to use
1077
+ # @param [Hash] opts the optional parameters
1078
+ # @option opts [Integer] :offset number of records to skip for pagination
1079
+ # @option opts [Integer] :limit maximum number of records to return
1080
+ # @return [Array<VolumeGroup>]
1081
+ describe 'volume_group_list test' do
1082
+ it 'should work' do
1083
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1084
+ end
1085
+ end
1086
+
1087
+ # unit tests for volume_group_modify
1088
+ # modify a resource-group
1089
+ # Sets or modifies properties Possible properties are: - &#x60;StorPoolName&#x60; - regex[&#x60;^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$&#x60;] Linstor storage pool name to use. - &#x60;OverrideVlmId&#x60; - regex[&#x60;.*&#x60;] Overwrites the generated &#39;&lt;resource-name&gt;_&lt;5 digit volume number&gt;&#39; volume name for migration purposes - &#x60;AllowLargerVolumeSize&#x60; - boolean_true_false Do not fail when the underlying volume is larger than expected - &#x60;FileSystem/Type&#x60; - enum File system type to use * ext4 * xfs - &#x60;FileSystem/MkfsParams&#x60; - string Additional parameters for the mkfs command - &#x60;StorDriver/LvcreateType&#x60; - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - &#x60;DrbdCurrentGi&#x60; - regex[&#x60;[a-fA-F0-9]{16}&#x60;] - &#x60;DrbdOptions/Disk/read-balancing&#x60; - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - &#x60;DrbdOptions/Disk/on-io-error&#x60; - enum * pass_on * call-local-io-error * detach - &#x60;DrbdOptions/Disk/disk-drain&#x60; - boolean - &#x60;DrbdOptions/Disk/resync-after&#x60; - string - &#x60;DrbdOptions/Disk/disk-timeout&#x60; - range[&#x60;0-6000&#x60;] - &#x60;DrbdOptions/Disk/disable-write-same&#x60; - boolean - &#x60;DrbdOptions/Disk/rs-discard-granularity&#x60; - range[&#x60;0-1048576&#x60;] - &#x60;DrbdOptions/Disk/disk-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/al-extents&#x60; - range[&#x60;67-65534&#x60;] - &#x60;DrbdOptions/Disk/al-updates&#x60; - boolean - &#x60;DrbdOptions/Disk/md-flushes&#x60; - boolean - &#x60;DrbdOptions/Disk/disk-barrier&#x60; - boolean - &#x60;DrbdOptions/Disk/discard-zeroes-if-aligned&#x60; - boolean
1090
+ # @param resource_group resource group to use
1091
+ # @param volume_number
1092
+ # @param [Hash] opts the optional parameters
1093
+ # @option opts [VolumeGroupModify] :volume_group_modify
1094
+ # @return [ApiCallRc]
1095
+ describe 'volume_group_modify test' do
1096
+ it 'should work' do
1097
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1098
+ end
1099
+ end
1100
+
1101
+ # unit tests for volume_modify
1102
+ # modify a volume
1103
+ # Sets or modifies properties Possible properties are: - &#x60;sys/fs/blkio_throttle_read&#x60; - number - &#x60;sys/fs/blkio_throttle_write&#x60; - number
1104
+ # @param resource resource to use
1105
+ # @param node node to use
1106
+ # @param volume_number
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @option opts [VolumeModify] :volume_modify
1109
+ # @return [ApiCallRc]
1110
+ describe 'volume_modify test' do
1111
+ it 'should work' do
1112
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1113
+ end
1114
+ end
1115
+
1116
+ end