ovirt-engine-sdk 4.0.0.alpha5 → 4.0.0.alpha7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (866) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/ext/{ovirtsdk → ovirtsdk4c}/extconf.rb +3 -2
  4. data/ext/{ovirtsdk → ovirtsdk4c}/ov_error.c +2 -1
  5. data/ext/{ovirtsdk → ovirtsdk4c}/ov_error.h +2 -1
  6. data/ext/{ovirtsdk → ovirtsdk4c}/ov_module.c +3 -4
  7. data/ext/{ovirtsdk → ovirtsdk4c}/ov_module.h +2 -1
  8. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_constants.c +2 -1
  9. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_constants.h +2 -1
  10. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_reader.c +2 -1
  11. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_reader.h +2 -1
  12. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_writer.c +4 -3
  13. data/ext/{ovirtsdk → ovirtsdk4c}/ov_xml_writer.h +2 -1
  14. data/ext/{ovirtsdk/ovirtsdk.c → ovirtsdk4c/ovirtsdk4c.c} +3 -2
  15. data/lib/{ovirt/sdk/v4.rb → ovirtsdk4.rb} +14 -11
  16. data/lib/ovirtsdk4/http.rb +328 -0
  17. data/lib/{ovirt/sdk/v4/types/boot_device.rb → ovirtsdk4/reader.rb} +8 -10
  18. data/lib/ovirtsdk4/readers.rb +17481 -0
  19. data/lib/ovirtsdk4/service.rb +96 -0
  20. data/lib/ovirtsdk4/services.rb +20094 -0
  21. data/lib/ovirtsdk4/type.rb +122 -0
  22. data/lib/ovirtsdk4/types.rb +18078 -0
  23. data/lib/{ovirt/sdk/v4 → ovirtsdk4}/version.rb +4 -7
  24. data/lib/{ovirt/sdk/v4/types/architecture.rb → ovirtsdk4/writer.rb} +9 -11
  25. data/lib/ovirtsdk4/writers.rb +6403 -0
  26. data/lib/ovirtsdk4/xml.rb +238 -0
  27. metadata +27 -858
  28. data/lib/ovirt/sdk/v4/connection.rb +0 -314
  29. data/lib/ovirt/sdk/v4/readers.rb +0 -740
  30. data/lib/ovirt/sdk/v4/readers/action_reader.rb +0 -56
  31. data/lib/ovirt/sdk/v4/readers/affinity_group_reader.rb +0 -114
  32. data/lib/ovirt/sdk/v4/readers/agent_configuration_reader.rb +0 -112
  33. data/lib/ovirt/sdk/v4/readers/agent_reader.rb +0 -145
  34. data/lib/ovirt/sdk/v4/readers/application_reader.rb +0 -106
  35. data/lib/ovirt/sdk/v4/readers/authorized_key_reader.rb +0 -111
  36. data/lib/ovirt/sdk/v4/readers/balance_reader.rb +0 -109
  37. data/lib/ovirt/sdk/v4/readers/bios_reader.rb +0 -86
  38. data/lib/ovirt/sdk/v4/readers/block_statistic_reader.rb +0 -86
  39. data/lib/ovirt/sdk/v4/readers/bonding_reader.rb +0 -89
  40. data/lib/ovirt/sdk/v4/readers/bookmark_reader.rb +0 -108
  41. data/lib/ovirt/sdk/v4/readers/boot_menu_reader.rb +0 -87
  42. data/lib/ovirt/sdk/v4/readers/boot_reader.rb +0 -85
  43. data/lib/ovirt/sdk/v4/readers/brick_profile_detail_reader.rb +0 -89
  44. data/lib/ovirt/sdk/v4/readers/cdrom_reader.rb +0 -118
  45. data/lib/ovirt/sdk/v4/readers/certificate_reader.rb +0 -118
  46. data/lib/ovirt/sdk/v4/readers/cloud_init_reader.rb +0 -107
  47. data/lib/ovirt/sdk/v4/readers/cluster_reader.rb +0 -183
  48. data/lib/ovirt/sdk/v4/readers/configuration_reader.rb +0 -93
  49. data/lib/ovirt/sdk/v4/readers/console_reader.rb +0 -87
  50. data/lib/ovirt/sdk/v4/readers/core_reader.rb +0 -91
  51. data/lib/ovirt/sdk/v4/readers/cpu_profile_reader.rb +0 -109
  52. data/lib/ovirt/sdk/v4/readers/cpu_reader.rb +0 -120
  53. data/lib/ovirt/sdk/v4/readers/cpu_topology_reader.rb +0 -95
  54. data/lib/ovirt/sdk/v4/readers/cpu_tune_reader.rb +0 -86
  55. data/lib/ovirt/sdk/v4/readers/custom_property_reader.rb +0 -98
  56. data/lib/ovirt/sdk/v4/readers/data_center_reader.rb +0 -129
  57. data/lib/ovirt/sdk/v4/readers/device_reader.rb +0 -115
  58. data/lib/ovirt/sdk/v4/readers/disk_profile_reader.rb +0 -109
  59. data/lib/ovirt/sdk/v4/readers/disk_reader.rb +0 -217
  60. data/lib/ovirt/sdk/v4/readers/disk_snapshot_reader.rb +0 -220
  61. data/lib/ovirt/sdk/v4/readers/display_reader.rb +0 -143
  62. data/lib/ovirt/sdk/v4/readers/dns_reader.rb +0 -89
  63. data/lib/ovirt/sdk/v4/readers/domain_reader.rb +0 -106
  64. data/lib/ovirt/sdk/v4/readers/entity_profile_detail_reader.rb +0 -86
  65. data/lib/ovirt/sdk/v4/readers/error_handling_reader.rb +0 -88
  66. data/lib/ovirt/sdk/v4/readers/event_reader.rb +0 -160
  67. data/lib/ovirt/sdk/v4/readers/external_compute_resource_reader.rb +0 -121
  68. data/lib/ovirt/sdk/v4/readers/external_discovered_host_reader.rb +0 -126
  69. data/lib/ovirt/sdk/v4/readers/external_host_group_reader.rb +0 -126
  70. data/lib/ovirt/sdk/v4/readers/external_host_provider_reader.rb +0 -130
  71. data/lib/ovirt/sdk/v4/readers/external_host_reader.rb +0 -111
  72. data/lib/ovirt/sdk/v4/readers/external_provider_reader.rb +0 -130
  73. data/lib/ovirt/sdk/v4/readers/fault_reader.rb +0 -58
  74. data/lib/ovirt/sdk/v4/readers/fencing_policy_reader.rb +0 -93
  75. data/lib/ovirt/sdk/v4/readers/file_reader.rb +0 -116
  76. data/lib/ovirt/sdk/v4/readers/filter_reader.rb +0 -110
  77. data/lib/ovirt/sdk/v4/readers/floppy_reader.rb +0 -118
  78. data/lib/ovirt/sdk/v4/readers/fop_statistic_reader.rb +0 -91
  79. data/lib/ovirt/sdk/v4/readers/gluster_brick_advanced_details_reader.rb +0 -144
  80. data/lib/ovirt/sdk/v4/readers/gluster_brick_memory_info_reader.rb +0 -86
  81. data/lib/ovirt/sdk/v4/readers/gluster_brick_reader.rb +0 -160
  82. data/lib/ovirt/sdk/v4/readers/gluster_client_reader.rb +0 -100
  83. data/lib/ovirt/sdk/v4/readers/gluster_hook_reader.rb +0 -146
  84. data/lib/ovirt/sdk/v4/readers/gluster_memory_pool_reader.rb +0 -136
  85. data/lib/ovirt/sdk/v4/readers/gluster_server_hook_reader.rb +0 -119
  86. data/lib/ovirt/sdk/v4/readers/gluster_volume_profile_details_reader.rb +0 -109
  87. data/lib/ovirt/sdk/v4/readers/gluster_volume_reader.rb +0 -138
  88. data/lib/ovirt/sdk/v4/readers/graphics_console_reader.rb +0 -130
  89. data/lib/ovirt/sdk/v4/readers/group_reader.rb +0 -119
  90. data/lib/ovirt/sdk/v4/readers/guest_operating_system_reader.rb +0 -109
  91. data/lib/ovirt/sdk/v4/readers/hardware_information_reader.rb +0 -115
  92. data/lib/ovirt/sdk/v4/readers/high_availability_reader.rb +0 -91
  93. data/lib/ovirt/sdk/v4/readers/hook_reader.rb +0 -116
  94. data/lib/ovirt/sdk/v4/readers/host_device_passthrough_reader.rb +0 -87
  95. data/lib/ovirt/sdk/v4/readers/host_device_reader.rb +0 -138
  96. data/lib/ovirt/sdk/v4/readers/host_nic_reader.rb +0 -176
  97. data/lib/ovirt/sdk/v4/readers/host_nic_virtual_functions_configuration_reader.rb +0 -95
  98. data/lib/ovirt/sdk/v4/readers/host_reader.rb +0 -236
  99. data/lib/ovirt/sdk/v4/readers/host_storage_reader.rb +0 -178
  100. data/lib/ovirt/sdk/v4/readers/hosted_engine_reader.rb +0 -103
  101. data/lib/ovirt/sdk/v4/readers/icon_reader.rb +0 -113
  102. data/lib/ovirt/sdk/v4/readers/identified_reader.rb +0 -103
  103. data/lib/ovirt/sdk/v4/readers/image_reader.rb +0 -106
  104. data/lib/ovirt/sdk/v4/readers/initialization_reader.rb +0 -180
  105. data/lib/ovirt/sdk/v4/readers/instance_type_reader.rb +0 -237
  106. data/lib/ovirt/sdk/v4/readers/io_reader.rb +0 -87
  107. data/lib/ovirt/sdk/v4/readers/ip_address_assignment_reader.rb +0 -91
  108. data/lib/ovirt/sdk/v4/readers/ip_reader.rb +0 -103
  109. data/lib/ovirt/sdk/v4/readers/iscsi_bond_reader.rb +0 -112
  110. data/lib/ovirt/sdk/v4/readers/iscsi_details_reader.rb +0 -164
  111. data/lib/ovirt/sdk/v4/readers/job_reader.rb +0 -129
  112. data/lib/ovirt/sdk/v4/readers/katello_erratum_reader.rb +0 -141
  113. data/lib/ovirt/sdk/v4/readers/kernel_reader.rb +0 -86
  114. data/lib/ovirt/sdk/v4/readers/ksm_reader.rb +0 -91
  115. data/lib/ovirt/sdk/v4/readers/label_reader.rb +0 -109
  116. data/lib/ovirt/sdk/v4/readers/logical_unit_reader.rb +0 -164
  117. data/lib/ovirt/sdk/v4/readers/mac_pool_reader.rb +0 -114
  118. data/lib/ovirt/sdk/v4/readers/mac_reader.rb +0 -88
  119. data/lib/ovirt/sdk/v4/readers/memory_over_commit_reader.rb +0 -87
  120. data/lib/ovirt/sdk/v4/readers/memory_policy_reader.rb +0 -97
  121. data/lib/ovirt/sdk/v4/readers/method_reader.rb +0 -88
  122. data/lib/ovirt/sdk/v4/readers/migration_options_reader.rb +0 -93
  123. data/lib/ovirt/sdk/v4/readers/network_attachment_reader.rb +0 -128
  124. data/lib/ovirt/sdk/v4/readers/network_configuration_reader.rb +0 -89
  125. data/lib/ovirt/sdk/v4/readers/network_reader.rb +0 -146
  126. data/lib/ovirt/sdk/v4/readers/nfs_profile_detail_reader.rb +0 -91
  127. data/lib/ovirt/sdk/v4/readers/nic_configuration_reader.rb +0 -100
  128. data/lib/ovirt/sdk/v4/readers/nic_reader.rb +0 -152
  129. data/lib/ovirt/sdk/v4/readers/numa_node_pin_reader.rb +0 -94
  130. data/lib/ovirt/sdk/v4/readers/numa_node_reader.rb +0 -125
  131. data/lib/ovirt/sdk/v4/readers/open_stack_image_provider_reader.rb +0 -135
  132. data/lib/ovirt/sdk/v4/readers/open_stack_image_reader.rb +0 -106
  133. data/lib/ovirt/sdk/v4/readers/open_stack_network_provider_reader.rb +0 -143
  134. data/lib/ovirt/sdk/v4/readers/open_stack_network_reader.rb +0 -106
  135. data/lib/ovirt/sdk/v4/readers/open_stack_provider_reader.rb +0 -135
  136. data/lib/ovirt/sdk/v4/readers/open_stack_subnet_reader.rb +0 -123
  137. data/lib/ovirt/sdk/v4/readers/open_stack_volume_provider_reader.rb +0 -138
  138. data/lib/ovirt/sdk/v4/readers/open_stack_volume_type_reader.rb +0 -109
  139. data/lib/ovirt/sdk/v4/readers/openstack_volume_authentication_key_reader.rb +0 -125
  140. data/lib/ovirt/sdk/v4/readers/operating_system_info_reader.rb +0 -109
  141. data/lib/ovirt/sdk/v4/readers/operating_system_reader.rb +0 -109
  142. data/lib/ovirt/sdk/v4/readers/option_reader.rb +0 -98
  143. data/lib/ovirt/sdk/v4/readers/package_reader.rb +0 -88
  144. data/lib/ovirt/sdk/v4/readers/payload_reader.rb +0 -96
  145. data/lib/ovirt/sdk/v4/readers/permission_reader.rb +0 -136
  146. data/lib/ovirt/sdk/v4/readers/permit_reader.rb +0 -110
  147. data/lib/ovirt/sdk/v4/readers/pm_proxy_reader.rb +0 -88
  148. data/lib/ovirt/sdk/v4/readers/port_mirroring_reader.rb +0 -78
  149. data/lib/ovirt/sdk/v4/readers/power_management_reader.rb +0 -127
  150. data/lib/ovirt/sdk/v4/readers/product_reader.rb +0 -103
  151. data/lib/ovirt/sdk/v4/readers/profile_detail_reader.rb +0 -101
  152. data/lib/ovirt/sdk/v4/readers/property_reader.rb +0 -93
  153. data/lib/ovirt/sdk/v4/readers/proxy_ticket_reader.rb +0 -88
  154. data/lib/ovirt/sdk/v4/readers/qos_reader.rb +0 -175
  155. data/lib/ovirt/sdk/v4/readers/quota_cluster_limit_reader.rb +0 -125
  156. data/lib/ovirt/sdk/v4/readers/quota_reader.rb +0 -131
  157. data/lib/ovirt/sdk/v4/readers/quota_storage_limit_reader.rb +0 -117
  158. data/lib/ovirt/sdk/v4/readers/range_reader.rb +0 -93
  159. data/lib/ovirt/sdk/v4/readers/rate_reader.rb +0 -91
  160. data/lib/ovirt/sdk/v4/readers/reader.rb +0 -29
  161. data/lib/ovirt/sdk/v4/readers/reported_configuration_reader.rb +0 -102
  162. data/lib/ovirt/sdk/v4/readers/reported_device_reader.rb +0 -117
  163. data/lib/ovirt/sdk/v4/readers/rng_device_reader.rb +0 -91
  164. data/lib/ovirt/sdk/v4/readers/role_reader.rb +0 -117
  165. data/lib/ovirt/sdk/v4/readers/scheduling_policy_reader.rb +0 -114
  166. data/lib/ovirt/sdk/v4/readers/scheduling_policy_unit_reader.rb +0 -119
  167. data/lib/ovirt/sdk/v4/readers/se_linux_reader.rb +0 -88
  168. data/lib/ovirt/sdk/v4/readers/serial_number_reader.rb +0 -93
  169. data/lib/ovirt/sdk/v4/readers/session_reader.rb +0 -121
  170. data/lib/ovirt/sdk/v4/readers/skip_if_connectivity_broken_reader.rb +0 -91
  171. data/lib/ovirt/sdk/v4/readers/skip_if_sd_active_reader.rb +0 -87
  172. data/lib/ovirt/sdk/v4/readers/snapshot_reader.rb +0 -350
  173. data/lib/ovirt/sdk/v4/readers/spm_reader.rb +0 -90
  174. data/lib/ovirt/sdk/v4/readers/ssh_public_key_reader.rb +0 -111
  175. data/lib/ovirt/sdk/v4/readers/ssh_reader.rb +0 -120
  176. data/lib/ovirt/sdk/v4/readers/sso_reader.rb +0 -86
  177. data/lib/ovirt/sdk/v4/readers/statistic_reader.rb +0 -148
  178. data/lib/ovirt/sdk/v4/readers/status_reader.rb +0 -93
  179. data/lib/ovirt/sdk/v4/readers/step_reader.rb +0 -138
  180. data/lib/ovirt/sdk/v4/readers/storage_connection_extension_reader.rb +0 -121
  181. data/lib/ovirt/sdk/v4/readers/storage_connection_reader.rb +0 -168
  182. data/lib/ovirt/sdk/v4/readers/storage_domain_reader.rb +0 -163
  183. data/lib/ovirt/sdk/v4/readers/tag_reader.rb +0 -121
  184. data/lib/ovirt/sdk/v4/readers/template_reader.rb +0 -237
  185. data/lib/ovirt/sdk/v4/readers/template_version_reader.rb +0 -95
  186. data/lib/ovirt/sdk/v4/readers/ticket_reader.rb +0 -92
  187. data/lib/ovirt/sdk/v4/readers/time_zone_reader.rb +0 -93
  188. data/lib/ovirt/sdk/v4/readers/transparent_huge_pages_reader.rb +0 -87
  189. data/lib/ovirt/sdk/v4/readers/unmanaged_network_reader.rb +0 -109
  190. data/lib/ovirt/sdk/v4/readers/usb_reader.rb +0 -92
  191. data/lib/ovirt/sdk/v4/readers/user_reader.rb +0 -156
  192. data/lib/ovirt/sdk/v4/readers/value_reader.rb +0 -92
  193. data/lib/ovirt/sdk/v4/readers/vcpu_pin_reader.rb +0 -92
  194. data/lib/ovirt/sdk/v4/readers/vendor_reader.rb +0 -103
  195. data/lib/ovirt/sdk/v4/readers/version_reader.rb +0 -124
  196. data/lib/ovirt/sdk/v4/readers/virtio_scsi_reader.rb +0 -87
  197. data/lib/ovirt/sdk/v4/readers/virtual_numa_node_reader.rb +0 -131
  198. data/lib/ovirt/sdk/v4/readers/vlan_reader.rb +0 -87
  199. data/lib/ovirt/sdk/v4/readers/vm_base_reader.rb +0 -231
  200. data/lib/ovirt/sdk/v4/readers/vm_placement_policy_reader.rb +0 -91
  201. data/lib/ovirt/sdk/v4/readers/vm_pool_reader.rb +0 -143
  202. data/lib/ovirt/sdk/v4/readers/vm_reader.rb +0 -329
  203. data/lib/ovirt/sdk/v4/readers/vm_summary_reader.rb +0 -95
  204. data/lib/ovirt/sdk/v4/readers/vnic_pass_through_reader.rb +0 -88
  205. data/lib/ovirt/sdk/v4/readers/vnic_profile_reader.rb +0 -119
  206. data/lib/ovirt/sdk/v4/readers/volume_group_reader.rb +0 -96
  207. data/lib/ovirt/sdk/v4/readers/watchdog_reader.rb +0 -125
  208. data/lib/ovirt/sdk/v4/readers/weight_reader.rb +0 -113
  209. data/lib/ovirt/sdk/v4/services.rb +0 -918
  210. data/lib/ovirt/sdk/v4/services/affinity_group_service.rb +0 -120
  211. data/lib/ovirt/sdk/v4/services/affinity_group_vm_service.rb +0 -59
  212. data/lib/ovirt/sdk/v4/services/affinity_group_vms_service.rb +0 -106
  213. data/lib/ovirt/sdk/v4/services/affinity_groups_service.rb +0 -106
  214. data/lib/ovirt/sdk/v4/services/assigned_cpu_profile_service.rb +0 -79
  215. data/lib/ovirt/sdk/v4/services/assigned_cpu_profiles_service.rb +0 -106
  216. data/lib/ovirt/sdk/v4/services/assigned_disk_profile_service.rb +0 -79
  217. data/lib/ovirt/sdk/v4/services/assigned_disk_profiles_service.rb +0 -106
  218. data/lib/ovirt/sdk/v4/services/assigned_network_service.rb +0 -110
  219. data/lib/ovirt/sdk/v4/services/assigned_networks_service.rb +0 -106
  220. data/lib/ovirt/sdk/v4/services/assigned_permissions_service.rb +0 -101
  221. data/lib/ovirt/sdk/v4/services/assigned_roles_service.rb +0 -76
  222. data/lib/ovirt/sdk/v4/services/assigned_tag_service.rb +0 -79
  223. data/lib/ovirt/sdk/v4/services/assigned_tags_service.rb +0 -106
  224. data/lib/ovirt/sdk/v4/services/assigned_vnic_profile_service.rb +0 -89
  225. data/lib/ovirt/sdk/v4/services/assigned_vnic_profiles_service.rb +0 -106
  226. data/lib/ovirt/sdk/v4/services/attached_storage_domain_service.rb +0 -137
  227. data/lib/ovirt/sdk/v4/services/attached_storage_domains_service.rb +0 -106
  228. data/lib/ovirt/sdk/v4/services/balance_service.rb +0 -85
  229. data/lib/ovirt/sdk/v4/services/balances_service.rb +0 -112
  230. data/lib/ovirt/sdk/v4/services/bookmark_service.rb +0 -110
  231. data/lib/ovirt/sdk/v4/services/bookmarks_service.rb +0 -106
  232. data/lib/ovirt/sdk/v4/services/cluster_service.rb +0 -200
  233. data/lib/ovirt/sdk/v4/services/clusters_service.rb +0 -123
  234. data/lib/ovirt/sdk/v4/services/copyable_service.rb +0 -67
  235. data/lib/ovirt/sdk/v4/services/cpu_profile_service.rb +0 -120
  236. data/lib/ovirt/sdk/v4/services/cpu_profiles_service.rb +0 -106
  237. data/lib/ovirt/sdk/v4/services/data_center_service.rb +0 -186
  238. data/lib/ovirt/sdk/v4/services/data_centers_service.rb +0 -123
  239. data/lib/ovirt/sdk/v4/services/disk_profile_service.rb +0 -120
  240. data/lib/ovirt/sdk/v4/services/disk_profiles_service.rb +0 -106
  241. data/lib/ovirt/sdk/v4/services/disk_service.rb +0 -185
  242. data/lib/ovirt/sdk/v4/services/disk_snapshot_service.rb +0 -79
  243. data/lib/ovirt/sdk/v4/services/disk_snapshots_service.rb +0 -76
  244. data/lib/ovirt/sdk/v4/services/disks_service.rb +0 -117
  245. data/lib/ovirt/sdk/v4/services/domain_group_service.rb +0 -63
  246. data/lib/ovirt/sdk/v4/services/domain_groups_service.rb +0 -87
  247. data/lib/ovirt/sdk/v4/services/domain_service.rb +0 -83
  248. data/lib/ovirt/sdk/v4/services/domain_user_service.rb +0 -63
  249. data/lib/ovirt/sdk/v4/services/domain_users_service.rb +0 -87
  250. data/lib/ovirt/sdk/v4/services/domains_service.rb +0 -76
  251. data/lib/ovirt/sdk/v4/services/engine_katello_errata_service.rb +0 -76
  252. data/lib/ovirt/sdk/v4/services/event_service.rb +0 -79
  253. data/lib/ovirt/sdk/v4/services/events_service.rb +0 -141
  254. data/lib/ovirt/sdk/v4/services/external_compute_resource_service.rb +0 -63
  255. data/lib/ovirt/sdk/v4/services/external_compute_resources_service.rb +0 -76
  256. data/lib/ovirt/sdk/v4/services/external_discovered_host_service.rb +0 -63
  257. data/lib/ovirt/sdk/v4/services/external_discovered_hosts_service.rb +0 -76
  258. data/lib/ovirt/sdk/v4/services/external_host_group_service.rb +0 -63
  259. data/lib/ovirt/sdk/v4/services/external_host_groups_service.rb +0 -76
  260. data/lib/ovirt/sdk/v4/services/external_host_provider_service.rb +0 -208
  261. data/lib/ovirt/sdk/v4/services/external_host_providers_service.rb +0 -106
  262. data/lib/ovirt/sdk/v4/services/external_host_service.rb +0 -63
  263. data/lib/ovirt/sdk/v4/services/external_hosts_service.rb +0 -76
  264. data/lib/ovirt/sdk/v4/services/external_provider_certificate_service.rb +0 -63
  265. data/lib/ovirt/sdk/v4/services/external_provider_certificates_service.rb +0 -76
  266. data/lib/ovirt/sdk/v4/services/external_provider_service.rb +0 -101
  267. data/lib/ovirt/sdk/v4/services/fence_agent_service.rb +0 -110
  268. data/lib/ovirt/sdk/v4/services/fence_agents_service.rb +0 -106
  269. data/lib/ovirt/sdk/v4/services/file_service.rb +0 -63
  270. data/lib/ovirt/sdk/v4/services/files_service.rb +0 -87
  271. data/lib/ovirt/sdk/v4/services/filter_service.rb +0 -85
  272. data/lib/ovirt/sdk/v4/services/filters_service.rb +0 -112
  273. data/lib/ovirt/sdk/v4/services/gluster_brick_service.rb +0 -115
  274. data/lib/ovirt/sdk/v4/services/gluster_bricks_service.rb +0 -210
  275. data/lib/ovirt/sdk/v4/services/gluster_hook_service.rb +0 -155
  276. data/lib/ovirt/sdk/v4/services/gluster_hooks_service.rb +0 -76
  277. data/lib/ovirt/sdk/v4/services/gluster_volume_service.rb +0 -351
  278. data/lib/ovirt/sdk/v4/services/gluster_volumes_service.rb +0 -117
  279. data/lib/ovirt/sdk/v4/services/graphics_console_service.rb +0 -79
  280. data/lib/ovirt/sdk/v4/services/graphics_consoles_service.rb +0 -106
  281. data/lib/ovirt/sdk/v4/services/group_service.rb +0 -109
  282. data/lib/ovirt/sdk/v4/services/groups_service.rb +0 -117
  283. data/lib/ovirt/sdk/v4/services/host_device_service.rb +0 -63
  284. data/lib/ovirt/sdk/v4/services/host_devices_service.rb +0 -76
  285. data/lib/ovirt/sdk/v4/services/host_hook_service.rb +0 -63
  286. data/lib/ovirt/sdk/v4/services/host_hooks_service.rb +0 -76
  287. data/lib/ovirt/sdk/v4/services/host_nic_service.rb +0 -236
  288. data/lib/ovirt/sdk/v4/services/host_nics_service.rb +0 -138
  289. data/lib/ovirt/sdk/v4/services/host_numa_node_service.rb +0 -73
  290. data/lib/ovirt/sdk/v4/services/host_numa_nodes_service.rb +0 -76
  291. data/lib/ovirt/sdk/v4/services/host_service.rb +0 -620
  292. data/lib/ovirt/sdk/v4/services/host_storage_service.rb +0 -71
  293. data/lib/ovirt/sdk/v4/services/hosts_service.rb +0 -123
  294. data/lib/ovirt/sdk/v4/services/icon_service.rb +0 -63
  295. data/lib/ovirt/sdk/v4/services/icons_service.rb +0 -76
  296. data/lib/ovirt/sdk/v4/services/image_service.rb +0 -93
  297. data/lib/ovirt/sdk/v4/services/images_service.rb +0 -76
  298. data/lib/ovirt/sdk/v4/services/instance_type_nic_service.rb +0 -110
  299. data/lib/ovirt/sdk/v4/services/instance_type_nics_service.rb +0 -106
  300. data/lib/ovirt/sdk/v4/services/instance_type_service.rb +0 -140
  301. data/lib/ovirt/sdk/v4/services/instance_type_watchdog_service.rb +0 -110
  302. data/lib/ovirt/sdk/v4/services/instance_type_watchdogs_service.rb +0 -106
  303. data/lib/ovirt/sdk/v4/services/instance_types_service.rb +0 -106
  304. data/lib/ovirt/sdk/v4/services/iscsi_bond_service.rb +0 -130
  305. data/lib/ovirt/sdk/v4/services/iscsi_bonds_service.rb +0 -106
  306. data/lib/ovirt/sdk/v4/services/job_service.rb +0 -123
  307. data/lib/ovirt/sdk/v4/services/jobs_service.rb +0 -106
  308. data/lib/ovirt/sdk/v4/services/katello_errata_service.rb +0 -76
  309. data/lib/ovirt/sdk/v4/services/katello_erratum_service.rb +0 -63
  310. data/lib/ovirt/sdk/v4/services/label_service.rb +0 -79
  311. data/lib/ovirt/sdk/v4/services/labels_service.rb +0 -106
  312. data/lib/ovirt/sdk/v4/services/mac_pool_service.rb +0 -110
  313. data/lib/ovirt/sdk/v4/services/mac_pools_service.rb +0 -106
  314. data/lib/ovirt/sdk/v4/services/measurable_service.rb +0 -53
  315. data/lib/ovirt/sdk/v4/services/moveable_service.rb +0 -67
  316. data/lib/ovirt/sdk/v4/services/network_attachment_service.rb +0 -110
  317. data/lib/ovirt/sdk/v4/services/network_attachments_service.rb +0 -106
  318. data/lib/ovirt/sdk/v4/services/network_service.rb +0 -140
  319. data/lib/ovirt/sdk/v4/services/networks_service.rb +0 -117
  320. data/lib/ovirt/sdk/v4/services/openstack_image_provider_service.rb +0 -178
  321. data/lib/ovirt/sdk/v4/services/openstack_image_providers_service.rb +0 -106
  322. data/lib/ovirt/sdk/v4/services/openstack_image_service.rb +0 -95
  323. data/lib/ovirt/sdk/v4/services/openstack_images_service.rb +0 -76
  324. data/lib/ovirt/sdk/v4/services/openstack_network_provider_service.rb +0 -178
  325. data/lib/ovirt/sdk/v4/services/openstack_network_providers_service.rb +0 -106
  326. data/lib/ovirt/sdk/v4/services/openstack_network_service.rb +0 -73
  327. data/lib/ovirt/sdk/v4/services/openstack_networks_service.rb +0 -76
  328. data/lib/ovirt/sdk/v4/services/openstack_subnet_service.rb +0 -79
  329. data/lib/ovirt/sdk/v4/services/openstack_subnets_service.rb +0 -106
  330. data/lib/ovirt/sdk/v4/services/openstack_volume_authentication_key_service.rb +0 -110
  331. data/lib/ovirt/sdk/v4/services/openstack_volume_authentication_keys_service.rb +0 -106
  332. data/lib/ovirt/sdk/v4/services/openstack_volume_provider_service.rb +0 -188
  333. data/lib/ovirt/sdk/v4/services/openstack_volume_providers_service.rb +0 -106
  334. data/lib/ovirt/sdk/v4/services/openstack_volume_type_service.rb +0 -63
  335. data/lib/ovirt/sdk/v4/services/openstack_volume_types_service.rb +0 -76
  336. data/lib/ovirt/sdk/v4/services/operating_system_service.rb +0 -63
  337. data/lib/ovirt/sdk/v4/services/operating_systems_service.rb +0 -76
  338. data/lib/ovirt/sdk/v4/services/permission_service.rb +0 -79
  339. data/lib/ovirt/sdk/v4/services/permit_service.rb +0 -79
  340. data/lib/ovirt/sdk/v4/services/permits_service.rb +0 -106
  341. data/lib/ovirt/sdk/v4/services/qos_service.rb +0 -110
  342. data/lib/ovirt/sdk/v4/services/qoss_service.rb +0 -106
  343. data/lib/ovirt/sdk/v4/services/quota_cluster_limit_service.rb +0 -79
  344. data/lib/ovirt/sdk/v4/services/quota_cluster_limits_service.rb +0 -106
  345. data/lib/ovirt/sdk/v4/services/quota_service.rb +0 -140
  346. data/lib/ovirt/sdk/v4/services/quota_storage_limit_service.rb +0 -79
  347. data/lib/ovirt/sdk/v4/services/quota_storage_limits_service.rb +0 -106
  348. data/lib/ovirt/sdk/v4/services/quotas_service.rb +0 -106
  349. data/lib/ovirt/sdk/v4/services/role_service.rb +0 -120
  350. data/lib/ovirt/sdk/v4/services/roles_service.rb +0 -106
  351. data/lib/ovirt/sdk/v4/services/scheduling_policies_service.rb +0 -112
  352. data/lib/ovirt/sdk/v4/services/scheduling_policy_service.rb +0 -146
  353. data/lib/ovirt/sdk/v4/services/scheduling_policy_unit_service.rb +0 -85
  354. data/lib/ovirt/sdk/v4/services/scheduling_policy_units_service.rb +0 -82
  355. data/lib/ovirt/sdk/v4/services/service.rb +0 -99
  356. data/lib/ovirt/sdk/v4/services/snapshot_cdrom_service.rb +0 -63
  357. data/lib/ovirt/sdk/v4/services/snapshot_cdroms_service.rb +0 -76
  358. data/lib/ovirt/sdk/v4/services/snapshot_disk_service.rb +0 -63
  359. data/lib/ovirt/sdk/v4/services/snapshot_disks_service.rb +0 -76
  360. data/lib/ovirt/sdk/v4/services/snapshot_nic_service.rb +0 -63
  361. data/lib/ovirt/sdk/v4/services/snapshot_nics_service.rb +0 -76
  362. data/lib/ovirt/sdk/v4/services/snapshot_service.rb +0 -137
  363. data/lib/ovirt/sdk/v4/services/snapshots_service.rb +0 -106
  364. data/lib/ovirt/sdk/v4/services/ssh_public_key_service.rb +0 -110
  365. data/lib/ovirt/sdk/v4/services/ssh_public_keys_service.rb +0 -106
  366. data/lib/ovirt/sdk/v4/services/statistic_service.rb +0 -68
  367. data/lib/ovirt/sdk/v4/services/statistics_service.rb +0 -76
  368. data/lib/ovirt/sdk/v4/services/step_service.rb +0 -101
  369. data/lib/ovirt/sdk/v4/services/steps_service.rb +0 -106
  370. data/lib/ovirt/sdk/v4/services/storage_domain_content_disk_service.rb +0 -69
  371. data/lib/ovirt/sdk/v4/services/storage_domain_content_disks_service.rb +0 -87
  372. data/lib/ovirt/sdk/v4/services/storage_domain_server_connection_service.rb +0 -79
  373. data/lib/ovirt/sdk/v4/services/storage_domain_server_connections_service.rb +0 -106
  374. data/lib/ovirt/sdk/v4/services/storage_domain_service.rb +0 -258
  375. data/lib/ovirt/sdk/v4/services/storage_domain_template_service.rb +0 -157
  376. data/lib/ovirt/sdk/v4/services/storage_domain_templates_service.rb +0 -76
  377. data/lib/ovirt/sdk/v4/services/storage_domain_vm_service.rb +0 -151
  378. data/lib/ovirt/sdk/v4/services/storage_domain_vms_service.rb +0 -76
  379. data/lib/ovirt/sdk/v4/services/storage_domains_service.rb +0 -123
  380. data/lib/ovirt/sdk/v4/services/storage_server_connection_extension_service.rb +0 -110
  381. data/lib/ovirt/sdk/v4/services/storage_server_connection_extensions_service.rb +0 -106
  382. data/lib/ovirt/sdk/v4/services/storage_server_connection_service.rb +0 -110
  383. data/lib/ovirt/sdk/v4/services/storage_server_connections_service.rb +0 -106
  384. data/lib/ovirt/sdk/v4/services/storage_service.rb +0 -63
  385. data/lib/ovirt/sdk/v4/services/system_permissions_service.rb +0 -101
  386. data/lib/ovirt/sdk/v4/services/system_service.rb +0 -397
  387. data/lib/ovirt/sdk/v4/services/tag_service.rb +0 -110
  388. data/lib/ovirt/sdk/v4/services/tags_service.rb +0 -106
  389. data/lib/ovirt/sdk/v4/services/template_cdrom_service.rb +0 -63
  390. data/lib/ovirt/sdk/v4/services/template_cdroms_service.rb +0 -76
  391. data/lib/ovirt/sdk/v4/services/template_disk_service.rb +0 -131
  392. data/lib/ovirt/sdk/v4/services/template_disks_service.rb +0 -76
  393. data/lib/ovirt/sdk/v4/services/template_nic_service.rb +0 -110
  394. data/lib/ovirt/sdk/v4/services/template_nics_service.rb +0 -106
  395. data/lib/ovirt/sdk/v4/services/template_service.rb +0 -212
  396. data/lib/ovirt/sdk/v4/services/template_watchdog_service.rb +0 -110
  397. data/lib/ovirt/sdk/v4/services/template_watchdogs_service.rb +0 -106
  398. data/lib/ovirt/sdk/v4/services/templates_service.rb +0 -123
  399. data/lib/ovirt/sdk/v4/services/unmanaged_network_service.rb +0 -79
  400. data/lib/ovirt/sdk/v4/services/unmanaged_networks_service.rb +0 -76
  401. data/lib/ovirt/sdk/v4/services/user_service.rb +0 -119
  402. data/lib/ovirt/sdk/v4/services/users_service.rb +0 -117
  403. data/lib/ovirt/sdk/v4/services/virtual_function_allowed_network_service.rb +0 -79
  404. data/lib/ovirt/sdk/v4/services/virtual_function_allowed_networks_service.rb +0 -106
  405. data/lib/ovirt/sdk/v4/services/vm_application_service.rb +0 -69
  406. data/lib/ovirt/sdk/v4/services/vm_applications_service.rb +0 -82
  407. data/lib/ovirt/sdk/v4/services/vm_cdrom_service.rb +0 -110
  408. data/lib/ovirt/sdk/v4/services/vm_cdroms_service.rb +0 -106
  409. data/lib/ovirt/sdk/v4/services/vm_disk_service.rb +0 -230
  410. data/lib/ovirt/sdk/v4/services/vm_disks_service.rb +0 -106
  411. data/lib/ovirt/sdk/v4/services/vm_graphics_console_service.rb +0 -103
  412. data/lib/ovirt/sdk/v4/services/vm_host_device_service.rb +0 -79
  413. data/lib/ovirt/sdk/v4/services/vm_host_devices_service.rb +0 -106
  414. data/lib/ovirt/sdk/v4/services/vm_nic_service.rb +0 -178
  415. data/lib/ovirt/sdk/v4/services/vm_nics_service.rb +0 -106
  416. data/lib/ovirt/sdk/v4/services/vm_numa_node_service.rb +0 -110
  417. data/lib/ovirt/sdk/v4/services/vm_numa_nodes_service.rb +0 -106
  418. data/lib/ovirt/sdk/v4/services/vm_pool_service.rb +0 -150
  419. data/lib/ovirt/sdk/v4/services/vm_pools_service.rb +0 -123
  420. data/lib/ovirt/sdk/v4/services/vm_reported_device_service.rb +0 -63
  421. data/lib/ovirt/sdk/v4/services/vm_reported_devices_service.rb +0 -76
  422. data/lib/ovirt/sdk/v4/services/vm_service.rb +0 -790
  423. data/lib/ovirt/sdk/v4/services/vm_session_service.rb +0 -63
  424. data/lib/ovirt/sdk/v4/services/vm_sessions_service.rb +0 -76
  425. data/lib/ovirt/sdk/v4/services/vm_watchdog_service.rb +0 -110
  426. data/lib/ovirt/sdk/v4/services/vm_watchdogs_service.rb +0 -106
  427. data/lib/ovirt/sdk/v4/services/vms_service.rb +0 -118
  428. data/lib/ovirt/sdk/v4/services/vnic_profile_service.rb +0 -120
  429. data/lib/ovirt/sdk/v4/services/vnic_profiles_service.rb +0 -106
  430. data/lib/ovirt/sdk/v4/services/weight_service.rb +0 -85
  431. data/lib/ovirt/sdk/v4/services/weights_service.rb +0 -112
  432. data/lib/ovirt/sdk/v4/types.rb +0 -816
  433. data/lib/ovirt/sdk/v4/types/access_protocol.rb +0 -28
  434. data/lib/ovirt/sdk/v4/types/action.rb +0 -33
  435. data/lib/ovirt/sdk/v4/types/affinity_group.rb +0 -83
  436. data/lib/ovirt/sdk/v4/types/agent.rb +0 -196
  437. data/lib/ovirt/sdk/v4/types/agent_configuration.rb +0 -121
  438. data/lib/ovirt/sdk/v4/types/application.rb +0 -53
  439. data/lib/ovirt/sdk/v4/types/authorized_key.rb +0 -68
  440. data/lib/ovirt/sdk/v4/types/auto_numa_status.rb +0 -28
  441. data/lib/ovirt/sdk/v4/types/balance.rb +0 -75
  442. data/lib/ovirt/sdk/v4/types/bios.rb +0 -53
  443. data/lib/ovirt/sdk/v4/types/block_statistic.rb +0 -54
  444. data/lib/ovirt/sdk/v4/types/bonding.rb +0 -77
  445. data/lib/ovirt/sdk/v4/types/bookmark.rb +0 -46
  446. data/lib/ovirt/sdk/v4/types/boot.rb +0 -46
  447. data/lib/ovirt/sdk/v4/types/boot_menu.rb +0 -46
  448. data/lib/ovirt/sdk/v4/types/boot_protocol.rb +0 -28
  449. data/lib/ovirt/sdk/v4/types/brick_profile_detail.rb +0 -53
  450. data/lib/ovirt/sdk/v4/types/cdrom.rb +0 -53
  451. data/lib/ovirt/sdk/v4/types/certificate.rb +0 -76
  452. data/lib/ovirt/sdk/v4/types/cloud_init.rb +0 -174
  453. data/lib/ovirt/sdk/v4/types/cluster.rb +0 -490
  454. data/lib/ovirt/sdk/v4/types/configuration.rb +0 -61
  455. data/lib/ovirt/sdk/v4/types/configuration_type.rb +0 -26
  456. data/lib/ovirt/sdk/v4/types/console.rb +0 -46
  457. data/lib/ovirt/sdk/v4/types/core.rb +0 -61
  458. data/lib/ovirt/sdk/v4/types/cpu.rb +0 -188
  459. data/lib/ovirt/sdk/v4/types/cpu_mode.rb +0 -28
  460. data/lib/ovirt/sdk/v4/types/cpu_profile.rb +0 -75
  461. data/lib/ovirt/sdk/v4/types/cpu_topology.rb +0 -76
  462. data/lib/ovirt/sdk/v4/types/cpu_tune.rb +0 -54
  463. data/lib/ovirt/sdk/v4/types/creation_status.rb +0 -29
  464. data/lib/ovirt/sdk/v4/types/custom_property.rb +0 -76
  465. data/lib/ovirt/sdk/v4/types/data_center.rb +0 -165
  466. data/lib/ovirt/sdk/v4/types/data_center_status.rb +0 -31
  467. data/lib/ovirt/sdk/v4/types/device.rb +0 -120
  468. data/lib/ovirt/sdk/v4/types/disk.rb +0 -486
  469. data/lib/ovirt/sdk/v4/types/disk_format.rb +0 -27
  470. data/lib/ovirt/sdk/v4/types/disk_interface.rb +0 -29
  471. data/lib/ovirt/sdk/v4/types/disk_profile.rb +0 -75
  472. data/lib/ovirt/sdk/v4/types/disk_snapshot.rb +0 -53
  473. data/lib/ovirt/sdk/v4/types/disk_status.rb +0 -28
  474. data/lib/ovirt/sdk/v4/types/disk_storage_type.rb +0 -28
  475. data/lib/ovirt/sdk/v4/types/display.rb +0 -248
  476. data/lib/ovirt/sdk/v4/types/display_type.rb +0 -27
  477. data/lib/ovirt/sdk/v4/types/dns.rb +0 -77
  478. data/lib/ovirt/sdk/v4/types/domain.rb +0 -53
  479. data/lib/ovirt/sdk/v4/types/entity_external_status.rb +0 -30
  480. data/lib/ovirt/sdk/v4/types/entity_profile_detail.rb +0 -54
  481. data/lib/ovirt/sdk/v4/types/error_handling.rb +0 -46
  482. data/lib/ovirt/sdk/v4/types/event.rb +0 -305
  483. data/lib/ovirt/sdk/v4/types/external_compute_resource.rb +0 -98
  484. data/lib/ovirt/sdk/v4/types/external_discovered_host.rb +0 -113
  485. data/lib/ovirt/sdk/v4/types/external_host.rb +0 -68
  486. data/lib/ovirt/sdk/v4/types/external_host_group.rb +0 -113
  487. data/lib/ovirt/sdk/v4/types/external_host_provider.rb +0 -31
  488. data/lib/ovirt/sdk/v4/types/external_provider.rb +0 -129
  489. data/lib/ovirt/sdk/v4/types/external_system_type.rb +0 -27
  490. data/lib/ovirt/sdk/v4/types/fault.rb +0 -33
  491. data/lib/ovirt/sdk/v4/types/fence_type.rb +0 -30
  492. data/lib/ovirt/sdk/v4/types/fencing_policy.rb +0 -90
  493. data/lib/ovirt/sdk/v4/types/file.rb +0 -83
  494. data/lib/ovirt/sdk/v4/types/filter.rb +0 -68
  495. data/lib/ovirt/sdk/v4/types/floppy.rb +0 -53
  496. data/lib/ovirt/sdk/v4/types/fop_statistic.rb +0 -69
  497. data/lib/ovirt/sdk/v4/types/gluster_brick.rb +0 -105
  498. data/lib/ovirt/sdk/v4/types/gluster_brick_advanced_details.rb +0 -152
  499. data/lib/ovirt/sdk/v4/types/gluster_brick_memory_info.rb +0 -54
  500. data/lib/ovirt/sdk/v4/types/gluster_client.rb +0 -91
  501. data/lib/ovirt/sdk/v4/types/gluster_hook.rb +0 -203
  502. data/lib/ovirt/sdk/v4/types/gluster_memory_pool.rb +0 -151
  503. data/lib/ovirt/sdk/v4/types/gluster_server_hook.rb +0 -105
  504. data/lib/ovirt/sdk/v4/types/gluster_state.rb +0 -28
  505. data/lib/ovirt/sdk/v4/types/gluster_volume.rb +0 -211
  506. data/lib/ovirt/sdk/v4/types/gluster_volume_profile_details.rb +0 -77
  507. data/lib/ovirt/sdk/v4/types/gluster_volume_type.rb +0 -34
  508. data/lib/ovirt/sdk/v4/types/graphics_console.rb +0 -157
  509. data/lib/ovirt/sdk/v4/types/graphics_type.rb +0 -27
  510. data/lib/ovirt/sdk/v4/types/group.rb +0 -105
  511. data/lib/ovirt/sdk/v4/types/guest_operating_system.rb +0 -135
  512. data/lib/ovirt/sdk/v4/types/hardware_information.rb +0 -136
  513. data/lib/ovirt/sdk/v4/types/high_availability.rb +0 -61
  514. data/lib/ovirt/sdk/v4/types/hook.rb +0 -83
  515. data/lib/ovirt/sdk/v4/types/hook_content_type.rb +0 -27
  516. data/lib/ovirt/sdk/v4/types/hook_stage.rb +0 -27
  517. data/lib/ovirt/sdk/v4/types/hook_status.rb +0 -28
  518. data/lib/ovirt/sdk/v4/types/host.rb +0 -779
  519. data/lib/ovirt/sdk/v4/types/host_device.rb +0 -223
  520. data/lib/ovirt/sdk/v4/types/host_device_passthrough.rb +0 -46
  521. data/lib/ovirt/sdk/v4/types/host_nic.rb +0 -440
  522. data/lib/ovirt/sdk/v4/types/host_nic_virtual_functions_configuration.rb +0 -76
  523. data/lib/ovirt/sdk/v4/types/host_protocol.rb +0 -27
  524. data/lib/ovirt/sdk/v4/types/host_status.rb +0 -41
  525. data/lib/ovirt/sdk/v4/types/host_storage.rb +0 -308
  526. data/lib/ovirt/sdk/v4/types/hosted_engine.rb +0 -106
  527. data/lib/ovirt/sdk/v4/types/icon.rb +0 -61
  528. data/lib/ovirt/sdk/v4/types/identified.rb +0 -91
  529. data/lib/ovirt/sdk/v4/types/image.rb +0 -53
  530. data/lib/ovirt/sdk/v4/types/inheritable_boolean.rb +0 -28
  531. data/lib/ovirt/sdk/v4/types/initialization.rb +0 -368
  532. data/lib/ovirt/sdk/v4/types/instance_type.rb +0 -31
  533. data/lib/ovirt/sdk/v4/types/io.rb +0 -46
  534. data/lib/ovirt/sdk/v4/types/ip.rb +0 -91
  535. data/lib/ovirt/sdk/v4/types/ip_address_assignment.rb +0 -68
  536. data/lib/ovirt/sdk/v4/types/iscsi_bond.rb +0 -99
  537. data/lib/ovirt/sdk/v4/types/iscsi_details.rb +0 -286
  538. data/lib/ovirt/sdk/v4/types/job.rb +0 -150
  539. data/lib/ovirt/sdk/v4/types/katello_erratum.rb +0 -188
  540. data/lib/ovirt/sdk/v4/types/kdump_status.rb +0 -28
  541. data/lib/ovirt/sdk/v4/types/kernel.rb +0 -53
  542. data/lib/ovirt/sdk/v4/types/ksm.rb +0 -61
  543. data/lib/ovirt/sdk/v4/types/label.rb +0 -75
  544. data/lib/ovirt/sdk/v4/types/list.rb +0 -101
  545. data/lib/ovirt/sdk/v4/types/log_severity.rb +0 -29
  546. data/lib/ovirt/sdk/v4/types/logical_unit.rb +0 -286
  547. data/lib/ovirt/sdk/v4/types/lun_status.rb +0 -28
  548. data/lib/ovirt/sdk/v4/types/mac.rb +0 -46
  549. data/lib/ovirt/sdk/v4/types/mac_pool.rb +0 -84
  550. data/lib/ovirt/sdk/v4/types/memory_over_commit.rb +0 -46
  551. data/lib/ovirt/sdk/v4/types/memory_policy.rb +0 -105
  552. data/lib/ovirt/sdk/v4/types/message_broker_type.rb +0 -27
  553. data/lib/ovirt/sdk/v4/types/method.rb +0 -46
  554. data/lib/ovirt/sdk/v4/types/migrate_on_error.rb +0 -28
  555. data/lib/ovirt/sdk/v4/types/migration_options.rb +0 -61
  556. data/lib/ovirt/sdk/v4/types/network.rb +0 -276
  557. data/lib/ovirt/sdk/v4/types/network_attachment.rb +0 -203
  558. data/lib/ovirt/sdk/v4/types/network_configuration.rb +0 -76
  559. data/lib/ovirt/sdk/v4/types/network_plugin_type.rb +0 -26
  560. data/lib/ovirt/sdk/v4/types/network_status.rb +0 -27
  561. data/lib/ovirt/sdk/v4/types/nfs_profile_detail.rb +0 -46
  562. data/lib/ovirt/sdk/v4/types/nfs_version.rb +0 -29
  563. data/lib/ovirt/sdk/v4/types/nic.rb +0 -218
  564. data/lib/ovirt/sdk/v4/types/nic_configuration.rb +0 -98
  565. data/lib/ovirt/sdk/v4/types/nic_interface.rb +0 -31
  566. data/lib/ovirt/sdk/v4/types/nic_status.rb +0 -27
  567. data/lib/ovirt/sdk/v4/types/numa_node.rb +0 -143
  568. data/lib/ovirt/sdk/v4/types/numa_node_pin.rb +0 -83
  569. data/lib/ovirt/sdk/v4/types/numa_tune_mode.rb +0 -28
  570. data/lib/ovirt/sdk/v4/types/open_stack_image.rb +0 -53
  571. data/lib/ovirt/sdk/v4/types/open_stack_image_provider.rb +0 -31
  572. data/lib/ovirt/sdk/v4/types/open_stack_network.rb +0 -53
  573. data/lib/ovirt/sdk/v4/types/open_stack_network_provider.rb +0 -68
  574. data/lib/ovirt/sdk/v4/types/open_stack_provider.rb +0 -46
  575. data/lib/ovirt/sdk/v4/types/open_stack_subnet.rb +0 -113
  576. data/lib/ovirt/sdk/v4/types/open_stack_volume_provider.rb +0 -53
  577. data/lib/ovirt/sdk/v4/types/open_stack_volume_type.rb +0 -76
  578. data/lib/ovirt/sdk/v4/types/openstack_volume_authentication_key.rb +0 -113
  579. data/lib/ovirt/sdk/v4/types/openstack_volume_authentication_key_usage_type.rb +0 -26
  580. data/lib/ovirt/sdk/v4/types/operating_system.rb +0 -135
  581. data/lib/ovirt/sdk/v4/types/operating_system_info.rb +0 -75
  582. data/lib/ovirt/sdk/v4/types/option.rb +0 -76
  583. data/lib/ovirt/sdk/v4/types/os_type.rb +0 -47
  584. data/lib/ovirt/sdk/v4/types/package.rb +0 -46
  585. data/lib/ovirt/sdk/v4/types/payload.rb +0 -84
  586. data/lib/ovirt/sdk/v4/types/payload_encoding.rb +0 -27
  587. data/lib/ovirt/sdk/v4/types/permission.rb +0 -273
  588. data/lib/ovirt/sdk/v4/types/permit.rb +0 -68
  589. data/lib/ovirt/sdk/v4/types/pm_proxy.rb +0 -46
  590. data/lib/ovirt/sdk/v4/types/pm_proxy_type.rb +0 -28
  591. data/lib/ovirt/sdk/v4/types/policy_unit_type.rb +0 -28
  592. data/lib/ovirt/sdk/v4/types/port_mirroring.rb +0 -31
  593. data/lib/ovirt/sdk/v4/types/power_management.rb +0 -227
  594. data/lib/ovirt/sdk/v4/types/power_management_status.rb +0 -28
  595. data/lib/ovirt/sdk/v4/types/product.rb +0 -31
  596. data/lib/ovirt/sdk/v4/types/profile_detail.rb +0 -130
  597. data/lib/ovirt/sdk/v4/types/property.rb +0 -61
  598. data/lib/ovirt/sdk/v4/types/proxy_ticket.rb +0 -46
  599. data/lib/ovirt/sdk/v4/types/qos.rb +0 -308
  600. data/lib/ovirt/sdk/v4/types/qos_type.rb +0 -29
  601. data/lib/ovirt/sdk/v4/types/quota.rb +0 -182
  602. data/lib/ovirt/sdk/v4/types/quota_cluster_limit.rb +0 -135
  603. data/lib/ovirt/sdk/v4/types/quota_mode_type.rb +0 -28
  604. data/lib/ovirt/sdk/v4/types/quota_storage_limit.rb +0 -105
  605. data/lib/ovirt/sdk/v4/types/range.rb +0 -61
  606. data/lib/ovirt/sdk/v4/types/rate.rb +0 -61
  607. data/lib/ovirt/sdk/v4/types/reported_configuration.rb +0 -91
  608. data/lib/ovirt/sdk/v4/types/reported_device.rb +0 -113
  609. data/lib/ovirt/sdk/v4/types/reported_device_type.rb +0 -26
  610. data/lib/ovirt/sdk/v4/types/resolution_type.rb +0 -27
  611. data/lib/ovirt/sdk/v4/types/rng_device.rb +0 -68
  612. data/lib/ovirt/sdk/v4/types/rng_source.rb +0 -27
  613. data/lib/ovirt/sdk/v4/types/role.rb +0 -106
  614. data/lib/ovirt/sdk/v4/types/role_type.rb +0 -27
  615. data/lib/ovirt/sdk/v4/types/s_e_linux_mode.rb +0 -28
  616. data/lib/ovirt/sdk/v4/types/scheduling_policy.rb +0 -84
  617. data/lib/ovirt/sdk/v4/types/scheduling_policy_unit.rb +0 -99
  618. data/lib/ovirt/sdk/v4/types/scsi_generic_i_o.rb +0 -27
  619. data/lib/ovirt/sdk/v4/types/se_linux.rb +0 -46
  620. data/lib/ovirt/sdk/v4/types/serial_number.rb +0 -61
  621. data/lib/ovirt/sdk/v4/types/serial_number_policy.rb +0 -28
  622. data/lib/ovirt/sdk/v4/types/session.rb +0 -127
  623. data/lib/ovirt/sdk/v4/types/skip_if_connectivity_broken.rb +0 -61
  624. data/lib/ovirt/sdk/v4/types/skip_if_sd_active.rb +0 -46
  625. data/lib/ovirt/sdk/v4/types/snapshot.rb +0 -113
  626. data/lib/ovirt/sdk/v4/types/snapshot_status.rb +0 -28
  627. data/lib/ovirt/sdk/v4/types/snapshot_type.rb +0 -29
  628. data/lib/ovirt/sdk/v4/types/spm.rb +0 -68
  629. data/lib/ovirt/sdk/v4/types/spm_state.rb +0 -28
  630. data/lib/ovirt/sdk/v4/types/ssh.rb +0 -98
  631. data/lib/ovirt/sdk/v4/types/ssh_public_key.rb +0 -68
  632. data/lib/ovirt/sdk/v4/types/sso.rb +0 -54
  633. data/lib/ovirt/sdk/v4/types/sso_method.rb +0 -26
  634. data/lib/ovirt/sdk/v4/types/statistic.rb +0 -297
  635. data/lib/ovirt/sdk/v4/types/statistic_kind.rb +0 -27
  636. data/lib/ovirt/sdk/v4/types/statistic_unit.rb +0 -32
  637. data/lib/ovirt/sdk/v4/types/status.rb +0 -61
  638. data/lib/ovirt/sdk/v4/types/step.rb +0 -187
  639. data/lib/ovirt/sdk/v4/types/step_enum.rb +0 -31
  640. data/lib/ovirt/sdk/v4/types/storage_connection.rb +0 -248
  641. data/lib/ovirt/sdk/v4/types/storage_connection_extension.rb +0 -98
  642. data/lib/ovirt/sdk/v4/types/storage_domain.rb +0 -314
  643. data/lib/ovirt/sdk/v4/types/storage_domain_status.rb +0 -35
  644. data/lib/ovirt/sdk/v4/types/storage_domain_type.rb +0 -30
  645. data/lib/ovirt/sdk/v4/types/storage_format.rb +0 -28
  646. data/lib/ovirt/sdk/v4/types/storage_type.rb +0 -33
  647. data/lib/ovirt/sdk/v4/types/struct.rb +0 -111
  648. data/lib/ovirt/sdk/v4/types/tag.rb +0 -163
  649. data/lib/ovirt/sdk/v4/types/template.rb +0 -75
  650. data/lib/ovirt/sdk/v4/types/template_status.rb +0 -28
  651. data/lib/ovirt/sdk/v4/types/template_version.rb +0 -83
  652. data/lib/ovirt/sdk/v4/types/ticket.rb +0 -61
  653. data/lib/ovirt/sdk/v4/types/time_zone.rb +0 -61
  654. data/lib/ovirt/sdk/v4/types/transparent_huge_pages.rb +0 -46
  655. data/lib/ovirt/sdk/v4/types/transport_type.rb +0 -27
  656. data/lib/ovirt/sdk/v4/types/unmanaged_network.rb +0 -75
  657. data/lib/ovirt/sdk/v4/types/usb.rb +0 -61
  658. data/lib/ovirt/sdk/v4/types/usb_type.rb +0 -27
  659. data/lib/ovirt/sdk/v4/types/user.rb +0 -234
  660. data/lib/ovirt/sdk/v4/types/value.rb +0 -61
  661. data/lib/ovirt/sdk/v4/types/value_type.rb +0 -28
  662. data/lib/ovirt/sdk/v4/types/vcpu_pin.rb +0 -61
  663. data/lib/ovirt/sdk/v4/types/vendor.rb +0 -31
  664. data/lib/ovirt/sdk/v4/types/version.rb +0 -106
  665. data/lib/ovirt/sdk/v4/types/virtio_scsi.rb +0 -46
  666. data/lib/ovirt/sdk/v4/types/virtual_numa_node.rb +0 -76
  667. data/lib/ovirt/sdk/v4/types/vlan.rb +0 -46
  668. data/lib/ovirt/sdk/v4/types/vm.rb +0 -625
  669. data/lib/ovirt/sdk/v4/types/vm_affinity.rb +0 -28
  670. data/lib/ovirt/sdk/v4/types/vm_base.rb +0 -755
  671. data/lib/ovirt/sdk/v4/types/vm_device_type.rb +0 -27
  672. data/lib/ovirt/sdk/v4/types/vm_placement_policy.rb +0 -69
  673. data/lib/ovirt/sdk/v4/types/vm_pool.rb +0 -231
  674. data/lib/ovirt/sdk/v4/types/vm_pool_type.rb +0 -27
  675. data/lib/ovirt/sdk/v4/types/vm_status.rb +0 -40
  676. data/lib/ovirt/sdk/v4/types/vm_summary.rb +0 -76
  677. data/lib/ovirt/sdk/v4/types/vm_type.rb +0 -27
  678. data/lib/ovirt/sdk/v4/types/vnic_pass_through.rb +0 -46
  679. data/lib/ovirt/sdk/v4/types/vnic_pass_through_mode.rb +0 -27
  680. data/lib/ovirt/sdk/v4/types/vnic_profile.rb +0 -135
  681. data/lib/ovirt/sdk/v4/types/volume_group.rb +0 -84
  682. data/lib/ovirt/sdk/v4/types/watchdog.rb +0 -61
  683. data/lib/ovirt/sdk/v4/types/watchdog_action.rb +0 -30
  684. data/lib/ovirt/sdk/v4/types/watchdog_model.rb +0 -26
  685. data/lib/ovirt/sdk/v4/types/weight.rb +0 -90
  686. data/lib/ovirt/sdk/v4/writers.rb +0 -738
  687. data/lib/ovirt/sdk/v4/writers/affinity_group_writer.rb +0 -56
  688. data/lib/ovirt/sdk/v4/writers/agent_configuration_writer.rb +0 -55
  689. data/lib/ovirt/sdk/v4/writers/agent_writer.rb +0 -63
  690. data/lib/ovirt/sdk/v4/writers/application_writer.rb +0 -54
  691. data/lib/ovirt/sdk/v4/writers/authorized_key_writer.rb +0 -55
  692. data/lib/ovirt/sdk/v4/writers/balance_writer.rb +0 -55
  693. data/lib/ovirt/sdk/v4/writers/bios_writer.rb +0 -50
  694. data/lib/ovirt/sdk/v4/writers/block_statistic_writer.rb +0 -50
  695. data/lib/ovirt/sdk/v4/writers/bonding_writer.rb +0 -51
  696. data/lib/ovirt/sdk/v4/writers/bookmark_writer.rb +0 -54
  697. data/lib/ovirt/sdk/v4/writers/boot_menu_writer.rb +0 -50
  698. data/lib/ovirt/sdk/v4/writers/boot_writer.rb +0 -56
  699. data/lib/ovirt/sdk/v4/writers/brick_profile_detail_writer.rb +0 -51
  700. data/lib/ovirt/sdk/v4/writers/cdrom_writer.rb +0 -58
  701. data/lib/ovirt/sdk/v4/writers/certificate_writer.rb +0 -56
  702. data/lib/ovirt/sdk/v4/writers/cloud_init_writer.rb +0 -56
  703. data/lib/ovirt/sdk/v4/writers/cluster_writer.rb +0 -83
  704. data/lib/ovirt/sdk/v4/writers/configuration_writer.rb +0 -51
  705. data/lib/ovirt/sdk/v4/writers/console_writer.rb +0 -50
  706. data/lib/ovirt/sdk/v4/writers/core_writer.rb +0 -51
  707. data/lib/ovirt/sdk/v4/writers/cpu_profile_writer.rb +0 -55
  708. data/lib/ovirt/sdk/v4/writers/cpu_topology_writer.rb +0 -52
  709. data/lib/ovirt/sdk/v4/writers/cpu_tune_writer.rb +0 -50
  710. data/lib/ovirt/sdk/v4/writers/cpu_writer.rb +0 -58
  711. data/lib/ovirt/sdk/v4/writers/custom_property_writer.rb +0 -52
  712. data/lib/ovirt/sdk/v4/writers/data_center_writer.rb +0 -60
  713. data/lib/ovirt/sdk/v4/writers/device_writer.rb +0 -57
  714. data/lib/ovirt/sdk/v4/writers/disk_profile_writer.rb +0 -55
  715. data/lib/ovirt/sdk/v4/writers/disk_snapshot_writer.rb +0 -84
  716. data/lib/ovirt/sdk/v4/writers/disk_writer.rb +0 -83
  717. data/lib/ovirt/sdk/v4/writers/display_writer.rb +0 -63
  718. data/lib/ovirt/sdk/v4/writers/dns_writer.rb +0 -51
  719. data/lib/ovirt/sdk/v4/writers/domain_writer.rb +0 -54
  720. data/lib/ovirt/sdk/v4/writers/entity_profile_detail_writer.rb +0 -50
  721. data/lib/ovirt/sdk/v4/writers/error_handling_writer.rb +0 -50
  722. data/lib/ovirt/sdk/v4/writers/event_writer.rb +0 -68
  723. data/lib/ovirt/sdk/v4/writers/external_compute_resource_writer.rb +0 -57
  724. data/lib/ovirt/sdk/v4/writers/external_discovered_host_writer.rb +0 -58
  725. data/lib/ovirt/sdk/v4/writers/external_host_group_writer.rb +0 -58
  726. data/lib/ovirt/sdk/v4/writers/external_host_provider_writer.rb +0 -59
  727. data/lib/ovirt/sdk/v4/writers/external_host_writer.rb +0 -55
  728. data/lib/ovirt/sdk/v4/writers/external_provider_writer.rb +0 -59
  729. data/lib/ovirt/sdk/v4/writers/fencing_policy_writer.rb +0 -52
  730. data/lib/ovirt/sdk/v4/writers/file_writer.rb +0 -56
  731. data/lib/ovirt/sdk/v4/writers/filter_writer.rb +0 -55
  732. data/lib/ovirt/sdk/v4/writers/floppy_writer.rb +0 -58
  733. data/lib/ovirt/sdk/v4/writers/fop_statistic_writer.rb +0 -51
  734. data/lib/ovirt/sdk/v4/writers/gluster_brick_advanced_details_writer.rb +0 -64
  735. data/lib/ovirt/sdk/v4/writers/gluster_brick_memory_info_writer.rb +0 -50
  736. data/lib/ovirt/sdk/v4/writers/gluster_brick_writer.rb +0 -68
  737. data/lib/ovirt/sdk/v4/writers/gluster_client_writer.rb +0 -53
  738. data/lib/ovirt/sdk/v4/writers/gluster_hook_writer.rb +0 -63
  739. data/lib/ovirt/sdk/v4/writers/gluster_memory_pool_writer.rb +0 -61
  740. data/lib/ovirt/sdk/v4/writers/gluster_server_hook_writer.rb +0 -57
  741. data/lib/ovirt/sdk/v4/writers/gluster_volume_profile_details_writer.rb +0 -55
  742. data/lib/ovirt/sdk/v4/writers/gluster_volume_writer.rb +0 -69
  743. data/lib/ovirt/sdk/v4/writers/graphics_console_writer.rb +0 -60
  744. data/lib/ovirt/sdk/v4/writers/group_writer.rb +0 -57
  745. data/lib/ovirt/sdk/v4/writers/guest_operating_system_writer.rb +0 -55
  746. data/lib/ovirt/sdk/v4/writers/hardware_information_writer.rb +0 -62
  747. data/lib/ovirt/sdk/v4/writers/high_availability_writer.rb +0 -51
  748. data/lib/ovirt/sdk/v4/writers/hook_writer.rb +0 -56
  749. data/lib/ovirt/sdk/v4/writers/host_device_passthrough_writer.rb +0 -50
  750. data/lib/ovirt/sdk/v4/writers/host_device_writer.rb +0 -63
  751. data/lib/ovirt/sdk/v4/writers/host_nic_virtual_functions_configuration_writer.rb +0 -52
  752. data/lib/ovirt/sdk/v4/writers/host_nic_writer.rb +0 -74
  753. data/lib/ovirt/sdk/v4/writers/host_storage_writer.rb +0 -70
  754. data/lib/ovirt/sdk/v4/writers/host_writer.rb +0 -91
  755. data/lib/ovirt/sdk/v4/writers/hosted_engine_writer.rb +0 -54
  756. data/lib/ovirt/sdk/v4/writers/icon_writer.rb +0 -55
  757. data/lib/ovirt/sdk/v4/writers/identified_writer.rb +0 -53
  758. data/lib/ovirt/sdk/v4/writers/image_writer.rb +0 -54
  759. data/lib/ovirt/sdk/v4/writers/initialization_writer.rb +0 -70
  760. data/lib/ovirt/sdk/v4/writers/instance_type_writer.rb +0 -92
  761. data/lib/ovirt/sdk/v4/writers/io_writer.rb +0 -50
  762. data/lib/ovirt/sdk/v4/writers/ip_address_assignment_writer.rb +0 -51
  763. data/lib/ovirt/sdk/v4/writers/ip_writer.rb +0 -53
  764. data/lib/ovirt/sdk/v4/writers/iscsi_bond_writer.rb +0 -56
  765. data/lib/ovirt/sdk/v4/writers/iscsi_details_writer.rb +0 -66
  766. data/lib/ovirt/sdk/v4/writers/job_writer.rb +0 -60
  767. data/lib/ovirt/sdk/v4/writers/katello_erratum_writer.rb +0 -62
  768. data/lib/ovirt/sdk/v4/writers/kernel_writer.rb +0 -50
  769. data/lib/ovirt/sdk/v4/writers/ksm_writer.rb +0 -51
  770. data/lib/ovirt/sdk/v4/writers/label_writer.rb +0 -55
  771. data/lib/ovirt/sdk/v4/writers/logical_unit_writer.rb +0 -66
  772. data/lib/ovirt/sdk/v4/writers/mac_pool_writer.rb +0 -56
  773. data/lib/ovirt/sdk/v4/writers/mac_writer.rb +0 -50
  774. data/lib/ovirt/sdk/v4/writers/memory_over_commit_writer.rb +0 -50
  775. data/lib/ovirt/sdk/v4/writers/memory_policy_writer.rb +0 -53
  776. data/lib/ovirt/sdk/v4/writers/method_writer.rb +0 -50
  777. data/lib/ovirt/sdk/v4/writers/migration_options_writer.rb +0 -51
  778. data/lib/ovirt/sdk/v4/writers/network_attachment_writer.rb +0 -61
  779. data/lib/ovirt/sdk/v4/writers/network_configuration_writer.rb +0 -51
  780. data/lib/ovirt/sdk/v4/writers/network_writer.rb +0 -72
  781. data/lib/ovirt/sdk/v4/writers/nfs_profile_detail_writer.rb +0 -51
  782. data/lib/ovirt/sdk/v4/writers/nic_configuration_writer.rb +0 -53
  783. data/lib/ovirt/sdk/v4/writers/nic_writer.rb +0 -67
  784. data/lib/ovirt/sdk/v4/writers/numa_node_pin_writer.rb +0 -52
  785. data/lib/ovirt/sdk/v4/writers/numa_node_writer.rb +0 -59
  786. data/lib/ovirt/sdk/v4/writers/open_stack_image_provider_writer.rb +0 -60
  787. data/lib/ovirt/sdk/v4/writers/open_stack_image_writer.rb +0 -54
  788. data/lib/ovirt/sdk/v4/writers/open_stack_network_provider_writer.rb +0 -62
  789. data/lib/ovirt/sdk/v4/writers/open_stack_network_writer.rb +0 -54
  790. data/lib/ovirt/sdk/v4/writers/open_stack_provider_writer.rb +0 -60
  791. data/lib/ovirt/sdk/v4/writers/open_stack_subnet_writer.rb +0 -64
  792. data/lib/ovirt/sdk/v4/writers/open_stack_volume_provider_writer.rb +0 -61
  793. data/lib/ovirt/sdk/v4/writers/open_stack_volume_type_writer.rb +0 -55
  794. data/lib/ovirt/sdk/v4/writers/openstack_volume_authentication_key_writer.rb +0 -58
  795. data/lib/ovirt/sdk/v4/writers/operating_system_info_writer.rb +0 -55
  796. data/lib/ovirt/sdk/v4/writers/operating_system_writer.rb +0 -55
  797. data/lib/ovirt/sdk/v4/writers/option_writer.rb +0 -52
  798. data/lib/ovirt/sdk/v4/writers/package_writer.rb +0 -50
  799. data/lib/ovirt/sdk/v4/writers/payload_writer.rb +0 -52
  800. data/lib/ovirt/sdk/v4/writers/permission_writer.rb +0 -64
  801. data/lib/ovirt/sdk/v4/writers/permit_writer.rb +0 -55
  802. data/lib/ovirt/sdk/v4/writers/pm_proxy_writer.rb +0 -50
  803. data/lib/ovirt/sdk/v4/writers/port_mirroring_writer.rb +0 -49
  804. data/lib/ovirt/sdk/v4/writers/power_management_writer.rb +0 -60
  805. data/lib/ovirt/sdk/v4/writers/product_writer.rb +0 -53
  806. data/lib/ovirt/sdk/v4/writers/profile_detail_writer.rb +0 -54
  807. data/lib/ovirt/sdk/v4/writers/property_writer.rb +0 -51
  808. data/lib/ovirt/sdk/v4/writers/proxy_ticket_writer.rb +0 -50
  809. data/lib/ovirt/sdk/v4/writers/qos_writer.rb +0 -71
  810. data/lib/ovirt/sdk/v4/writers/quota_cluster_limit_writer.rb +0 -59
  811. data/lib/ovirt/sdk/v4/writers/quota_storage_limit_writer.rb +0 -57
  812. data/lib/ovirt/sdk/v4/writers/quota_writer.rb +0 -61
  813. data/lib/ovirt/sdk/v4/writers/range_writer.rb +0 -51
  814. data/lib/ovirt/sdk/v4/writers/rate_writer.rb +0 -51
  815. data/lib/ovirt/sdk/v4/writers/reported_configuration_writer.rb +0 -53
  816. data/lib/ovirt/sdk/v4/writers/reported_device_writer.rb +0 -57
  817. data/lib/ovirt/sdk/v4/writers/rng_device_writer.rb +0 -51
  818. data/lib/ovirt/sdk/v4/writers/role_writer.rb +0 -57
  819. data/lib/ovirt/sdk/v4/writers/scheduling_policy_unit_writer.rb +0 -57
  820. data/lib/ovirt/sdk/v4/writers/scheduling_policy_writer.rb +0 -56
  821. data/lib/ovirt/sdk/v4/writers/se_linux_writer.rb +0 -50
  822. data/lib/ovirt/sdk/v4/writers/serial_number_writer.rb +0 -51
  823. data/lib/ovirt/sdk/v4/writers/session_writer.rb +0 -58
  824. data/lib/ovirt/sdk/v4/writers/skip_if_connectivity_broken_writer.rb +0 -51
  825. data/lib/ovirt/sdk/v4/writers/skip_if_sd_active_writer.rb +0 -50
  826. data/lib/ovirt/sdk/v4/writers/snapshot_writer.rb +0 -124
  827. data/lib/ovirt/sdk/v4/writers/spm_writer.rb +0 -51
  828. data/lib/ovirt/sdk/v4/writers/ssh_public_key_writer.rb +0 -55
  829. data/lib/ovirt/sdk/v4/writers/ssh_writer.rb +0 -57
  830. data/lib/ovirt/sdk/v4/writers/sso_writer.rb +0 -50
  831. data/lib/ovirt/sdk/v4/writers/statistic_writer.rb +0 -66
  832. data/lib/ovirt/sdk/v4/writers/status_writer.rb +0 -51
  833. data/lib/ovirt/sdk/v4/writers/step_writer.rb +0 -62
  834. data/lib/ovirt/sdk/v4/writers/storage_connection_extension_writer.rb +0 -57
  835. data/lib/ovirt/sdk/v4/writers/storage_connection_writer.rb +0 -67
  836. data/lib/ovirt/sdk/v4/writers/storage_domain_writer.rb +0 -69
  837. data/lib/ovirt/sdk/v4/writers/tag_writer.rb +0 -59
  838. data/lib/ovirt/sdk/v4/writers/template_version_writer.rb +0 -52
  839. data/lib/ovirt/sdk/v4/writers/template_writer.rb +0 -92
  840. data/lib/ovirt/sdk/v4/writers/ticket_writer.rb +0 -51
  841. data/lib/ovirt/sdk/v4/writers/time_zone_writer.rb +0 -51
  842. data/lib/ovirt/sdk/v4/writers/transparent_huge_pages_writer.rb +0 -50
  843. data/lib/ovirt/sdk/v4/writers/unmanaged_network_writer.rb +0 -55
  844. data/lib/ovirt/sdk/v4/writers/usb_writer.rb +0 -51
  845. data/lib/ovirt/sdk/v4/writers/user_writer.rb +0 -65
  846. data/lib/ovirt/sdk/v4/writers/value_writer.rb +0 -51
  847. data/lib/ovirt/sdk/v4/writers/vcpu_pin_writer.rb +0 -51
  848. data/lib/ovirt/sdk/v4/writers/vendor_writer.rb +0 -53
  849. data/lib/ovirt/sdk/v4/writers/version_writer.rb +0 -58
  850. data/lib/ovirt/sdk/v4/writers/virtio_scsi_writer.rb +0 -50
  851. data/lib/ovirt/sdk/v4/writers/virtual_numa_node_writer.rb +0 -61
  852. data/lib/ovirt/sdk/v4/writers/vlan_writer.rb +0 -50
  853. data/lib/ovirt/sdk/v4/writers/vm_base_writer.rb +0 -90
  854. data/lib/ovirt/sdk/v4/writers/vm_placement_policy_writer.rb +0 -51
  855. data/lib/ovirt/sdk/v4/writers/vm_pool_writer.rb +0 -64
  856. data/lib/ovirt/sdk/v4/writers/vm_summary_writer.rb +0 -52
  857. data/lib/ovirt/sdk/v4/writers/vm_writer.rb +0 -119
  858. data/lib/ovirt/sdk/v4/writers/vnic_pass_through_writer.rb +0 -50
  859. data/lib/ovirt/sdk/v4/writers/vnic_profile_writer.rb +0 -58
  860. data/lib/ovirt/sdk/v4/writers/volume_group_writer.rb +0 -52
  861. data/lib/ovirt/sdk/v4/writers/watchdog_writer.rb +0 -59
  862. data/lib/ovirt/sdk/v4/writers/weight_writer.rb +0 -56
  863. data/lib/ovirt/sdk/v4/writers/writer.rb +0 -29
  864. data/lib/ovirt/sdk/v4/xml_formatter.rb +0 -41
  865. data/lib/ovirt/sdk/v4/xml_reader.rb +0 -187
  866. data/lib/ovirt/sdk/v4/xml_writer.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f31c52cb5a642f97c1d03a7f9d91a7701c2e0f0a
