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
@@ -1,250 +0,0 @@
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 PostOrganizationDNSZones201ResponseDNSZone
18
- attr_accessor :id
19
-
20
- attr_accessor :name
21
-
22
- attr_accessor :ttl
23
-
24
- attr_accessor :verified
25
-
26
- attr_accessor :infrastructure_zone
27
-
28
- # Attribute mapping from ruby-style variable name to JSON key.
29
- def self.attribute_map
30
- {
31
- :'id' => :'id',
32
- :'name' => :'name',
33
- :'ttl' => :'ttl',
34
- :'verified' => :'verified',
35
- :'infrastructure_zone' => :'infrastructure_zone'
36
- }
37
- end
38
-
39
- # Returns all the JSON keys this model knows about
40
- def self.acceptable_attributes
41
- attribute_map.values
42
- end
43
-
44
- # Attribute type mapping.
45
- def self.openapi_types
46
- {
47
- :'id' => :'String',
48
- :'name' => :'String',
49
- :'ttl' => :'Integer',
50
- :'verified' => :'Boolean',
51
- :'infrastructure_zone' => :'Boolean'
52
- }
53
- end
54
-
55
- # List of attributes with nullable: true
56
- def self.openapi_nullable
57
- Set.new([
58
- ])
59
- end
60
-
61
- # Initializes the object
62
- # @param [Hash] attributes Model attributes in the form of hash
63
- def initialize(attributes = {})
64
- if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationDNSZones201ResponseDNSZone` initialize method"
66
- end
67
-
68
- # check to see if the attribute exists and convert string to symbol for hash key
69
- attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationDNSZones201ResponseDNSZone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
- end
73
- h[k.to_sym] = v
74
- }
75
-
76
- if attributes.key?(:'id')
77
- self.id = attributes[:'id']
78
- end
79
-
80
- if attributes.key?(:'name')
81
- self.name = attributes[:'name']
82
- end
83
-
84
- if attributes.key?(:'ttl')
85
- self.ttl = attributes[:'ttl']
86
- end
87
-
88
- if attributes.key?(:'verified')
89
- self.verified = attributes[:'verified']
90
- end
91
-
92
- if attributes.key?(:'infrastructure_zone')
93
- self.infrastructure_zone = attributes[:'infrastructure_zone']
94
- end
95
- end
96
-
97
- # Show invalid properties with the reasons. Usually used together with valid?
98
- # @return Array for valid properties with the reasons
99
- def list_invalid_properties
100
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
101
- invalid_properties = Array.new
102
- invalid_properties
103
- end
104
-
105
- # Check to see if the all the properties in the model are valid
106
- # @return true if the model is valid
107
- def valid?
108
- warn '[DEPRECATED] the `valid?` method is obsolete'
109
- true
110
- end
111
-
112
- # Checks equality by comparing each attribute.
113
- # @param [Object] Object to be compared
114
- def ==(o)
115
- return true if self.equal?(o)
116
- self.class == o.class &&
117
- id == o.id &&
118
- name == o.name &&
119
- ttl == o.ttl &&
120
- verified == o.verified &&
121
- infrastructure_zone == o.infrastructure_zone
122
- end
123
-
124
- # @see the `==` method
125
- # @param [Object] Object to be compared
126
- def eql?(o)
127
- self == o
128
- end
129
-
130
- # Calculates hash code according to all attributes.
131
- # @return [Integer] Hash code
132
- def hash
133
- [id, name, ttl, verified, infrastructure_zone].hash
134
- end
135
-
136
- # Builds the object from hash
137
- # @param [Hash] attributes Model attributes in the form of hash
138
- # @return [Object] Returns the model itself
139
- def self.build_from_hash(attributes)
140
- return nil unless attributes.is_a?(Hash)
141
- attributes = attributes.transform_keys(&:to_sym)
142
- transformed_hash = {}
143
- openapi_types.each_pair do |key, type|
144
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
145
- transformed_hash["#{key}"] = nil
146
- elsif type =~ /\AArray<(.*)>/i
147
- # check to ensure the input is an array given that the attribute
148
- # is documented as an array but the input is not
149
- if attributes[attribute_map[key]].is_a?(Array)
150
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
151
- end
152
- elsif !attributes[attribute_map[key]].nil?
153
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
154
- end
155
- end
156
- new(transformed_hash)
157
- end
158
-
159
- # Deserializes the data based on type
160
- # @param string type Data type
161
- # @param string value Value to be deserialized
162
- # @return [Object] Deserialized data
163
- def self._deserialize(type, value)
164
- case type.to_sym
165
- when :Time
166
- Time.parse(value)
167
- when :Date
168
- Date.parse(value)
169
- when :String
170
- value.to_s
171
- when :Integer
172
- value.to_i
173
- when :Float
174
- value.to_f
175
- when :Boolean
176
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
- true
178
- else
179
- false
180
- end
181
- when :Object
182
- # generic object (usually a Hash), return directly
183
- value
184
- when /\AArray<(?<inner_type>.+)>\z/
185
- inner_type = Regexp.last_match[:inner_type]
186
- value.map { |v| _deserialize(inner_type, v) }
187
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
- k_type = Regexp.last_match[:k_type]
189
- v_type = Regexp.last_match[:v_type]
190
- {}.tap do |hash|
191
- value.each do |k, v|
192
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
- end
194
- end
195
- else # model
196
- # models (e.g. Pet) or oneOf
197
- klass = KatapultAPI.const_get(type)
198
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
- end
200
- end
201
-
202
- # Returns the string representation of the object
203
- # @return [String] String presentation of the object
204
- def to_s
205
- to_hash.to_s
206
- end
207
-
208
- # to_body is an alias to to_hash (backward compatibility)
209
- # @return [Hash] Returns the object in the form of hash
210
- def to_body
211
- to_hash
212
- end
213
-
214
- # Returns the object in the form of hash
215
- # @return [Hash] Returns the object in the form of hash
216
- def to_hash
217
- hash = {}
218
- self.class.attribute_map.each_pair do |attr, param|
219
- value = self.send(attr)
220
- if value.nil?
221
- is_nullable = self.class.openapi_nullable.include?(attr)
222
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
- end
224
-
225
- hash[param] = _to_hash(value)
226
- end
227
- hash
228
- end
229
-
230
- # Outputs non-array value in the form of hash
231
- # For object, use to_hash. Otherwise, just return the value
232
- # @param [Object] value Any valid value
233
- # @return [Hash] Returns the value in the form of hash
234
- def _to_hash(value)
235
- if value.is_a?(Array)
236
- value.compact.map { |v| _to_hash(v) }
237
- elsif value.is_a?(Hash)
238
- {}.tap do |hash|
239
- value.each { |k, v| hash[k] = _to_hash(v) }
240
- end
241
- elsif value.respond_to? :to_hash
242
- value.to_hash
243
- else
244
- value
245
- end
246
- end
247
-
248
- end
249
-
250
- end
@@ -1,223 +0,0 @@
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 PostOrganizationLoadBalancersPartWeights
18
- attr_accessor :virtual_machine_id
19
-
20
- attr_accessor :weight
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'virtual_machine_id' => :'virtual_machine_id',
26
- :'weight' => :'weight'
27
- }
28
- end
29
-
30
- # Returns all the JSON keys this model knows about
31
- def self.acceptable_attributes
32
- attribute_map.values
33
- end
34
-
35
- # Attribute type mapping.
36
- def self.openapi_types
37
- {
38
- :'virtual_machine_id' => :'String',
39
- :'weight' => :'Integer'
40
- }
41
- end
42
-
43
- # List of attributes with nullable: true
44
- def self.openapi_nullable
45
- Set.new([
46
- ])
47
- end
48
-
49
- # Initializes the object
50
- # @param [Hash] attributes Model attributes in the form of hash
51
- def initialize(attributes = {})
52
- if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancersPartWeights` initialize method"
54
- end
55
-
56
- # check to see if the attribute exists and convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}) { |(k, v), h|
58
- if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancersPartWeights`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
- end
61
- h[k.to_sym] = v
62
- }
63
-
64
- if attributes.key?(:'virtual_machine_id')
65
- self.virtual_machine_id = attributes[:'virtual_machine_id']
66
- end
67
-
68
- if attributes.key?(:'weight')
69
- self.weight = attributes[:'weight']
70
- end
71
- end
72
-
73
- # Show invalid properties with the reasons. Usually used together with valid?
74
- # @return Array for valid properties with the reasons
75
- def list_invalid_properties
76
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
- invalid_properties = Array.new
78
- invalid_properties
79
- end
80
-
81
- # Check to see if the all the properties in the model are valid
82
- # @return true if the model is valid
83
- def valid?
84
- warn '[DEPRECATED] the `valid?` method is obsolete'
85
- true
86
- end
87
-
88
- # Checks equality by comparing each attribute.
89
- # @param [Object] Object to be compared
90
- def ==(o)
91
- return true if self.equal?(o)
92
- self.class == o.class &&
93
- virtual_machine_id == o.virtual_machine_id &&
94
- weight == o.weight
95
- end
96
-
97
- # @see the `==` method
98
- # @param [Object] Object to be compared
99
- def eql?(o)
100
- self == o
101
- end
102
-
103
- # Calculates hash code according to all attributes.
104
- # @return [Integer] Hash code
105
- def hash
106
- [virtual_machine_id, weight].hash
107
- end
108
-
109
- # Builds the object from hash
110
- # @param [Hash] attributes Model attributes in the form of hash
111
- # @return [Object] Returns the model itself
112
- def self.build_from_hash(attributes)
113
- return nil unless attributes.is_a?(Hash)
114
- attributes = attributes.transform_keys(&:to_sym)
115
- transformed_hash = {}
116
- openapi_types.each_pair do |key, type|
117
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
- transformed_hash["#{key}"] = nil
119
- elsif type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the attribute
121
- # is documented as an array but the input is not
122
- if attributes[attribute_map[key]].is_a?(Array)
123
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
- end
125
- elsif !attributes[attribute_map[key]].nil?
126
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
- end
128
- end
129
- new(transformed_hash)
130
- end
131
-
132
- # Deserializes the data based on type
133
- # @param string type Data type
134
- # @param string value Value to be deserialized
135
- # @return [Object] Deserialized data
136
- def self._deserialize(type, value)
137
- case type.to_sym
138
- when :Time
139
- Time.parse(value)
140
- when :Date
141
- Date.parse(value)
142
- when :String
143
- value.to_s
144
- when :Integer
145
- value.to_i
146
- when :Float
147
- value.to_f
148
- when :Boolean
149
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
- true
151
- else
152
- false
153
- end
154
- when :Object
155
- # generic object (usually a Hash), return directly
156
- value
157
- when /\AArray<(?<inner_type>.+)>\z/
158
- inner_type = Regexp.last_match[:inner_type]
159
- value.map { |v| _deserialize(inner_type, v) }
160
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
- k_type = Regexp.last_match[:k_type]
162
- v_type = Regexp.last_match[:v_type]
163
- {}.tap do |hash|
164
- value.each do |k, v|
165
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
- end
167
- end
168
- else # model
169
- # models (e.g. Pet) or oneOf
170
- klass = KatapultAPI.const_get(type)
171
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
- end
173
- end
174
-
175
- # Returns the string representation of the object
176
- # @return [String] String presentation of the object
177
- def to_s
178
- to_hash.to_s
179
- end
180
-
181
- # to_body is an alias to to_hash (backward compatibility)
182
- # @return [Hash] Returns the object in the form of hash
183
- def to_body
184
- to_hash
185
- end
186
-
187
- # Returns the object in the form of hash
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_hash
190
- hash = {}
191
- self.class.attribute_map.each_pair do |attr, param|
192
- value = self.send(attr)
193
- if value.nil?
194
- is_nullable = self.class.openapi_nullable.include?(attr)
195
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
- end
197
-
198
- hash[param] = _to_hash(value)
199
- end
200
- hash
201
- end
202
-
203
- # Outputs non-array value in the form of hash
204
- # For object, use to_hash. Otherwise, just return the value
205
- # @param [Object] value Any valid value
206
- # @return [Hash] Returns the value in the form of hash
207
- def _to_hash(value)
208
- if value.is_a?(Array)
209
- value.compact.map { |v| _to_hash(v) }
210
- elsif value.is_a?(Hash)
211
- {}.tap do |hash|
212
- value.each { |k, v| hash[k] = _to_hash(v) }
213
- end
214
- elsif value.respond_to? :to_hash
215
- value.to_hash
216
- else
217
- value
218
- end
219
- end
220
-
221
- end
222
-
223
- end
@@ -1,221 +0,0 @@
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 PostOrganizationManaged201Response
18
- attr_accessor :organization
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'organization' => :'organization'
24
- }
25
- end
26
-
27
- # Returns all the JSON keys this model knows about
28
- def self.acceptable_attributes
29
- attribute_map.values
30
- end
31
-
32
- # Attribute type mapping.
33
- def self.openapi_types
34
- {
35
- :'organization' => :'PostOrganizationManaged201ResponseOrganization'
36
- }
37
- end
38
-
39
- # List of attributes with nullable: true
40
- def self.openapi_nullable
41
- Set.new([
42
- ])
43
- end
44
-
45
- # Initializes the object
46
- # @param [Hash] attributes Model attributes in the form of hash
47
- def initialize(attributes = {})
48
- if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationManaged201Response` initialize method"
50
- end
51
-
52
- # check to see if the attribute exists and convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationManaged201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
- end
57
- h[k.to_sym] = v
58
- }
59
-
60
- if attributes.key?(:'organization')
61
- self.organization = attributes[:'organization']
62
- else
63
- self.organization = nil
64
- end
65
- end
66
-
67
- # Show invalid properties with the reasons. Usually used together with valid?
68
- # @return Array for valid properties with the reasons
69
- def list_invalid_properties
70
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
- invalid_properties = Array.new
72
- if @organization.nil?
73
- invalid_properties.push('invalid value for "organization", organization cannot be nil.')
74
- end
75
-
76
- invalid_properties
77
- end
78
-
79
- # Check to see if the all the properties in the model are valid
80
- # @return true if the model is valid
81
- def valid?
82
- warn '[DEPRECATED] the `valid?` method is obsolete'
83
- return false if @organization.nil?
84
- true
85
- end
86
-
87
- # Checks equality by comparing each attribute.
88
- # @param [Object] Object to be compared
89
- def ==(o)
90
- return true if self.equal?(o)
91
- self.class == o.class &&
92
- organization == o.organization
93
- end
94
-
95
- # @see the `==` method
96
- # @param [Object] Object to be compared
97
- def eql?(o)
98
- self == o
99
- end
100
-
101
- # Calculates hash code according to all attributes.
102
- # @return [Integer] Hash code
103
- def hash
104
- [organization].hash
105
- end
106
-
107
- # Builds the object from hash
108
- # @param [Hash] attributes Model attributes in the form of hash
109
- # @return [Object] Returns the model itself
110
- def self.build_from_hash(attributes)
111
- return nil unless attributes.is_a?(Hash)
112
- attributes = attributes.transform_keys(&:to_sym)
113
- transformed_hash = {}
114
- openapi_types.each_pair do |key, type|
115
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
116
- transformed_hash["#{key}"] = nil
117
- elsif type =~ /\AArray<(.*)>/i
118
- # check to ensure the input is an array given that the attribute
119
- # is documented as an array but the input is not
120
- if attributes[attribute_map[key]].is_a?(Array)
121
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
122
- end
123
- elsif !attributes[attribute_map[key]].nil?
124
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
125
- end
126
- end
127
- new(transformed_hash)
128
- end
129
-
130
- # Deserializes the data based on type
131
- # @param string type Data type
132
- # @param string value Value to be deserialized
133
- # @return [Object] Deserialized data
134
- def self._deserialize(type, value)
135
- case type.to_sym
136
- when :Time
137
- Time.parse(value)
138
- when :Date
139
- Date.parse(value)
140
- when :String
141
- value.to_s
142
- when :Integer
143
- value.to_i
144
- when :Float
145
- value.to_f
146
- when :Boolean
147
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
- true
149
- else
150
- false
151
- end
152
- when :Object
153
- # generic object (usually a Hash), return directly
154
- value
155
- when /\AArray<(?<inner_type>.+)>\z/
156
- inner_type = Regexp.last_match[:inner_type]
157
- value.map { |v| _deserialize(inner_type, v) }
158
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
- k_type = Regexp.last_match[:k_type]
160
- v_type = Regexp.last_match[:v_type]
161
- {}.tap do |hash|
162
- value.each do |k, v|
163
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
- end
165
- end
166
- else # model
167
- # models (e.g. Pet) or oneOf
168
- klass = KatapultAPI.const_get(type)
169
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
- end
171
- end
172
-
173
- # Returns the string representation of the object
174
- # @return [String] String presentation of the object
175
- def to_s
176
- to_hash.to_s
177
- end
178
-
179
- # to_body is an alias to to_hash (backward compatibility)
180
- # @return [Hash] Returns the object in the form of hash
181
- def to_body
182
- to_hash
183
- end
184
-
185
- # Returns the object in the form of hash
186
- # @return [Hash] Returns the object in the form of hash
187
- def to_hash
188
- hash = {}
189
- self.class.attribute_map.each_pair do |attr, param|
190
- value = self.send(attr)
191
- if value.nil?
192
- is_nullable = self.class.openapi_nullable.include?(attr)
193
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
- end
195
-
196
- hash[param] = _to_hash(value)
197
- end
198
- hash
199
- end
200
-
201
- # Outputs non-array value in the form of hash
202
- # For object, use to_hash. Otherwise, just return the value
203
- # @param [Object] value Any valid value
204
- # @return [Hash] Returns the value in the form of hash
205
- def _to_hash(value)
206
- if value.is_a?(Array)
207
- value.compact.map { |v| _to_hash(v) }
208
- elsif value.is_a?(Hash)
209
- {}.tap do |hash|
210
- value.each { |k, v| hash[k] = _to_hash(v) }
211
- end
212
- elsif value.respond_to? :to_hash
213
- value.to_hash
214
- else
215
- value
216
- end
217
- end
218
-
219
- end
220
-
221
- end