katapult-ruby 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +190 -196
  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/address_list_entry_not_found_enum.rb +39 -0
  11. data/lib/katapult-ruby/models/{a.rb → address_list_lookup.rb} +11 -10
  12. data/lib/katapult-ruby/models/address_list_not_found_enum.rb +39 -0
  13. data/lib/katapult-ruby/models/{interface_not_found_response.rb → api_authenticator400_schema.rb} +5 -17
  14. data/lib/katapult-ruby/models/certificate.rb +8 -0
  15. data/lib/katapult-ruby/models/certificate_not_found_enum.rb +39 -0
  16. data/lib/katapult-ruby/models/country.rb +1 -0
  17. data/lib/katapult-ruby/models/country_not_found_enum.rb +39 -0
  18. data/lib/katapult-ruby/models/country_state_not_found_enum.rb +39 -0
  19. data/lib/katapult-ruby/models/currency_not_found_enum.rb +39 -0
  20. data/lib/katapult-ruby/models/data_center.rb +1 -0
  21. data/lib/katapult-ruby/models/data_center_not_found_enum.rb +39 -0
  22. data/lib/katapult-ruby/models/{location_required_response.rb → data_center_not_found_schema.rb} +5 -17
  23. data/lib/katapult-ruby/models/{dns_zone_not_verified.rb → decimal_or_unlimited.rb} +20 -10
  24. data/lib/katapult-ruby/models/{patch_load_balancer_part_weights.rb → delete_address_list200_response.rb} +17 -19
  25. data/lib/katapult-ruby/models/{get_dns_records_dns_record200_response.rb → delete_address_list_entry200_response.rb} +14 -14
  26. data/lib/katapult-ruby/models/{delete_dns_records_dns_record200_response.rb → delete_address_list_entry_request.rb} +14 -14
  27. data/lib/katapult-ruby/models/{get_disk_template_part_badge.rb → delete_address_list_request.rb} +17 -10
  28. data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response_disk_backup_policy.rb +1 -0
  29. data/lib/katapult-ruby/models/{delete_dns_records_dns_record_request.rb → delete_dns_record_request.rb} +3 -3
  30. data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone_request.rb → delete_dns_zone_request.rb} +3 -3
  31. data/lib/katapult-ruby/models/delete_file_storage_volume200_response_file_storage_volume.rb +2 -0
  32. data/lib/katapult-ruby/models/delete_file_storage_volume_part_data_center.rb +1 -0
  33. data/lib/katapult-ruby/models/delete_ip_address409_response.rb +1 -13
  34. data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +1 -0
  35. data/lib/katapult-ruby/models/delete_ssh_key404_response.rb +1 -13
  36. data/lib/katapult-ruby/models/delete_ssh_key409_response.rb +1 -13
  37. data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +27 -9
  38. data/lib/katapult-ruby/models/deletion_restricted_enum.rb +39 -0
  39. data/lib/katapult-ruby/models/disk.rb +3 -0
  40. data/lib/katapult-ruby/models/disk_backup_policy_not_found_enum.rb +39 -0
  41. data/lib/katapult-ruby/models/disk_installation_attribute.rb +2 -0
  42. data/lib/katapult-ruby/models/disk_io_profile.rb +2 -0
  43. data/lib/katapult-ruby/models/{property_type_enum.rb → disk_not_found_enum.rb} +5 -7
  44. data/lib/katapult-ruby/models/disk_template.rb +3 -0
  45. data/lib/katapult-ruby/models/disk_template_not_found_enum.rb +39 -0
  46. data/lib/katapult-ruby/models/{ip_already_allocated_response.rb → disk_template_not_found_schema.rb} +5 -17
  47. data/lib/katapult-ruby/models/disk_template_version_not_found_enum.rb +39 -0
  48. data/lib/katapult-ruby/models/dns_record.rb +3 -0
  49. data/lib/katapult-ruby/models/dns_record_arguments.rb +24 -14
  50. data/lib/katapult-ruby/models/{get_virtual_machine_part_gpus.rb → dns_record_content_arguments.rb} +115 -55
  51. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone200_response.rb → dns_record_content_arguments_for_a.rb} +11 -17
  52. data/lib/katapult-ruby/models/dns_record_content_arguments_for_aaaa.rb +215 -0
  53. data/lib/katapult-ruby/models/dns_record_content_arguments_for_alias.rb +215 -0
  54. data/lib/katapult-ruby/models/{delete_virtual_machine_part_operating_system.rb → dns_record_content_arguments_for_caa.rb} +23 -22
  55. data/lib/katapult-ruby/models/dns_record_content_arguments_for_cname.rb +215 -0
  56. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ips.rb +215 -0
  57. data/lib/katapult-ruby/models/{dns_record_properties.rb → dns_record_content_arguments_for_mx.rb} +11 -10
  58. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ns.rb +215 -0
  59. data/lib/katapult-ruby/models/dns_record_content_arguments_for_ptr.rb +215 -0
  60. data/lib/katapult-ruby/models/{srv.rb → dns_record_content_arguments_for_srv.rb} +5 -13
  61. data/lib/katapult-ruby/models/{sshfp.rb → dns_record_content_arguments_for_sshfp.rb} +4 -3
  62. data/lib/katapult-ruby/models/{cname.rb → dns_record_content_arguments_for_txt.rb} +11 -10
  63. data/lib/katapult-ruby/models/dns_record_content_arguments_for_virtual_machine.rb +215 -0
  64. data/lib/katapult-ruby/models/dns_record_content_attributes.rb +14 -0
  65. data/lib/katapult-ruby/models/dns_record_not_found_enum.rb +39 -0
  66. data/lib/katapult-ruby/models/dns_zone.rb +10 -19
  67. data/lib/katapult-ruby/models/dns_zone_arguments.rb +9 -15
  68. data/lib/katapult-ruby/models/dns_zone_not_found_enum.rb +39 -0
  69. data/lib/katapult-ruby/models/dns_zone_not_verified_enum.rb +39 -0
  70. data/lib/katapult-ruby/models/file_storage_volume_not_found_enum.rb +39 -0
  71. data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_enum.rb +39 -0
  72. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone_verification_details422_response.rb → flexible_resources_unavailable_to_organization_schema.rb} +5 -16
  73. data/lib/katapult-ruby/models/{ip_address_not_found_response.rb → get_address_list404_response.rb} +4 -17
  74. data/lib/katapult-ruby/models/{delete_virtual_machine_part_currency.rb → get_address_list_entries200_response.rb} +33 -34
  75. data/lib/katapult-ruby/models/{virtual_machine_not_found_response.rb → get_address_list_entry404_response.rb} +4 -17
  76. data/lib/katapult-ruby/models/{dns_zone_verification_details.rb → get_address_lists200_response.rb} +35 -11
  77. data/lib/katapult-ruby/models/{patch_virtual_machine_part_operating_system.rb → get_address_lists200_response_address_lists.rb} +12 -10
  78. data/lib/katapult-ruby/models/get_certificate404_response.rb +1 -13
  79. data/lib/katapult-ruby/models/get_country404_response.rb +1 -13
  80. data/lib/katapult-ruby/models/get_country_state404_response.rb +1 -13
  81. data/lib/katapult-ruby/models/get_currency404_response.rb +1 -13
  82. data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +1 -0
  83. data/lib/katapult-ruby/models/get_data_center404_response.rb +1 -13
  84. data/lib/katapult-ruby/models/get_data_center_default_network200_response_network.rb +1 -0
  85. data/lib/katapult-ruby/models/get_data_center_default_network_part_data_center.rb +1 -0
  86. data/lib/katapult-ruby/models/get_data_centers200_response_data_centers.rb +1 -0
  87. data/lib/katapult-ruby/models/get_data_centers400_response.rb +1 -13
  88. data/lib/katapult-ruby/models/get_data_centers429_response.rb +1 -13
  89. data/lib/katapult-ruby/models/get_disk200_response_disk.rb +5 -2
  90. data/lib/katapult-ruby/models/get_disk404_response.rb +1 -13
  91. data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +2 -1
  92. data/lib/katapult-ruby/models/get_disk_backup_policy404_response.rb +1 -13
  93. data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +4 -1
  94. data/lib/katapult-ruby/models/get_disk_template404_response.rb +1 -13
  95. data/lib/katapult-ruby/models/get_disk_template_version404_response.rb +1 -13
  96. data/lib/katapult-ruby/models/{network_not_found_response.rb → get_dns_record404_response.rb} +4 -17
  97. data/lib/katapult-ruby/models/get_dns_zone404_response.rb +254 -0
  98. data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +2 -0
  99. data/lib/katapult-ruby/models/get_file_storage_volume404_response.rb +1 -13
  100. data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +1 -0
  101. data/lib/katapult-ruby/models/get_gpu_type404_response.rb +1 -13
  102. data/lib/katapult-ruby/models/get_gpu_type_part_data_centers.rb +1 -0
  103. data/lib/katapult-ruby/models/get_gpu_types_part_data_centers.rb +1 -0
  104. data/lib/katapult-ruby/models/get_ip_address404_response.rb +1 -13
  105. data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +4 -5
  106. data/lib/katapult-ruby/models/get_load_balancer404_response.rb +1 -13
  107. data/lib/katapult-ruby/models/get_load_balancer_part_data_center.rb +1 -0
  108. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
  109. data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule404_response.rb +1 -13
  110. data/lib/katapult-ruby/models/get_network404_response.rb +1 -13
  111. data/lib/katapult-ruby/models/get_operating_system404_response.rb +1 -13
  112. data/lib/katapult-ruby/models/get_organization404_response.rb +1 -13
  113. data/lib/katapult-ruby/models/{get_organization_users_with_access_part_user.rb → get_organization_address_lists200_response.rb} +33 -34
  114. data/lib/katapult-ruby/models/{get_virtual_machine_part_attached_iso.rb → get_organization_address_lists200_response_address_lists.rb} +12 -10
  115. data/lib/katapult-ruby/models/get_organization_available_networks200_response_networks.rb +1 -0
  116. data/lib/katapult-ruby/models/get_organization_available_networks_part_data_center.rb +1 -0
  117. data/lib/katapult-ruby/models/get_organization_certificates200_response_certificates.rb +2 -0
  118. data/lib/katapult-ruby/models/get_organization_disk_templates200_response_disk_templates.rb +3 -0
  119. data/lib/katapult-ruby/models/get_organization_disks200_response_disk.rb +1 -0
  120. data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response_file_storage_volumes.rb +2 -0
  121. data/lib/katapult-ruby/models/get_organization_file_storage_volumes_part_data_center.rb +1 -0
  122. data/lib/katapult-ruby/models/get_organization_ip_addresses200_response_ip_addresses.rb +2 -0
  123. data/lib/katapult-ruby/models/get_organization_load_balancers200_response_load_balancers.rb +3 -4
  124. data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone200_response.rb → get_organization_policy_limits200_response.rb} +14 -14
  125. data/lib/katapult-ruby/models/get_organization_users_with_access200_response_users.rb +2 -1
  126. data/lib/katapult-ruby/models/get_organization_virtual_machines200_response_virtual_machines.rb +3 -1
  127. data/lib/katapult-ruby/models/get_security_group404_response.rb +1 -13
  128. data/lib/katapult-ruby/models/get_security_group_rules200_response_security_group_rules.rb +2 -0
  129. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
  130. data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule404_response.rb +1 -13
  131. data/lib/katapult-ruby/models/get_tag404_response.rb +1 -13
  132. data/lib/katapult-ruby/models/get_task404_response.rb +1 -13
  133. data/lib/katapult-ruby/models/get_trash_object404_response.rb +1 -13
  134. data/lib/katapult-ruby/models/get_users_current404_response.rb +1 -13
  135. data/lib/katapult-ruby/models/get_virtual_machine200_response_virtual_machine.rb +27 -9
  136. data/lib/katapult-ruby/models/get_virtual_machine_authorized_keys404_response.rb +254 -0
  137. data/lib/katapult-ruby/models/get_virtual_machine_disks404_response.rb +1 -13
  138. data/lib/katapult-ruby/models/get_virtual_machine_disks406_response.rb +1 -13
  139. data/lib/katapult-ruby/models/get_virtual_machine_group404_response.rb +1 -13
  140. data/lib/katapult-ruby/models/get_virtual_machine_package404_response.rb +1 -13
  141. data/lib/katapult-ruby/models/get_virtual_machine_packages200_response_virtual_machine_packages.rb +1 -0
  142. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response_virtual_machine_build.rb +1 -0
  143. data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build404_response.rb +1 -13
  144. data/lib/katapult-ruby/models/get_vmnivmni404_response.rb +1 -13
  145. data/lib/katapult-ruby/models/get_zone404_response.rb +1 -13
  146. data/lib/katapult-ruby/models/get_zones200_response_zones.rb +1 -0
  147. data/lib/katapult-ruby/models/get_zones_part_data_center.rb +1 -0
  148. data/lib/katapult-ruby/models/gpu_type_not_found_enum.rb +39 -0
  149. data/lib/katapult-ruby/models/identity_not_linked_to_web_session_enum.rb +39 -0
  150. data/lib/katapult-ruby/models/{network_speed_profile_not_found_response.rb → identity_not_linked_to_web_session_schema.rb} +5 -17
  151. data/lib/katapult-ruby/models/{mx.rb → integer_or_unlimited.rb} +17 -16
  152. data/lib/katapult-ruby/models/interface_not_found_enum.rb +39 -0
  153. data/lib/katapult-ruby/models/interface_not_found_schema.rb +255 -0
  154. data/lib/katapult-ruby/models/invalid_api_token.rb +1 -0
  155. data/lib/katapult-ruby/models/invalid_api_token_enum.rb +39 -0
  156. data/lib/katapult-ruby/models/{invalid_api_token_response.rb → invalid_api_token_schema.rb} +4 -16
  157. data/lib/katapult-ruby/models/invalid_ip_enum.rb +39 -0
  158. data/lib/katapult-ruby/models/{invalid_ip_response.rb → invalid_ip_schema.rb} +4 -16
  159. data/lib/katapult-ruby/models/invalid_spec_xml_enum.rb +39 -0
  160. data/lib/katapult-ruby/models/invalid_spec_xml_schema.rb +255 -0
  161. data/lib/katapult-ruby/models/invalid_timestamp_enum.rb +39 -0
  162. data/lib/katapult-ruby/models/{invalid_spec_xml_response.rb → invalid_timestamp_schema.rb} +6 -18
  163. data/lib/katapult-ruby/models/ip_address.rb +3 -0
  164. data/lib/katapult-ruby/models/ip_address_not_found_enum.rb +39 -0
  165. data/lib/katapult-ruby/models/ip_address_not_found_schema.rb +255 -0
  166. data/lib/katapult-ruby/models/ip_already_allocated_enum.rb +39 -0
  167. data/lib/katapult-ruby/models/ip_already_allocated_schema.rb +255 -0
  168. data/lib/katapult-ruby/models/iso.rb +1 -0
  169. data/lib/katapult-ruby/models/load_balancer_not_found_enum.rb +39 -0
  170. data/lib/katapult-ruby/models/load_balancer_rule_not_found_enum.rb +39 -0
  171. data/lib/katapult-ruby/models/{get_load_balancer_part_weights.rb → load_balancer_weight.rb} +3 -3
  172. data/lib/katapult-ruby/models/location_required_enum.rb +39 -0
  173. data/lib/katapult-ruby/models/location_required_schema.rb +255 -0
  174. data/lib/katapult-ruby/models/missing_api_token_enum.rb +39 -0
  175. data/lib/katapult-ruby/models/network.rb +1 -0
  176. data/lib/katapult-ruby/models/network_not_found_enum.rb +39 -0
  177. data/lib/katapult-ruby/models/network_not_found_schema.rb +255 -0
  178. data/lib/katapult-ruby/models/network_speed_profile.rb +2 -0
  179. data/lib/katapult-ruby/models/network_speed_profile_not_found_enum.rb +39 -0
  180. data/lib/katapult-ruby/models/{get_dns_records_dns_record404_response.rb → network_speed_profile_not_found_schema.rb} +5 -16
  181. data/lib/katapult-ruby/models/no_allocation_enum.rb +39 -0
  182. data/lib/katapult-ruby/models/no_available_addresses_enum.rb +39 -0
  183. data/lib/katapult-ruby/models/no_interface_available_enum.rb +39 -0
  184. data/lib/katapult-ruby/models/{data_center_not_found_response.rb → no_interface_available_schema.rb} +5 -17
  185. data/lib/katapult-ruby/models/no_user_associated_with_identity_enum.rb +39 -0
  186. data/lib/katapult-ruby/models/no_virtual_machine_for_api_token_enum.rb +39 -0
  187. data/lib/katapult-ruby/models/object_in_trash.rb +1 -0
  188. data/lib/katapult-ruby/models/{dns_record_type_enum.rb → object_in_trash_enum.rb} +5 -15
  189. data/lib/katapult-ruby/models/{object_in_trash_response.rb → object_in_trash_schema.rb} +4 -16
  190. data/lib/katapult-ruby/models/one_of_api_authenticator403_response.rb +3 -3
  191. data/lib/katapult-ruby/models/{one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_error.rb → one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_res.rb} +7 -7
  192. data/lib/katapult-ruby/models/{one_of_flexible_resources_unavailable_to_organization_permission_denied403_error.rb → one_of_flexible_resources_unavailable_to_organization_permission_denied403_res.rb} +6 -6
  193. data/lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_res.rb +105 -0
  194. data/lib/katapult-ruby/models/{one_of_interface_not_found_network_not_found_virtual_machine_not_found404_error.rb → one_of_interface_not_found_network_not_found_virtual_machine_not_found404_res.rb} +4 -4
  195. data/lib/katapult-ruby/models/{one_of_invalid_spec_xml400_error.rb → one_of_invalid_spec_xml400_res.rb} +3 -3
  196. data/lib/katapult-ruby/models/{one_of_invalid_timestamp400_error.rb → one_of_invalid_timestamp400_res.rb} +3 -3
  197. data/lib/katapult-ruby/models/{one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_error.rb → one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_res.rb} +3 -3
  198. data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_res.rb +105 -0
  199. data/lib/katapult-ruby/models/{one_of_ip_already_allocated_invalid_ip422_error.rb → one_of_ip_already_allocated_invalid_ip422_res.rb} +3 -3
  200. data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_res.rb +105 -0
  201. data/lib/katapult-ruby/models/{one_of_object_in_trash_task_queueing_error406_error.rb → one_of_location_required_validation_error422_res.rb} +3 -3
  202. data/lib/katapult-ruby/models/{one_of_location_required_validation_error422_error.rb → one_of_network_not_found_organization_not_found404_res.rb} +3 -3
  203. data/lib/katapult-ruby/models/{one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_error.rb → one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_res.rb} +3 -3
  204. data/lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_res.rb +105 -0
  205. data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_res.rb +105 -0
  206. data/lib/katapult-ruby/models/{one_of_identity_not_linked_to_web_session400_error.rb → one_of_operating_system_not_found_organization_not_found404_res.rb} +3 -3
  207. data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_res.rb +105 -0
  208. data/lib/katapult-ruby/models/{dns_record_properties_properties.rb → one_of_organization_not_activated_organization_suspended403_res.rb} +6 -12
  209. data/lib/katapult-ruby/models/{one_of_organization_not_activated_organization_suspended_permission_denied403_error.rb → one_of_organization_not_activated_organization_suspended_permission_denied403_res.rb} +7 -7
  210. data/lib/katapult-ruby/models/{one_of_organization_not_activated_permission_denied_resource_creation_restricted403_error.rb → one_of_organization_not_activated_permission_denied_resource_creation_restricted403_res.rb} +8 -8
  211. data/lib/katapult-ruby/models/one_of_permission_denied403_res.rb +107 -0
  212. data/lib/katapult-ruby/models/{one_of_virtual_machine_not_found_virtual_machine_package_not_found404_error.rb → one_of_virtual_machine_not_found_virtual_machine_package_not_found404_res.rb} +3 -3
  213. data/lib/katapult-ruby/models/operating_system.rb +1 -0
  214. data/lib/katapult-ruby/models/operating_system_not_found_enum.rb +39 -0
  215. data/lib/katapult-ruby/models/{get_dns_zones_dns_zone404_response.rb → operating_system_not_found_schema.rb} +5 -16
  216. data/lib/katapult-ruby/models/organization.rb +10 -0
  217. data/lib/katapult-ruby/models/organization_limit_reached_enum.rb +39 -0
  218. data/lib/katapult-ruby/models/organization_limit_reached_schema.rb +255 -0
  219. data/lib/katapult-ruby/models/organization_not_activated_enum.rb +39 -0
  220. data/lib/katapult-ruby/models/{organization_not_activated_response.rb → organization_not_activated_schema.rb} +4 -16
  221. data/lib/katapult-ruby/models/organization_not_found_enum.rb +39 -0
  222. data/lib/katapult-ruby/models/organization_not_found_schema.rb +255 -0
  223. data/lib/katapult-ruby/models/organization_policy.rb +349 -0
  224. data/lib/katapult-ruby/models/organization_suspended_enum.rb +39 -0
  225. data/lib/katapult-ruby/models/{api_authenticator400_response.rb → organization_suspended_schema.rb} +5 -17
  226. data/lib/katapult-ruby/models/pagination_object.rb +2 -0
  227. data/lib/katapult-ruby/models/{delete_virtual_machine_part_zone.rb → patch_address_list_entry_request.rb} +30 -34
  228. data/lib/katapult-ruby/models/{get_disk_part_disk_template.rb → patch_address_list_request.rb} +30 -34
  229. data/lib/katapult-ruby/models/patch_file_storage_volume200_response_file_storage_volume.rb +2 -0
  230. data/lib/katapult-ruby/models/patch_file_storage_volume_part_data_center.rb +1 -0
  231. data/lib/katapult-ruby/models/patch_load_balancer200_response_load_balancer.rb +4 -5
  232. data/lib/katapult-ruby/models/patch_load_balancer_part_data_center.rb +1 -0
  233. data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
  234. data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
  235. data/lib/katapult-ruby/models/patch_virtual_machine200_response_virtual_machine.rb +27 -9
  236. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile406_response.rb +1 -13
  237. data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile422_response.rb +1 -13
  238. data/lib/katapult-ruby/models/permission_denied.rb +1 -0
  239. data/lib/katapult-ruby/models/permission_denied_enum.rb +39 -0
  240. data/lib/katapult-ruby/models/{permission_denied_response.rb → permission_denied_schema.rb} +4 -16
  241. data/lib/katapult-ruby/models/post_address_list_entries201_response.rb +221 -0
  242. data/lib/katapult-ruby/models/{get_virtual_machine_part_currency.rb → post_address_list_entries_request.rb} +30 -34
  243. data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
  244. data/lib/katapult-ruby/models/{organization_not_found_response.rb → post_dns_zone_verify422_response.rb} +4 -17
  245. data/lib/katapult-ruby/models/post_ip_address_unallocate422_response.rb +1 -13
  246. data/lib/katapult-ruby/models/post_load_balancer_rules200_response_load_balancer_rule.rb +2 -0
  247. data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_update_ttl200_response.rb → post_organization_address_lists201_response.rb} +14 -14
  248. data/lib/katapult-ruby/models/{post_organizations_organization_dns_zones_request.rb → post_organization_address_lists_request.rb} +4 -4
  249. data/lib/katapult-ruby/models/post_organization_dns_zones201_response.rb +1 -1
  250. data/lib/katapult-ruby/models/post_organization_dns_zones_request.rb +11 -11
  251. data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response_file_storage_volume.rb +2 -0
  252. data/lib/katapult-ruby/models/post_organization_file_storage_volumes_part_data_center.rb +1 -0
  253. data/lib/katapult-ruby/models/post_organization_ip_addresses503_response.rb +1 -13
  254. data/lib/katapult-ruby/models/{post_organization_load_balancers200_response.rb → post_organization_load_balancers201_response.rb} +4 -4
  255. data/lib/katapult-ruby/models/{post_organization_load_balancers200_response_load_balancer.rb → post_organization_load_balancers201_response_load_balancer.rb} +7 -8
  256. data/lib/katapult-ruby/models/post_organization_load_balancers_part_data_center.rb +1 -0
  257. data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec422_response.rb +1 -13
  258. data/lib/katapult-ruby/models/post_security_group_rules200_response_security_group_rule.rb +2 -0
  259. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
  260. data/lib/katapult-ruby/models/rate_limit_reached_enum.rb +39 -0
  261. data/lib/katapult-ruby/models/record_content_attributes_for_a.rb +1 -0
  262. data/lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb +1 -0
  263. data/lib/katapult-ruby/models/record_content_attributes_for_alias.rb +1 -0
  264. data/lib/katapult-ruby/models/record_content_attributes_for_caa.rb +3 -0
  265. data/lib/katapult-ruby/models/record_content_attributes_for_cname.rb +1 -0
  266. data/lib/katapult-ruby/models/record_content_attributes_for_ips.rb +1 -0
  267. data/lib/katapult-ruby/models/record_content_attributes_for_mx.rb +1 -0
  268. data/lib/katapult-ruby/models/record_content_attributes_for_ns.rb +1 -0
  269. data/lib/katapult-ruby/models/record_content_attributes_for_ptr.rb +1 -0
  270. data/lib/katapult-ruby/models/record_content_attributes_for_srv.rb +3 -0
  271. data/lib/katapult-ruby/models/record_content_attributes_for_sshfp.rb +3 -0
  272. data/lib/katapult-ruby/models/record_content_attributes_for_txt.rb +1 -0
  273. data/lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb +1 -0
  274. data/lib/katapult-ruby/models/resource_creation_restricted_enum.rb +39 -0
  275. data/lib/katapult-ruby/models/{organization_limit_reached_response.rb → resource_creation_restricted_schema.rb} +6 -18
  276. data/lib/katapult-ruby/models/resource_does_not_support_unallocation_enum.rb +39 -0
  277. data/lib/katapult-ruby/models/{get_disk_backup_policy_part_schedule.rb → schedule.rb} +3 -3
  278. data/lib/katapult-ruby/models/scope_not_granted_error_enum.rb +39 -0
  279. data/lib/katapult-ruby/models/{scope_not_granted_error_response.rb → scope_not_granted_error_schema.rb} +4 -16
  280. data/lib/katapult-ruby/models/security_group_not_found_enum.rb +39 -0
  281. data/lib/katapult-ruby/models/security_group_rule_not_found_enum.rb +39 -0
  282. data/lib/katapult-ruby/models/speed_profile_already_assigned_enum.rb +39 -0
  283. data/lib/katapult-ruby/models/ssh_key_not_found_enum.rb +39 -0
  284. data/lib/katapult-ruby/models/tag_not_found_enum.rb +39 -0
  285. data/lib/katapult-ruby/models/task.rb +2 -0
  286. data/lib/katapult-ruby/models/task_not_found_enum.rb +39 -0
  287. data/lib/katapult-ruby/models/task_queueing_error_enum.rb +39 -0
  288. data/lib/katapult-ruby/models/{task_queueing_error_response.rb → task_queueing_error_schema.rb} +4 -16
  289. data/lib/katapult-ruby/models/template_spec_field.rb +3 -0
  290. data/lib/katapult-ruby/models/trash_object_not_found_enum.rb +39 -0
  291. data/lib/katapult-ruby/models/unauthorized_network_for_api_token_enum.rb +39 -0
  292. data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_verify422_response.rb → unauthorized_network_for_api_token_schema.rb} +6 -17
  293. data/lib/katapult-ruby/models/validation_error_enum.rb +39 -0
  294. data/lib/katapult-ruby/models/{validation_error_response.rb → validation_error_schema.rb} +4 -16
  295. data/lib/katapult-ruby/models/virtual_machine.rb +19 -1
  296. data/lib/katapult-ruby/models/virtual_machine_build_not_found_enum.rb +39 -0
  297. data/lib/katapult-ruby/models/virtual_machine_flexible_resources.rb +13 -4
  298. data/lib/katapult-ruby/models/virtual_machine_gpu.rb +2 -0
  299. data/lib/katapult-ruby/models/virtual_machine_group_not_found_enum.rb +39 -0
  300. data/lib/katapult-ruby/models/virtual_machine_must_be_started_enum.rb +39 -0
  301. data/lib/katapult-ruby/models/{virtual_machine_must_be_started_response.rb → virtual_machine_must_be_started_schema.rb} +4 -16
  302. data/lib/katapult-ruby/models/virtual_machine_network_interface_not_found_enum.rb +39 -0
  303. data/lib/katapult-ruby/models/{virtual_machine_network_interface_not_found_response.rb → virtual_machine_network_interface_not_found_schema.rb} +4 -16
  304. data/lib/katapult-ruby/models/virtual_machine_not_found_enum.rb +39 -0
  305. data/lib/katapult-ruby/models/{disk_template_not_found_response.rb → virtual_machine_not_found_schema.rb} +5 -17
  306. data/lib/katapult-ruby/models/virtual_machine_package.rb +15 -4
  307. data/lib/katapult-ruby/models/virtual_machine_package_not_found_enum.rb +39 -0
  308. data/lib/katapult-ruby/models/{virtual_machine_package_not_found_response.rb → virtual_machine_package_not_found_schema.rb} +4 -16
  309. data/lib/katapult-ruby/models/virtual_machine_state_enum.rb +2 -1
  310. data/lib/katapult-ruby/models/zone.rb +1 -0
  311. data/lib/katapult-ruby/models/zone_not_found_enum.rb +39 -0
  312. data/lib/katapult-ruby/models/{zone_not_found_response.rb → zone_not_found_schema.rb} +4 -16
  313. data/lib/katapult-ruby/version.rb +1 -1
  314. data/lib/katapult-ruby.rb +171 -178
  315. metadata +174 -181
  316. data/lib/katapult-ruby/models/caa.rb +0 -254
  317. data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response_dns_zone.rb +0 -250
  318. data/lib/katapult-ruby/models/delete_virtual_machine_part_attached_iso.rb +0 -232
  319. data/lib/katapult-ruby/models/delete_virtual_machine_part_badge.rb +0 -259
  320. data/lib/katapult-ruby/models/delete_virtual_machine_part_country.rb +0 -259
  321. data/lib/katapult-ruby/models/delete_virtual_machine_part_country_state.rb +0 -241
  322. data/lib/katapult-ruby/models/delete_virtual_machine_part_gpus.rb +0 -274
  323. data/lib/katapult-ruby/models/delete_virtual_machine_part_group.rb +0 -250
  324. data/lib/katapult-ruby/models/delete_virtual_machine_part_icon.rb +0 -259
  325. data/lib/katapult-ruby/models/delete_virtual_machine_part_ip_addresses.rb +0 -286
  326. data/lib/katapult-ruby/models/delete_virtual_machine_part_network.rb +0 -241
  327. data/lib/katapult-ruby/models/delete_virtual_machine_part_organization.rb +0 -367
  328. data/lib/katapult-ruby/models/delete_virtual_machine_part_package.rb +0 -317
  329. data/lib/katapult-ruby/models/delete_virtual_machine_part_tags.rb +0 -263
  330. data/lib/katapult-ruby/models/delete_virtual_machine_part_type.rb +0 -259
  331. data/lib/katapult-ruby/models/dns_record_properties_arguments.rb +0 -363
  332. data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_response.rb +0 -267
  333. data/lib/katapult-ruby/models/get_disk_part_attributes.rb +0 -250
  334. data/lib/katapult-ruby/models/get_disk_part_disk_template_version.rb +0 -232
  335. data/lib/katapult-ruby/models/get_disk_part_installation.rb +0 -234
  336. data/lib/katapult-ruby/models/get_disk_part_io_profile.rb +0 -250
  337. data/lib/katapult-ruby/models/get_disk_template_part_operating_system.rb +0 -232
  338. data/lib/katapult-ruby/models/get_dns_records_dns_record200_response_dns_record.rb +0 -272
  339. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response.rb +0 -224
  340. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response_dns_records.rb +0 -272
  341. data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details200_response.rb +0 -221
  342. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_data_center.rb +0 -232
  343. data/lib/katapult-ruby/models/get_organization_virtual_machines_part_zone.rb +0 -241
  344. data/lib/katapult-ruby/models/get_virtual_machine_part_badge.rb +0 -259
  345. data/lib/katapult-ruby/models/get_virtual_machine_part_country.rb +0 -259
  346. data/lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb +0 -241
  347. data/lib/katapult-ruby/models/get_virtual_machine_part_data_center.rb +0 -241
  348. data/lib/katapult-ruby/models/get_virtual_machine_part_group.rb +0 -250
  349. data/lib/katapult-ruby/models/get_virtual_machine_part_icon.rb +0 -259
  350. data/lib/katapult-ruby/models/get_virtual_machine_part_ip_addresses.rb +0 -286
  351. data/lib/katapult-ruby/models/get_virtual_machine_part_network.rb +0 -241
  352. data/lib/katapult-ruby/models/get_virtual_machine_part_operating_system.rb +0 -232
  353. data/lib/katapult-ruby/models/get_virtual_machine_part_organization.rb +0 -367
  354. data/lib/katapult-ruby/models/get_virtual_machine_part_package.rb +0 -317
  355. data/lib/katapult-ruby/models/get_virtual_machine_part_tags.rb +0 -263
  356. data/lib/katapult-ruby/models/get_virtual_machine_part_type.rb +0 -259
  357. data/lib/katapult-ruby/models/get_virtual_machine_part_zone.rb +0 -241
  358. data/lib/katapult-ruby/models/identity_not_linked_to_web_session_response.rb +0 -267
  359. data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_response.rb +0 -267
  360. data/lib/katapult-ruby/models/invalid_timestamp_response.rb +0 -267
  361. data/lib/katapult-ruby/models/no_interface_available_response.rb +0 -267
  362. data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_error.rb +0 -107
  363. data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_error.rb +0 -105
  364. data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_error.rb +0 -105
  365. data/lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_error.rb +0 -105
  366. data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_error.rb +0 -105
  367. data/lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_error.rb +0 -105
  368. data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_error.rb +0 -105
  369. data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_error.rb +0 -108
  370. data/lib/katapult-ruby/models/one_of_permission_denied403_error.rb +0 -107
  371. data/lib/katapult-ruby/models/operating_system_not_found_response.rb +0 -267
  372. data/lib/katapult-ruby/models/organization_suspended_response.rb +0 -267
  373. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response.rb +0 -221
  374. data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response_dns_record.rb +0 -272
  375. data/lib/katapult-ruby/models/patch_dns_records_dns_record_request.rb +0 -237
  376. data/lib/katapult-ruby/models/patch_virtual_machine_part_attached_iso.rb +0 -232
  377. data/lib/katapult-ruby/models/patch_virtual_machine_part_badge.rb +0 -259
  378. data/lib/katapult-ruby/models/patch_virtual_machine_part_country.rb +0 -259
  379. data/lib/katapult-ruby/models/patch_virtual_machine_part_country_state.rb +0 -241
  380. data/lib/katapult-ruby/models/patch_virtual_machine_part_currency.rb +0 -241
  381. data/lib/katapult-ruby/models/patch_virtual_machine_part_data_center.rb +0 -241
  382. data/lib/katapult-ruby/models/patch_virtual_machine_part_gpus.rb +0 -274
  383. data/lib/katapult-ruby/models/patch_virtual_machine_part_group.rb +0 -250
  384. data/lib/katapult-ruby/models/patch_virtual_machine_part_icon.rb +0 -259
  385. data/lib/katapult-ruby/models/patch_virtual_machine_part_ip_addresses.rb +0 -286
  386. data/lib/katapult-ruby/models/patch_virtual_machine_part_network.rb +0 -241
  387. data/lib/katapult-ruby/models/patch_virtual_machine_part_organization.rb +0 -367
  388. data/lib/katapult-ruby/models/patch_virtual_machine_part_package.rb +0 -317
  389. data/lib/katapult-ruby/models/patch_virtual_machine_part_tags.rb +0 -263
  390. data/lib/katapult-ruby/models/patch_virtual_machine_part_type.rb +0 -259
  391. data/lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb +0 -241
  392. data/lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb +0 -272
  393. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response.rb +0 -221
  394. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response_dns_record.rb +0 -272
  395. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records_request.rb +0 -237
  396. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response_dns_zone.rb +0 -250
  397. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl_request.rb +0 -238
  398. data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify200_response.rb +0 -221
  399. data/lib/katapult-ruby/models/post_organization_dns_zones201_response_dns_zone.rb +0 -250
  400. data/lib/katapult-ruby/models/post_organization_load_balancers_part_weights.rb +0 -223
  401. data/lib/katapult-ruby/models/post_organization_managed201_response.rb +0 -221
  402. data/lib/katapult-ruby/models/post_organization_managed201_response_organization.rb +0 -367
  403. data/lib/katapult-ruby/models/post_organization_managed_part_country.rb +0 -259
  404. data/lib/katapult-ruby/models/post_organization_managed_part_country_state.rb +0 -241
  405. data/lib/katapult-ruby/models/post_organization_managed_part_currency.rb +0 -241
  406. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response.rb +0 -221
  407. data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response_dns_zone.rb +0 -241
  408. data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_part_schedule.rb +0 -272
  409. data/lib/katapult-ruby/models/resource_creation_restricted_response.rb +0 -267
  410. data/lib/katapult-ruby/models/txt.rb +0 -214
  411. data/lib/katapult-ruby/models/unauthorized_network_for_api_token_response.rb +0 -267