4
- data.tar.gz: df1e123b9952bd594f011aaef8f006760bf80126
3
+ metadata.gz: efdf7aa3b7b78aee1c6719d815c395754ef047ec
4
+ data.tar.gz: f69f766b423df49b6c151d0901ed27d2f4129fcc
5
5
  SHA512:
6
- metadata.gz: 95b54caddc857be47136e9d4cb5cc87e68232d1d6ec607c52f39271959d7b6fd300fb7319e7e6260d304fc9f876929b539a627d49ff9b24da548e71d7187e410
7
- data.tar.gz: d4e9755613ddd8c6ea47b64839b9ec963044b9b39e2e42f6fff9b5acd133330917dc317463fc49fa52bc63ddb7c6aed215b9fd067f7a4b5735210d0135228424
6
+ metadata.gz: 19301c12a0fc586a4ec4d3b819c50b4a7472d96df40fb0acc626348201de2f49a4aba80a071c3dbc2f32d43dc63d5424e621fb7548449016cd17d8ec65078b01
7
+ data.tar.gz: c0efc3a839b6e942b7ba9902afbf935185aaa59d86489687d07202e6d437f4ff5d59f588e7d8d1f0fe95d15a9c50cc00e09d6bcaa9e9fd5f987944b5715f2d4e
data/README.md CHANGED
@@ -13,16 +13,16 @@ instructions in the `README.md` file of the parent directory.
13
13
 
