katapult-ruby 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +20 -0
- data/README.md +869 -0
- data/Rakefile +10 -0
- data/katapult-ruby.gemspec +39 -0
- data/lib/katapult-ruby/api/core_api.rb +8631 -0
- data/lib/katapult-ruby/api_client.rb +392 -0
- data/lib/katapult-ruby/api_error.rb +58 -0
- data/lib/katapult-ruby/configuration.rb +298 -0
- data/lib/katapult-ruby/models/a.rb +214 -0
- data/lib/katapult-ruby/models/aaaa.rb +214 -0
- data/lib/katapult-ruby/models/api_authenticator400_response.rb +267 -0
- data/lib/katapult-ruby/models/attachment.rb +259 -0
- data/lib/katapult-ruby/models/auth_ssh_key.rb +232 -0
- data/lib/katapult-ruby/models/auth_ssh_key_lookup.rb +215 -0
- data/lib/katapult-ruby/models/auth_ssh_key_properties.rb +224 -0
- data/lib/katapult-ruby/models/caa.rb +254 -0
- data/lib/katapult-ruby/models/certificate.rb +356 -0
- data/lib/katapult-ruby/models/certificate_lookup.rb +215 -0
- data/lib/katapult-ruby/models/certificate_state_enum.rb +42 -0
- data/lib/katapult-ruby/models/cname.rb +214 -0
- data/lib/katapult-ruby/models/country.rb +259 -0
- data/lib/katapult-ruby/models/country_state.rb +241 -0
- data/lib/katapult-ruby/models/currency.rb +241 -0
- data/lib/katapult-ruby/models/data_center.rb +241 -0
- data/lib/katapult-ruby/models/data_center_lookup.rb +224 -0
- data/lib/katapult-ruby/models/data_center_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy200_response_disk_backup_policy.rb +214 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response_disk_backup_policy.rb +232 -0
- data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule_request.rb +238 -0
- data/lib/katapult-ruby/models/delete_dns_records_dns_record200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_dns_records_dns_record_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_dns_zone200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response_dns_zone.rb +250 -0
- data/lib/katapult-ruby/models/delete_dns_zones_dns_zone_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_file_storage_volume200_response.rb +237 -0
- data/lib/katapult-ruby/models/delete_file_storage_volume200_response_file_storage_volume.rb +294 -0
- data/lib/katapult-ruby/models/delete_file_storage_volume_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/delete_file_storage_volume_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_ip_address409_response.rb +266 -0
- data/lib/katapult-ruby/models/delete_ip_address_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_load_balancer200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +232 -0
- data/lib/katapult-ruby/models/delete_load_balancer_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +214 -0
- data/lib/katapult-ruby/models/delete_load_balancers_rules_load_balancer_rule_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_security_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_security_group200_response_security_group.rb +223 -0
- data/lib/katapult-ruby/models/delete_security_group_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule200_response_security_group_rule.rb +214 -0
- data/lib/katapult-ruby/models/delete_security_groups_rules_security_group_rule_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_ssh_key404_response.rb +266 -0
- data/lib/katapult-ruby/models/delete_ssh_key409_response.rb +266 -0
- data/lib/katapult-ruby/models/delete_ssh_key_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_tag200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_tag_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_trash_object_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_virtual_machine200_response.rb +237 -0
- data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +415 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_group_request.rb +221 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_attached_iso.rb +232 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_badge.rb +259 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_country.rb +259 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_country_state.rb +241 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_currency.rb +241 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_data_center.rb +241 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_gpu_type.rb +259 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_gpus.rb +274 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_group.rb +250 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_icon.rb +259 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_ip_addresses.rb +286 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_network.rb +241 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_operating_system.rb +232 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_organization.rb +367 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_package.rb +317 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_tags.rb +263 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_type.rb +259 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_part_zone.rb +241 -0
- data/lib/katapult-ruby/models/delete_virtual_machine_request.rb +214 -0
- data/lib/katapult-ruby/models/deletion_restricted.rb +216 -0
- data/lib/katapult-ruby/models/disk.rb +317 -0
- data/lib/katapult-ruby/models/disk_backup_policy_arguments.rb +224 -0
- data/lib/katapult-ruby/models/disk_backup_policy_lookup.rb +215 -0
- data/lib/katapult-ruby/models/disk_backup_policy_target.rb +214 -0
- data/lib/katapult-ruby/models/disk_backup_policy_target_target.rb +105 -0
- data/lib/katapult-ruby/models/disk_installation.rb +234 -0
- data/lib/katapult-ruby/models/disk_installation_attribute.rb +250 -0
- data/lib/katapult-ruby/models/disk_io_profile.rb +250 -0
- data/lib/katapult-ruby/models/disk_lookup.rb +215 -0
- data/lib/katapult-ruby/models/disk_state_enum.rb +48 -0
- data/lib/katapult-ruby/models/disk_template.rb +268 -0
- data/lib/katapult-ruby/models/disk_template_lookup.rb +224 -0
- data/lib/katapult-ruby/models/disk_template_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/disk_template_version.rb +250 -0
- data/lib/katapult-ruby/models/dns_record.rb +299 -0
- data/lib/katapult-ruby/models/dns_record_arguments.rb +264 -0
- data/lib/katapult-ruby/models/dns_record_content_attributes.rb +331 -0
- data/lib/katapult-ruby/models/dns_record_lookup.rb +215 -0
- data/lib/katapult-ruby/models/dns_record_properties.rb +214 -0
- data/lib/katapult-ruby/models/dns_record_properties_arguments.rb +363 -0
- data/lib/katapult-ruby/models/dns_record_properties_properties.rb +114 -0
- data/lib/katapult-ruby/models/dns_record_type_enum.rb +49 -0
- data/lib/katapult-ruby/models/dns_record_types_enum.rb +52 -0
- data/lib/katapult-ruby/models/dns_zone.rb +250 -0
- data/lib/katapult-ruby/models/dns_zone_arguments.rb +231 -0
- data/lib/katapult-ruby/models/dns_zone_lookup.rb +224 -0
- data/lib/katapult-ruby/models/dns_zone_not_verified.rb +214 -0
- data/lib/katapult-ruby/models/dns_zone_verification_details.rb +216 -0
- data/lib/katapult-ruby/models/file_storage_volume_arguments.rb +236 -0
- data/lib/katapult-ruby/models/file_storage_volume_lookup.rb +215 -0
- data/lib/katapult-ruby/models/file_storage_volume_state_enum.rb +42 -0
- data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_response.rb +267 -0
- data/lib/katapult-ruby/models/get_certificate200_response.rb +223 -0
- data/lib/katapult-ruby/models/get_certificate404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_countries200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_countries200_response_countries.rb +223 -0
- data/lib/katapult-ruby/models/get_country200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_country404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_country_country_states200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_country_country_states200_response_country_states.rb +223 -0
- data/lib/katapult-ruby/models/get_country_state200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_country_state404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_currencies200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_currencies200_response_currencies.rb +223 -0
- data/lib/katapult-ruby/models/get_currency200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_currency404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_data_center200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +241 -0
- data/lib/katapult-ruby/models/get_data_center404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_data_center_default_network200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_data_center_default_network200_response_network.rb +241 -0
- data/lib/katapult-ruby/models/get_data_center_default_network_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_data_center_gpu_types200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_data_center_gpu_types200_response_gpu_types.rb +259 -0
- data/lib/katapult-ruby/models/get_data_center_part_country.rb +223 -0
- data/lib/katapult-ruby/models/get_data_centers200_response.rb +223 -0
- data/lib/katapult-ruby/models/get_data_centers200_response_data_centers.rb +241 -0
- data/lib/katapult-ruby/models/get_data_centers400_response.rb +266 -0
- data/lib/katapult-ruby/models/get_data_centers429_response.rb +266 -0
- data/lib/katapult-ruby/models/get_data_centers_part_country.rb +223 -0
- data/lib/katapult-ruby/models/get_disk200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_disk200_response_disk.rb +317 -0
- data/lib/katapult-ruby/models/get_disk404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_disk_backup_policy200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +259 -0
- data/lib/katapult-ruby/models/get_disk_backup_policy404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_disk_backup_policy_part_schedule.rb +272 -0
- data/lib/katapult-ruby/models/get_disk_disk_backup_policies200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_disk_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
- data/lib/katapult-ruby/models/get_disk_disk_backup_policies_part_schedule.rb +245 -0
- data/lib/katapult-ruby/models/get_disk_part_attributes.rb +250 -0
- data/lib/katapult-ruby/models/get_disk_part_disk_template.rb +241 -0
- data/lib/katapult-ruby/models/get_disk_part_disk_template_version.rb +232 -0
- data/lib/katapult-ruby/models/get_disk_part_installation.rb +234 -0
- data/lib/katapult-ruby/models/get_disk_part_io_profile.rb +250 -0
- data/lib/katapult-ruby/models/get_disk_part_operating_system.rb +223 -0
- data/lib/katapult-ruby/models/get_disk_part_virtual_machine.rb +223 -0
- data/lib/katapult-ruby/models/get_disk_part_virtual_machine_disk.rb +263 -0
- data/lib/katapult-ruby/models/get_disk_template200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +268 -0
- data/lib/katapult-ruby/models/get_disk_template404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_disk_template_part_badge.rb +214 -0
- data/lib/katapult-ruby/models/get_disk_template_part_latest_version.rb +214 -0
- data/lib/katapult-ruby/models/get_disk_template_part_operating_system.rb +232 -0
- data/lib/katapult-ruby/models/get_disk_template_version200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_disk_template_version200_response_disk_template_version.rb +250 -0
- data/lib/katapult-ruby/models/get_disk_template_version404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_disk_template_version_part_disk_template.rb +232 -0
- data/lib/katapult-ruby/models/get_disk_template_version_spec200_response.rb +237 -0
- data/lib/katapult-ruby/models/get_disk_template_version_spec200_response_disk_template_version.rb +250 -0
- data/lib/katapult-ruby/models/get_disk_template_version_spec_part_disk_template.rb +232 -0
- data/lib/katapult-ruby/models/get_disk_template_versions200_response.rb +256 -0
- data/lib/katapult-ruby/models/get_disk_template_versions200_response_disk_template.rb +232 -0
- data/lib/katapult-ruby/models/get_disk_template_versions200_response_disk_template_versions.rb +241 -0
- data/lib/katapult-ruby/models/get_dns_record200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_dns_records_dns_record200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_dns_records_dns_record200_response_dns_record.rb +272 -0
- data/lib/katapult-ruby/models/get_dns_records_dns_record404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_dns_zone200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_dns_zone_records200_response.rb +224 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response.rb +224 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response_dns_records.rb +272 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details422_response.rb +266 -0
- data/lib/katapult-ruby/models/get_file_storage_volume200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +294 -0
- data/lib/katapult-ruby/models/get_file_storage_volume404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_gpu_type200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_gpu_type200_response_gpu_type.rb +270 -0
- data/lib/katapult-ruby/models/get_gpu_type404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_gpu_type_part_data_centers.rb +232 -0
- data/lib/katapult-ruby/models/get_gpu_types200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_gpu_types200_response_gpu_types.rb +270 -0
- data/lib/katapult-ruby/models/get_gpu_types_part_data_centers.rb +232 -0
- data/lib/katapult-ruby/models/get_ip_address200_response.rb +233 -0
- data/lib/katapult-ruby/models/get_ip_address200_response_allocation.rb +231 -0
- data/lib/katapult-ruby/models/get_ip_address404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_load_balancer200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +363 -0
- data/lib/katapult-ruby/models/get_load_balancer404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_load_balancer_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_load_balancer_part_ip_address.rb +223 -0
- data/lib/katapult-ruby/models/get_load_balancer_part_weights.rb +223 -0
- data/lib/katapult-ruby/models/get_load_balancer_rules200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_load_balancer_rules200_response_load_balancer_rules.rb +292 -0
- data/lib/katapult-ruby/models/get_load_balancer_rules_part_certificates.rb +223 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +391 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule_part_certificates.rb +265 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule_part_load_balancer.rb +223 -0
- data/lib/katapult-ruby/models/get_network200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_network404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_operating_system200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_operating_system404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_operating_systems200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_operating_systems200_response_operating_systems.rb +223 -0
- data/lib/katapult-ruby/models/get_organization200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_organization404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_organization_available_networks200_response.rb +241 -0
- data/lib/katapult-ruby/models/get_organization_available_networks200_response_networks.rb +241 -0
- data/lib/katapult-ruby/models/get_organization_available_networks200_response_virtual_networks.rb +232 -0
- data/lib/katapult-ruby/models/get_organization_available_networks_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_organization_certificates200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_organization_certificates200_response_certificates.rb +281 -0
- data/lib/katapult-ruby/models/get_organization_disk_backup_policies200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
- data/lib/katapult-ruby/models/get_organization_disk_backup_policies_part_schedule.rb +245 -0
- data/lib/katapult-ruby/models/get_organization_disk_templates200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_disk_templates200_response_disk_templates.rb +268 -0
- data/lib/katapult-ruby/models/get_organization_disk_templates_part_latest_version.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_disk_templates_part_operating_system.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_disks200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_disks200_response_disk.rb +281 -0
- data/lib/katapult-ruby/models/get_organization_disks_part_virtual_machine.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_disks_part_virtual_machine_disk.rb +214 -0
- data/lib/katapult-ruby/models/get_organization_dns_zones200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_dns_zones_nameservers200_response.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response_file_storage_volumes.rb +294 -0
- data/lib/katapult-ruby/models/get_organization_file_storage_volumes_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_organization_ip_addresses200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_ip_addresses200_response_ip_addresses.rb +259 -0
- data/lib/katapult-ruby/models/get_organization_load_balancers200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_load_balancers200_response_load_balancers.rb +305 -0
- data/lib/katapult-ruby/models/get_organization_load_balancers_part_data_center.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_load_balancers_part_ip_address.rb +214 -0
- data/lib/katapult-ruby/models/get_organization_managed200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_organization_managed200_response_organizations.rb +259 -0
- data/lib/katapult-ruby/models/get_organization_network_speed_profiles200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_security_groups200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_ssh_keys200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_organization_tags200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_tags200_response_tags.rb +223 -0
- data/lib/katapult-ruby/models/get_organization_trash_objects200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_organization_users_with_access200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_organization_users_with_access200_response_users.rb +214 -0
- data/lib/katapult-ruby/models/get_organization_users_with_access_part_user.rb +241 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machine_groups200_response.rb +224 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines200_response_virtual_machines.rb +288 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_gpu_type.rb +232 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_ip_addresses.rb +214 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_package.rb +214 -0
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_zone.rb +241 -0
- data/lib/katapult-ruby/models/get_organizations200_response.rb +223 -0
- data/lib/katapult-ruby/models/get_organizations200_response_organizations.rb +268 -0
- data/lib/katapult-ruby/models/get_security_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_security_group404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_security_group_rules200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_security_group_rules200_response_security_group_rules.rb +292 -0
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response_security_group_rule.rb +301 -0
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule_part_security_group.rb +223 -0
- data/lib/katapult-ruby/models/get_tag200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_tag404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_task404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_trash_object200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_trash_object404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_users_current200_response.rb +255 -0
- data/lib/katapult-ruby/models/get_users_current200_response_organizations.rb +232 -0
- data/lib/katapult-ruby/models/get_users_current404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machine200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_virtual_machine200_response_virtual_machine.rb +415 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies200_response_disk_backup_policies.rb +250 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disk_backup_policies_part_schedule.rb +245 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disks200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disks200_response_disks.rb +263 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disks404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disks406_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machine_disks_part_disk.rb +281 -0
- data/lib/katapult-ruby/models/get_virtual_machine_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_virtual_machine_group404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface200_response_virtual_machine_network_interface.rb +270 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface_available_ips_address_version200_response.rb +224 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_ip_addresses.rb +223 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_network.rb +223 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interface_part_virtual_machine.rb +223 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces200_response.rb +240 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces200_response_virtual_machine_network_interfaces.rb +243 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces_part_ip_addresses.rb +223 -0
- data/lib/katapult-ruby/models/get_virtual_machine_network_interfaces_part_network.rb +223 -0
- data/lib/katapult-ruby/models/get_virtual_machine_package200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_virtual_machine_package404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machine_packages200_response.rb +239 -0
- data/lib/katapult-ruby/models/get_virtual_machine_packages200_response_virtual_machine_packages.rb +308 -0
- data/lib/katapult-ruby/models/get_virtual_machine_packages_part_icon.rb +214 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_attached_iso.rb +232 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_badge.rb +259 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_country.rb +259 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb +241 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_currency.rb +241 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_data_center.rb +241 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_gpu_type.rb +259 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_gpus.rb +274 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_group.rb +250 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_icon.rb +259 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_ip_addresses.rb +286 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_network.rb +241 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_operating_system.rb +232 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_organization.rb +367 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_package.rb +317 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_tags.rb +263 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_type.rb +259 -0
- data/lib/katapult-ruby/models/get_virtual_machine_part_zone.rb +241 -0
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response_virtual_machine_build.rb +272 -0
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build_part_virtual_machine.rb +272 -0
- data/lib/katapult-ruby/models/get_vmnivmni200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_vmnivmni200_response_virtual_machine_network_interface.rb +279 -0
- data/lib/katapult-ruby/models/get_vmnivmni404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_vmnivmni_part_ip_addresses.rb +223 -0
- data/lib/katapult-ruby/models/get_vmnivmni_part_network.rb +223 -0
- data/lib/katapult-ruby/models/get_vmnivmni_part_speed_profile.rb +232 -0
- data/lib/katapult-ruby/models/get_vmnivmni_part_virtual_machine.rb +223 -0
- data/lib/katapult-ruby/models/get_zone200_response.rb +221 -0
- data/lib/katapult-ruby/models/get_zone404_response.rb +266 -0
- data/lib/katapult-ruby/models/get_zones200_response.rb +224 -0
- data/lib/katapult-ruby/models/get_zones200_response_zones.rb +241 -0
- data/lib/katapult-ruby/models/get_zones_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/gpu_type.rb +270 -0
- data/lib/katapult-ruby/models/gpu_type_lookup.rb +224 -0
- data/lib/katapult-ruby/models/identity_not_linked_to_web_session_response.rb +267 -0
- data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_response.rb +267 -0
- data/lib/katapult-ruby/models/interface_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/invalid_api_token.rb +214 -0
- data/lib/katapult-ruby/models/invalid_api_token_response.rb +267 -0
- data/lib/katapult-ruby/models/invalid_ip_response.rb +267 -0
- data/lib/katapult-ruby/models/invalid_spec_xml.rb +215 -0
- data/lib/katapult-ruby/models/invalid_spec_xml_response.rb +267 -0
- data/lib/katapult-ruby/models/invalid_timestamp_response.rb +267 -0
- data/lib/katapult-ruby/models/ip_address.rb +286 -0
- data/lib/katapult-ruby/models/ip_address_lookup.rb +224 -0
- data/lib/katapult-ruby/models/ip_address_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/ip_address_version_enum.rb +40 -0
- data/lib/katapult-ruby/models/ip_already_allocated_response.rb +267 -0
- data/lib/katapult-ruby/models/iso.rb +232 -0
- data/lib/katapult-ruby/models/issuer_enum.rb +41 -0
- data/lib/katapult-ruby/models/key_value.rb +231 -0
- data/lib/katapult-ruby/models/load_balancer_arguments.rb +315 -0
- data/lib/katapult-ruby/models/load_balancer_lookup.rb +224 -0
- data/lib/katapult-ruby/models/load_balancer_resource.rb +214 -0
- data/lib/katapult-ruby/models/load_balancer_resource_resources.rb +106 -0
- data/lib/katapult-ruby/models/load_balancer_resource_types_enum.rb +41 -0
- data/lib/katapult-ruby/models/load_balancer_rule_algorithm_enum.rb +41 -0
- data/lib/katapult-ruby/models/load_balancer_rule_arguments.rb +374 -0
- data/lib/katapult-ruby/models/load_balancer_rule_check_protocol_enum.rb +40 -0
- data/lib/katapult-ruby/models/load_balancer_rule_http_statuses_enum.rb +41 -0
- data/lib/katapult-ruby/models/load_balancer_rule_lookup.rb +215 -0
- data/lib/katapult-ruby/models/load_balancer_rule_protocol_enum.rb +41 -0
- data/lib/katapult-ruby/models/load_balancer_weights_arguments.rb +224 -0
- data/lib/katapult-ruby/models/location_required_response.rb +267 -0
- data/lib/katapult-ruby/models/model_alias.rb +214 -0
- data/lib/katapult-ruby/models/mx.rb +223 -0
- data/lib/katapult-ruby/models/network.rb +241 -0
- data/lib/katapult-ruby/models/network_lookup.rb +224 -0
- data/lib/katapult-ruby/models/network_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/network_speed_profile.rb +250 -0
- data/lib/katapult-ruby/models/network_speed_profile_lookup.rb +224 -0
- data/lib/katapult-ruby/models/network_speed_profile_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/no_interface_available_response.rb +267 -0
- data/lib/katapult-ruby/models/ns.rb +214 -0
- data/lib/katapult-ruby/models/object_in_trash.rb +214 -0
- data/lib/katapult-ruby/models/object_in_trash_response.rb +267 -0
- data/lib/katapult-ruby/models/one_of_api_authenticator403_response.rb +106 -0
- data/lib/katapult-ruby/models/one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_error.rb +109 -0
- data/lib/katapult-ruby/models/one_of_flexible_resources_unavailable_to_organization_permission_denied403_error.rb +108 -0
- data/lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_error.rb +107 -0
- data/lib/katapult-ruby/models/one_of_interface_not_found_network_not_found_virtual_machine_not_found404_error.rb +106 -0
- data/lib/katapult-ruby/models/one_of_invalid_spec_xml400_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_invalid_timestamp400_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_invalid_ip422_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_location_required_validation_error422_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_error.rb +105 -0
- data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_error.rb +108 -0
- data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended_permission_denied403_error.rb +109 -0
- data/lib/katapult-ruby/models/one_of_organization_not_activated_permission_denied_resource_creation_restricted403_error.rb +110 -0
- data/lib/katapult-ruby/models/one_of_permission_denied403_error.rb +107 -0
- data/lib/katapult-ruby/models/one_of_virtual_machine_not_found_virtual_machine_package_not_found404_error.rb +105 -0
- data/lib/katapult-ruby/models/operating_system.rb +232 -0
- data/lib/katapult-ruby/models/operating_system_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/organization.rb +367 -0
- data/lib/katapult-ruby/models/organization_limit_reached_response.rb +267 -0
- data/lib/katapult-ruby/models/organization_lookup.rb +224 -0
- data/lib/katapult-ruby/models/organization_not_activated_response.rb +267 -0
- data/lib/katapult-ruby/models/organization_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/organization_suspended_response.rb +267 -0
- data/lib/katapult-ruby/models/pagination_object.rb +255 -0
- data/lib/katapult-ruby/models/patch_disk_backup_policy200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_disk_backup_policy200_response_disk_backup_policy.rb +241 -0
- data/lib/katapult-ruby/models/patch_disk_backup_policy_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_dns_record200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_dns_record_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response_dns_record.rb +272 -0
- data/lib/katapult-ruby/models/patch_dns_records_dns_record_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_dns_zone_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_file_storage_volume200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_file_storage_volume200_response_file_storage_volume.rb +294 -0
- data/lib/katapult-ruby/models/patch_file_storage_volume_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/patch_file_storage_volume_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_ip_address200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_ip_address_request.rb +251 -0
- data/lib/katapult-ruby/models/patch_load_balancer200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_load_balancer200_response_load_balancer.rb +363 -0
- data/lib/katapult-ruby/models/patch_load_balancer_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/patch_load_balancer_part_ip_address.rb +223 -0
- data/lib/katapult-ruby/models/patch_load_balancer_part_weights.rb +223 -0
- data/lib/katapult-ruby/models/patch_load_balancer_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +391 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_part_certificates.rb +265 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_part_load_balancer.rb +223 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_security_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_security_group_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response_security_group_rule.rb +301 -0
- data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule_part_security_group.rb +223 -0
- data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_tag200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_tag_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_virtual_machine200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_virtual_machine200_response_virtual_machine.rb +415 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_group200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_group_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile200_response.rb +221 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile406_response.rb +266 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile422_response.rb +266 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile_request.rb +237 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_attached_iso.rb +232 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_badge.rb +259 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_country.rb +259 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_country_state.rb +241 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_currency.rb +241 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_data_center.rb +241 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_gpu_type.rb +259 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_gpus.rb +274 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_group.rb +250 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_icon.rb +259 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_ip_addresses.rb +286 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_network.rb +241 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_operating_system.rb +232 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_organization.rb +367 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_package.rb +317 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_tags.rb +263 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_type.rb +259 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb +241 -0
- data/lib/katapult-ruby/models/patch_virtual_machine_request.rb +237 -0
- data/lib/katapult-ruby/models/permission_denied.rb +215 -0
- data/lib/katapult-ruby/models/permission_denied_response.rb +267 -0
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb +259 -0
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb +272 -0
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies_request.rb +237 -0
- data/lib/katapult-ruby/models/post_dns_zone_records200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_dns_zone_records_request.rb +237 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response_dns_record.rb +272 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records_request.rb +237 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response_dns_zone.rb +250 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl_request.rb +238 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify422_response.rb +266 -0
- data/lib/katapult-ruby/models/post_invalidate_linked_web_session200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_ip_address_unallocate422_response.rb +266 -0
- data/lib/katapult-ruby/models/post_load_balancer_rules200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_load_balancer_rules200_response_load_balancer_rule.rb +391 -0
- data/lib/katapult-ruby/models/post_load_balancer_rules_part_certificates.rb +265 -0
- data/lib/katapult-ruby/models/post_load_balancer_rules_part_load_balancer.rb +223 -0
- data/lib/katapult-ruby/models/post_load_balancer_rules_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_dns_zones201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_dns_zones201_response_dns_zone.rb +250 -0
- data/lib/katapult-ruby/models/post_organization_dns_zones_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response_file_storage_volume.rb +294 -0
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_ip_addresses503_response.rb +266 -0
- data/lib/katapult-ruby/models/post_organization_ip_addresses_request.rb +295 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers200_response_load_balancer.rb +363 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers_part_data_center.rb +232 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers_part_ip_address.rb +223 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers_part_weights.rb +223 -0
- data/lib/katapult-ruby/models/post_organization_load_balancers_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_managed201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_managed201_response_organization.rb +367 -0
- data/lib/katapult-ruby/models/post_organization_managed_part_country.rb +259 -0
- data/lib/katapult-ruby/models/post_organization_managed_part_country_state.rb +241 -0
- data/lib/katapult-ruby/models/post_organization_managed_part_currency.rb +241 -0
- data/lib/katapult-ruby/models/post_organization_managed_request.rb +253 -0
- data/lib/katapult-ruby/models/post_organization_security_groups200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_security_groups_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_ssh_keys201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_ssh_keys_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_tags200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_tags_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_trash_objects_purge_all_request.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machine_groups200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machine_groups_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response.rb +269 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_build.rb +245 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_task.rb +254 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build201_response_virtual_machine_build.rb +245 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response.rb +269 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_build.rb +245 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_task.rb +254 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec201_response_virtual_machine_build.rb +245 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec422_response.rb +266 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec_request.rb +237 -0
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_request.rb +293 -0
- data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response_dns_zone.rb +241 -0
- data/lib/katapult-ruby/models/post_organizations_organization_dns_zones_request.rb +237 -0
- data/lib/katapult-ruby/models/post_security_group_rules200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_security_group_rules200_response_security_group_rule.rb +301 -0
- data/lib/katapult-ruby/models/post_security_group_rules_part_security_group.rb +223 -0
- data/lib/katapult-ruby/models/post_security_group_rules_request.rb +237 -0
- data/lib/katapult-ruby/models/post_virtual_machine_allocate_ip200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_allocate_ip_request.rb +237 -0
- data/lib/katapult-ruby/models/post_virtual_machine_console_sessions201_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_console_sessions201_response_console_session.rb +241 -0
- data/lib/katapult-ruby/models/post_virtual_machine_console_sessions_part_virtual_machine.rb +272 -0
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response_disk_backup_policy.rb +259 -0
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_part_schedule.rb +272 -0
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_request.rb +237 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip200_response_virtual_machine_network_interface.rb +270 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_ip_addresses.rb +223 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_network.rb +223 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_part_virtual_machine.rb +223 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_ip_request.rb +237 -0
- data/lib/katapult-ruby/models/post_virtual_machine_network_interface_allocate_new_ip_request.rb +259 -0
- data/lib/katapult-ruby/models/post_virtual_machine_reset200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_reset200_response_task.rb +254 -0
- data/lib/katapult-ruby/models/post_virtual_machine_shutdown200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_shutdown200_response_task.rb +254 -0
- data/lib/katapult-ruby/models/post_virtual_machine_start200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_start200_response_task.rb +254 -0
- data/lib/katapult-ruby/models/post_virtual_machine_start_request.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_stop200_response.rb +221 -0
- data/lib/katapult-ruby/models/post_virtual_machine_stop200_response_task.rb +254 -0
- data/lib/katapult-ruby/models/privacy_types_enum.rb +40 -0
- data/lib/katapult-ruby/models/property_type_enum.rb +41 -0
- data/lib/katapult-ruby/models/put_virtual_machine_flexible_resources_request.rb +237 -0
- data/lib/katapult-ruby/models/put_virtual_machine_package200_response.rb +221 -0
- data/lib/katapult-ruby/models/put_virtual_machine_package_request.rb +237 -0
- data/lib/katapult-ruby/models/rate_limit_reached.rb +215 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_a.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_alias.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_caa.rb +232 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_cname.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ips.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_mx.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ns.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ptr.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_srv.rb +232 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_sshfp.rb +232 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_txt.rb +214 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb +214 -0
- data/lib/katapult-ruby/models/resource_creation_restricted.rb +216 -0
- data/lib/katapult-ruby/models/resource_creation_restricted_response.rb +267 -0
- data/lib/katapult-ruby/models/schedule_arguments.rb +264 -0
- data/lib/katapult-ruby/models/schedule_interval_type_enum.rb +42 -0
- data/lib/katapult-ruby/models/scope_not_granted_error.rb +216 -0
- data/lib/katapult-ruby/models/scope_not_granted_error_response.rb +267 -0
- data/lib/katapult-ruby/models/security_group.rb +252 -0
- data/lib/katapult-ruby/models/security_group_arguments.rb +244 -0
- data/lib/katapult-ruby/models/security_group_lookup.rb +215 -0
- data/lib/katapult-ruby/models/security_group_rule_action_enum.rb +40 -0
- data/lib/katapult-ruby/models/security_group_rule_arguments.rb +285 -0
- data/lib/katapult-ruby/models/security_group_rule_direction_enum.rb +40 -0
- data/lib/katapult-ruby/models/security_group_rule_lookup.rb +215 -0
- data/lib/katapult-ruby/models/security_group_rule_protocol_enum.rb +41 -0
- data/lib/katapult-ruby/models/srv.rb +241 -0
- data/lib/katapult-ruby/models/sshfp.rb +232 -0
- data/lib/katapult-ruby/models/storage_speed_enum.rb +40 -0
- data/lib/katapult-ruby/models/tag.rb +263 -0
- data/lib/katapult-ruby/models/tag_arguments.rb +246 -0
- data/lib/katapult-ruby/models/tag_colors_enum.rb +70 -0
- data/lib/katapult-ruby/models/tag_lookup.rb +215 -0
- data/lib/katapult-ruby/models/task.rb +290 -0
- data/lib/katapult-ruby/models/task_queueing_error.rb +214 -0
- data/lib/katapult-ruby/models/task_queueing_error_response.rb +267 -0
- data/lib/katapult-ruby/models/task_status_enum.rb +42 -0
- data/lib/katapult-ruby/models/template_spec.rb +216 -0
- data/lib/katapult-ruby/models/template_spec_field.rb +290 -0
- data/lib/katapult-ruby/models/template_spec_field_type_enum.rb +42 -0
- data/lib/katapult-ruby/models/trash_object.rb +241 -0
- data/lib/katapult-ruby/models/trash_object_lookup.rb +224 -0
- data/lib/katapult-ruby/models/txt.rb +214 -0
- data/lib/katapult-ruby/models/unauthorized_network_for_api_token.rb +215 -0
- data/lib/katapult-ruby/models/unauthorized_network_for_api_token_response.rb +267 -0
- data/lib/katapult-ruby/models/user.rb +241 -0
- data/lib/katapult-ruby/models/validation_error.rb +216 -0
- data/lib/katapult-ruby/models/validation_error_response.rb +267 -0
- data/lib/katapult-ruby/models/virtual_machine.rb +415 -0
- data/lib/katapult-ruby/models/virtual_machine_arguments.rb +262 -0
- data/lib/katapult-ruby/models/virtual_machine_build_state_enum.rb +43 -0
- data/lib/katapult-ruby/models/virtual_machine_disk.rb +272 -0
- data/lib/katapult-ruby/models/virtual_machine_disk_attachment_state_enum.rb +43 -0
- data/lib/katapult-ruby/models/virtual_machine_flexible_resources.rb +238 -0
- data/lib/katapult-ruby/models/virtual_machine_gpu.rb +274 -0
- data/lib/katapult-ruby/models/virtual_machine_gpu_pending_action_enum.rb +40 -0
- data/lib/katapult-ruby/models/virtual_machine_gpu_status_enum.rb +43 -0
- data/lib/katapult-ruby/models/virtual_machine_group.rb +250 -0
- data/lib/katapult-ruby/models/virtual_machine_group_arguments.rb +233 -0
- data/lib/katapult-ruby/models/virtual_machine_group_lookup.rb +215 -0
- data/lib/katapult-ruby/models/virtual_machine_lookup.rb +224 -0
- data/lib/katapult-ruby/models/virtual_machine_must_be_started.rb +214 -0
- data/lib/katapult-ruby/models/virtual_machine_must_be_started_response.rb +267 -0
- data/lib/katapult-ruby/models/virtual_machine_network_interface_lookup.rb +215 -0
- data/lib/katapult-ruby/models/virtual_machine_network_interface_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/virtual_machine_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/virtual_machine_package.rb +317 -0
- data/lib/katapult-ruby/models/virtual_machine_package_lookup.rb +224 -0
- data/lib/katapult-ruby/models/virtual_machine_package_not_found_response.rb +267 -0
- data/lib/katapult-ruby/models/virtual_machine_state_enum.rb +49 -0
- data/lib/katapult-ruby/models/zone.rb +241 -0
- data/lib/katapult-ruby/models/zone_lookup.rb +224 -0
- data/lib/katapult-ruby/models/zone_not_found_response.rb +267 -0
- data/lib/katapult-ruby/version.rb +15 -0
- data/lib/katapult-ruby.rb +701 -0
- metadata +754 -0
@@ -0,0 +1,259 @@
|
|
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 GetOrganizationManaged200ResponseOrganizations
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
attr_accessor :sub_domain
|
23
|
+
|
24
|
+
attr_accessor :infrastructure_domain
|
25
|
+
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
attr_accessor :managed
|
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
|
+
:'sub_domain' => :'sub_domain',
|
36
|
+
:'infrastructure_domain' => :'infrastructure_domain',
|
37
|
+
:'created_at' => :'created_at',
|
38
|
+
:'managed' => :'managed'
|
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
|
+
:'sub_domain' => :'String',
|
53
|
+
:'infrastructure_domain' => :'String',
|
54
|
+
:'created_at' => :'Integer',
|
55
|
+
:'managed' => :'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::GetOrganizationManaged200ResponseOrganizations` 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::GetOrganizationManaged200ResponseOrganizations`. 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?(:'sub_domain')
|
89
|
+
self.sub_domain = attributes[:'sub_domain']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'infrastructure_domain')
|
93
|
+
self.infrastructure_domain = attributes[:'infrastructure_domain']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'created_at')
|
97
|
+
self.created_at = attributes[:'created_at']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'managed')
|
101
|
+
self.managed = attributes[:'managed']
|
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
|
+
sub_domain == o.sub_domain &&
|
128
|
+
infrastructure_domain == o.infrastructure_domain &&
|
129
|
+
created_at == o.created_at &&
|
130
|
+
managed == o.managed
|
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, sub_domain, infrastructure_domain, created_at, managed].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
|
@@ -0,0 +1,240 @@
|
|
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 GetOrganizationNetworkSpeedProfiles200Response
|
18
|
+
attr_accessor :pagination
|
19
|
+
|
20
|
+
# The network speed profiles available to this organization
|
21
|
+
attr_accessor :network_speed_profiles
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'pagination' => :'pagination',
|
27
|
+
:'network_speed_profiles' => :'network_speed_profiles'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Returns all the JSON keys this model knows about
|
32
|
+
def self.acceptable_attributes
|
33
|
+
attribute_map.values
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'pagination' => :'PaginationObject',
|
40
|
+
:'network_speed_profiles' => :'Array<NetworkSpeedProfile>'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::GetOrganizationNetworkSpeedProfiles200Response` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::GetOrganizationNetworkSpeedProfiles200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'pagination')
|
66
|
+
self.pagination = attributes[:'pagination']
|
67
|
+
else
|
68
|
+
self.pagination = nil
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'network_speed_profiles')
|
72
|
+
if (value = attributes[:'network_speed_profiles']).is_a?(Array)
|
73
|
+
self.network_speed_profiles = value
|
74
|
+
end
|
75
|
+
else
|
76
|
+
self.network_speed_profiles = nil
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
84
|
+
invalid_properties = Array.new
|
85
|
+
if @pagination.nil?
|
86
|
+
invalid_properties.push('invalid value for "pagination", pagination cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
if @network_speed_profiles.nil?
|
90
|
+
invalid_properties.push('invalid value for "network_speed_profiles", network_speed_profiles cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
invalid_properties
|
94
|
+
end
|
95
|
+
|
96
|
+
# Check to see if the all the properties in the model are valid
|
97
|
+
# @return true if the model is valid
|
98
|
+
def valid?
|
99
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
100
|
+
return false if @pagination.nil?
|
101
|
+
return false if @network_speed_profiles.nil?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
pagination == o.pagination &&
|
111
|
+
network_speed_profiles == o.network_speed_profiles
|
112
|
+
end
|
113
|
+
|
114
|
+
# @see the `==` method
|
115
|
+
# @param [Object] Object to be compared
|
116
|
+
def eql?(o)
|
117
|
+
self == o
|
118
|
+
end
|
119
|
+
|
120
|
+
# Calculates hash code according to all attributes.
|
121
|
+
# @return [Integer] Hash code
|
122
|
+
def hash
|
123
|
+
[pagination, network_speed_profiles].hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Builds the object from hash
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
+
# @return [Object] Returns the model itself
|
129
|
+
def self.build_from_hash(attributes)
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
|
+
transformed_hash = {}
|
133
|
+
openapi_types.each_pair do |key, type|
|
134
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
135
|
+
transformed_hash["#{key}"] = nil
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
140
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
141
|
+
end
|
142
|
+
elsif !attributes[attribute_map[key]].nil?
|
143
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
144
|
+
end
|
145
|
+
end
|
146
|
+
new(transformed_hash)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def self._deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :Time
|
156
|
+
Time.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :Boolean
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
# models (e.g. Pet) or oneOf
|
187
|
+
klass = KatapultAPI.const_get(type)
|
188
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the string representation of the object
|
193
|
+
# @return [String] String presentation of the object
|
194
|
+
def to_s
|
195
|
+
to_hash.to_s
|
196
|
+
end
|
197
|
+
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_body
|
201
|
+
to_hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the object in the form of hash
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_hash
|
207
|
+
hash = {}
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
209
|
+
value = self.send(attr)
|
210
|
+
if value.nil?
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
|
+
end
|
214
|
+
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|