katapult-ruby 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (673) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +20 -0
  4. data/README.md +869 -0
  5. data/Rakefile +10 -0
  6. data/katapult-ruby.gemspec +39 -0
  7. data/lib/katapult-ruby/api/core_api.rb +8631 -0
  8. data/lib/katapult-ruby/api_client.rb +392 -0
  9. data/lib/katapult-ruby/api_error.rb +58 -0
  10. data/lib/katapult-ruby/configuration.rb +298 -0
  11. data/lib/katapult-ruby/models/a.rb +214 -0
  12. data/lib/katapult-ruby/models/aaaa.rb +214 -0
  13. data/lib/katapult-ruby/models/api_authenticator400_response.rb +267 -0
  14. data/lib/katapult-ruby/models/attachment.rb +259 -0
  15. data/lib/katapult-ruby/models/auth_ssh_key.rb +232 -0
  16. data/lib/katapult-ruby/models/auth_ssh_key_lookup.rb +215 -0
  17. data/lib/katapult-ruby/models/auth_ssh_key_properties.rb +224 -0
  18. data/lib/katapult-ruby/models/caa.rb +254 -0
  19. data/lib/katapult-ruby/models/certificate.rb +356 -0
  20. data/lib/katapult-ruby/models/certificate_lookup.rb +215 -0
  21. data/lib/katapult-ruby/models/certificate_state_enum.rb +42 -0
  22. data/lib/katapult-ruby/models/cname.rb +214 -0
  23. data/lib/katapult-ruby/models/country.rb +259 -0
  24. data/lib/katapult-ruby/models/country_state.rb +241 -0
  25. data/lib/katapult-ruby/models/currency.rb +241 -0
  26. data/lib/katapult-ruby/models/data_center.rb +241 -0
  27. data/lib/katapult-ruby/models/data_center_lookup.rb +224 -0
  28. data/lib/katapult-ruby/models/data_center_not_found_response.rb +267 -0
  29. data/lib/katapult-ruby/models/delete_disk_backup_policy200_response.rb +221 -0
  30. data/lib/katapult-ruby/models/delete_disk_backup_policy200_response_disk_backup_policy.rb +214 -0
  31. data/lib/katapult-ruby/models/delete_disk_backup_policy_request.rb +221 -0
  32. data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response.rb +221 -0
  33. data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response_disk_backup_policy.rb +232 -0
  34. data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule_request.rb +238 -0
  35. data/lib/katapult-ruby/models/delete_dns_records_dns_record200_response.rb +221 -0
  36. data/lib/katapult-ruby/models/delete_dns_records_dns_record_request.rb +221 -0
  37. data/lib/katapult-ruby/models/delete_dns_zone200_response.rb +221 -0
  38. data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response.rb +221 -0
  39. data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response_dns_zone.rb +250 -0
  40. data/lib/katapult-ruby/models/delete_dns_zones_dns_zone_request.rb +221 -0
  41. data/lib/katapult-ruby/models/delete_file_storage_volume200_response.rb +237 -0
  42. data/lib/katapult-ruby/models/delete_file_storage_volume200_response_file_storage_volume.rb +294 -0
  43. data/lib/katapult-ruby/models/delete_file_storage_volume_part_data_center.rb +232 -0
  44. data/lib/katapult-ruby/models/delete_file_storage_volume_request.rb +221 -0
  45. data/lib/katapult-ruby/models/delete_ip_address409_response.rb +266 -0
  46. data/lib/katapult-ruby/models/delete_ip_address_request.rb +221 -0
  47. data/lib/katapult-ruby/models/delete_load_balancer200_response.rb +221 -0
  48. data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +232 -0
  49. data/lib/katapult-ruby/models/delete_load_balancer_request.rb +221 -0
  50. data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
  51. data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +214 -0
  52. data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule_request.rb +221 -0
  53. data/lib/katapult-ruby/models/delete_security_group200_response.rb +221 -0
  54. data/lib/katapult-ruby/models/delete_security_group200_response_security_group.rb +223 -0
  55. data/lib/katapult-ruby/models/delete_security_group_request.rb +221 -0
  56. data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule200_response.rb +221 -0
  57. data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule200_response_security_group_rule.rb +214 -0
  58. data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule_request.rb +221 -0
  59. data/lib/katapult-ruby/models/delete_ssh_key404_response.rb +266 -0
  60. data/lib/katapult-ruby/models/delete_ssh_key409_response.rb +266 -0
  61. data/lib/katapult-ruby/models/delete_ssh_key_request.rb +221 -0
  62. data/lib/katapult-ruby/models/delete_tag200_response.rb +221 -0
  63. data/lib/katapult-ruby/models/delete_tag_request.rb +221 -0
  64. data/lib/katapult-ruby/models/delete_trash_object_request.rb +221 -0
  65. data/lib/katapult-ruby/models/delete_virtual_machine200_response.rb +237 -0
  66. data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +415 -0
  67. data/lib/katapult-ruby/models/delete_virtual_machine_group200_response.rb +221 -0
  68. data/lib/katapult-ruby/models/delete_virtual_machine_group_request.rb +221 -0
  69. data/lib/katapult-ruby/models/delete_virtual_machine_part_attached_iso.rb +232 -0
  70. data/lib/katapult-ruby/models/delete_virtual_machine_part_badge.rb +259 -0
  71. data/lib/katapult-ruby/models/delete_virtual_machine_part_country.rb +259 -0
  72. data/lib/katapult-ruby/models/delete_virtual_machine_part_country_state.rb +241 -0
  73. data/lib/katapult-ruby/models/delete_virtual_machine_part_currency.rb +241 -0
  74. data/lib/katapult-ruby/models/delete_virtual_machine_part_data_center.rb +241 -0
  75. data/lib/katapult-ruby/models/delete_virtual_machine_part_gpu_type.rb +259 -0
  76. data/lib/katapult-ruby/models/delete_virtual_machine_part_gpus.rb +274 -0
  77. data/lib/katapult-ruby/models/delete_virtual_machine_part_group.rb +250 -0
  78. data/lib/katapult-ruby/models/delete_virtual_machine_part_icon.rb +259 -0
  79. data/lib/katapult-ruby/models/delete_virtual_machine_part_ip_addresses.rb +286 -0
  80. data/lib/katapult-ruby/models/delete_virtual_machine_part_network.rb +241 -0
  81. data/lib/katapult-ruby/models/delete_virtual_machine_part_operating_system.rb +232 -0
  82. data/lib/katapult-ruby/models/delete_virtual_machine_part_organization.rb +367 -0
  83. data/lib/katapult-ruby/models/delete_virtual_machine_part_package.rb +317 -0
  84. data/lib/katapult-ruby/models/delete_virtual_machine_part_tags.rb +263 -0
  85. data/lib/katapult-ruby/models/delete_virtual_machine_part_type.rb +259 -0
  86. data/lib/katapult-ruby/models/delete_virtual_machine_part_zone.rb +241 -0
  87. data/lib/katapult-ruby/models/delete_virtual_machine_request.rb +214 -0
  88. data/lib/katapult-ruby/models/deletion_restricted.rb +216 -0
  89. data/lib/katapult-ruby/models/disk.rb +317 -0
  90. data/lib/katapult-ruby/models/disk_backup_policy_arguments.rb +224 -0
  91. data/lib/katapult-ruby/models/disk_backup_policy_lookup.rb +215 -0
  92. data/lib/katapult-ruby/models/disk_backup_policy_target.rb +214 -0
  93. data/lib/katapult-ruby/models/disk_backup_policy_target_target.rb +105 -0
  94. data/lib/katapult-ruby/models/disk_installation.rb +234 -0
  95. data/lib/katapult-ruby/models/disk_installation_attribute.rb +250 -0
  96. data/lib/katapult-ruby/models/disk_io_profile.rb +250 -0
  97. data/lib/katapult-ruby/models/disk_lookup.rb +215 -0
  98. data/lib/katapult-ruby/models/disk_state_enum.rb +48 -0
  99. data/lib/katapult-ruby/models/disk_template.rb +268 -0
  100. data/lib/katapult-ruby/models/disk_template_lookup.rb +224 -0
  101. data/lib/katapult-ruby/models/disk_template_not_found_response.rb +267 -0
  102. data/lib/katapult-ruby/models/disk_template_version.rb +250 -0
  103. data/lib/katapult-ruby/models/dns_record.rb +299 -0
  104. data/lib/katapult-ruby/models/dns_record_arguments.rb +264 -0
  105. data/lib/katapult-ruby/models/dns_record_content_attributes.rb +331 -0
  106. data/lib/katapult-ruby/models/dns_record_lookup.rb +215 -0
  107. data/lib/katapult-ruby/models/dns_record_properties.rb +214 -0
  108. data/lib/katapult-ruby/models/dns_record_properties_arguments.rb +363 -0
  109. data/lib/katapult-ruby/models/dns_record_properties_properties.rb +114 -0
  110. data/lib/katapult-ruby/models/dns_record_type_enum.rb +49 -0
  111. data/lib/katapult-ruby/models/dns_record_types_enum.rb +52 -0
  112. data/lib/katapult-ruby/models/dns_zone.rb +250 -0
  113. data/lib/katapult-ruby/models/dns_zone_arguments.rb +231 -0
  114. data/lib/katapult-ruby/models/dns_zone_lookup.rb +224 -0
  115. data/lib/katapult-ruby/models/dns_zone_not_verified.rb +214 -0
  116. data/lib/katapult-ruby/models/dns_zone_verification_details.rb +216 -0
  117. data/lib/katapult-ruby/models/file_storage_volume_arguments.rb +236 -0
  118. data/lib/katapult-ruby/models/file_storage_volume_lookup.rb +215 -0
  119. data/lib/katapult-ruby/models/file_storage_volume_state_enum.rb +42 -0
  120. data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_response.rb +267 -0
  121. data/lib/katapult-ruby/models/get_certificate200_response.rb +223 -0
  122. data/lib/katapult-ruby/models/get_certificate404_response.rb +266 -0
  123. data/lib/katapult-ruby/models/get_countries200_response.rb +240 -0
  124. data/lib/katapult-ruby/models/get_countries200_response_countries.rb +223 -0
  125. data/lib/katapult-ruby/models/get_country200_response.rb +221 -0
  126. data/lib/katapult-ruby/models/get_country404_response.rb +266 -0
  127. data/lib/katapult-ruby/models/get_country_country_states200_response.rb +240 -0
  128. data/lib/katapult-ruby/models/get_country_country_states200_response_country_states.rb +223 -0
  129. data/lib/katapult-ruby/models/get_country_state200_response.rb +221 -0
  130. data/lib/katapult-ruby/models/get_country_state404_response.rb +266 -0
  131. data/lib/katapult-ruby/models/get_currencies200_response.rb +240 -0
  132. data/lib/katapult-ruby/models/get_currencies200_response_currencies.rb +223 -0
  133. data/lib/katapult-ruby/models/get_currency200_response.rb +221 -0
  134. data/lib/katapult-ruby/models/get_currency404_response.rb +266 -0
  135. data/lib/katapult-ruby/models/get_data_center200_response.rb +221 -0
  136. data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +241 -0
  137. data/lib/katapult-ruby/models/get_data_center404_response.rb +266 -0
  138. data/lib/katapult-ruby/models/get_data_center_default_network200_response.rb +221 -0
  139. data/lib/katapult-ruby/models/get_data_center_default_network200_response_network.rb +241 -0
  140. data/lib/katapult-ruby/models/get_data_center_default_network_part_data_center.rb +232 -0
  141. data/lib/katapult-ruby/models/get_data_center_gpu_types200_response.rb +239 -0
  142. data/lib/katapult-ruby/models/get_data_center_gpu_types200_response_gpu_types.rb +259 -0
  143. data/lib/katapult-ruby/models/get_data_center_part_country.rb +223 -0
  144. data/lib/katapult-ruby/models/get_data_centers200_response.rb +223 -0
  145. data/lib/katapult-ruby/models/get_data_centers200_response_data_centers.rb +241 -0
  146. data/lib/katapult-ruby/models/get_data_centers400_response.rb +266 -0
  147. data/lib/katapult-ruby/models/get_data_centers429_response.rb +266 -0
  148. data/lib/katapult-ruby/models/get_data_centers_part_country.rb +223 -0
  149. data/lib/katapult-ruby/models/get_disk200_response.rb +221 -0
  150. data/lib/katapult-ruby/models/get_disk200_response_disk.rb +317 -0
  151. data/lib/katapult-ruby/models/get_disk404_response.rb +266 -0
  152. data/lib/katapult-ruby/models/get_disk_backup_policy200_response.rb +221 -0
  153. data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +259 -0
  154. data/lib/katapult-ruby/models/get_disk_backup_policy404_response.rb +266 -0
  155. data/lib/katapult-ruby/models/get_disk_backup_policy_part_schedule.rb +272 -0
  156. data/lib/katapult-ruby/models/get_disk_disk_backup_policies200_response.rb +240 -0
  157. data/lib/katapult-ruby/models/get_disk_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
  158. data/lib/katapult-ruby/models/get_disk_disk_backup_policies_part_schedule.rb +245 -0
  159. data/lib/katapult-ruby/models/get_disk_part_attributes.rb +250 -0
  160. data/lib/katapult-ruby/models/get_disk_part_disk_template.rb +241 -0
  161. data/lib/katapult-ruby/models/get_disk_part_disk_template_version.rb +232 -0
  162. data/lib/katapult-ruby/models/get_disk_part_installation.rb +234 -0
  163. data/lib/katapult-ruby/models/get_disk_part_io_profile.rb +250 -0
  164. data/lib/katapult-ruby/models/get_disk_part_operating_system.rb +223 -0
  165. data/lib/katapult-ruby/models/get_disk_part_virtual_machine.rb +223 -0
  166. data/lib/katapult-ruby/models/get_disk_part_virtual_machine_disk.rb +263 -0
  167. data/lib/katapult-ruby/models/get_disk_template200_response.rb +221 -0
  168. data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +268 -0
  169. data/lib/katapult-ruby/models/get_disk_template404_response.rb +266 -0
  170. data/lib/katapult-ruby/models/get_disk_template_part_badge.rb +214 -0
  171. data/lib/katapult-ruby/models/get_disk_template_part_latest_version.rb +214 -0
  172. data/lib/katapult-ruby/models/get_disk_template_part_operating_system.rb +232 -0
  173. data/lib/katapult-ruby/models/get_disk_template_version200_response.rb +221 -0
  174. data/lib/katapult-ruby/models/get_disk_template_version200_response_disk_template_version.rb +250 -0
  175. data/lib/katapult-ruby/models/get_disk_template_version404_response.rb +266 -0
  176. data/lib/katapult-ruby/models/get_disk_template_version_part_disk_template.rb +232 -0
  177. data/lib/katapult-ruby/models/get_disk_template_version_spec200_response.rb +237 -0
  178. data/lib/katapult-ruby/models/get_disk_template_version_spec200_response_disk_template_version.rb +250 -0
  179. data/lib/katapult-ruby/models/get_disk_template_version_spec_part_disk_template.rb +232 -0
  180. data/lib/katapult-ruby/models/get_disk_template_versions200_response.rb +256 -0
  181. data/lib/katapult-ruby/models/get_disk_template_versions200_response_disk_template.rb +232 -0
  182. data/lib/katapult-ruby/models/get_disk_template_versions200_response_disk_template_versions.rb +241 -0
  183. data/lib/katapult-ruby/models/get_dns_record200_response.rb +221 -0
  184. data/lib/katapult-ruby/models/get_dns_records_dns_record200_response.rb +221 -0
  185. data/lib/katapult-ruby/models/get_dns_records_dns_record200_response_dns_record.rb +272 -0
  186. data/lib/katapult-ruby/models/get_dns_records_dns_record404_response.rb +266 -0
  187. data/lib/katapult-ruby/models/get_dns_zone200_response.rb +221 -0
  188. data/lib/katapult-ruby/models/get_dns_zone_records200_response.rb +224 -0
  189. data/lib/katapult-ruby/models/get_dns_zones_dns_zone200_response.rb +221 -0
  190. data/lib/katapult-ruby/models/get_dns_zones_dns_zone404_response.rb +266 -0
  191. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response.rb +224 -0
  192. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response_dns_records.rb +272 -0
  193. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details200_response.rb +221 -0
  194. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details422_response.rb +266 -0
  195. data/lib/katapult-ruby/models/get_file_storage_volume200_response.rb +221 -0
  196. data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +294 -0
  197. data/lib/katapult-ruby/models/get_file_storage_volume404_response.rb +266 -0
  198. data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +232 -0
  199. data/lib/katapult-ruby/models/get_gpu_type200_response.rb +221 -0
  200. data/lib/katapult-ruby/models/get_gpu_type200_response_gpu_type.rb +270 -0
  201. data/lib/katapult-ruby/models/get_gpu_type404_response.rb +266 -0
  202. data/lib/katapult-ruby/models/get_gpu_type_part_data_centers.rb +232 -0
  203. data/lib/katapult-ruby/models/get_gpu_types200_response.rb +239 -0
  204. data/lib/katapult-ruby/models/get_gpu_types200_response_gpu_types.rb +270 -0
  205. data/lib/katapult-ruby/models/get_gpu_types_part_data_centers.rb +232 -0
  206. data/lib/katapult-ruby/models/get_ip_address200_response.rb +233 -0
  207. data/lib/katapult-ruby/models/get_ip_address200_response_allocation.rb +231 -0
  208. data/lib/katapult-ruby/models/get_ip_address404_response.rb +266 -0
  209. data/lib/katapult-ruby/models/get_load_balancer200_response.rb +221 -0
  210. data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +363 -0
  211. data/lib/katapult-ruby/models/get_load_balancer404_response.rb +266 -0
  212. data/lib/katapult-ruby/models/get_load_balancer_part_data_center.rb +232 -0
  213. data/lib/katapult-ruby/models/get_load_balancer_part_ip_address.rb +223 -0
  214. data/lib/katapult-ruby/models/get_load_balancer_part_weights.rb +223 -0
  215. data/lib/katapult-ruby/models/get_load_balancer_rules200_response.rb +240 -0
  216. data/lib/katapult-ruby/models/get_load_balancer_rules200_response_load_balancer_rules.rb +292 -0
  217. data/lib/katapult-ruby/models/get_load_balancer_rules_part_certificates.rb +223 -0
  218. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
  219. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +391 -0
  220. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule404_response.rb +266 -0
  221. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule_part_certificates.rb +265 -0
  222. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule_part_load_balancer.rb +223 -0
  223. data/lib/katapult-ruby/models/get_network200_response.rb +221 -0
  224. data/lib/katapult-ruby/models/get_network404_response.rb +266 -0
  225. data/lib/katapult-ruby/models/get_operating_system200_response.rb +221 -0
  226. data/lib/katapult-ruby/models/get_operating_system404_response.rb +266 -0
  227. data/lib/katapult-ruby/models/get_operating_systems200_response.rb +240 -0
  228. data/lib/katapult-ruby/models/get_operating_systems200_response_operating_systems.rb +223 -0
  229. data/lib/katapult-ruby/models/get_organization200_response.rb +221 -0
  230. data/lib/katapult-ruby/models/get_organization404_response.rb +266 -0
  231. data/lib/katapult-ruby/models/get_organization_available_networks200_response.rb +241 -0
  232. data/lib/katapult-ruby/models/get_organization_available_networks200_response_networks.rb +241 -0
  233. data/lib/katapult-ruby/models/get_organization_available_networks200_response_virtual_networks.rb +232 -0
  234. data/lib/katapult-ruby/models/get_organization_available_networks_part_data_center.rb +232 -0
  235. data/lib/katapult-ruby/models/get_organization_certificates200_response.rb +239 -0
  236. data/lib/katapult-ruby/models/get_organization_certificates200_response_certificates.rb +281 -0
  237. data/lib/katapult-ruby/models/get_organization_disk_backup_policies200_response.rb +240 -0
  238. data/lib/katapult-ruby/models/get_organization_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
  239. data/lib/katapult-ruby/models/get_organization_disk_backup_policies_part_schedule.rb +245 -0
  240. data/lib/katapult-ruby/models/get_organization_disk_templates200_response.rb +240 -0
  241. data/lib/katapult-ruby/models/get_organization_disk_templates200_response_disk_templates.rb +268 -0
  242. data/lib/katapult-ruby/models/get_organization_disk_templates_part_latest_version.rb +223 -0
  243. data/lib/katapult-ruby/models/get_organization_disk_templates_part_operating_system.rb +223 -0
  244. data/lib/katapult-ruby/models/get_organization_disks200_response.rb +240 -0
  245. data/lib/katapult-ruby/models/get_organization_disks200_response_disk.rb +281 -0
  246. data/lib/katapult-ruby/models/get_organization_disks_part_virtual_machine.rb +223 -0
  247. data/lib/katapult-ruby/models/get_organization_disks_part_virtual_machine_disk.rb +214 -0
  248. data/lib/katapult-ruby/models/get_organization_dns_zones200_response.rb +240 -0
  249. data/lib/katapult-ruby/models/get_organization_dns_zones_nameservers200_response.rb +223 -0
  250. data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response.rb +240 -0
  251. data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response_file_storage_volumes.rb +294 -0
  252. data/lib/katapult-ruby/models/get_organization_file_storage_volumes_part_data_center.rb +232 -0
  253. data/lib/katapult-ruby/models/get_organization_ip_addresses200_response.rb +240 -0
  254. data/lib/katapult-ruby/models/get_organization_ip_addresses200_response_ip_addresses.rb +259 -0
  255. data/lib/katapult-ruby/models/get_organization_load_balancers200_response.rb +240 -0
  256. data/lib/katapult-ruby/models/get_organization_load_balancers200_response_load_balancers.rb +305 -0
  257. data/lib/katapult-ruby/models/get_organization_load_balancers_part_data_center.rb +223 -0
  258. data/lib/katapult-ruby/models/get_organization_load_balancers_part_ip_address.rb +214 -0
  259. data/lib/katapult-ruby/models/get_organization_managed200_response.rb +239 -0
  260. data/lib/katapult-ruby/models/get_organization_managed200_response_organizations.rb +259 -0
  261. data/lib/katapult-ruby/models/get_organization_network_speed_profiles200_response.rb +240 -0
  262. data/lib/katapult-ruby/models/get_organization_security_groups200_response.rb +240 -0
  263. data/lib/katapult-ruby/models/get_organization_ssh_keys200_response.rb +239 -0
  264. data/lib/katapult-ruby/models/get_organization_tags200_response.rb +240 -0
  265. data/lib/katapult-ruby/models/get_organization_tags200_response_tags.rb +223 -0
  266. data/lib/katapult-ruby/models/get_organization_trash_objects200_response.rb +240 -0
  267. data/lib/katapult-ruby/models/get_organization_users_with_access200_response.rb +239 -0
  268. data/lib/katapult-ruby/models/get_organization_users_with_access200_response_users.rb +214 -0
  269. data/lib/katapult-ruby/models/get_organization_users_with_access_part_user.rb +241 -0
  270. data/lib/katapult-ruby/models/get_organization_virtual_machine_groups200_response.rb +224 -0
  271. data/lib/katapult-ruby/models/get_organization_virtual_machines200_response.rb +239 -0
  272. data/lib/katapult-ruby/models/get_organization_virtual_machines200_response_virtual_machines.rb +288 -0
  273. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_data_center.rb +232 -0
  274. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_gpu_type.rb +232 -0
  275. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_ip_addresses.rb +214 -0
  276. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_package.rb +214 -0
  277. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_zone.rb +241 -0
  278. data/lib/katapult-ruby/models/get_organizations200_response.rb +223 -0
  279. data/lib/katapult-ruby/models/get_organizations200_response_organizations.rb +268 -0
  280. data/lib/katapult-ruby/models/get_security_group200_response.rb +221 -0
  281. data/lib/katapult-ruby/models/get_security_group404_response.rb +266 -0
  282. data/lib/katapult-ruby/models/get_security_group_rules200_response.rb +240 -0
  283. data/lib/katapult-ruby/models/get_security_group_rules200_response_security_group_rules.rb +292 -0
  284. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response.rb +221 -0
  285. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response_security_group_rule.rb +301 -0
  286. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule404_response.rb +266 -0
  287. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule_part_security_group.rb +223 -0
  288. data/lib/katapult-ruby/models/get_tag200_response.rb +221 -0
  289. data/lib/katapult-ruby/models/get_tag404_response.rb +266 -0
  290. data/lib/katapult-ruby/models/get_task404_response.rb +266 -0
  291. data/lib/katapult-ruby/models/get_trash_object200_response.rb +221 -0
  292. data/lib/katapult-ruby/models/get_trash_object404_response.rb +266 -0
  293. data/lib/katapult-ruby/models/get_users_current200_response.rb +255 -0
  294. data/lib/katapult-ruby/models/get_users_current200_response_organizations.rb +232 -0
  295. data/lib/katapult-ruby/models/get_users_current404_response.rb +266 -0
  296. data/lib/katapult-ruby/models/get_virtual_machine200_response.rb +221 -0
  297. data/lib/katapult-ruby/models/get_virtual_machine200_response_virtual_machine.rb +415 -0
  298. data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies200_response.rb +240 -0
  299. data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
  300. data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies_part_schedule.rb +245 -0
  301. data/lib/katapult-ruby/models/get_virtual_machine_disks200_response.rb +240 -0
  302. data/lib/katapult-ruby/models/get_virtual_machine_disks200_response_disks.rb +263 -0
  303. data/lib/katapult-ruby/models/get_virtual_machine_disks404_response.rb +266 -0
  304. data/lib/katapult-ruby/models/get_virtual_machine_disks406_response.rb +266 -0
  305. data/lib/katapult-ruby/models/get_virtual_machine_disks_part_disk.rb +281 -0
  306. data/lib/katapult-ruby/models/get_virtual_machine_group200_response.rb +221 -0
  307. data/lib/katapult-ruby/models/get_virtual_machine_group404_response.rb +266 -0
  308. data/lib/katapult-ruby/models/get_virtual_machine_network_interface200_response.rb +221 -0
  309. data/lib/katapult-ruby/models/get_virtual_machine_network_interface200_response_virtual_machine_network_interface.rb +270 -0
  310. data/lib/katapult-ruby/models/get_virtual_machine_network_interface_available_ips_address_version200_response.rb +224 -0
  311. data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_ip_addresses.rb +223 -0
  312. data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_network.rb +223 -0
  313. data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_virtual_machine.rb +223 -0
  314. data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces200_response.rb +240 -0
  315. data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces200_response_virtual_machine_network_interfaces.rb +243 -0
  316. data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces_part_ip_addresses.rb +223 -0
  317. data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces_part_network.rb +223 -0
  318. data/lib/katapult-ruby/models/get_virtual_machine_package200_response.rb +221 -0
  319. data/lib/katapult-ruby/models/get_virtual_machine_package404_response.rb +266 -0
  320. data/lib/katapult-ruby/models/get_virtual_machine_packages200_response.rb +239 -0
  321. data/lib/katapult-ruby/models/get_virtual_machine_packages200_response_virtual_machine_packages.rb +308 -0
  322. data/lib/katapult-ruby/models/get_virtual_machine_packages_part_icon.rb +214 -0
  323. data/lib/katapult-ruby/models/get_virtual_machine_part_attached_iso.rb +232 -0
  324. data/lib/katapult-ruby/models/get_virtual_machine_part_badge.rb +259 -0
  325. data/lib/katapult-ruby/models/get_virtual_machine_part_country.rb +259 -0
  326. data/lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb +241 -0
  327. data/lib/katapult-ruby/models/get_virtual_machine_part_currency.rb +241 -0
  328. data/lib/katapult-ruby/models/get_virtual_machine_part_data_center.rb +241 -0
  329. data/lib/katapult-ruby/models/get_virtual_machine_part_gpu_type.rb +259 -0
  330. data/lib/katapult-ruby/models/get_virtual_machine_part_gpus.rb +274 -0
  331. data/lib/katapult-ruby/models/get_virtual_machine_part_group.rb +250 -0
  332. data/lib/katapult-ruby/models/get_virtual_machine_part_icon.rb +259 -0
  333. data/lib/katapult-ruby/models/get_virtual_machine_part_ip_addresses.rb +286 -0
  334. data/lib/katapult-ruby/models/get_virtual_machine_part_network.rb +241 -0
  335. data/lib/katapult-ruby/models/get_virtual_machine_part_operating_system.rb +232 -0
  336. data/lib/katapult-ruby/models/get_virtual_machine_part_organization.rb +367 -0
  337. data/lib/katapult-ruby/models/get_virtual_machine_part_package.rb +317 -0
  338. data/lib/katapult-ruby/models/get_virtual_machine_part_tags.rb +263 -0
  339. data/lib/katapult-ruby/models/get_virtual_machine_part_type.rb +259 -0
  340. data/lib/katapult-ruby/models/get_virtual_machine_part_zone.rb +241 -0
  341. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response.rb +221 -0
  342. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response_virtual_machine_build.rb +272 -0
  343. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build404_response.rb +266 -0
  344. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build_part_virtual_machine.rb +272 -0
  345. data/lib/katapult-ruby/models/get_vmnivmni200_response.rb +221 -0
  346. data/lib/katapult-ruby/models/get_vmnivmni200_response_virtual_machine_network_interface.rb +279 -0
  347. data/lib/katapult-ruby/models/get_vmnivmni404_response.rb +266 -0
  348. data/lib/katapult-ruby/models/get_vmnivmni_part_ip_addresses.rb +223 -0
  349. data/lib/katapult-ruby/models/get_vmnivmni_part_network.rb +223 -0
  350. data/lib/katapult-ruby/models/get_vmnivmni_part_speed_profile.rb +232 -0
  351. data/lib/katapult-ruby/models/get_vmnivmni_part_virtual_machine.rb +223 -0
  352. data/lib/katapult-ruby/models/get_zone200_response.rb +221 -0
  353. data/lib/katapult-ruby/models/get_zone404_response.rb +266 -0
  354. data/lib/katapult-ruby/models/get_zones200_response.rb +224 -0
  355. data/lib/katapult-ruby/models/get_zones200_response_zones.rb +241 -0
  356. data/lib/katapult-ruby/models/get_zones_part_data_center.rb +232 -0
  357. data/lib/katapult-ruby/models/gpu_type.rb +270 -0
  358. data/lib/katapult-ruby/models/gpu_type_lookup.rb +224 -0
  359. data/lib/katapult-ruby/models/identity_not_linked_to_web_session_response.rb +267 -0
  360. data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_response.rb +267 -0
  361. data/lib/katapult-ruby/models/interface_not_found_response.rb +267 -0
  362. data/lib/katapult-ruby/models/invalid_api_token.rb +214 -0
  363. data/lib/katapult-ruby/models/invalid_api_token_response.rb +267 -0
  364. data/lib/katapult-ruby/models/invalid_ip_response.rb +267 -0
  365. data/lib/katapult-ruby/models/invalid_spec_xml.rb +215 -0
  366. data/lib/katapult-ruby/models/invalid_spec_xml_response.rb +267 -0
  367. data/lib/katapult-ruby/models/invalid_timestamp_response.rb +267 -0
  368. data/lib/katapult-ruby/models/ip_address.rb +286 -0
  369. data/lib/katapult-ruby/models/ip_address_lookup.rb +224 -0
  370. data/lib/katapult-ruby/models/ip_address_not_found_response.rb +267 -0
  371. data/lib/katapult-ruby/models/ip_address_version_enum.rb +40 -0
  372. data/lib/katapult-ruby/models/ip_already_allocated_response.rb +267 -0
  373. data/lib/katapult-ruby/models/iso.rb +232 -0
  374. data/lib/katapult-ruby/models/issuer_enum.rb +41 -0
  375. data/lib/katapult-ruby/models/key_value.rb +231 -0
  376. data/lib/katapult-ruby/models/load_balancer_arguments.rb +315 -0
  377. data/lib/katapult-ruby/models/load_balancer_lookup.rb +224 -0
  378. data/lib/katapult-ruby/models/load_balancer_resource.rb +214 -0
  379. data/lib/katapult-ruby/models/load_balancer_resource_resources.rb +106 -0
  380. data/lib/katapult-ruby/models/load_balancer_resource_types_enum.rb +41 -0
  381. data/lib/katapult-ruby/models/load_balancer_rule_algorithm_enum.rb +41 -0
  382. data/lib/katapult-ruby/models/load_balancer_rule_arguments.rb +374 -0
  383. data/lib/katapult-ruby/models/load_balancer_rule_check_protocol_enum.rb +40 -0
  384. data/lib/katapult-ruby/models/load_balancer_rule_http_statuses_enum.rb +41 -0
  385. data/lib/katapult-ruby/models/load_balancer_rule_lookup.rb +215 -0
  386. data/lib/katapult-ruby/models/load_balancer_rule_protocol_enum.rb +41 -0
  387. data/lib/katapult-ruby/models/load_balancer_weights_arguments.rb +224 -0
  388. data/lib/katapult-ruby/models/location_required_response.rb +267 -0
  389. data/lib/katapult-ruby/models/model_alias.rb +214 -0
  390. data/lib/katapult-ruby/models/mx.rb +223 -0
  391. data/lib/katapult-ruby/models/network.rb +241 -0
  392. data/lib/katapult-ruby/models/network_lookup.rb +224 -0
  393. data/lib/katapult-ruby/models/network_not_found_response.rb +267 -0
  394. data/lib/katapult-ruby/models/network_speed_profile.rb +250 -0
  395. data/lib/katapult-ruby/models/network_speed_profile_lookup.rb +224 -0
  396. data/lib/katapult-ruby/models/network_speed_profile_not_found_response.rb +267 -0
  397. data/lib/katapult-ruby/models/no_interface_available_response.rb +267 -0
  398. data/lib/katapult-ruby/models/ns.rb +214 -0
  399. data/lib/katapult-ruby/models/object_in_trash.rb +214 -0
  400. data/lib/katapult-ruby/models/object_in_trash_response.rb +267 -0
  401. data/lib/katapult-ruby/models/one_of_api_authenticator403_response.rb +106 -0
  402. data/lib/katapult-ruby/models/one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_error.rb +109 -0
  403. data/lib/katapult-ruby/models/one_of_flexible_resources_unavailable_to_organization_permission_denied403_error.rb +108 -0
  404. data/lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_error.rb +105 -0
  405. data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_error.rb +107 -0
  406. data/lib/katapult-ruby/models/one_of_interface_not_found_network_not_found_virtual_machine_not_found404_error.rb +106 -0
  407. data/lib/katapult-ruby/models/one_of_invalid_spec_xml400_error.rb +105 -0
  408. data/lib/katapult-ruby/models/one_of_invalid_timestamp400_error.rb +105 -0
  409. data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_error.rb +105 -0
  410. data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_error.rb +105 -0
  411. data/lib/katapult-ruby/models/one_of_ip_already_allocated_invalid_ip422_error.rb +105 -0
  412. data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_error.rb +105 -0
  413. data/lib/katapult-ruby/models/one_of_location_required_validation_error422_error.rb +105 -0
  414. data/lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_error.rb +105 -0
  415. data/lib/katapult-ruby/models/one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_error.rb +105 -0
  416. data/lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_error.rb +105 -0
  417. data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_error.rb +105 -0
  418. data/lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_error.rb +105 -0
  419. data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_error.rb +105 -0
  420. data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_error.rb +108 -0
  421. data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended_permission_denied403_error.rb +109 -0
  422. data/lib/katapult-ruby/models/one_of_organization_not_activated_permission_denied_resource_creation_restricted403_error.rb +110 -0
  423. data/lib/katapult-ruby/models/one_of_permission_denied403_error.rb +107 -0
  424. data/lib/katapult-ruby/models/one_of_virtual_machine_not_found_virtual_machine_package_not_found404_error.rb +105 -0
  425. data/lib/katapult-ruby/models/operating_system.rb +232 -0
  426. data/lib/katapult-ruby/models/operating_system_not_found_response.rb +267 -0
  427. data/lib/katapult-ruby/models/organization.rb +367 -0
  428. data/lib/katapult-ruby/models/organization_limit_reached_response.rb +267 -0
  429. data/lib/katapult-ruby/models/organization_lookup.rb +224 -0
  430. data/lib/katapult-ruby/models/organization_not_activated_response.rb +267 -0
  431. data/lib/katapult-ruby/models/organization_not_found_response.rb +267 -0
  432. data/lib/katapult-ruby/models/organization_suspended_response.rb +267 -0
  433. data/lib/katapult-ruby/models/pagination_object.rb +255 -0
  434. data/lib/katapult-ruby/models/patch_disk_backup_policy200_response.rb +221 -0
  435. data/lib/katapult-ruby/models/patch_disk_backup_policy200_response_disk_backup_policy.rb +241 -0
  436. data/lib/katapult-ruby/models/patch_disk_backup_policy_request.rb +237 -0
  437. data/lib/katapult-ruby/models/patch_dns_record200_response.rb +221 -0
  438. data/lib/katapult-ruby/models/patch_dns_record_request.rb +237 -0
  439. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response.rb +221 -0
  440. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response_dns_record.rb +272 -0
  441. data/lib/katapult-ruby/models/patch_dns_records_dns_record_request.rb +237 -0
  442. data/lib/katapult-ruby/models/patch_dns_zone_request.rb +237 -0
  443. data/lib/katapult-ruby/models/patch_file_storage_volume200_response.rb +221 -0
  444. data/lib/katapult-ruby/models/patch_file_storage_volume200_response_file_storage_volume.rb +294 -0
  445. data/lib/katapult-ruby/models/patch_file_storage_volume_part_data_center.rb +232 -0
  446. data/lib/katapult-ruby/models/patch_file_storage_volume_request.rb +237 -0
  447. data/lib/katapult-ruby/models/patch_ip_address200_response.rb +221 -0
  448. data/lib/katapult-ruby/models/patch_ip_address_request.rb +251 -0
  449. data/lib/katapult-ruby/models/patch_load_balancer200_response.rb +221 -0
  450. data/lib/katapult-ruby/models/patch_load_balancer200_response_load_balancer.rb +363 -0
  451. data/lib/katapult-ruby/models/patch_load_balancer_part_data_center.rb +232 -0
  452. data/lib/katapult-ruby/models/patch_load_balancer_part_ip_address.rb +223 -0
  453. data/lib/katapult-ruby/models/patch_load_balancer_part_weights.rb +223 -0
  454. data/lib/katapult-ruby/models/patch_load_balancer_request.rb +237 -0
  455. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
  456. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +391 -0
  457. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_part_certificates.rb +265 -0
  458. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_part_load_balancer.rb +223 -0
  459. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_request.rb +237 -0
  460. data/lib/katapult-ruby/models/patch_security_group200_response.rb +221 -0
  461. data/lib/katapult-ruby/models/patch_security_group_request.rb +237 -0
  462. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response.rb +221 -0
  463. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response_security_group_rule.rb +301 -0
  464. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule_part_security_group.rb +223 -0
  465. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule_request.rb +237 -0
  466. data/lib/katapult-ruby/models/patch_tag200_response.rb +221 -0
  467. data/lib/katapult-ruby/models/patch_tag_request.rb +237 -0
  468. data/lib/katapult-ruby/models/patch_virtual_machine200_response.rb +221 -0
  469. data/lib/katapult-ruby/models/patch_virtual_machine200_response_virtual_machine.rb +415 -0
  470. data/lib/katapult-ruby/models/patch_virtual_machine_group200_response.rb +221 -0
  471. data/lib/katapult-ruby/models/patch_virtual_machine_group_request.rb +237 -0
  472. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile200_response.rb +221 -0
  473. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile406_response.rb +266 -0
  474. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile422_response.rb +266 -0
  475. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile_request.rb +237 -0
  476. data/lib/katapult-ruby/models/patch_virtual_machine_part_attached_iso.rb +232 -0
  477. data/lib/katapult-ruby/models/patch_virtual_machine_part_badge.rb +259 -0
  478. data/lib/katapult-ruby/models/patch_virtual_machine_part_country.rb +259 -0
  479. data/lib/katapult-ruby/models/patch_virtual_machine_part_country_state.rb +241 -0
  480. data/lib/katapult-ruby/models/patch_virtual_machine_part_currency.rb +241 -0
  481. data/lib/katapult-ruby/models/patch_virtual_machine_part_data_center.rb +241 -0
  482. data/lib/katapult-ruby/models/patch_virtual_machine_part_gpu_type.rb +259 -0
  483. data/lib/katapult-ruby/models/patch_virtual_machine_part_gpus.rb +274 -0
  484. data/lib/katapult-ruby/models/patch_virtual_machine_part_group.rb +250 -0
  485. data/lib/katapult-ruby/models/patch_virtual_machine_part_icon.rb +259 -0
  486. data/lib/katapult-ruby/models/patch_virtual_machine_part_ip_addresses.rb +286 -0
  487. data/lib/katapult-ruby/models/patch_virtual_machine_part_network.rb +241 -0
  488. data/lib/katapult-ruby/models/patch_virtual_machine_part_operating_system.rb +232 -0
  489. data/lib/katapult-ruby/models/patch_virtual_machine_part_organization.rb +367 -0
  490. data/lib/katapult-ruby/models/patch_virtual_machine_part_package.rb +317 -0
  491. data/lib/katapult-ruby/models/patch_virtual_machine_part_tags.rb +263 -0
  492. data/lib/katapult-ruby/models/patch_virtual_machine_part_type.rb +259 -0
  493. data/lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb +241 -0
  494. data/lib/katapult-ruby/models/patch_virtual_machine_request.rb +237 -0
  495. data/lib/katapult-ruby/models/permission_denied.rb +215 -0
  496. data/lib/katapult-ruby/models/permission_denied_response.rb +267 -0
  497. data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response.rb +221 -0
  498. data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb +259 -0
  499. data/lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb +272 -0
  500. data/lib/katapult-ruby/models/post_disk_disk_backup_policies_request.rb +237 -0
  501. data/lib/katapult-ruby/models/post_dns_zone_records200_response.rb +221 -0
  502. data/lib/katapult-ruby/models/post_dns_zone_records_request.rb +237 -0
  503. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response.rb +221 -0
  504. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response_dns_record.rb +272 -0
  505. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records_request.rb +237 -0
  506. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response.rb +221 -0
  507. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response_dns_zone.rb +250 -0
  508. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl_request.rb +238 -0
  509. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify200_response.rb +221 -0
  510. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify422_response.rb +266 -0
  511. data/lib/katapult-ruby/models/post_invalidate_linked_web_session200_response.rb +221 -0
  512. data/lib/katapult-ruby/models/post_ip_address_unallocate422_response.rb +266 -0
  513. data/lib/katapult-ruby/models/post_load_balancer_rules200_response.rb +221 -0
  514. data/lib/katapult-ruby/models/post_load_balancer_rules200_response_load_balancer_rule.rb +391 -0
  515. data/lib/katapult-ruby/models/post_load_balancer_rules_part_certificates.rb +265 -0
  516. data/lib/katapult-ruby/models/post_load_balancer_rules_part_load_balancer.rb +223 -0
  517. data/lib/katapult-ruby/models/post_load_balancer_rules_request.rb +237 -0
  518. data/lib/katapult-ruby/models/post_organization_dns_zones201_response.rb +221 -0
  519. data/lib/katapult-ruby/models/post_organization_dns_zones201_response_dns_zone.rb +250 -0
  520. data/lib/katapult-ruby/models/post_organization_dns_zones_request.rb +237 -0
  521. data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response.rb +221 -0
  522. data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response_file_storage_volume.rb +294 -0
  523. data/lib/katapult-ruby/models/post_organization_file_storage_volumes_part_data_center.rb +232 -0
  524. data/lib/katapult-ruby/models/post_organization_file_storage_volumes_request.rb +237 -0
  525. data/lib/katapult-ruby/models/post_organization_ip_addresses503_response.rb +266 -0
  526. data/lib/katapult-ruby/models/post_organization_ip_addresses_request.rb +295 -0
  527. data/lib/katapult-ruby/models/post_organization_load_balancers200_response.rb +221 -0
  528. data/lib/katapult-ruby/models/post_organization_load_balancers200_response_load_balancer.rb +363 -0
  529. data/lib/katapult-ruby/models/post_organization_load_balancers_part_data_center.rb +232 -0
  530. data/lib/katapult-ruby/models/post_organization_load_balancers_part_ip_address.rb +223 -0
  531. data/lib/katapult-ruby/models/post_organization_load_balancers_part_weights.rb +223 -0
  532. data/lib/katapult-ruby/models/post_organization_load_balancers_request.rb +237 -0
  533. data/lib/katapult-ruby/models/post_organization_managed201_response.rb +221 -0
  534. data/lib/katapult-ruby/models/post_organization_managed201_response_organization.rb +367 -0
  535. data/lib/katapult-ruby/models/post_organization_managed_part_country.rb +259 -0
  536. data/lib/katapult-ruby/models/post_organization_managed_part_country_state.rb +241 -0
  537. data/lib/katapult-ruby/models/post_organization_managed_part_currency.rb +241 -0
  538. data/lib/katapult-ruby/models/post_organization_managed_request.rb +253 -0
  539. data/lib/katapult-ruby/models/post_organization_security_groups200_response.rb +221 -0
  540. data/lib/katapult-ruby/models/post_organization_security_groups_request.rb +237 -0
  541. data/lib/katapult-ruby/models/post_organization_ssh_keys201_response.rb +221 -0
  542. data/lib/katapult-ruby/models/post_organization_ssh_keys_request.rb +237 -0
  543. data/lib/katapult-ruby/models/post_organization_tags200_response.rb +221 -0
  544. data/lib/katapult-ruby/models/post_organization_tags_request.rb +237 -0
  545. data/lib/katapult-ruby/models/post_organization_trash_objects_purge_all_request.rb +221 -0
  546. data/lib/katapult-ruby/models/post_organization_virtual_machine_groups200_response.rb +221 -0
  547. data/lib/katapult-ruby/models/post_organization_virtual_machine_groups_request.rb +237 -0
  548. data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response.rb +269 -0
  549. data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_build.rb +245 -0
  550. data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_task.rb +254 -0
  551. data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_virtual_machine_build.rb +245 -0
  552. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response.rb +269 -0
  553. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_build.rb +245 -0
  554. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_task.rb +254 -0
  555. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_virtual_machine_build.rb +245 -0
  556. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec422_response.rb +266 -0
  557. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec_request.rb +237 -0
  558. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_request.rb +293 -0
  559. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response.rb +221 -0
  560. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response_dns_zone.rb +241 -0
  561. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones_request.rb +237 -0
  562. data/lib/katapult-ruby/models/post_security_group_rules200_response.rb +221 -0
  563. data/lib/katapult-ruby/models/post_security_group_rules200_response_security_group_rule.rb +301 -0
  564. data/lib/katapult-ruby/models/post_security_group_rules_part_security_group.rb +223 -0
  565. data/lib/katapult-ruby/models/post_security_group_rules_request.rb +237 -0
  566. data/lib/katapult-ruby/models/post_virtual_machine_allocate_ip200_response.rb +221 -0
  567. data/lib/katapult-ruby/models/post_virtual_machine_allocate_ip_request.rb +237 -0
  568. data/lib/katapult-ruby/models/post_virtual_machine_console_sessions201_response.rb +221 -0
  569. data/lib/katapult-ruby/models/post_virtual_machine_console_sessions201_response_console_session.rb +241 -0
  570. data/lib/katapult-ruby/models/post_virtual_machine_console_sessions_part_virtual_machine.rb +272 -0
  571. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response.rb +221 -0
  572. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response_disk_backup_policy.rb +259 -0
  573. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_part_schedule.rb +272 -0
  574. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_request.rb +237 -0
  575. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip200_response.rb +221 -0
  576. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip200_response_virtual_machine_network_interface.rb +270 -0
  577. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_ip_addresses.rb +223 -0
  578. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_network.rb +223 -0
  579. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_virtual_machine.rb +223 -0
  580. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_request.rb +237 -0
  581. data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_new_ip_request.rb +259 -0
  582. data/lib/katapult-ruby/models/post_virtual_machine_reset200_response.rb +221 -0
  583. data/lib/katapult-ruby/models/post_virtual_machine_reset200_response_task.rb +254 -0
  584. data/lib/katapult-ruby/models/post_virtual_machine_shutdown200_response.rb +221 -0
  585. data/lib/katapult-ruby/models/post_virtual_machine_shutdown200_response_task.rb +254 -0
  586. data/lib/katapult-ruby/models/post_virtual_machine_start200_response.rb +221 -0
  587. data/lib/katapult-ruby/models/post_virtual_machine_start200_response_task.rb +254 -0
  588. data/lib/katapult-ruby/models/post_virtual_machine_start_request.rb +221 -0
  589. data/lib/katapult-ruby/models/post_virtual_machine_stop200_response.rb +221 -0
  590. data/lib/katapult-ruby/models/post_virtual_machine_stop200_response_task.rb +254 -0
  591. data/lib/katapult-ruby/models/privacy_types_enum.rb +40 -0
  592. data/lib/katapult-ruby/models/property_type_enum.rb +41 -0
  593. data/lib/katapult-ruby/models/put_virtual_machine_flexible_resources_request.rb +237 -0
  594. data/lib/katapult-ruby/models/put_virtual_machine_package200_response.rb +221 -0
  595. data/lib/katapult-ruby/models/put_virtual_machine_package_request.rb +237 -0
  596. data/lib/katapult-ruby/models/rate_limit_reached.rb +215 -0
  597. data/lib/katapult-ruby/models/record_content_attributes_for_a.rb +214 -0
  598. data/lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb +214 -0
  599. data/lib/katapult-ruby/models/record_content_attributes_for_alias.rb +214 -0
  600. data/lib/katapult-ruby/models/record_content_attributes_for_caa.rb +232 -0
  601. data/lib/katapult-ruby/models/record_content_attributes_for_cname.rb +214 -0
  602. data/lib/katapult-ruby/models/record_content_attributes_for_ips.rb +214 -0
  603. data/lib/katapult-ruby/models/record_content_attributes_for_mx.rb +214 -0
  604. data/lib/katapult-ruby/models/record_content_attributes_for_ns.rb +214 -0
  605. data/lib/katapult-ruby/models/record_content_attributes_for_ptr.rb +214 -0
  606. data/lib/katapult-ruby/models/record_content_attributes_for_srv.rb +232 -0
  607. data/lib/katapult-ruby/models/record_content_attributes_for_sshfp.rb +232 -0
  608. data/lib/katapult-ruby/models/record_content_attributes_for_txt.rb +214 -0
  609. data/lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb +214 -0
  610. data/lib/katapult-ruby/models/resource_creation_restricted.rb +216 -0
  611. data/lib/katapult-ruby/models/resource_creation_restricted_response.rb +267 -0
  612. data/lib/katapult-ruby/models/schedule_arguments.rb +264 -0
  613. data/lib/katapult-ruby/models/schedule_interval_type_enum.rb +42 -0
  614. data/lib/katapult-ruby/models/scope_not_granted_error.rb +216 -0
  615. data/lib/katapult-ruby/models/scope_not_granted_error_response.rb +267 -0
  616. data/lib/katapult-ruby/models/security_group.rb +252 -0
  617. data/lib/katapult-ruby/models/security_group_arguments.rb +244 -0
  618. data/lib/katapult-ruby/models/security_group_lookup.rb +215 -0
  619. data/lib/katapult-ruby/models/security_group_rule_action_enum.rb +40 -0
  620. data/lib/katapult-ruby/models/security_group_rule_arguments.rb +285 -0
  621. data/lib/katapult-ruby/models/security_group_rule_direction_enum.rb +40 -0
  622. data/lib/katapult-ruby/models/security_group_rule_lookup.rb +215 -0
  623. data/lib/katapult-ruby/models/security_group_rule_protocol_enum.rb +41 -0
  624. data/lib/katapult-ruby/models/srv.rb +241 -0
  625. data/lib/katapult-ruby/models/sshfp.rb +232 -0
  626. data/lib/katapult-ruby/models/storage_speed_enum.rb +40 -0
  627. data/lib/katapult-ruby/models/tag.rb +263 -0
  628. data/lib/katapult-ruby/models/tag_arguments.rb +246 -0
  629. data/lib/katapult-ruby/models/tag_colors_enum.rb +70 -0
  630. data/lib/katapult-ruby/models/tag_lookup.rb +215 -0
  631. data/lib/katapult-ruby/models/task.rb +290 -0
  632. data/lib/katapult-ruby/models/task_queueing_error.rb +214 -0
  633. data/lib/katapult-ruby/models/task_queueing_error_response.rb +267 -0
  634. data/lib/katapult-ruby/models/task_status_enum.rb +42 -0
  635. data/lib/katapult-ruby/models/template_spec.rb +216 -0
  636. data/lib/katapult-ruby/models/template_spec_field.rb +290 -0
  637. data/lib/katapult-ruby/models/template_spec_field_type_enum.rb +42 -0
  638. data/lib/katapult-ruby/models/trash_object.rb +241 -0
  639. data/lib/katapult-ruby/models/trash_object_lookup.rb +224 -0
  640. data/lib/katapult-ruby/models/txt.rb +214 -0
  641. data/lib/katapult-ruby/models/unauthorized_network_for_api_token.rb +215 -0
  642. data/lib/katapult-ruby/models/unauthorized_network_for_api_token_response.rb +267 -0
  643. data/lib/katapult-ruby/models/user.rb +241 -0
  644. data/lib/katapult-ruby/models/validation_error.rb +216 -0
  645. data/lib/katapult-ruby/models/validation_error_response.rb +267 -0
  646. data/lib/katapult-ruby/models/virtual_machine.rb +415 -0
  647. data/lib/katapult-ruby/models/virtual_machine_arguments.rb +262 -0
  648. data/lib/katapult-ruby/models/virtual_machine_build_state_enum.rb +43 -0
  649. data/lib/katapult-ruby/models/virtual_machine_disk.rb +272 -0
  650. data/lib/katapult-ruby/models/virtual_machine_disk_attachment_state_enum.rb +43 -0
  651. data/lib/katapult-ruby/models/virtual_machine_flexible_resources.rb +238 -0
  652. data/lib/katapult-ruby/models/virtual_machine_gpu.rb +274 -0
  653. data/lib/katapult-ruby/models/virtual_machine_gpu_pending_action_enum.rb +40 -0
  654. data/lib/katapult-ruby/models/virtual_machine_gpu_status_enum.rb +43 -0
  655. data/lib/katapult-ruby/models/virtual_machine_group.rb +250 -0
  656. data/lib/katapult-ruby/models/virtual_machine_group_arguments.rb +233 -0
  657. data/lib/katapult-ruby/models/virtual_machine_group_lookup.rb +215 -0
  658. data/lib/katapult-ruby/models/virtual_machine_lookup.rb +224 -0
  659. data/lib/katapult-ruby/models/virtual_machine_must_be_started.rb +214 -0
  660. data/lib/katapult-ruby/models/virtual_machine_must_be_started_response.rb +267 -0
  661. data/lib/katapult-ruby/models/virtual_machine_network_interface_lookup.rb +215 -0
  662. data/lib/katapult-ruby/models/virtual_machine_network_interface_not_found_response.rb +267 -0
  663. data/lib/katapult-ruby/models/virtual_machine_not_found_response.rb +267 -0
  664. data/lib/katapult-ruby/models/virtual_machine_package.rb +317 -0
  665. data/lib/katapult-ruby/models/virtual_machine_package_lookup.rb +224 -0
  666. data/lib/katapult-ruby/models/virtual_machine_package_not_found_response.rb +267 -0
  667. data/lib/katapult-ruby/models/virtual_machine_state_enum.rb +49 -0
  668. data/lib/katapult-ruby/models/zone.rb +241 -0
  669. data/lib/katapult-ruby/models/zone_lookup.rb +224 -0
  670. data/lib/katapult-ruby/models/zone_not_found_response.rb +267 -0
  671. data/lib/katapult-ruby/version.rb +15 -0
  672. data/lib/katapult-ruby.rb +701 -0
  673. metadata +754 -0