@@ -14,22 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class GetVirtualMachinePartCurrency
18
- attr_accessor :id
17
+ class PostAddressListEntriesRequest
18
+ attr_accessor :address_list
19
19
 
20
- attr_accessor :name
21
-
22
- attr_accessor :iso_code
23
-
24
- attr_accessor :symbol
20
+ attr_accessor :properties
25
21
 
26
22
  # Attribute mapping from ruby-style variable name to JSON key.
27
23
  def self.attribute_map
28
24
  {
29
- :'id' => :'id',
30
- :'name' => :'name',
31
- :'iso_code' => :'iso_code',
32
- :'symbol' => :'symbol'
25
+ :'address_list' => :'address_list',
26
+ :'properties' => :'properties'
33
27
  }
34
28
  end
35
29
 
@@ -41,10 +35,8 @@ module KatapultAPI
41
35
  # Attribute type mapping.
42
36
  def self.openapi_types
43
37
  {
44
- :'id' => :'String',
45
- :'name' => :'String',
46
- :'iso_code' => :'String',
47
- :'symbol' => :'String'
38
+ :'address_list' => :'AddressListLookup',
39
+ :'properties' => :'AddressListEntryArguments'
48
40
  }
49
41
  end
50
42
 
@@ -58,31 +50,27 @@ module KatapultAPI
58
50
  # @param [Hash] attributes Model attributes in the form of hash
