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