@@ -0,0 +1,281 @@
1
+ =begin
2
+ #Katapult Core API
3
+
4
+ #Welcome to the documentation for the Katapult Core API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.1.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module KatapultAPI
17
+ class GetOrganizationDisks200ResponseDisk
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ attr_accessor :size_in_gb
23
+
24
+ attr_accessor :wwn
25
+
26
+ attr_accessor :state
27
+
28
+ attr_accessor :virtual_machine_disk
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'id' => :'id',
56
+ :'name' => :'name',
57
+ :'size_in_gb' => :'size_in_gb',
58
+ :'wwn' => :'wwn',
59
+ :'state' => :'state',
60
+ :'virtual_machine_disk' => :'virtual_machine_disk'
61
+ }
62
+ end
63
+
64
+ # Returns all the JSON keys this model knows about
65
+ def self.acceptable_attributes
66
+ attribute_map.values
67
+ end
68
+
69
+ # Attribute type mapping.
70
+ def self.openapi_types
71
+ {
72
+ :'id' => :'String',
73
+ :'name' => :'String',
74
+ :'size_in_gb' => :'Integer',
75
+ :'wwn' => :'String',
76
+ :'state' => :'DiskStateEnum',
77
+ :'virtual_machine_disk' => :'GetOrganizationDisksPartVirtualMachineDisk'
78
+ }
79
+ end
80
+
81
+ # List of attributes with nullable: true
82
+ def self.openapi_nullable
83
+ Set.new([
84
+ ])
85
+ end
86
+
87
+ # Initializes the object
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ def initialize(attributes = {})
90
+ if (!attributes.is_a?(Hash))
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetOrganizationDisks200ResponseDisk` initialize method"
92
+ end
93
+
94
+ # check to see if the attribute exists and convert string to symbol for hash key
95
+ attributes = attributes.each_with_object({}) { |(k, v), h|
96
+ if (!self.class.attribute_map.key?(k.to_sym))
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetOrganizationDisks200ResponseDisk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
+ end
99
+ h[k.to_sym] = v
100
+ }
101
+
102
+ if attributes.key?(:'id')
103
+ self.id = attributes[:'id']
104
+ end
105
+
106
+ if attributes.key?(:'name')
107
+ self.name = attributes[:'name']
108
+ end
109
+
110
+ if attributes.key?(:'size_in_gb')
111
+ self.size_in_gb = attributes[:'size_in_gb']
112
+ end
113
+
114
+ if attributes.key?(:'wwn')
115
+ self.wwn = attributes[:'wwn']
116
+ end
117
+
118
+ if attributes.key?(:'state')
119
+ self.state = attributes[:'state']
120
+ end
121
+
122
+ if attributes.key?(:'virtual_machine_disk')
123
+ self.virtual_machine_disk = attributes[:'virtual_machine_disk']
124
+ end
125
+ end
126
+
127
+ # Show invalid properties with the reasons. Usually used together with valid?
128
+ # @return Array for valid properties with the reasons
129
+ def list_invalid_properties
130
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
+ invalid_properties = Array.new
132
+ invalid_properties
133
+ end
134
+
135
+ # Check to see if the all the properties in the model are valid
136
+ # @return true if the model is valid
137
+ def valid?
138
+ warn '[DEPRECATED] the `valid?` method is obsolete'
139
+ true
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param [Object] Object to be compared
144
+ def ==(o)
145
+ return true if self.equal?(o)
146
+ self.class == o.class &&
147
+ id == o.id &&
148
+ name == o.name &&
149
+ size_in_gb == o.size_in_gb &&
150
+ wwn == o.wwn &&
151
+ state == o.state &&
152
+ virtual_machine_disk == o.virtual_machine_disk
153
+ end
154
+
155
+ # @see the `==` method
156
+ # @param [Object] Object to be compared
157
+ def eql?(o)
158
+ self == o
159
+ end
160
+
161
+ # Calculates hash code according to all attributes.
162
+ # @return [Integer] Hash code
163
+ def hash
164
+ [id, name, size_in_gb, wwn, state, virtual_machine_disk].hash
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def self.build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ attributes = attributes.transform_keys(&:to_sym)
173
+ transformed_hash = {}
174
+ openapi_types.each_pair do |key, type|
175
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
176
+ transformed_hash["#{key}"] = nil
177
+ elsif type =~ /\AArray<(.*)>/i
178
+ # check to ensure the input is an array given that the attribute
179
+ # is documented as an array but the input is not
180
+ if attributes[attribute_map[key]].is_a?(Array)
181
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
182
+ end
183
+ elsif !attributes[attribute_map[key]].nil?
184
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
185
+ end
186
+ end
187
+ new(transformed_hash)
188
+ end
189
+
190
+ # Deserializes the data based on type
191
+ # @param string type Data type
192
+ # @param string value Value to be deserialized
193
+ # @return [Object] Deserialized data
194
+ def self._deserialize(type, value)
195
+ case type.to_sym
196
+ when :Time
197
+ Time.parse(value)
198
+ when :Date
199
+ Date.parse(value)
200
+ when :String
201
+ value.to_s
202
+ when :Integer
203
+ value.to_i
204
+ when :Float
205
+ value.to_f
206
+ when :Boolean
207
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
208
+ true
209
+ else
210
+ false
211
+ end
212
+ when :Object
213
+ # generic object (usually a Hash), return directly
214
+ value
215
+ when /\AArray<(?<inner_type>.+)>\z/
216
+ inner_type = Regexp.last_match[:inner_type]
217
+ value.map { |v| _deserialize(inner_type, v) }
218
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
219
+ k_type = Regexp.last_match[:k_type]
220
+ v_type = Regexp.last_match[:v_type]
221
+ {}.tap do |hash|
222
+ value.each do |k, v|
223
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
224
+ end
225
+ end
226
+ else # model
227
+ # models (e.g. Pet) or oneOf
228
+ klass = KatapultAPI.const_get(type)
229
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
230
+ end
231
+ end
232
+
233
+ # Returns the string representation of the object
234
+ # @return [String] String presentation of the object
235
+ def to_s
236
+ to_hash.to_s
237
+ end
238
+
239
+ # to_body is an alias to to_hash (backward compatibility)
240
+ # @return [Hash] Returns the object in the form of hash
241
+ def to_body
242
+ to_hash
243
+ end
244
+
245
+ # Returns the object in the form of hash
246
+ # @return [Hash] Returns the object in the form of hash
247
+ def to_hash
248
+ hash = {}
249
+ self.class.attribute_map.each_pair do |attr, param|
250
+ value = self.send(attr)
251
+ if value.nil?
252
+ is_nullable = self.class.openapi_nullable.include?(attr)
253
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
254
+ end
255
+
256
+ hash[param] = _to_hash(value)
257
+ end
258
+ hash
259
+ end
260
+
261
+ # Outputs non-array value in the form of hash
262
+ # For object, use to_hash. Otherwise, just return the value
263
+ # @param [Object] value Any valid value
264
+ # @return [Hash] Returns the value in the form of hash
265
+ def _to_hash(value)
266
+ if value.is_a?(Array)
267
+ value.compact.map { |v| _to_hash(v) }
268
+ elsif value.is_a?(Hash)
269
+ {}.tap do |hash|
270
+ value.each { |k, v| hash[k] = _to_hash(v) }
271
+ end
272
+ elsif value.respond_to? :to_hash
273
+ value.to_hash
274
+ else
275
+ value
276
+ end
277
+ end
278
+
279
+ end
280
+
281
+ end
@@ -0,0 +1,223 @@
1
+ =begin
2
+ #Katapult Core API
3
+
4
+ #Welcome to the documentation for the Katapult Core API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.1.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module KatapultAPI
17
+ class GetOrganizationDisksPartVirtualMachine
18
+ attr_accessor :id
19
+
20
+ attr_accessor :fqdn
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'id' => :'id',
26
+ :'fqdn' => :'fqdn'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'id' => :'String',
39
+ :'fqdn' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetOrganizationDisksPartVirtualMachine` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetOrganizationDisksPartVirtualMachine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'id')
65
+ self.id = attributes[:'id']
66
+ end
67
+
68
+ if attributes.key?(:'fqdn')
69
+ self.fqdn = attributes[:'fqdn']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ id == o.id &&
94
+ fqdn == o.fqdn
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [id, fqdn].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = KatapultAPI.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #Katapult Core API
3
+
4
+ #Welcome to the documentation for the Katapult Core API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.1.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module KatapultAPI
17
+ class GetOrganizationDisksPartVirtualMachineDisk
18
+ attr_accessor :virtual_machine
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'virtual_machine' => :'virtual_machine'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'virtual_machine' => :'GetOrganizationDisksPartVirtualMachine'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetOrganizationDisksPartVirtualMachineDisk` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetOrganizationDisksPartVirtualMachineDisk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'virtual_machine')
61
+ self.virtual_machine = attributes[:'virtual_machine']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
69
+ invalid_properties = Array.new
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ warn '[DEPRECATED] the `valid?` method is obsolete'
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ virtual_machine == o.virtual_machine
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [virtual_machine].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ attributes = attributes.transform_keys(&:to_sym)
106
+ transformed_hash = {}
107
+ openapi_types.each_pair do |key, type|
108
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
109
+ transformed_hash["#{key}"] = nil
110
+ elsif type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[attribute_map[key]].is_a?(Array)
114
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
115
+ end
116
+ elsif !attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
118
+ end
119
+ end
120
+ new(transformed_hash)
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def self._deserialize(type, value)
128
+ case type.to_sym
129
+ when :Time
130
+ Time.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :Boolean
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ # models (e.g. Pet) or oneOf
161
+ klass = KatapultAPI.const_get(type)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end
211
+
212
+ end
213
+
214
+ end