14
14
  ## Usage
15
15
 
16
- To use the SDK require the `ovirt/sdk/v4` file. That will give you
16
+ To use the SDK require the `ovirtsdk4` file. That will give you
17
17
  access to all the classes of th SDK, and in particular to the
18
- Ovirt::SDK::V4::Connection class. This is the entry point of the SDK,
18
+ OvirtSDKV4::Connection class. This is the entry point of the SDK,
19
19
  and gives you access to the root of the tree of services of the API:
20
20
 
21
21
  ```ruby
22
- require 'ovirt/sdk/v4'
22
+ require 'ovirtsdk4'
23
23
 
24
24
  # Create a connection to the server:
25
- connection = Ovirt::SDK::V4::Connection({
25
+ connection = OvirtSDK4::Connection({
26
26
  :url => 'https://engine.example.com/ovirt-engine/api',
27
27
  :username => 'admin@internal',
28
28
  :password => '...',
@@ -51,9 +51,9 @@ manages the virtual machines:
51
51
  vms_service = system_service.vms_service
52
52
  ```
53
53
 
54
- This service is an instance of Ovirt::SDK::V4::VmsService, and it has
54
+ This service is an instance of OvirtSDK4::VmsService, and it has
55
55
  a `list` method that returns an array of virtual machines, which are
