katapult-ruby 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +73 -143
  3. data/lib/katapult-ruby/api/core_api.rb +705 -653
  4. data/lib/katapult-ruby/configuration.rb +3 -3
  5. data/lib/katapult-ruby/models/{delete_virtual_machine_part_data_center.rb → address_list.rb} +20 -16
  6. data/lib/katapult-ruby/models/{model_alias.rb → address_list_arguments.rb} +5 -3
  7. data/lib/katapult-ruby/models/{get_disk_part_operating_system.rb → address_list_entry.rb} +15 -4
  8. data/lib/katapult-ruby/models/{ns.rb → address_list_entry_arguments.rb} +16 -4
  9. data/lib/katapult-ruby/models/{aaaa.rb → address_list_entry_lookup.rb} +11 -10
  10. data/lib/katapult-ruby/models/{dns_zone_already_verified_enum.rb → address_list_entry_not_found_enum.rb} +5 -5
  11. data/lib/katapult-ruby/models/{a.rb → address_list_lookup.rb} +11 -10
  12. data/lib/katapult-ruby/models/{property_type_enum.rb → address_list_not_found_enum.rb} +5 -7
  13. data/lib/katapult-ruby/models/certificate.rb +8 -0
  14. data/lib/katapult-ruby/models/country.rb +1 -0
  15. data/lib/katapult-ruby/models/data_center.rb +1 -0
  16. data/lib/katapult-ruby/models/{dns_zone_not_verified.rb → decimal_or_unlimited.rb} +20 -10
  17. data/lib/katapult-ruby/models/{patch_load_balancer_part_weights.rb → delete_address_list200_response.rb} +17 -19
  18. data/lib/katapult-ruby/models/{get_dns_records_dns_record200_response.rb → delete_address_list_entry200_response.rb} +14 -14
  19. data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone200_response.rb → delete_address_list_entry_request.rb} +14 -14
  20. data/lib/katapult-ruby/models/{get_disk_template_part_badge.rb → delete_address_list_request.rb} +17 -10
  21. data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response_disk_backup_policy.rb +1 -0
  22. data/lib/katapult-ruby/models/{delete_dns_records_dns_record_request.rb → delete_dns_record_request.rb} +3 -3
  23. data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone_request.rb → delete_dns_zone_request.rb} +3 -3
  24. data/lib/katapult-ruby/models/delete_file_storage_volume200_response_file_storage_volume.rb +2 -0
  25. data/lib/katapult-ruby/models/delete_file_storage_volume_part_data_center.rb +1 -0
  26. data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +1 -0
  27. data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +27 -9
  28. data/lib/katapult-ruby/models/disk.rb +3 -0
  29. data/lib/katapult-ruby/models/disk_installation_attribute.rb +2 -0
  30. data/lib/katapult-ruby/models/disk_io_profile.rb +2 -0
  31. data/lib/katapult-ruby/models/disk_template.rb +3 -0
  32. data/lib/katapult-ruby/models/dns_record.rb +3 -0
  33. data/lib/katapult-ruby/models/dns_record_arguments.rb +24 -14
  34. data/lib/katapult-ruby/models/{get_virtual_machine_part_gpus.rb → dns_record_content_arguments.rb} +115 -55
  35. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone200_response.rb → dns_record_content_arguments_for_a.rb} +11 -17
  36. data/lib/katapult-ruby/models/dns_record_content_arguments_for_aaaa.rb +215 -0
  37. data/lib/katapult-ruby/models/dns_record_content_arguments_for_alias.rb +215 -0
  38. data/lib/katapult-ruby/models/{delete_virtual_machine_part_operating_system.rb → dns_record_content_arguments_for_caa.rb} +23 -22
  39. data/lib/katapult-ruby/models/dns_record_content_arguments_for_cname.rb +215 -0
  40. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ips.rb +215 -0
  41. data/lib/katapult-ruby/models/{cname.rb → dns_record_content_arguments_for_mx.rb} +11 -10
  42. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ns.rb +215 -0
  43. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ptr.rb +215 -0
  44. data/lib/katapult-ruby/models/{srv.rb → dns_record_content_arguments_for_srv.rb} +5 -13
  45. data/lib/katapult-ruby/models/{sshfp.rb → dns_record_content_arguments_for_sshfp.rb} +4 -3
  46. data/lib/katapult-ruby/models/{dns_record_properties.rb → dns_record_content_arguments_for_txt.rb} +11 -10
  47. data/lib/katapult-ruby/models/dns_record_content_arguments_for_virtual_machine.rb +215 -0
  48. data/lib/katapult-ruby/models/dns_record_content_attributes.rb +14 -0
  49. data/lib/katapult-ruby/models/dns_zone.rb +10 -19
  50. data/lib/katapult-ruby/models/dns_zone_arguments.rb +9 -15
  51. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone_verification_details422_response.rb → get_address_list404_response.rb} +4 -4
  52. data/lib/katapult-ruby/models/{delete_virtual_machine_part_currency.rb → get_address_list_entries200_response.rb} +33 -34
  53. data/lib/katapult-ruby/models/get_address_list_entry404_response.rb +254 -0
  54. data/lib/katapult-ruby/models/{dns_zone_verification_details.rb → get_address_lists200_response.rb} +35 -11
  55. data/lib/katapult-ruby/models/{patch_virtual_machine_part_operating_system.rb → get_address_lists200_response_address_lists.rb} +12 -10
  56. data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +1 -0
  57. data/lib/katapult-ruby/models/get_data_center_default_network200_response_network.rb +1 -0
  58. data/lib/katapult-ruby/models/get_data_center_default_network_part_data_center.rb +1 -0
  59. data/lib/katapult-ruby/models/get_data_centers200_response_data_centers.rb +1 -0
  60. data/lib/katapult-ruby/models/get_disk200_response_disk.rb +5 -2
  61. data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +2 -1
  62. data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +4 -1
  63. data/lib/katapult-ruby/models/{get_dns_records_dns_record404_response.rb → get_dns_record404_response.rb} +3 -3
  64. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone404_response.rb → get_dns_zone404_response.rb} +3 -3
  65. data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +2 -0
  66. data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +1 -0
  67. data/lib/katapult-ruby/models/get_gpu_type_part_data_centers.rb +1 -0
  68. data/lib/katapult-ruby/models/get_gpu_types_part_data_centers.rb +1 -0
  69. data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +4 -5
  70. data/lib/katapult-ruby/models/get_load_balancer_part_data_center.rb +1 -0
  71. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
  72. data/lib/katapult-ruby/models/{get_organization_users_with_access_part_user.rb → get_organization_address_lists200_response.rb} +33 -34
  73. data/lib/katapult-ruby/models/{get_virtual_machine_part_attached_iso.rb → get_organization_address_lists200_response_address_lists.rb} +12 -10
  74. data/lib/katapult-ruby/models/get_organization_available_networks200_response_networks.rb +1 -0
  75. data/lib/katapult-ruby/models/get_organization_available_networks_part_data_center.rb +1 -0
  76. data/lib/katapult-ruby/models/get_organization_certificates200_response_certificates.rb +2 -0
  77. data/lib/katapult-ruby/models/get_organization_disk_templates200_response_disk_templates.rb +3 -0
  78. data/lib/katapult-ruby/models/get_organization_disks200_response_disk.rb +1 -0
  79. data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response_file_storage_volumes.rb +2 -0
  80. data/lib/katapult-ruby/models/get_organization_file_storage_volumes_part_data_center.rb +1 -0
  81. data/lib/katapult-ruby/models/get_organization_ip_addresses200_response_ip_addresses.rb +2 -0
  82. data/lib/katapult-ruby/models/get_organization_load_balancers200_response_load_balancers.rb +3 -4
  83. data/lib/katapult-ruby/models/{delete_dns_records_dns_record200_response.rb → get_organization_policy_limits200_response.rb} +14 -14
  84. data/lib/katapult-ruby/models/get_organization_users_with_access200_response_users.rb +2 -1
  85. data/lib/katapult-ruby/models/get_organization_virtual_machines200_response_virtual_machines.rb +3 -1
  86. data/lib/katapult-ruby/models/get_security_group_rules200_response_security_group_rules.rb +2 -0
  87. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
  88. data/lib/katapult-ruby/models/get_virtual_machine200_response_virtual_machine.rb +27 -9
  89. data/lib/katapult-ruby/models/get_virtual_machine_authorized_keys404_response.rb +254 -0
  90. data/lib/katapult-ruby/models/get_virtual_machine_packages200_response_virtual_machine_packages.rb +1 -0
  91. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response_virtual_machine_build.rb +1 -0
  92. data/lib/katapult-ruby/models/get_zones200_response_zones.rb +1 -0
  93. data/lib/katapult-ruby/models/get_zones_part_data_center.rb +1 -0
  94. data/lib/katapult-ruby/models/{mx.rb → integer_or_unlimited.rb} +17 -16
  95. data/lib/katapult-ruby/models/invalid_api_token.rb +1 -0
  96. data/lib/katapult-ruby/models/ip_address.rb +3 -0
  97. data/lib/katapult-ruby/models/iso.rb +1 -0
  98. data/lib/katapult-ruby/models/{get_load_balancer_part_weights.rb → load_balancer_weight.rb} +3 -3
  99. data/lib/katapult-ruby/models/network.rb +1 -0
  100. data/lib/katapult-ruby/models/network_speed_profile.rb +2 -0
  101. data/lib/katapult-ruby/models/{infrastructure_dns_zone_cannot_be_edited_enum.rb → no_virtual_machine_for_api_token_enum.rb} +5 -5
  102. data/lib/katapult-ruby/models/object_in_trash.rb +1 -0
  103. data/lib/katapult-ruby/models/operating_system.rb +1 -0
  104. data/lib/katapult-ruby/models/organization.rb +10 -0
  105. data/lib/katapult-ruby/models/organization_policy.rb +349 -0
  106. data/lib/katapult-ruby/models/pagination_object.rb +2 -0
  107. data/lib/katapult-ruby/models/{delete_virtual_machine_part_zone.rb → patch_address_list_entry_request.rb} +30 -34
  108. data/lib/katapult-ruby/models/{get_disk_part_disk_template.rb → patch_address_list_request.rb} +30 -34
  109. data/lib/katapult-ruby/models/patch_file_storage_volume200_response_file_storage_volume.rb +2 -0
  110. data/lib/katapult-ruby/models/patch_file_storage_volume_part_data_center.rb +1 -0
  111. data/lib/katapult-ruby/models/patch_load_balancer200_response_load_balancer.rb +4 -5
  112. data/lib/katapult-ruby/models/patch_load_balancer_part_data_center.rb +1 -0
  113. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
  114. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
  115. data/lib/katapult-ruby/models/patch_virtual_machine200_response_virtual_machine.rb +27 -9
  116. data/lib/katapult-ruby/models/permission_denied.rb +1 -0
  117. data/lib/katapult-ruby/models/post_address_list_entries201_response.rb +221 -0
  118. data/lib/katapult-ruby/models/{get_virtual_machine_part_currency.rb → post_address_list_entries_request.rb} +30 -34
  119. data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
  120. data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_verify422_response.rb → post_dns_zone_verify422_response.rb} +4 -4
  121. data/lib/katapult-ruby/models/post_load_balancer_rules200_response_load_balancer_rule.rb +2 -0
  122. data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_update_ttl200_response.rb → post_organization_address_lists201_response.rb} +14 -14
  123. data/lib/katapult-ruby/models/{post_organizations_organization_dns_zones_request.rb → post_organization_address_lists_request.rb} +4 -4
  124. data/lib/katapult-ruby/models/post_organization_dns_zones201_response.rb +1 -1
  125. data/lib/katapult-ruby/models/post_organization_dns_zones_request.rb +11 -11
  126. data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response_file_storage_volume.rb +2 -0
  127. data/lib/katapult-ruby/models/post_organization_file_storage_volumes_part_data_center.rb +1 -0
  128. data/lib/katapult-ruby/models/{post_organization_load_balancers200_response.rb → post_organization_load_balancers201_response.rb} +4 -4
  129. data/lib/katapult-ruby/models/{post_organization_load_balancers200_response_load_balancer.rb → post_organization_load_balancers201_response_load_balancer.rb} +7 -8
  130. data/lib/katapult-ruby/models/post_organization_load_balancers_part_data_center.rb +1 -0
  131. data/lib/katapult-ruby/models/post_security_group_rules200_response_security_group_rule.rb +2 -0
  132. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
  133. data/lib/katapult-ruby/models/record_content_attributes_for_a.rb +1 -0
  134. data/lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb +1 -0
  135. data/lib/katapult-ruby/models/record_content_attributes_for_alias.rb +1 -0
  136. data/lib/katapult-ruby/models/record_content_attributes_for_caa.rb +3 -0
  137. data/lib/katapult-ruby/models/record_content_attributes_for_cname.rb +1 -0
  138. data/lib/katapult-ruby/models/record_content_attributes_for_ips.rb +1 -0
  139. data/lib/katapult-ruby/models/record_content_attributes_for_mx.rb +1 -0
  140. data/lib/katapult-ruby/models/record_content_attributes_for_ns.rb +1 -0
  141. data/lib/katapult-ruby/models/record_content_attributes_for_ptr.rb +1 -0
  142. data/lib/katapult-ruby/models/record_content_attributes_for_srv.rb +3 -0
  143. data/lib/katapult-ruby/models/record_content_attributes_for_sshfp.rb +3 -0
  144. data/lib/katapult-ruby/models/record_content_attributes_for_txt.rb +1 -0
  145. data/lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb +1 -0
  146. data/lib/katapult-ruby/models/{get_disk_backup_policy_part_schedule.rb → schedule.rb} +3 -3
  147. data/lib/katapult-ruby/models/task.rb +2 -0
  148. data/lib/katapult-ruby/models/template_spec_field.rb +3 -0
  149. data/lib/katapult-ruby/models/virtual_machine.rb +19 -1
  150. data/lib/katapult-ruby/models/virtual_machine_flexible_resources.rb +13 -4
  151. data/lib/katapult-ruby/models/virtual_machine_gpu.rb +2 -0
  152. data/lib/katapult-ruby/models/virtual_machine_package.rb +15 -4
  153. data/lib/katapult-ruby/models/virtual_machine_state_enum.rb +2 -1
  154. data/lib/katapult-ruby/models/zone.rb +1 -0
  155. data/lib/katapult-ruby/version.rb +1 -1
  156. data/lib/katapult-ruby.rb +54 -125
  157. metadata +57 -128
  158. data/lib/katapult-ruby/models/caa.rb +0 -254
  159. data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response_dns_zone.rb +0 -250
  160. data/lib/katapult-ruby/models/delete_virtual_machine_part_attached_iso.rb +0 -232
  161. data/lib/katapult-ruby/models/delete_virtual_machine_part_badge.rb +0 -259
  162. data/lib/katapult-ruby/models/delete_virtual_machine_part_country.rb +0 -259
  163. data/lib/katapult-ruby/models/delete_virtual_machine_part_country_state.rb +0 -241
  164. data/lib/katapult-ruby/models/delete_virtual_machine_part_gpus.rb +0 -274
  165. data/lib/katapult-ruby/models/delete_virtual_machine_part_group.rb +0 -250
  166. data/lib/katapult-ruby/models/delete_virtual_machine_part_icon.rb +0 -259
  167. data/lib/katapult-ruby/models/delete_virtual_machine_part_ip_addresses.rb +0 -286
  168. data/lib/katapult-ruby/models/delete_virtual_machine_part_network.rb +0 -241
  169. data/lib/katapult-ruby/models/delete_virtual_machine_part_organization.rb +0 -367
  170. data/lib/katapult-ruby/models/delete_virtual_machine_part_package.rb +0 -317
  171. data/lib/katapult-ruby/models/delete_virtual_machine_part_tags.rb +0 -263
  172. data/lib/katapult-ruby/models/delete_virtual_machine_part_type.rb +0 -259
  173. data/lib/katapult-ruby/models/dns_record_properties_arguments.rb +0 -363
  174. data/lib/katapult-ruby/models/dns_record_properties_properties.rb +0 -114
  175. data/lib/katapult-ruby/models/dns_record_type_enum.rb +0 -49
  176. data/lib/katapult-ruby/models/get_disk_part_attributes.rb +0 -250
  177. data/lib/katapult-ruby/models/get_disk_part_disk_template_version.rb +0 -232
  178. data/lib/katapult-ruby/models/get_disk_part_installation.rb +0 -234
  179. data/lib/katapult-ruby/models/get_disk_part_io_profile.rb +0 -250
  180. data/lib/katapult-ruby/models/get_disk_template_part_operating_system.rb +0 -232
  181. data/lib/katapult-ruby/models/get_dns_records_dns_record200_response_dns_record.rb +0 -272
  182. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response.rb +0 -224
  183. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response_dns_records.rb +0 -272
  184. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details200_response.rb +0 -221
  185. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_data_center.rb +0 -232
  186. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_zone.rb +0 -241
  187. data/lib/katapult-ruby/models/get_virtual_machine_part_badge.rb +0 -259
  188. data/lib/katapult-ruby/models/get_virtual_machine_part_country.rb +0 -259
  189. data/lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb +0 -241
  190. data/lib/katapult-ruby/models/get_virtual_machine_part_data_center.rb +0 -241
  191. data/lib/katapult-ruby/models/get_virtual_machine_part_group.rb +0 -250
  192. data/lib/katapult-ruby/models/get_virtual_machine_part_icon.rb +0 -259
  193. data/lib/katapult-ruby/models/get_virtual_machine_part_ip_addresses.rb +0 -286
  194. data/lib/katapult-ruby/models/get_virtual_machine_part_network.rb +0 -241
  195. data/lib/katapult-ruby/models/get_virtual_machine_part_operating_system.rb +0 -232
  196. data/lib/katapult-ruby/models/get_virtual_machine_part_organization.rb +0 -367
  197. data/lib/katapult-ruby/models/get_virtual_machine_part_package.rb +0 -317
  198. data/lib/katapult-ruby/models/get_virtual_machine_part_tags.rb +0 -263
  199. data/lib/katapult-ruby/models/get_virtual_machine_part_type.rb +0 -259
  200. data/lib/katapult-ruby/models/get_virtual_machine_part_zone.rb +0 -241
  201. data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_schema.rb +0 -255
  202. data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_res.rb +0 -107
  203. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response.rb +0 -221
  204. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response_dns_record.rb +0 -272
  205. data/lib/katapult-ruby/models/patch_dns_records_dns_record_request.rb +0 -237
  206. data/lib/katapult-ruby/models/patch_virtual_machine_part_attached_iso.rb +0 -232
  207. data/lib/katapult-ruby/models/patch_virtual_machine_part_badge.rb +0 -259
  208. data/lib/katapult-ruby/models/patch_virtual_machine_part_country.rb +0 -259
  209. data/lib/katapult-ruby/models/patch_virtual_machine_part_country_state.rb +0 -241
  210. data/lib/katapult-ruby/models/patch_virtual_machine_part_currency.rb +0 -241
  211. data/lib/katapult-ruby/models/patch_virtual_machine_part_data_center.rb +0 -241
  212. data/lib/katapult-ruby/models/patch_virtual_machine_part_gpus.rb +0 -274
  213. data/lib/katapult-ruby/models/patch_virtual_machine_part_group.rb +0 -250
  214. data/lib/katapult-ruby/models/patch_virtual_machine_part_icon.rb +0 -259
  215. data/lib/katapult-ruby/models/patch_virtual_machine_part_ip_addresses.rb +0 -286
  216. data/lib/katapult-ruby/models/patch_virtual_machine_part_network.rb +0 -241
  217. data/lib/katapult-ruby/models/patch_virtual_machine_part_organization.rb +0 -367
  218. data/lib/katapult-ruby/models/patch_virtual_machine_part_package.rb +0 -317
  219. data/lib/katapult-ruby/models/patch_virtual_machine_part_tags.rb +0 -263
  220. data/lib/katapult-ruby/models/patch_virtual_machine_part_type.rb +0 -259
  221. data/lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb +0 -241
  222. data/lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb +0 -272
  223. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response.rb +0 -221
  224. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response_dns_record.rb +0 -272
  225. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records_request.rb +0 -237
  226. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response_dns_zone.rb +0 -250
  227. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl_request.rb +0 -238
  228. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify200_response.rb +0 -221
  229. data/lib/katapult-ruby/models/post_organization_dns_zones201_response_dns_zone.rb +0 -250
  230. data/lib/katapult-ruby/models/post_organization_load_balancers_part_weights.rb +0 -223
  231. data/lib/katapult-ruby/models/post_organization_managed201_response.rb +0 -221
  232. data/lib/katapult-ruby/models/post_organization_managed201_response_organization.rb +0 -367
  233. data/lib/katapult-ruby/models/post_organization_managed_part_country.rb +0 -259
  234. data/lib/katapult-ruby/models/post_organization_managed_part_country_state.rb +0 -241
  235. data/lib/katapult-ruby/models/post_organization_managed_part_currency.rb +0 -241
  236. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response.rb +0 -221
  237. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response_dns_zone.rb +0 -241
  238. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_part_schedule.rb +0 -272
  239. data/lib/katapult-ruby/models/txt.rb +0 -214
