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.
- checksums.yaml +4 -4
- data/README.md +190 -196
- 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/address_list_entry_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{a.rb → address_list_lookup.rb} +11 -10
- data/lib/katapult-ruby/models/address_list_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{interface_not_found_response.rb → api_authenticator400_schema.rb} +5 -17
- data/lib/katapult-ruby/models/certificate.rb +8 -0
- data/lib/katapult-ruby/models/certificate_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/country.rb +1 -0
- data/lib/katapult-ruby/models/country_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/country_state_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/currency_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/data_center.rb +1 -0
- data/lib/katapult-ruby/models/data_center_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{location_required_response.rb → data_center_not_found_schema.rb} +5 -17
- 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_records_dns_record200_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_ip_address409_response.rb +1 -13
- data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +1 -0
- data/lib/katapult-ruby/models/delete_ssh_key404_response.rb +1 -13
- data/lib/katapult-ruby/models/delete_ssh_key409_response.rb +1 -13
- data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +27 -9
- data/lib/katapult-ruby/models/deletion_restricted_enum.rb +39 -0
- data/lib/katapult-ruby/models/disk.rb +3 -0
- data/lib/katapult-ruby/models/disk_backup_policy_not_found_enum.rb +39 -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/{property_type_enum.rb → disk_not_found_enum.rb} +5 -7
- data/lib/katapult-ruby/models/disk_template.rb +3 -0
- data/lib/katapult-ruby/models/disk_template_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{ip_already_allocated_response.rb → disk_template_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/disk_template_version_not_found_enum.rb +39 -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/{dns_record_properties.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/{cname.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_record_not_found_enum.rb +39 -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/dns_zone_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/dns_zone_not_verified_enum.rb +39 -0
- data/lib/katapult-ruby/models/file_storage_volume_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_enum.rb +39 -0
- data/lib/katapult-ruby/models/{get_dns_zones_dns_zone_verification_details422_response.rb → flexible_resources_unavailable_to_organization_schema.rb} +5 -16
- data/lib/katapult-ruby/models/{ip_address_not_found_response.rb → get_address_list404_response.rb} +4 -17
- data/lib/katapult-ruby/models/{delete_virtual_machine_part_currency.rb → get_address_list_entries200_response.rb} +33 -34
- data/lib/katapult-ruby/models/{virtual_machine_not_found_response.rb → get_address_list_entry404_response.rb} +4 -17
- 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_certificate404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_country404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_country_state404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_currency404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_data_center404_response.rb +1 -13
- 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_data_centers400_response.rb +1 -13
- data/lib/katapult-ruby/models/get_data_centers429_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk200_response_disk.rb +5 -2
- data/lib/katapult-ruby/models/get_disk404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +2 -1
- data/lib/katapult-ruby/models/get_disk_backup_policy404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +4 -1
- data/lib/katapult-ruby/models/get_disk_template404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_template_version404_response.rb +1 -13
- data/lib/katapult-ruby/models/{network_not_found_response.rb → get_dns_record404_response.rb} +4 -17
- data/lib/katapult-ruby/models/get_dns_zone404_response.rb +254 -0
- data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +2 -0
- data/lib/katapult-ruby/models/get_file_storage_volume404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_gpu_type404_response.rb +1 -13
- 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_ip_address404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +4 -5
- data/lib/katapult-ruby/models/get_load_balancer404_response.rb +1 -13
- 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_load_balancers_rules_load_balancer_rule404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_network404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_operating_system404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_organization404_response.rb +1 -13
- 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_zones_dns_zone200_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_group404_response.rb +1 -13
- 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_security_groups_rules_security_group_rule404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_tag404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_task404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_trash_object404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_users_current404_response.rb +1 -13
- 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_disks404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_disks406_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_group404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_package404_response.rb +1 -13
- 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_virtual_machines_builds_virtual_machine_build404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_vmnivmni404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_zone404_response.rb +1 -13
- 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/gpu_type_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/identity_not_linked_to_web_session_enum.rb +39 -0
- data/lib/katapult-ruby/models/{network_speed_profile_not_found_response.rb → identity_not_linked_to_web_session_schema.rb} +5 -17
- data/lib/katapult-ruby/models/{mx.rb → integer_or_unlimited.rb} +17 -16
- data/lib/katapult-ruby/models/interface_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/interface_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/invalid_api_token.rb +1 -0
- data/lib/katapult-ruby/models/invalid_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_api_token_response.rb → invalid_api_token_schema.rb} +4 -16
- data/lib/katapult-ruby/models/invalid_ip_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_ip_response.rb → invalid_ip_schema.rb} +4 -16
- data/lib/katapult-ruby/models/invalid_spec_xml_enum.rb +39 -0
- data/lib/katapult-ruby/models/invalid_spec_xml_schema.rb +255 -0
- data/lib/katapult-ruby/models/invalid_timestamp_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_spec_xml_response.rb → invalid_timestamp_schema.rb} +6 -18
- data/lib/katapult-ruby/models/ip_address.rb +3 -0
- data/lib/katapult-ruby/models/ip_address_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/ip_address_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/ip_already_allocated_enum.rb +39 -0
- data/lib/katapult-ruby/models/ip_already_allocated_schema.rb +255 -0
- data/lib/katapult-ruby/models/iso.rb +1 -0
- data/lib/katapult-ruby/models/load_balancer_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/load_balancer_rule_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{get_load_balancer_part_weights.rb → load_balancer_weight.rb} +3 -3
- data/lib/katapult-ruby/models/location_required_enum.rb +39 -0
- data/lib/katapult-ruby/models/location_required_schema.rb +255 -0
- data/lib/katapult-ruby/models/missing_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/network.rb +1 -0
- data/lib/katapult-ruby/models/network_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/network_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/network_speed_profile.rb +2 -0
- data/lib/katapult-ruby/models/network_speed_profile_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{get_dns_records_dns_record404_response.rb → network_speed_profile_not_found_schema.rb} +5 -16
- data/lib/katapult-ruby/models/no_allocation_enum.rb +39 -0
- data/lib/katapult-ruby/models/no_available_addresses_enum.rb +39 -0
- data/lib/katapult-ruby/models/no_interface_available_enum.rb +39 -0
- data/lib/katapult-ruby/models/{data_center_not_found_response.rb → no_interface_available_schema.rb} +5 -17
- data/lib/katapult-ruby/models/no_user_associated_with_identity_enum.rb +39 -0
- data/lib/katapult-ruby/models/no_virtual_machine_for_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/object_in_trash.rb +1 -0
- data/lib/katapult-ruby/models/{dns_record_type_enum.rb → object_in_trash_enum.rb} +5 -15
- data/lib/katapult-ruby/models/{object_in_trash_response.rb → object_in_trash_schema.rb} +4 -16
- data/lib/katapult-ruby/models/one_of_api_authenticator403_response.rb +3 -3
- 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
- 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
- data/lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_res.rb +105 -0
- 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
- data/lib/katapult-ruby/models/{one_of_invalid_spec_xml400_error.rb → one_of_invalid_spec_xml400_res.rb} +3 -3
- data/lib/katapult-ruby/models/{one_of_invalid_timestamp400_error.rb → one_of_invalid_timestamp400_res.rb} +3 -3
- 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
- data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_res.rb +105 -0
- 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
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_res.rb +105 -0
- 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
- 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
- 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
- data/lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_res.rb +105 -0
- data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_res.rb +105 -0
- 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
- data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_res.rb +105 -0
- data/lib/katapult-ruby/models/{dns_record_properties_properties.rb → one_of_organization_not_activated_organization_suspended403_res.rb} +6 -12
- 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
- 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
- data/lib/katapult-ruby/models/one_of_permission_denied403_res.rb +107 -0
- 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
- data/lib/katapult-ruby/models/operating_system.rb +1 -0
- data/lib/katapult-ruby/models/operating_system_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{get_dns_zones_dns_zone404_response.rb → operating_system_not_found_schema.rb} +5 -16
- data/lib/katapult-ruby/models/organization.rb +10 -0
- data/lib/katapult-ruby/models/organization_limit_reached_enum.rb +39 -0
- data/lib/katapult-ruby/models/organization_limit_reached_schema.rb +255 -0
- data/lib/katapult-ruby/models/organization_not_activated_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_not_activated_response.rb → organization_not_activated_schema.rb} +4 -16
- data/lib/katapult-ruby/models/organization_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/organization_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/organization_policy.rb +349 -0
- data/lib/katapult-ruby/models/organization_suspended_enum.rb +39 -0
- data/lib/katapult-ruby/models/{api_authenticator400_response.rb → organization_suspended_schema.rb} +5 -17
- 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/patch_virtual_machine_network_interface_update_speed_profile406_response.rb +1 -13
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile422_response.rb +1 -13
- data/lib/katapult-ruby/models/permission_denied.rb +1 -0
- data/lib/katapult-ruby/models/permission_denied_enum.rb +39 -0
- data/lib/katapult-ruby/models/{permission_denied_response.rb → permission_denied_schema.rb} +4 -16
- 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/{organization_not_found_response.rb → post_dns_zone_verify422_response.rb} +4 -17
- data/lib/katapult-ruby/models/post_ip_address_unallocate422_response.rb +1 -13
- 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_ip_addresses503_response.rb +1 -13
- 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_organization_virtual_machines_build_from_spec422_response.rb +1 -13
- 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/rate_limit_reached_enum.rb +39 -0
- 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/resource_creation_restricted_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_limit_reached_response.rb → resource_creation_restricted_schema.rb} +6 -18
- data/lib/katapult-ruby/models/resource_does_not_support_unallocation_enum.rb +39 -0
- data/lib/katapult-ruby/models/{get_disk_backup_policy_part_schedule.rb → schedule.rb} +3 -3
- data/lib/katapult-ruby/models/scope_not_granted_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{scope_not_granted_error_response.rb → scope_not_granted_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/security_group_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/security_group_rule_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/speed_profile_already_assigned_enum.rb +39 -0
- data/lib/katapult-ruby/models/ssh_key_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/tag_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/task.rb +2 -0
- data/lib/katapult-ruby/models/task_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/task_queueing_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{task_queueing_error_response.rb → task_queueing_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/template_spec_field.rb +3 -0
- data/lib/katapult-ruby/models/trash_object_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/unauthorized_network_for_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_verify422_response.rb → unauthorized_network_for_api_token_schema.rb} +6 -17
- data/lib/katapult-ruby/models/validation_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{validation_error_response.rb → validation_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine.rb +19 -1
- data/lib/katapult-ruby/models/virtual_machine_build_not_found_enum.rb +39 -0
- 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_group_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/virtual_machine_must_be_started_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_must_be_started_response.rb → virtual_machine_must_be_started_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine_network_interface_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_network_interface_not_found_response.rb → virtual_machine_network_interface_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{disk_template_not_found_response.rb → virtual_machine_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/virtual_machine_package.rb +15 -4
- data/lib/katapult-ruby/models/virtual_machine_package_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_package_not_found_response.rb → virtual_machine_package_not_found_schema.rb} +4 -16
- 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/models/zone_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{zone_not_found_response.rb → zone_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/version.rb +1 -1
- data/lib/katapult-ruby.rb +171 -178
- metadata +174 -181
- 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/flexible_resources_unavailable_to_organization_response.rb +0 -267
- 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/identity_not_linked_to_web_session_response.rb +0 -267
- data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_response.rb +0 -267
- data/lib/katapult-ruby/models/invalid_timestamp_response.rb +0 -267
- data/lib/katapult-ruby/models/no_interface_available_response.rb +0 -267
- data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_error.rb +0 -107
- data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_error.rb +0 -108
- data/lib/katapult-ruby/models/one_of_permission_denied403_error.rb +0 -107
- data/lib/katapult-ruby/models/operating_system_not_found_response.rb +0 -267
- data/lib/katapult-ruby/models/organization_suspended_response.rb +0 -267
- 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/resource_creation_restricted_response.rb +0 -267
- data/lib/katapult-ruby/models/txt.rb +0 -214
- data/lib/katapult-ruby/models/unauthorized_network_for_api_token_response.rb +0 -267
@@ -0,0 +1,39 @@
|
|
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 CountryStateNotFoundEnum
|
18
|
+
COUNTRY_STATE_NOT_FOUND = "country_state_not_found".freeze
|
19
|
+
|
20
|
+
def self.all_vars
|
21
|
+
@all_vars ||= [COUNTRY_STATE_NOT_FOUND].freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
# Builds the enum from string
|
25
|
+
# @param [String] The enum value in the form of the string
|
26
|
+
# @return [String] The enum value
|
27
|
+
def self.build_from_hash(value)
|
28
|
+
new.build_from_hash(value)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
return value if CountryStateNotFoundEnum.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #CountryStateNotFoundEnum"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 CurrencyNotFoundEnum
|
18
|
+
CURRENCY_NOT_FOUND = "currency_not_found".freeze
|
19
|
+
|
20
|
+
def self.all_vars
|
21
|
+
@all_vars ||= [CURRENCY_NOT_FOUND].freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
# Builds the enum from string
|
25
|
+
# @param [String] The enum value in the form of the string
|
26
|
+
# @return [String] The enum value
|
27
|
+
def self.build_from_hash(value)
|
28
|
+
new.build_from_hash(value)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
return value if CurrencyNotFoundEnum.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #CurrencyNotFoundEnum"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 DataCenterNotFoundEnum
|
18
|
+
DATA_CENTER_NOT_FOUND = "data_center_not_found".freeze
|
19
|
+
|
20
|
+
def self.all_vars
|
21
|
+
@all_vars ||= [DATA_CENTER_NOT_FOUND].freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
# Builds the enum from string
|
25
|
+
# @param [String] The enum value in the form of the string
|
26
|
+
# @return [String] The enum value
|
27
|
+
def self.build_from_hash(value)
|
28
|
+
new.build_from_hash(value)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
return value if DataCenterNotFoundEnum.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #DataCenterNotFoundEnum"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/katapult-ruby/models/{location_required_response.rb → data_center_not_found_schema.rb}
RENAMED
@@ -14,8 +14,8 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
#
|
18
|
-
class
|
17
|
+
# No data center was found matching any of the criteria provided in the arguments
|
18
|
+
class DataCenterNotFoundSchema
|
19
19
|
attr_accessor :code
|
20
20
|
|
21
21
|
attr_accessor :description
|
@@ -61,7 +61,7 @@ module KatapultAPI
|
|
61
61
|
# Attribute type mapping.
|
62
62
|
def self.openapi_types
|
63
63
|
{
|
64
|
-
:'code' => :'
|
64
|
+
:'code' => :'DataCenterNotFoundEnum',
|
65
65
|
:'description' => :'String',
|
66
66
|
:'detail' => :'Object'
|
67
67
|
}
|
@@ -77,13 +77,13 @@ module KatapultAPI
|
|
77
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
78
|
def initialize(attributes = {})
|
79
79
|
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DataCenterNotFoundSchema` initialize method"
|
81
81
|
end
|
82
82
|
|
83
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
84
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
85
|
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DataCenterNotFoundSchema`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
87
|
end
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
@@ -113,21 +113,9 @@ module KatapultAPI
|
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
-
code_validator = EnumAttributeValidator.new('String', ["location_required"])
|
117
|
-
return false unless code_validator.valid?(@code)
|
118
116
|
true
|
119
117
|
end
|
120
118
|
|
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', ["location_required"])
|
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
119
|
# Checks equality by comparing each attribute.
|
132
120
|
# @param [Object] Object to be compared
|
133
121
|
def ==(o)
|
@@ -14,13 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class DecimalOrUnlimited
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
attr_accessor :unlimited
|
19
21
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
|
-
:'
|
25
|
+
:'value' => :'value',
|
26
|
+
:'unlimited' => :'unlimited'
|
24
27
|
}
|
25
28
|
end
|
26
29
|
|
@@ -32,13 +35,15 @@ module KatapultAPI
|
|
32
35
|
# Attribute type mapping.
|
33
36
|
def self.openapi_types
|
34
37
|
{
|
35
|
-
:'
|
38
|
+
:'value' => :'Float',
|
39
|
+
:'unlimited' => :'Boolean'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
39
43
|
# List of attributes with nullable: true
|
40
44
|
def self.openapi_nullable
|
41
45
|
Set.new([
|
46
|
+
:'value',
|
42
47
|
])
|
43
48
|
end
|
44
49
|
|
@@ -46,19 +51,23 @@ module KatapultAPI
|
|
46
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
52
|
def initialize(attributes = {})
|
48
53
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DecimalOrUnlimited` initialize method"
|
50
55
|
end
|
51
56
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DecimalOrUnlimited`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
61
|
end
|
57
62
|
h[k.to_sym] = v
|
58
63
|
}
|
59
64
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
65
|
+
if attributes.key?(:'value')
|
66
|
+
self.value = attributes[:'value']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'unlimited')
|
70
|
+
self.unlimited = attributes[:'unlimited']
|
62
71
|
end
|
63
72
|
end
|
64
73
|
|
@@ -82,7 +91,8 @@ module KatapultAPI
|
|
82
91
|
def ==(o)
|
83
92
|
return true if self.equal?(o)
|
84
93
|
self.class == o.class &&
|
85
|
-
|
94
|
+
value == o.value &&
|
95
|
+
unlimited == o.unlimited
|
86
96
|
end
|
87
97
|
|
88
98
|
# @see the `==` method
|
@@ -94,7 +104,7 @@ module KatapultAPI
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Integer] Hash code
|
96
106
|
def hash
|
97
|
-
[
|
107
|
+
[value, unlimited].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
@@ -14,16 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :weight
|
17
|
+
class DeleteAddressList200Response
|
18
|
+
attr_accessor :address_list
|
21
19
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
21
|
def self.attribute_map
|
24
22
|
{
|
25
|
-
:'
|
26
|
-
:'weight' => :'weight'
|
23
|
+
:'address_list' => :'address_list'
|
27
24
|
}
|
28
25
|
end
|
29
26
|
|
@@ -35,8 +32,7 @@ module KatapultAPI
|
|
35
32
|
# Attribute type mapping.
|
36
33
|
def self.openapi_types
|
37
34
|
{
|
38
|
-
:'
|
39
|
-
:'weight' => :'Integer'
|
35
|
+
:'address_list' => :'AddressList'
|
40
36
|
}
|
41
37
|
end
|
42
38
|
|
@@ -50,23 +46,21 @@ module KatapultAPI
|
|
50
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
47
|
def initialize(attributes = {})
|
52
48
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DeleteAddressList200Response` initialize method"
|
54
50
|
end
|
55
51
|
|
56
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DeleteAddressList200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
56
|
end
|
61
57
|
h[k.to_sym] = v
|
62
58
|
}
|
63
59
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
66
|
-
|
67
|
-
|
68
|
-
if attributes.key?(:'weight')
|
69
|
-
self.weight = attributes[:'weight']
|
60
|
+
if attributes.key?(:'address_list')
|
61
|
+
self.address_list = attributes[:'address_list']
|
62
|
+
else
|
63
|
+
self.address_list = nil
|
70
64
|
end
|
71
65
|
end
|
72
66
|
|
@@ -75,6 +69,10 @@ module KatapultAPI
|
|
75
69
|
def list_invalid_properties
|
76
70
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
77
71
|
invalid_properties = Array.new
|
72
|
+
if @address_list.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
|
74
|
+
end
|
75
|
+
|
78
76
|
invalid_properties
|
79
77
|
end
|
80
78
|
|
@@ -82,6 +80,7 @@ module KatapultAPI
|
|
82
80
|
# @return true if the model is valid
|
83
81
|
def valid?
|
84
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
+
return false if @address_list.nil?
|
85
84
|
true
|
86
85
|
end
|
87
86
|
|
@@ -90,8 +89,7 @@ module KatapultAPI
|
|
90
89
|
def ==(o)
|
91
90
|
return true if self.equal?(o)
|
92
91
|
self.class == o.class &&
|
93
|
-
|
94
|
-
weight == o.weight
|
92
|
+
address_list == o.address_list
|
95
93
|
end
|
96
94
|
|
97
95
|
# @see the `==` method
|
@@ -103,7 +101,7 @@ module KatapultAPI
|
|
103
101
|
# Calculates hash code according to all attributes.
|
104
102
|
# @return [Integer] Hash code
|
105
103
|
def hash
|
106
|
-
[
|
104
|
+
[address_list].hash
|
107
105
|
end
|
108
106
|
|
109
107
|
# Builds the object from hash
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class DeleteAddressListEntry200Response
|
18
|
+
attr_accessor :address_list_entry
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'address_list_entry' => :'address_list_entry'
|
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
|
-
:'
|
35
|
+
:'address_list_entry' => :'AddressListEntry'
|
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::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DeleteAddressListEntry200Response` 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::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DeleteAddressListEntry200Response`. 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?(:'
|
61
|
-
self.
|
60
|
+
if attributes.key?(:'address_list_entry')
|
61
|
+
self.address_list_entry = attributes[:'address_list_entry']
|
62
62
|
else
|
63
|
-
self.
|
63
|
+
self.address_list_entry = 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 @
|
73
|
-
invalid_properties.push('invalid value for "
|
72
|
+
if @address_list_entry.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list_entry", address_list_entry 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 @
|
83
|
+
return false if @address_list_entry.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
|
-
|
92
|
+
address_list_entry == o.address_list_entry
|
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
|
-
[
|
104
|
+
[address_list_entry].hash
|
105
105
|
end
|
106
106
|
|
107
107
|
# Builds the object from hash
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class DeleteAddressListEntryRequest
|
18
|
+
attr_accessor :address_list_entry
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'address_list_entry' => :'address_list_entry'
|
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
|
-
:'
|
35
|
+
:'address_list_entry' => :'AddressListEntryLookup'
|
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::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DeleteAddressListEntryRequest` 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::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DeleteAddressListEntryRequest`. 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?(:'
|
61
|
-
self.
|
60
|
+
if attributes.key?(:'address_list_entry')
|
61
|
+
self.address_list_entry = attributes[:'address_list_entry']
|
62
62
|
else
|
63
|
-
self.
|
63
|
+
self.address_list_entry = 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 @
|
73
|
-
invalid_properties.push('invalid value for "
|
72
|
+
if @address_list_entry.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list_entry", address_list_entry 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 @
|
83
|
+
return false if @address_list_entry.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
|
-
|
92
|
+
address_list_entry == o.address_list_entry
|
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
|
-
[
|
104
|
+
[address_list_entry].hash
|
105
105
|
end
|
106
106
|
|
107
107
|
# Builds the object from hash
|
data/lib/katapult-ruby/models/{get_disk_template_part_badge.rb → delete_address_list_request.rb}
RENAMED
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class DeleteAddressListRequest
|
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
|
-
:'
|
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
|
-
:'
|
35
|
+
:'address_list' => :'AddressListLookup'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -46,19 +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::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DeleteAddressListRequest` 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::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DeleteAddressListRequest`. 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?(:'
|
61
|
-
self.
|
60
|
+
if attributes.key?(:'address_list')
|
61
|
+
self.address_list = attributes[:'address_list']
|
62
|
+
else
|
63
|
+
self.address_list = nil
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
@@ -67,6 +69,10 @@ module KatapultAPI
|
|
67
69
|
def list_invalid_properties
|
68
70
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
71
|
invalid_properties = Array.new
|
72
|
+
if @address_list.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
|
74
|
+
end
|
75
|
+
|
70
76
|
invalid_properties
|
71
77
|
end
|
72
78
|
|
@@ -74,6 +80,7 @@ module KatapultAPI
|
|
74
80
|
# @return true if the model is valid
|
75
81
|
def valid?
|
76
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
+
return false if @address_list.nil?
|
77
84
|
true
|
78
85
|
end
|
79
86
|
|
@@ -82,7 +89,7 @@ module KatapultAPI
|
|
82
89
|
def ==(o)
|
83
90
|
return true if self.equal?(o)
|
84
91
|
self.class == o.class &&
|
85
|
-
|
92
|
+
address_list == o.address_list
|
86
93
|
end
|
87
94
|
|
88
95
|
# @see the `==` method
|
@@ -94,7 +101,7 @@ module KatapultAPI
|
|
94
101
|
# Calculates hash code according to all attributes.
|
95
102
|
# @return [Integer] Hash code
|
96
103
|
def hash
|
97
|
-
[
|
104
|
+
[address_list].hash
|
98
105
|
end
|
99
106
|
|
100
107
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class DeleteDnsRecordRequest
|
18
18
|
attr_accessor :dns_record
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DeleteDnsRecordRequest` 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::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DeleteDnsRecordRequest`. 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
|
}
|