56
- instances of the Ovirt::SDK::V4::Vm class:
56
+ instances of the OvirtSDK4::Vm class:
57
57
 
58
58
  ```ruby
59
59
  # Retrieve the virtual machines:
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
3
  #
4
- # Copyright (c) 2015 Red Hat, Inc.
4
+ # Copyright (c) 2015-2016 Red Hat, Inc.
5
+ #
5
6
  # Licensed under the Apache License, Version 2.0 (the "License");
6
7
  # you may not use this file except in compliance with the License.
7
8
  # You may obtain a copy of the License at
@@ -22,4 +23,4 @@ unless pkg_config('libxml-2.0')
22
23
  raise 'The "libxml2" package isn\'t available.'
23
24
  end
24
25
 
25
- create_makefile 'ovirtsdk'
26
+ create_makefile 'ovirtsdk4c'
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -19,7 +20,5 @@ limitations under the License.
19
20
 
20
21
  // Initialization function:
21
22
  void ov_module_define(void) {
22
- ov_module = rb_define_module("Ovirt");
23
- ov_module = rb_define_module_under(ov_module, "SDK");
24
- ov_module = rb_define_module_under(ov_module, "V4");
23
+ ov_module = rb_define_module("OvirtSDK4");
25
24
  }
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -100,7 +101,7 @@ static VALUE ov_xml_writer_initialize(VALUE self, VALUE options) {
100
101
 
101
102
  // Create the libxml buffer that writes to the IO object:
102
103
  xmlOutputBufferPtr buffer = xmlOutputBufferCreateIO(ov_xml_writer_callback, NULL, object, NULL);
103
- if (object == NULL) {
104
+ if (buffer == NULL) {
104
105
  rb_raise(ov_error_class, "Can't create XML buffer");
105
106
  }
106
107
 
@@ -134,7 +135,7 @@ static VALUE ov_xml_writer_write_start(VALUE self, VALUE name) {
134
135
  char *c_name = StringValueCStr(name);
135
136
  int rc = xmlTextWriterStartElement(object->writer, BAD_CAST c_name);
136
137
  if (rc < 0) {
137
- rb_raise(ov_error_class, "Can't end XML element");
138
+ rb_raise(ov_error_class, "Can't start XML element");
138
139
  }
139
140
  return Qnil;
140
141
  }
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2015 Red Hat, Inc.
2
+ Copyright (c) 2015-2016 Red Hat, Inc.
3
+
3
4
  Licensed under the Apache License, Version 2.0 (the "License");
4
5
  you may not use this file except in compliance with the License.
5
6
  You may obtain a copy of the License at
@@ -21,7 +22,7 @@ limitations under the License.
21
22
  #include "ov_xml_reader.h"
22
23
  #include "ov_xml_writer.h"
23
24
 
24
- void Init_ovirtsdk(void) {
25
+ void Init_ovirtsdk4c(void) {
25
26
  // Define the module:
26
27
  ov_module_define();
27
28
 
@@ -1,5 +1,6 @@
1
1
  #--
2
- # Copyright (c) 2015 Red Hat, Inc.
2
+ # Copyright (c) 2015-2016 Red Hat, Inc.
3
+ #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
4
5
  # you may not use this file except in compliance with the License.
5
6
  # You may obtain a copy of the License at
@@ -21,17 +22,19 @@ require 'stringio'
21
22
 
22
23
  ##
23
24
  # Load the extension:
24
- require 'ovirtsdk'
25
+ require 'ovirtsdk4c'
25
26
 
26
27
  ##
27
28
  # Own requirements.
28
29
  #
29
- require 'ovirt/sdk/v4/version.rb'
30
- require 'ovirt/sdk/v4/xml_formatter.rb'
31
- require 'ovirt/sdk/v4/xml_reader.rb'
32
- require 'ovirt/sdk/v4/xml_writer.rb'
33
- require 'ovirt/sdk/v4/connection.rb'
34
- require 'ovirt/sdk/v4/types.rb'
35
- require 'ovirt/sdk/v4/readers.rb'
36
- require 'ovirt/sdk/v4/writers.rb'
37
- require 'ovirt/sdk/v4/services.rb'
30
+ require 'ovirtsdk4/version.rb'
31
+ require 'ovirtsdk4/xml.rb'
32
+ require 'ovirtsdk4/http.rb'
33
+ require 'ovirtsdk4/type.rb'
34
+ require 'ovirtsdk4/types.rb'
35
+ require 'ovirtsdk4/reader.rb'
36
+ require 'ovirtsdk4/readers.rb'
37
+ require 'ovirtsdk4/writer.rb'
38
+ require 'ovirtsdk4/writers.rb'
39
+ require 'ovirtsdk4/service.rb'
40
+ require 'ovirtsdk4/services.rb'
@@ -0,0 +1,328 @@
1
+ #--
2
+ # Copyright (c) 2015-2016 Red Hat, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #++
16
+
17
+ require 'curb'
18
+ require 'uri'
19
+
20
+ module OvirtSDK4
21
+
22
+ ##
23
+ # This class represents an HTTP request.
24
+ #
25
+ # This class is intended for internal use by other components of the SDK. Refrain from using it directly as there
26
+ # is no backwards compatibility guarantee.
27
+ #
28
+ class Request
29
+ attr_accessor :method
30
+ attr_accessor :path
31
+ attr_accessor :matrix
32
+ attr_accessor :query
33
+ attr_accessor :headers
34
+ attr_accessor :body
35
+
36
+ ##
37
+ # Creates a new HTTP request.
38
+ #
39
+ def initialize(opts = {})
40
+ self.method = opts[:method] || :GET
41
+ self.path = opts[:path] || ''
42
+ self.headers = opts[:headers] || {}
43
+ self.matrix = opts[:matrix] || {}
44
+ self.query = opts[:query] || {}
45
+ self.body = opts[:body]
46
+ end
47
+
48
+ end
49
+
50
+ ##
51
+ # This class represents an HTTP response.
52
+ #
53
+ # This class is intended for internal use by other components of the SDK. Refrain from using it directly as there
54
+ # is no backwards compatibility guarantee.
55
+ #
56
+ class Response
57
+ attr_accessor :body
58
+ attr_accessor :code
59
+ attr_accessor :headers
60
+ attr_accessor :message
61
+
62
+ ##
63
+ # Creates a new HTTP response.
64
+ #
65
+ def initialize(opts = {})
66
+ self.body = opts[:body]
67
+ self.code = opts[:code]
68
+ self.headers = opts[:headers]
69
+ self.message = opts[:message]
70
+ end
71
+ end
72
+
73
+ ##
74
+ # This class is responsible for managing an HTTP connection to the engine server. It is intended as the entry
75
+ # point for the SDK, and it provides access to the `system` service and, from there, to the rest of the services
76
+ # provided by the API.
77
+ #
78
+ class Connection
79
+
80
+ ##
81
+ # Creates a new connection to the API server.
82
+ #
83
+ # This method supports the following parameters, provided as an optional hash:
84
+ #
85
+ # `:url` - A string containing the base URL of the server, usually something like
86
+ # `https://server.example.com/ovirt-engine/api`.
87
+ #
88
+ # `:username` - The name of the user, something like `admin@internal`.
89
+ #
90
+ # `:password` - The name password of the user.
91
+ #
92
+ # `:insecure` - A boolean flag that indicates if the server TLS certificate and host name should be
93
+ # checked. The default is `true`.
94
+ #
95
+ # `:ca_file` - A PEM file containing the trusted CA certificates. The certificate presented by the server
96
+ # will be verified using these CA certificates.
97
+ #
98
+ # `:debug` - A boolean flag indicating if debug output should be generated. If the values is `true` all the
99
+ # data sent to and received from the server will be written to `$stdout`. Be aware that user names and
100
+ # passwords will also be written, so handle it with care. The default values is `false`.
101
+ #
102
+ # `:log` - The log file where the debug output will be written. The value can be an string containing a file
103
+ # name or an IO object. If it is a file name then the file will be created if it doesn't exist, and the debug
104
+ # output will be added to the end. The file will be closed when the connection is closed. If it is an IO
105
+ # object then the debug output will be written directly, and it won't be closed.
106
+ #
107
+ def initialize(opts = {})
108
+ # Get the values of the parameters and assign default values:
109
+ url = opts[:url]
110
+ username = opts[:username]
111
+ password = opts[:password]
112
+ insecure = opts[:insecure] || false
113
+ ca_file = opts[:ca_file]
114
+ debug = opts[:debug] || false
115
+ log = opts[:log] || STDOUT
116
+
117
+ # Check mandatory parameters:
118
+ if url.nil?
119
+ raise ArgumentError.new("The \"url\" parameter is mandatory.")
120
+ end
121
+
122
+ # Save the URL:
123
+ @url = URI(url)
124
+
125
+ # Create the cURL handle:
126
+ @curl = Curl::Easy.new
127
+
128
+ # Configure cookies so that they are enabled but stored only in memory:
129
+ @curl.enable_cookies = true
130
+ @curl.cookiefile = '/dev/null'
131
+ @curl.cookiejar = '/dev/null'
132
+
133
+ # Configure authentication:
134
+ @curl.http_auth_types = :basic
135
+ @curl.username = username
136
+ @curl.password = password
137
+
138
+ # Configure TLS parameters:
139
+ if @url.scheme == 'https'
140
+ if insecure
141
+ @curl.ssl_verify_peer = false
142
+ @curl.ssl_verify_host = false
143
+ elsif ca_file.nil?
144
+ raise ArgumentError.new("The \"ca_file\" argument is mandatory when using TLS.")
145
+ elsif not ::File.file?(ca_file)
146
+ raise ArgumentError.new("The CA file \"#{ca_file}\" doesn't exist.")
147
+ else
148
+ @curl.cacert = ca_file
149
+ end
150
+ end
151
+
152
+ # Configure debug mode:
153
+ if debug
154
+ if log.is_a?(String)
155
+ @log = ::File.open(log, 'a')
156
+ else
157
+ @log = log
158
+ end
159
+ @curl.verbose = true
160
+ @curl.on_debug do |type, data|
161
+ case type
162
+ when Curl::CURLINFO_DATA_IN
163
+ prefix = '< '
164
+ when Curl::CURLINFO_DATA_OUT
165
+ prefix = '> '
166
+ when Curl::CURLINFO_HEADER_IN
167
+ prefix = '< '
168
+ when Curl::CURLINFO_HEADER_OUT
169
+ prefix = '> '
170
+ else
171
+ prefix = '* '
172
+ end
173
+ lines = data.gsub("\r\n", "\n").strip.split("\n")
174
+ lines.each do |line|
175
+ @log.puts(prefix + line)
176
+ end
177
+ @log.flush
178
+ end
179
+ end
180
+
181
+ end
182
+
183
+ ##
184
+ # Returns a string containing the base URL used by this connection.
185
+ #
186
+ def url
187
+ return @url
188
+ end
189
+
190
+ ##
191
+ # Returns the reference to the root of the services tree.
192
+ #
193
+ # The returned value is an instance of the OvirtSDK4::SystemService class.
194
+ #
195
+ def system_service
196
+ @system_service ||= SystemService.new(self, "")
197
+ return @system_service
198
+ end
199
+
200
+ ##
201
+ # Returns a reference to the service corresponding to the given path. For example, if the `path` parameter
202
+ # is `vms/123/disks` then it will return a reference to the service that manages the disks for the virtual
203
+ # machine with identifier `123`.
204
+ #
205
+ # If there is no service corresponding to the given path an exception of type OvirtSDK4::Error will be
206
+ # raised.
207
+ #
208
+ def service(path)
209
+ return system_service.service(path)
210
+ end
211
+
212
+ ##
213
+ # Sends an HTTP request and waits for the response.
214
+ #
215
+ # This method is intended for internal use by other components of the SDK. Refrain from using it directly, as
216
+ # backwards compatibility isn't guaranteed.
217
+ #
218
+ # This method supports the following parameters.
219
+ #
220
+ # `request` - The Request object containing the details of the HTTP request to send.
221
+ #
222
+ # `last` - A boolean flag indicating if this is the last request.
223
+ #
224
+ # The returned value is a Request object containing the details of the HTTP response received.
225
+ #
226
+ def send(request, last = false)
227
+ # Build the URL:
228
+ @curl.url = build_url({
229
+ :path => request.path,
230
+ :query => request.query,
231
+ :matrix => request.matrix,
232
+ })
233
+
234
+ # Add headers, avoiding those that have no value:
235
+ @curl.headers.clear
236
+ @curl.headers.merge!(request.headers)
237
+ @curl.headers['User-Agent'] = "RubySDK/#{VERSION}"
238
+ @curl.headers['Version'] = '4'
239
+ @curl.headers['Content-Type'] = 'application/xml'
240
+ @curl.headers['Accept'] = 'application/xml'
241
+
242
+ # All requests except the last one should indicate that we want to use persistent authentication:
243
+ if !last
244
+ @curl.headers['Prefer'] = 'persistent-auth'
245
+ end
246
+
247
+ # Send the request and wait for the response:
248
+ case request.method
249
+ when :DELETE
250
+ @curl.http_delete
251
+ when :GET
252
+ @curl.http_get
253
+ when :PUT
254
+ @curl.http_put(request.body)
255
+ when :HEAD
256
+ @curl.http_head
257
+ when :POST
258
+ @curl.http_post(request.body)
259
+ end
260
+
261
+ # Return the response:
262
+ response = Response.new
263
+ response.body = @curl.body_str
264
+ response.code = @curl.response_code
265
+ return response
266
+ end
267
+
268
+ ##
269
+ # Releases the resources used by this connection.
270
+ #
271
+ def close
272
+ # Send the last request to indicate the server that the session should be closed:
273
+ request = Request.new({
274
+ :method => :HEAD,
275
+ })
276
+ send(request, true)
277
+
278
+ # Close the log file, if we did open it:
279
+ unless @log.nil? || @log.equal?(STDOUT)
280
+ @log.close
281
+ end
282
+
283
+ # Release resources used by the cURL handle:
284
+ @curl.close
285
+ end
286
+
287
+ ##
288
+ # Builds a request URL from a path, and the sets of matrix and query parameters.
289
+ #
290
+ # This method is intended for internal use by other components of the SDK. Refrain from using it directly, as
291
+ # backwards compatibility isn't guaranteed.
292
+ #
293
+ # This method supports the following parameters, provided as an optional hash:
294
+ #
295
+ # `:path` - The path that will be added to the base URL. The default is an empty string.
296
+ #
297
+ # `:query` - A hash containing the query parameters to add to the URL. The keys of the hash should be strings
298
+ # containing the names of the parameters, and the values should be strings containing the values. The default
299
+ # is an empty hash.
300
+ #
301
+ # `:matrix` - A hash containing the matrix parameters to add to the URL. The keys of the hash should be strings
302
+ # containing the names of the parameters, and the values should be strings containing the values. The default
303
+ # is an empty hash.
304
+ #
305
+ # The returned value is an string containing the URL.
306
+ #
307
+ def build_url(opts = {})
308
+ # Get the values of the parameters and assign default values:
309
+ path = opts[:path] || ''
310
+ query = opts[:query] || {}
311
+ matrix = opts[:matrix] || {}
312
+
313
+ # Add the path and the parameters:
314
+ url = @url.to_s + path
315
+ if not matrix.empty?
316
+ matrix.each do |key, value|
317
+ url = url + ';' + URI.encode_www_form({key => value})
318
+ end
319
+ end
320
+ if not query.empty?
321
+ url = url + '?' + URI.encode_www_form(query)
322
+ end
323
+ return url
324
+ end
325
+
326
+ end
327
+
328
+ end