@@ -0,0 +1,254 @@
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 GetVirtualMachineAuthorizedKeys404Response
18
+ attr_accessor :code
19
+
20
+ attr_accessor :description
21
+
22
+ attr_accessor :detail
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype
26
+ attr_reader :allowable_values
27
+
28
+ def initialize(datatype, allowable_values)
29
+ @allowable_values = allowable_values.map do |value|
30
+ case datatype.to_s
31
+ when /Integer/i
32
+ value.to_i
33
+ when /Float/i
34
+ value.to_f
35
+ else
36
+ value
37
+ end
38
+ end
39
+ end
40
+
41
+ def valid?(value)
42
+ !value || allowable_values.include?(value)
43
+ end
44
+ end
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'code' => :'code',
50
+ :'description' => :'description',
51
+ :'detail' => :'detail'
52
+ }
53
+ end
54
+
55
+ # Returns all the JSON keys this model knows about
56
+ def self.acceptable_attributes
57
+ attribute_map.values
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'code' => :'NoVirtualMachineForAPITokenEnum',
64
+ :'description' => :'String',
65
+ :'detail' => :'Object'
66
+ }
67
+ end
68
+
69
+ # List of attributes with nullable: true
70
+ def self.openapi_nullable
71
+ Set.new([
72
+ ])
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ if (!attributes.is_a?(Hash))
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetVirtualMachineAuthorizedKeys404Response` initialize method"
80
+ end
81
+
82
+ # check to see if the attribute exists and convert string to symbol for hash key
83
+ attributes = attributes.each_with_object({}) { |(k, v), h|
84
+ if (!self.class.attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetVirtualMachineAuthorizedKeys404Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
+ end
87
+ h[k.to_sym] = v
88
+ }
89
+
90
+ if attributes.key?(:'code')
91
+ self.code = attributes[:'code']
92
+ end
93
+
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
96
+ end
97
+
98
+ if attributes.key?(:'detail')
99
+ self.detail = attributes[:'detail']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ true
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ code == o.code &&
124
+ description == o.description &&
125
+ detail == o.detail
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [code, description, detail].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ attributes = attributes.transform_keys(&:to_sym)
146
+ transformed_hash = {}
147
+ openapi_types.each_pair do |key, type|
148
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
149
+ transformed_hash["#{key}"] = nil
150
+ elsif type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[attribute_map[key]].is_a?(Array)
154
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
155
+ end
156
+ elsif !attributes[attribute_map[key]].nil?
157
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
158
+ end
159
+ end
160
+ new(transformed_hash)
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def self._deserialize(type, value)
168
+ case type.to_sym
169
+ when :Time
170
+ Time.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :Boolean
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ # models (e.g. Pet) or oneOf
201
+ klass = KatapultAPI.const_get(type)
202
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
203
+ end
204
+ end
205
+
206
+ # Returns the string representation of the object
207
+ # @return [String] String presentation of the object
208
+ def to_s
209
+ to_hash.to_s
210
+ end
211
+
212
+ # to_body is an alias to to_hash (backward compatibility)
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_body
215
+ to_hash
216
+ end
217
+
218
+ # Returns the object in the form of hash
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_hash
221
+ hash = {}
222
+ self.class.attribute_map.each_pair do |attr, param|
223
+ value = self.send(attr)
224
+ if value.nil?
225
+ is_nullable = self.class.openapi_nullable.include?(attr)
226
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
227
+ end
228
+
229
+ hash[param] = _to_hash(value)
230
+ end
231
+ hash
232
+ end
233
+
234
+ # Outputs non-array value in the form of hash
235
+ # For object, use to_hash. Otherwise, just return the value
236
+ # @param [Object] value Any valid value
237
+ # @return [Hash] Returns the value in the form of hash
238
+ def _to_hash(value)
239
+ if value.is_a?(Array)
240
+ value.compact.map { |v| _to_hash(v) }
241
+ elsif value.is_a?(Hash)
242
+ {}.tap do |hash|
243
+ value.each { |k, v| hash[k] = _to_hash(v) }
244
+ end
245
+ elsif value.respond_to? :to_hash
246
+ value.to_hash
247
+ else
248
+ value
249
+ end
250
+ end
251
+
252
+ end
253
+
254
+ end
@@ -93,6 +93,7 @@ module KatapultAPI
93
93
  # List of attributes with nullable: true
94
94
  def self.openapi_nullable
95
95
  Set.new([
96
+ :'icon'
96
97
  ])
97
98
  end
98
99
 
@@ -77,6 +77,7 @@ module KatapultAPI
77
77
  # List of attributes with nullable: true
78
78
  def self.openapi_nullable
79
79
  Set.new([
80
+ :'virtual_machine',
80
81
  ])
81
82
  end
82
83
 
@@ -51,6 +51,7 @@ module KatapultAPI
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'permalink',
54
55
  ])
55
56
  end
56
57
 
@@ -47,6 +47,7 @@ module KatapultAPI
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'permalink'
50
51
  ])
51
52
  end
52
53
 
@@ -14,16 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class MX
18
- attr_accessor :host
17
+ class IntegerOrUnlimited
18
+ attr_accessor :value
19
19
 
20
- attr_accessor :priority
20
+ attr_accessor :unlimited
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'host' => :'host',
26
- :'priority' => :'priority'
25
+ :'value' => :'value',
26
+ :'unlimited' => :'unlimited'
27
27
  }
28
28
  end
29
29
 
@@ -35,14 +35,15 @@ module KatapultAPI
35
35
  # Attribute type mapping.
36
36
  def self.openapi_types
37
37
  {
38
- :'host' => :'String',
39
- :'priority' => :'String'
38
+ :'value' => :'Integer',
39
+ :'unlimited' => :'Boolean'
40
40
  }
41
41
  end
42
42
 
43
43
  # List of attributes with nullable: true
44
44
  def self.openapi_nullable
45
45
  Set.new([
46
+ :'value',
46
47
  ])
47
48
  end
48
49
 
@@ -50,23 +51,23 @@ module KatapultAPI
50
51
  # @param [Hash] attributes Model attributes in the form of hash
51
52
  def initialize(attributes = {})
52
53
  if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::MX` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::IntegerOrUnlimited` initialize method"
54
55
  end
55
56
 
56
57
  # check to see if the attribute exists and convert string to symbol for hash key
57
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
59
  if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::MX`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::IntegerOrUnlimited`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
61
  end
61
62
  h[k.to_sym] = v
62
63
  }
63
64
 
64
- if attributes.key?(:'host')
65
- self.host = attributes[:'host']
65
+ if attributes.key?(:'value')
66
+ self.value = attributes[:'value']
66
67
  end
67
68
 
68
- if attributes.key?(:'priority')
69
- self.priority = attributes[:'priority']
69
+ if attributes.key?(:'unlimited')
70
+ self.unlimited = attributes[:'unlimited']
70
71
  end
71
72
  end
72
73
 
@@ -90,8 +91,8 @@ module KatapultAPI
90
91
  def ==(o)
91
92
  return true if self.equal?(o)
92
93
  self.class == o.class &&
93
- host == o.host &&
94
- priority == o.priority
94
+ value == o.value &&
95
+ unlimited == o.unlimited
95
96
  end
96
97
 
97
98
  # @see the `==` method
@@ -103,7 +104,7 @@ module KatapultAPI
103
104
  # Calculates hash code according to all attributes.
104
105
  # @return [Integer] Hash code
105
106
  def hash
106
- [host, priority].hash
107
+ [value, unlimited].hash
107
108
  end
108
109
 
109
110
  # Builds the object from hash
@@ -39,6 +39,7 @@ module KatapultAPI
39
39
  # List of attributes with nullable: true
40
40
  def self.openapi_nullable
41
41
  Set.new([
42
+ :'details'
42
43
  ])
43
44
  end
44
45
 
@@ -71,6 +71,9 @@ module KatapultAPI
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
+ :'label',
75
+ :'allocation_id',
76
+ :'allocation_type'
74
77
  ])
75
78
  end
76
79
 
@@ -47,6 +47,7 @@ module KatapultAPI
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'operating_system'
50
51
  ])
51
52
  end
52
53
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class GetLoadBalancerPartWeights
17
+ class LoadBalancerWeight
18
18
  attr_accessor :virtual_machine_id
19
19
 
20
20
  attr_accessor :weight
@@ -50,13 +50,13 @@ module KatapultAPI
50
50
  # @param [Hash] attributes Model attributes in the form of hash
51
51
  def initialize(attributes = {})
52
52
  if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetLoadBalancerPartWeights` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::LoadBalancerWeight` initialize method"
54
54
  end
55
55
 
56
56
  # check to see if the attribute exists and convert string to symbol for hash key
57
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
58
  if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetLoadBalancerPartWeights`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::LoadBalancerWeight`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
60
  end
61
61
  h[k.to_sym] = v
62
62
  }
@@ -51,6 +51,7 @@ module KatapultAPI
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'permalink',
54
55
  ])
55
56
  end
56
57
 
@@ -55,6 +55,8 @@ module KatapultAPI
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
57
  Set.new([
58
+ :'upload_speed_in_mbit',
59
+ :'download_speed_in_mbit',
58
60
  ])
59
61
  end
60
62
 
@@ -14,11 +14,11 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class InfrastructureDNSZoneCannotBeEditedEnum
18
- INFRASTRUCTURE_DNS_ZONE_CANNOT_BE_EDITED = "infrastructure_dns_zone_cannot_be_edited".freeze
17
+ class NoVirtualMachineForAPITokenEnum
18
+ NO_VIRTUAL_MACHINE_FOR_API_TOKEN = "no_virtual_machine_for_api_token".freeze
19
19
 
20
20
  def self.all_vars
21
- @all_vars ||= [INFRASTRUCTURE_DNS_ZONE_CANNOT_BE_EDITED].freeze
21
+ @all_vars ||= [NO_VIRTUAL_MACHINE_FOR_API_TOKEN].freeze
22
22
  end
23
23
 
24
24
  # Builds the enum from string
@@ -32,8 +32,8 @@ module KatapultAPI
32
32
  # @param [String] The enum value in the form of the string
33
33
  # @return [String] The enum value
34
34
  def build_from_hash(value)
35
- return value if InfrastructureDNSZoneCannotBeEditedEnum.all_vars.include?(value)
36
- raise "Invalid ENUM value #{value} for class #InfrastructureDNSZoneCannotBeEditedEnum"
35
+ return value if NoVirtualMachineForAPITokenEnum.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #NoVirtualMachineForAPITokenEnum"
37
37
  end
38
38
  end
39
39
  end
@@ -39,6 +39,7 @@ module KatapultAPI
39
39
  # List of attributes with nullable: true
40
40
  def self.openapi_nullable
41
41
  Set.new([
42
+ :'trash_object'
42
43
  ])
43
44
  end
44
45
 
@@ -47,6 +47,7 @@ module KatapultAPI
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'badge'
50
51
  ])
51
52
  end
52
53
 
@@ -107,6 +107,16 @@ module KatapultAPI
107
107
  # List of attributes with nullable: true
108
108
  def self.openapi_nullable
109
109
  Set.new([
110
+ :'billing_name',
111
+ :'address1',
112
+ :'address2',
113
+ :'address3',
114
+ :'address4',
115
+ :'postcode',
116
+ :'vat_number',
117
+ :'phone_number',
118
+ :'country',
119
+ :'country_state'
110
120
  ])
111
121
  end
112
122