59
51
  def initialize(attributes = {})
60
52
  if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetVirtualMachinePartCurrency` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostAddressListEntriesRequest` initialize method"
62
54
  end
63
55
 
64
56
  # check to see if the attribute exists and convert string to symbol for hash key
65
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
58
  if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetVirtualMachinePartCurrency`. 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::PostAddressListEntriesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
60
  end
69
61
  h[k.to_sym] = v
70
62
  }
71
63
 
72
- if attributes.key?(:'id')
73
- self.id = attributes[:'id']
74
- end
75
-
76
- if attributes.key?(:'name')
77
- self.name = attributes[:'name']
78
- end
79
-
80
- if attributes.key?(:'iso_code')
81
- self.iso_code = attributes[:'iso_code']
64
+ if attributes.key?(:'address_list')
65
+ self.address_list = attributes[:'address_list']
66
+ else
67
+ self.address_list = nil
82
68
  end
83
69
 
84
- if attributes.key?(:'symbol')
85
- self.symbol = attributes[:'symbol']
70
+ if attributes.key?(:'properties')
71
+ self.properties = attributes[:'properties']
72
+ else
73
+ self.properties = nil
86
74
  end
87
75
  end
88
76
 
@@ -91,6 +79,14 @@ module KatapultAPI
91
79
  def list_invalid_properties
92
80
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
81
  invalid_properties = Array.new
82
+ if @address_list.nil?
83
+ invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
84
+ end
85
+
86
+ if @properties.nil?
87
+ invalid_properties.push('invalid value for "properties", properties cannot be nil.')
88
+ end
89
+
94
90
  invalid_properties
95
91
  end
96
92
 
@@ -98,6 +94,8 @@ module KatapultAPI
98
94
  # @return true if the model is valid
99
95
  def valid?
100
96
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
+ return false if @address_list.nil?
98
+ return false if @properties.nil?
101
99
  true
102
100
  end
103
101
 
@@ -106,10 +104,8 @@ module KatapultAPI
106
104
  def ==(o)
107
105
  return true if self.equal?(o)
108
106
  self.class == o.class &&
109
- id == o.id &&
110
- name == o.name &&
111
- iso_code == o.iso_code &&
112
- symbol == o.symbol
107
+ address_list == o.address_list &&
108
+ properties == o.properties
113
109
  end
114
110
 
115
111
  # @see the `==` method
@@ -121,7 +117,7 @@ module KatapultAPI
121
117
  # Calculates hash code according to all attributes.
122
118
  # @return [Integer] Hash code
123
119
  def hash
124
- [id, name, iso_code, symbol].hash
120
+ [address_list, properties].hash
125
121
  end
126
122
 
127
123
  # Builds the object from hash
@@ -51,7 +51,7 @@ module KatapultAPI
51
51
  :'retention' => :'Integer',
52
52
  :'total_size' => :'Float',
53
53
  :'target' => :'DiskBackupPolicyTarget',
54
- :'schedule' => :'PostDiskDiskBackupPoliciesPartSchedule',
54
+ :'schedule' => :'Schedule',
55
55
  :'auto_move_to_trash_at' => :'Integer'
56
56
  }
57
57
  end
@@ -59,6 +59,7 @@ module KatapultAPI
59
59
  # List of attributes with nullable: true
60
60
  def self.openapi_nullable
61
61
  Set.new([
62
+ :'auto_move_to_trash_at'
62
63
  ])
63
64
  end
64
65
 
@@ -14,8 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- # No organization was found matching any of the criteria provided in the arguments
18
- class OrganizationNotFoundResponse
17
+ class PostDnsZoneVerify422Response
19
18
  attr_accessor :code
20
19
 
21
20
  attr_accessor :description
@@ -61,7 +60,7 @@ module KatapultAPI
61
60
  # Attribute type mapping.
62
61
  def self.openapi_types
63
62
  {
64
- :'code' => :'String',
63
+ :'code' => :'DNSZoneNotVerifiedEnum',
65
64
  :'description' => :'String',
66
65
  :'detail' => :'Object'
67
66
  }
@@ -77,13 +76,13 @@ module KatapultAPI
77
76
  # @param [Hash] attributes Model attributes in the form of hash
78
77
  def initialize(attributes = {})
79
78
  if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::OrganizationNotFoundResponse` initialize method"
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostDnsZoneVerify422Response` initialize method"
81
80
  end
82
81
 
83
82
  # check to see if the attribute exists and convert string to symbol for hash key
84
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
84
  if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::OrganizationNotFoundResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostDnsZoneVerify422Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
86
  end
88
87
  h[k.to_sym] = v
89
88
  }
@@ -113,21 +112,9 @@ module KatapultAPI
113
112
  # @return true if the model is valid
114
113
  def valid?
115
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
- code_validator = EnumAttributeValidator.new('String', ["organization_not_found"])
117
- return false unless code_validator.valid?(@code)
118
115
  true
119
116
  end
120
117
 
121
- # Custom attribute writer method checking allowed values (enum).
122
- # @param [Object] code Object to be assigned
123
- def code=(code)
124
- validator = EnumAttributeValidator.new('String', ["organization_not_found"])
125
- unless validator.valid?(code)
126
- fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
127
- end
128
- @code = code
129
- end
130
-
131
118
  # Checks equality by comparing each attribute.
132
119
  # @param [Object] Object to be compared
133
120
  def ==(o)
@@ -60,7 +60,7 @@ module KatapultAPI
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'code' => :'String',
63
+ :'code' => :'NoAllocationEnum',
64
64
  :'description' => :'String',
65
65
  :'detail' => :'Object'
66
66
  }
@@ -112,21 +112,9 @@ module KatapultAPI
112
112
  # @return true if the model is valid
113
113
  def valid?
114
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
115
- code_validator = EnumAttributeValidator.new('String', ["no_allocation"])
116
- return false unless code_validator.valid?(@code)
117
115
  true
118
116
  end
119
117
 
120
- # Custom attribute writer method checking allowed values (enum).
121
- # @param [Object] code Object to be assigned
122
- def code=(code)
123
- validator = EnumAttributeValidator.new('String', ["no_allocation"])
124
- unless validator.valid?(code)
125
- fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
126
- end
127
- @code = code
128
- end
129
-
130
118
  # Checks equality by comparing each attribute.
131
119
  # @param [Object] Object to be compared
132
120
  def ==(o)
@@ -129,6 +129,8 @@ module KatapultAPI
129
129
  # List of attributes with nullable: true
130
130
  def self.openapi_nullable
131
131
  Set.new([
132
+ :'check_protocol',
133
+ :'check_http_statuses',
132
134
  ])
133
135
  end
134
136
 
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class PostDnsZonesDnsZoneUpdateTtl200Response
18
- attr_accessor :dns_zone
17
+ class PostOrganizationAddressLists201Response
18
+ attr_accessor :address_list
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'dns_zone' => :'dns_zone'
23
+ :'address_list' => :'address_list'
24
24
  }
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module KatapultAPI
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'dns_zone' => :'PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone'
35
+ :'address_list' => :'AddressList'
36
36
  }
37
37
  end
38
38
 
@@ -46,21 +46,21 @@ module KatapultAPI
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostDnsZonesDnsZoneUpdateTtl200Response` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationAddressLists201Response` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostDnsZonesDnsZoneUpdateTtl200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationAddressLists201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
- if attributes.key?(:'dns_zone')
61
- self.dns_zone = attributes[:'dns_zone']
60
+ if attributes.key?(:'address_list')
61
+ self.address_list = attributes[:'address_list']
62
62
  else
63
- self.dns_zone = nil
63
+ self.address_list = nil
64
64
  end
65
65
  end
66
66
 
@@ -69,8 +69,8 @@ module KatapultAPI
69
69
  def list_invalid_properties
70
70
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
71
  invalid_properties = Array.new
72
- if @dns_zone.nil?
73
- invalid_properties.push('invalid value for "dns_zone", dns_zone cannot be nil.')
72
+ if @address_list.nil?
73
+ invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
74
74
  end
75
75
 
76
76
  invalid_properties
@@ -80,7 +80,7 @@ module KatapultAPI
80
80
  # @return true if the model is valid
81
81
  def valid?
82
82
  warn '[DEPRECATED] the `valid?` method is obsolete'
83
- return false if @dns_zone.nil?
83
+ return false if @address_list.nil?
84
84
  true
85
85
  end
86
86
 
@@ -89,7 +89,7 @@ module KatapultAPI
89
89
  def ==(o)
90
90
  return true if self.equal?(o)
91
91
  self.class == o.class &&
92
- dns_zone == o.dns_zone
92
+ address_list == o.address_list
93
93
  end
94
94
 
95
95
  # @see the `==` method
@@ -101,7 +101,7 @@ module KatapultAPI
101
101
  # Calculates hash code according to all attributes.
102
102
  # @return [Integer] Hash code
103
103
  def hash
104
- [dns_zone].hash
104
+ [address_list].hash
105
105
  end
106
106
 
107
107
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class PostOrganizationsOrganizationDnsZonesRequest
17
+ class PostOrganizationAddressListsRequest
18
18
  attr_accessor :organization
19
19
 
20
20
  attr_accessor :properties
@@ -36,7 +36,7 @@ module KatapultAPI
36
36
  def self.openapi_types
37
37
  {
38
38
  :'organization' => :'OrganizationLookup',
39
- :'properties' => :'DNSZoneArguments'
39
+ :'properties' => :'AddressListArguments'
40
40
  }
41
41
  end
42
42
 
@@ -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::PostOrganizationsOrganizationDnsZonesRequest` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationAddressListsRequest` 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::PostOrganizationsOrganizationDnsZonesRequest`. 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::PostOrganizationAddressListsRequest`. 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
  }
@@ -32,7 +32,7 @@ module KatapultAPI
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'dns_zone' => :'PostOrganizationDNSZones201ResponseDNSZone'
35
+ :'dns_zone' => :'DNSZone'
36
36
  }
37
37
  end
38
38
 
@@ -17,13 +17,13 @@ module KatapultAPI
17
17
  class PostOrganizationDnsZonesRequest
18
18
  attr_accessor :organization
19
19
 
20
- attr_accessor :details
20
+ attr_accessor :properties
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
25
  :'organization' => :'organization',
26
- :'details' => :'details'
26
+ :'properties' => :'properties'
27
27
  }
28
28
  end
29
29
 
@@ -36,7 +36,7 @@ module KatapultAPI
36
36
  def self.openapi_types
37
37
  {
38
38
  :'organization' => :'OrganizationLookup',
39
- :'details' => :'DNSZoneArguments'
39
+ :'properties' => :'DNSZoneArguments'
40
40
  }
41
41
  end
42
42
 
@@ -67,10 +67,10 @@ module KatapultAPI
67
67
  self.organization = nil
68
68
  end
69
69
 
70
- if attributes.key?(:'details')
71
- self.details = attributes[:'details']
70
+ if attributes.key?(:'properties')
71
+ self.properties = attributes[:'properties']
72
72
  else
73
- self.details = nil
73
+ self.properties = nil
74
74
  end
75
75
  end
76
76
 
@@ -83,8 +83,8 @@ module KatapultAPI
83
83
  invalid_properties.push('invalid value for "organization", organization cannot be nil.')
84
84
  end
85
85
 
86
- if @details.nil?
87
- invalid_properties.push('invalid value for "details", details cannot be nil.')
86
+ if @properties.nil?
87
+ invalid_properties.push('invalid value for "properties", properties cannot be nil.')
88
88
  end
89
89
 
90
90
  invalid_properties
@@ -95,7 +95,7 @@ module KatapultAPI
95
95
  def valid?
96
96
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
97
  return false if @organization.nil?
98
- return false if @details.nil?
98
+ return false if @properties.nil?
99
99
  true
100
100
  end
101
101
 
@@ -105,7 +105,7 @@ module KatapultAPI
105
105
  return true if self.equal?(o)
106
106
  self.class == o.class &&
107
107
  organization == o.organization &&
108
- details == o.details
108
+ properties == o.properties
109
109
  end
110
110
 
111
111
  # @see the `==` method
@@ -117,7 +117,7 @@ module KatapultAPI
117
117
  # Calculates hash code according to all attributes.
118
118
  # @return [Integer] Hash code
119
119
  def hash
120
- [organization, details].hash
120
+ [organization, properties].hash
121
121
  end
122
122
 
123
123
  # Builds the object from hash
@@ -87,6 +87,8 @@ module KatapultAPI
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
+ :'nfs_location',
91
+ :'size'
90
92
  ])
91
93
  end
92
94
 
@@ -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
 
@@ -60,7 +60,7 @@ module KatapultAPI
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'code' => :'String',
63
+ :'code' => :'NoAvailableAddressesEnum',
64
64
  :'description' => :'String',
65
65
  :'detail' => :'Object'
66
66
  }
@@ -112,21 +112,9 @@ module KatapultAPI
112
112
  # @return true if the model is valid
113
113
  def valid?
114
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
115
- code_validator = EnumAttributeValidator.new('String', ["no_available_addresses"])
116
- return false unless code_validator.valid?(@code)
117
115
  true
118
116
  end
119
117
 
120
- # Custom attribute writer method checking allowed values (enum).
121
- # @param [Object] code Object to be assigned
122
- def code=(code)
123
- validator = EnumAttributeValidator.new('String', ["no_available_addresses"])
124
- unless validator.valid?(code)
125
- fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
126
- end
127
- @code = code
128
- end
129
-
130
118
  # Checks equality by comparing each attribute.
131
119
  # @param [Object] Object to be compared
132
120
  def ==(o)
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class PostOrganizationLoadBalancers200Response
17
+ class PostOrganizationLoadBalancers201Response
18
18
  attr_accessor :load_balancer
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +32,7 @@ module KatapultAPI
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'load_balancer' => :'PostOrganizationLoadBalancers200ResponseLoadBalancer'
35
+ :'load_balancer' => :'PostOrganizationLoadBalancers201ResponseLoadBalancer'
36
36
  }
37
37
  end
38
38
 
@@ -46,13 +46,13 @@ module KatapultAPI
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers200Response` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers201Response` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KatapultAPI
17
- class PostOrganizationLoadBalancers200ResponseLoadBalancer
17
+ class PostOrganizationLoadBalancers201ResponseLoadBalancer
18
18
  attr_accessor :id
19
19
 
20
20
  attr_accessor :name
@@ -99,13 +99,13 @@ module KatapultAPI
99
99
  :'resource_type' => :'LoadBalancerResourceTypesEnum',
100
100
  :'resources' => :'Array<LoadBalancerResource>',
101
101
  :'resource_ids' => :'Array<String>',
102
- :'ip_address' => :'Array<PostOrganizationLoadBalancersPartIPAddress>',
102
+ :'ip_address' => :'PostOrganizationLoadBalancersPartIPAddress',
103
103
  :'https_redirect' => :'Boolean',
104
104
  :'backend_certificate' => :'String',
105
105
  :'backend_certificate_key' => :'String',
106
106
  :'data_center' => :'PostOrganizationLoadBalancersPartDataCenter',
107
107
  :'enable_weighting' => :'Boolean',
108
- :'weights' => :'Array<PostOrganizationLoadBalancersPartWeights>',
108
+ :'weights' => :'Array<LoadBalancerWeight>',
109
109
  :'standby_vms' => :'Array<String>'
110
110
  }
111
111
  end
@@ -113,6 +113,7 @@ module KatapultAPI
113
113
  # List of attributes with nullable: true
114
114
  def self.openapi_nullable
115
115
  Set.new([
116
+ :'api_reference',
116
117
  ])
117
118
  end
118
119
 
@@ -120,13 +121,13 @@ module KatapultAPI
120
121
  # @param [Hash] attributes Model attributes in the form of hash
121
122
  def initialize(attributes = {})
122
123
  if (!attributes.is_a?(Hash))
123
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers200ResponseLoadBalancer` initialize method"
124
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers201ResponseLoadBalancer` initialize method"
124
125
  end
125
126
 
126
127
  # check to see if the attribute exists and convert string to symbol for hash key
127
128
  attributes = attributes.each_with_object({}) { |(k, v), h|
128
129
  if (!self.class.attribute_map.key?(k.to_sym))
129
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers200ResponseLoadBalancer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
130
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers201ResponseLoadBalancer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
130
131
  end
131
132
  h[k.to_sym] = v
132
133
  }
@@ -160,9 +161,7 @@ module KatapultAPI
160
161
  end
161
162
 
162
163
  if attributes.key?(:'ip_address')
163
- if (value = attributes[:'ip_address']).is_a?(Array)
164
- self.ip_address = value
165
- end
164
+ self.ip_address = attributes[:'ip_address']
166
165
  end
167
166
 
168
167
  if attributes.key?(:'https_redirect')
@@ -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
 
@@ -60,7 +60,7 @@ module KatapultAPI
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'code' => :'String',
63
+ :'code' => :'ValidationErrorEnum',
64
64
  :'description' => :'String',
65
65
  :'detail' => :'ValidationError'
66
66
  }
@@ -112,21 +112,9 @@ module KatapultAPI
112
112
  # @return true if the model is valid
113
113
  def valid?
114
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
115
- code_validator = EnumAttributeValidator.new('String', ["validation_error"])
116
- return false unless code_validator.valid?(@code)
117
115
  true
118
116
  end
119
117
 
120
- # Custom attribute writer method checking allowed values (enum).
121
- # @param [Object] code Object to be assigned
122
- def code=(code)
123
- validator = EnumAttributeValidator.new('String', ["validation_error"])
124
- unless validator.valid?(code)
125
- fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
126
- end
127
- @code = code
128
- end
129
-
130
118
  # Checks equality by comparing each attribute.
131
119
  # @param [Object] Object to be compared
132
120
  def ==(o)
@@ -89,6 +89,8 @@ module KatapultAPI
89
89
  # List of attributes with nullable: true
90
90
  def self.openapi_nullable
91
91
  Set.new([
92
+ :'ports',
93
+ :'notes'
92
94
  ])
93
95
  end
94
96
 
@@ -51,7 +51,7 @@ module KatapultAPI
51
51
  :'retention' => :'Integer',
52
52
  :'total_size' => :'Float',
53
53
  :'target' => :'DiskBackupPolicyTarget',
54
- :'schedule' => :'PostVirtualMachineDiskBackupPoliciesPartSchedule',
54
+ :'schedule' => :'Schedule',
55
55
  :'auto_move_to_trash_at' => :'Integer'
56
56
  }
57
57
  end
@@ -59,6 +59,7 @@ module KatapultAPI
59
59
  # List of attributes with nullable: true
60
60
  def self.openapi_nullable
61
61
  Set.new([
62
+ :'auto_move_to_trash_at'
62
63
  ])
63
64
  end
64
65