katapult-ruby 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +73 -143
- data/lib/katapult-ruby/api/core_api.rb +705 -653
- data/lib/katapult-ruby/configuration.rb +3 -3
- data/lib/katapult-ruby/models/{delete_virtual_machine_part_data_center.rb → address_list.rb} +20 -16
- data/lib/katapult-ruby/models/{model_alias.rb → address_list_arguments.rb} +5 -3
- data/lib/katapult-ruby/models/{get_disk_part_operating_system.rb → address_list_entry.rb} +15 -4
- data/lib/katapult-ruby/models/{ns.rb → address_list_entry_arguments.rb} +16 -4
- data/lib/katapult-ruby/models/{aaaa.rb → address_list_entry_lookup.rb} +11 -10
- data/lib/katapult-ruby/models/{dns_zone_already_verified_enum.rb → address_list_entry_not_found_enum.rb} +5 -5
- data/lib/katapult-ruby/models/{a.rb → address_list_lookup.rb} +11 -10
- data/lib/katapult-ruby/models/{property_type_enum.rb → address_list_not_found_enum.rb} +5 -7
- data/lib/katapult-ruby/models/certificate.rb +8 -0
- data/lib/katapult-ruby/models/country.rb +1 -0
- data/lib/katapult-ruby/models/data_center.rb +1 -0
- data/lib/katapult-ruby/models/{dns_zone_not_verified.rb → decimal_or_unlimited.rb} +20 -10
- data/lib/katapult-ruby/models/{patch_load_balancer_part_weights.rb → delete_address_list200_response.rb} +17 -19
- data/lib/katapult-ruby/models/{get_dns_records_dns_record200_response.rb → delete_address_list_entry200_response.rb} +14 -14
- data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone200_response.rb → delete_address_list_entry_request.rb} +14 -14
- data/lib/katapult-ruby/models/{get_disk_template_part_badge.rb → delete_address_list_request.rb} +17 -10
- data/lib/katapult-ruby/models/delete_disk_backup_policy_schedule200_response_disk_backup_policy.rb +1 -0
- data/lib/katapult-ruby/models/{delete_dns_records_dns_record_request.rb → delete_dns_record_request.rb} +3 -3
- data/lib/katapult-ruby/models/{delete_dns_zones_dns_zone_request.rb → delete_dns_zone_request.rb} +3 -3
- data/lib/katapult-ruby/models/delete_file_storage_volume200_response_file_storage_volume.rb +2 -0
- data/lib/katapult-ruby/models/delete_file_storage_volume_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/delete_load_balancer200_response_load_balancer.rb +1 -0
- data/lib/katapult-ruby/models/delete_virtual_machine200_response_virtual_machine.rb +27 -9
- data/lib/katapult-ruby/models/disk.rb +3 -0
- data/lib/katapult-ruby/models/disk_installation_attribute.rb +2 -0
- data/lib/katapult-ruby/models/disk_io_profile.rb +2 -0
- data/lib/katapult-ruby/models/disk_template.rb +3 -0
- data/lib/katapult-ruby/models/dns_record.rb +3 -0
- data/lib/katapult-ruby/models/dns_record_arguments.rb +24 -14
- data/lib/katapult-ruby/models/{get_virtual_machine_part_gpus.rb → dns_record_content_arguments.rb} +115 -55
- data/lib/katapult-ruby/models/{get_dns_zones_dns_zone200_response.rb → dns_record_content_arguments_for_a.rb} +11 -17
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_aaaa.rb +215 -0
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_alias.rb +215 -0
- data/lib/katapult-ruby/models/{delete_virtual_machine_part_operating_system.rb → dns_record_content_arguments_for_caa.rb} +23 -22
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_cname.rb +215 -0
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_ips.rb +215 -0
- data/lib/katapult-ruby/models/{cname.rb → dns_record_content_arguments_for_mx.rb} +11 -10
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_ns.rb +215 -0
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_ptr.rb +215 -0
- data/lib/katapult-ruby/models/{srv.rb → dns_record_content_arguments_for_srv.rb} +5 -13
- data/lib/katapult-ruby/models/{sshfp.rb → dns_record_content_arguments_for_sshfp.rb} +4 -3
- data/lib/katapult-ruby/models/{dns_record_properties.rb → dns_record_content_arguments_for_txt.rb} +11 -10
- data/lib/katapult-ruby/models/dns_record_content_arguments_for_virtual_machine.rb +215 -0
- data/lib/katapult-ruby/models/dns_record_content_attributes.rb +14 -0
- data/lib/katapult-ruby/models/dns_zone.rb +10 -19
- data/lib/katapult-ruby/models/dns_zone_arguments.rb +9 -15
- data/lib/katapult-ruby/models/{get_dns_zones_dns_zone_verification_details422_response.rb → get_address_list404_response.rb} +4 -4
- data/lib/katapult-ruby/models/{delete_virtual_machine_part_currency.rb → get_address_list_entries200_response.rb} +33 -34
- data/lib/katapult-ruby/models/get_address_list_entry404_response.rb +254 -0
- data/lib/katapult-ruby/models/{dns_zone_verification_details.rb → get_address_lists200_response.rb} +35 -11
- data/lib/katapult-ruby/models/{patch_virtual_machine_part_operating_system.rb → get_address_lists200_response_address_lists.rb} +12 -10
- data/lib/katapult-ruby/models/get_data_center200_response_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_data_center_default_network200_response_network.rb +1 -0
- data/lib/katapult-ruby/models/get_data_center_default_network_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_data_centers200_response_data_centers.rb +1 -0
- data/lib/katapult-ruby/models/get_disk200_response_disk.rb +5 -2
- data/lib/katapult-ruby/models/get_disk_backup_policy200_response_disk_backup_policy.rb +2 -1
- data/lib/katapult-ruby/models/get_disk_template200_response_disk_template.rb +4 -1
- data/lib/katapult-ruby/models/{get_dns_records_dns_record404_response.rb → get_dns_record404_response.rb} +3 -3
- data/lib/katapult-ruby/models/{get_dns_zones_dns_zone404_response.rb → get_dns_zone404_response.rb} +3 -3
- data/lib/katapult-ruby/models/get_file_storage_volume200_response_file_storage_volume.rb +2 -0
- data/lib/katapult-ruby/models/get_file_storage_volume_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_gpu_type_part_data_centers.rb +1 -0
- data/lib/katapult-ruby/models/get_gpu_types_part_data_centers.rb +1 -0
- data/lib/katapult-ruby/models/get_load_balancer200_response_load_balancer.rb +4 -5
- data/lib/katapult-ruby/models/get_load_balancer_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
- data/lib/katapult-ruby/models/{get_organization_users_with_access_part_user.rb → get_organization_address_lists200_response.rb} +33 -34
- data/lib/katapult-ruby/models/{get_virtual_machine_part_attached_iso.rb → get_organization_address_lists200_response_address_lists.rb} +12 -10
- data/lib/katapult-ruby/models/get_organization_available_networks200_response_networks.rb +1 -0
- data/lib/katapult-ruby/models/get_organization_available_networks_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_organization_certificates200_response_certificates.rb +2 -0
- data/lib/katapult-ruby/models/get_organization_disk_templates200_response_disk_templates.rb +3 -0
- data/lib/katapult-ruby/models/get_organization_disks200_response_disk.rb +1 -0
- data/lib/katapult-ruby/models/get_organization_file_storage_volumes200_response_file_storage_volumes.rb +2 -0
- data/lib/katapult-ruby/models/get_organization_file_storage_volumes_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/get_organization_ip_addresses200_response_ip_addresses.rb +2 -0
- data/lib/katapult-ruby/models/get_organization_load_balancers200_response_load_balancers.rb +3 -4
- data/lib/katapult-ruby/models/{delete_dns_records_dns_record200_response.rb → get_organization_policy_limits200_response.rb} +14 -14
- data/lib/katapult-ruby/models/get_organization_users_with_access200_response_users.rb +2 -1
- data/lib/katapult-ruby/models/get_organization_virtual_machines200_response_virtual_machines.rb +3 -1
- data/lib/katapult-ruby/models/get_security_group_rules200_response_security_group_rules.rb +2 -0
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
- data/lib/katapult-ruby/models/get_virtual_machine200_response_virtual_machine.rb +27 -9
- data/lib/katapult-ruby/models/get_virtual_machine_authorized_keys404_response.rb +254 -0
- data/lib/katapult-ruby/models/get_virtual_machine_packages200_response_virtual_machine_packages.rb +1 -0
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build200_response_virtual_machine_build.rb +1 -0
- data/lib/katapult-ruby/models/get_zones200_response_zones.rb +1 -0
- data/lib/katapult-ruby/models/get_zones_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/{mx.rb → integer_or_unlimited.rb} +17 -16
- data/lib/katapult-ruby/models/invalid_api_token.rb +1 -0
- data/lib/katapult-ruby/models/ip_address.rb +3 -0
- data/lib/katapult-ruby/models/iso.rb +1 -0
- data/lib/katapult-ruby/models/{get_load_balancer_part_weights.rb → load_balancer_weight.rb} +3 -3
- data/lib/katapult-ruby/models/network.rb +1 -0
- data/lib/katapult-ruby/models/network_speed_profile.rb +2 -0
- data/lib/katapult-ruby/models/{infrastructure_dns_zone_cannot_be_edited_enum.rb → no_virtual_machine_for_api_token_enum.rb} +5 -5
- data/lib/katapult-ruby/models/object_in_trash.rb +1 -0
- data/lib/katapult-ruby/models/operating_system.rb +1 -0
- data/lib/katapult-ruby/models/organization.rb +10 -0
- data/lib/katapult-ruby/models/organization_policy.rb +349 -0
- data/lib/katapult-ruby/models/pagination_object.rb +2 -0
- data/lib/katapult-ruby/models/{delete_virtual_machine_part_zone.rb → patch_address_list_entry_request.rb} +30 -34
- data/lib/katapult-ruby/models/{get_disk_part_disk_template.rb → patch_address_list_request.rb} +30 -34
- data/lib/katapult-ruby/models/patch_file_storage_volume200_response_file_storage_volume.rb +2 -0
- data/lib/katapult-ruby/models/patch_file_storage_volume_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/patch_load_balancer200_response_load_balancer.rb +4 -5
- data/lib/katapult-ruby/models/patch_load_balancer_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/patch_load_balancers_rules_load_balancer_rule200_response_load_balancer_rule.rb +2 -0
- data/lib/katapult-ruby/models/patch_security_groups_rules_security_group_rule200_response_security_group_rule.rb +2 -0
- data/lib/katapult-ruby/models/patch_virtual_machine200_response_virtual_machine.rb +27 -9
- data/lib/katapult-ruby/models/permission_denied.rb +1 -0
- data/lib/katapult-ruby/models/post_address_list_entries201_response.rb +221 -0
- data/lib/katapult-ruby/models/{get_virtual_machine_part_currency.rb → post_address_list_entries_request.rb} +30 -34
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
- data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_verify422_response.rb → post_dns_zone_verify422_response.rb} +4 -4
- data/lib/katapult-ruby/models/post_load_balancer_rules200_response_load_balancer_rule.rb +2 -0
- data/lib/katapult-ruby/models/{post_dns_zones_dns_zone_update_ttl200_response.rb → post_organization_address_lists201_response.rb} +14 -14
- data/lib/katapult-ruby/models/{post_organizations_organization_dns_zones_request.rb → post_organization_address_lists_request.rb} +4 -4
- data/lib/katapult-ruby/models/post_organization_dns_zones201_response.rb +1 -1
- data/lib/katapult-ruby/models/post_organization_dns_zones_request.rb +11 -11
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes201_response_file_storage_volume.rb +2 -0
- data/lib/katapult-ruby/models/post_organization_file_storage_volumes_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/{post_organization_load_balancers200_response.rb → post_organization_load_balancers201_response.rb} +4 -4
- data/lib/katapult-ruby/models/{post_organization_load_balancers200_response_load_balancer.rb → post_organization_load_balancers201_response_load_balancer.rb} +7 -8
- data/lib/katapult-ruby/models/post_organization_load_balancers_part_data_center.rb +1 -0
- data/lib/katapult-ruby/models/post_security_group_rules200_response_security_group_rule.rb +2 -0
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies200_response_disk_backup_policy.rb +2 -1
- data/lib/katapult-ruby/models/record_content_attributes_for_a.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_alias.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_caa.rb +3 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_cname.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ips.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_mx.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ns.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_ptr.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_srv.rb +3 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_sshfp.rb +3 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_txt.rb +1 -0
- data/lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb +1 -0
- data/lib/katapult-ruby/models/{get_disk_backup_policy_part_schedule.rb → schedule.rb} +3 -3
- data/lib/katapult-ruby/models/task.rb +2 -0
- data/lib/katapult-ruby/models/template_spec_field.rb +3 -0
- data/lib/katapult-ruby/models/virtual_machine.rb +19 -1
- data/lib/katapult-ruby/models/virtual_machine_flexible_resources.rb +13 -4
- data/lib/katapult-ruby/models/virtual_machine_gpu.rb +2 -0
- data/lib/katapult-ruby/models/virtual_machine_package.rb +15 -4
- data/lib/katapult-ruby/models/virtual_machine_state_enum.rb +2 -1
- data/lib/katapult-ruby/models/zone.rb +1 -0
- data/lib/katapult-ruby/version.rb +1 -1
- data/lib/katapult-ruby.rb +54 -125
- metadata +57 -128
- data/lib/katapult-ruby/models/caa.rb +0 -254
- data/lib/katapult-ruby/models/delete_dns_zones_dns_zone200_response_dns_zone.rb +0 -250
- data/lib/katapult-ruby/models/delete_virtual_machine_part_attached_iso.rb +0 -232
- data/lib/katapult-ruby/models/delete_virtual_machine_part_badge.rb +0 -259
- data/lib/katapult-ruby/models/delete_virtual_machine_part_country.rb +0 -259
- data/lib/katapult-ruby/models/delete_virtual_machine_part_country_state.rb +0 -241
- data/lib/katapult-ruby/models/delete_virtual_machine_part_gpus.rb +0 -274
- data/lib/katapult-ruby/models/delete_virtual_machine_part_group.rb +0 -250
- data/lib/katapult-ruby/models/delete_virtual_machine_part_icon.rb +0 -259
- data/lib/katapult-ruby/models/delete_virtual_machine_part_ip_addresses.rb +0 -286
- data/lib/katapult-ruby/models/delete_virtual_machine_part_network.rb +0 -241
- data/lib/katapult-ruby/models/delete_virtual_machine_part_organization.rb +0 -367
- data/lib/katapult-ruby/models/delete_virtual_machine_part_package.rb +0 -317
- data/lib/katapult-ruby/models/delete_virtual_machine_part_tags.rb +0 -263
- data/lib/katapult-ruby/models/delete_virtual_machine_part_type.rb +0 -259
- data/lib/katapult-ruby/models/dns_record_properties_arguments.rb +0 -363
- data/lib/katapult-ruby/models/dns_record_properties_properties.rb +0 -114
- data/lib/katapult-ruby/models/dns_record_type_enum.rb +0 -49
- data/lib/katapult-ruby/models/get_disk_part_attributes.rb +0 -250
- data/lib/katapult-ruby/models/get_disk_part_disk_template_version.rb +0 -232
- data/lib/katapult-ruby/models/get_disk_part_installation.rb +0 -234
- data/lib/katapult-ruby/models/get_disk_part_io_profile.rb +0 -250
- data/lib/katapult-ruby/models/get_disk_template_part_operating_system.rb +0 -232
- data/lib/katapult-ruby/models/get_dns_records_dns_record200_response_dns_record.rb +0 -272
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response.rb +0 -224
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_records200_response_dns_records.rb +0 -272
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details200_response.rb +0 -221
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_data_center.rb +0 -232
- data/lib/katapult-ruby/models/get_organization_virtual_machines_part_zone.rb +0 -241
- data/lib/katapult-ruby/models/get_virtual_machine_part_badge.rb +0 -259
- data/lib/katapult-ruby/models/get_virtual_machine_part_country.rb +0 -259
- data/lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb +0 -241
- data/lib/katapult-ruby/models/get_virtual_machine_part_data_center.rb +0 -241
- data/lib/katapult-ruby/models/get_virtual_machine_part_group.rb +0 -250
- data/lib/katapult-ruby/models/get_virtual_machine_part_icon.rb +0 -259
- data/lib/katapult-ruby/models/get_virtual_machine_part_ip_addresses.rb +0 -286
- data/lib/katapult-ruby/models/get_virtual_machine_part_network.rb +0 -241
- data/lib/katapult-ruby/models/get_virtual_machine_part_operating_system.rb +0 -232
- data/lib/katapult-ruby/models/get_virtual_machine_part_organization.rb +0 -367
- data/lib/katapult-ruby/models/get_virtual_machine_part_package.rb +0 -317
- data/lib/katapult-ruby/models/get_virtual_machine_part_tags.rb +0 -263
- data/lib/katapult-ruby/models/get_virtual_machine_part_type.rb +0 -259
- data/lib/katapult-ruby/models/get_virtual_machine_part_zone.rb +0 -241
- data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_schema.rb +0 -255
- data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_res.rb +0 -107
- data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response.rb +0 -221
- data/lib/katapult-ruby/models/patch_dns_records_dns_record200_response_dns_record.rb +0 -272
- data/lib/katapult-ruby/models/patch_dns_records_dns_record_request.rb +0 -237
- data/lib/katapult-ruby/models/patch_virtual_machine_part_attached_iso.rb +0 -232
- data/lib/katapult-ruby/models/patch_virtual_machine_part_badge.rb +0 -259
- data/lib/katapult-ruby/models/patch_virtual_machine_part_country.rb +0 -259
- data/lib/katapult-ruby/models/patch_virtual_machine_part_country_state.rb +0 -241
- data/lib/katapult-ruby/models/patch_virtual_machine_part_currency.rb +0 -241
- data/lib/katapult-ruby/models/patch_virtual_machine_part_data_center.rb +0 -241
- data/lib/katapult-ruby/models/patch_virtual_machine_part_gpus.rb +0 -274
- data/lib/katapult-ruby/models/patch_virtual_machine_part_group.rb +0 -250
- data/lib/katapult-ruby/models/patch_virtual_machine_part_icon.rb +0 -259
- data/lib/katapult-ruby/models/patch_virtual_machine_part_ip_addresses.rb +0 -286
- data/lib/katapult-ruby/models/patch_virtual_machine_part_network.rb +0 -241
- data/lib/katapult-ruby/models/patch_virtual_machine_part_organization.rb +0 -367
- data/lib/katapult-ruby/models/patch_virtual_machine_part_package.rb +0 -317
- data/lib/katapult-ruby/models/patch_virtual_machine_part_tags.rb +0 -263
- data/lib/katapult-ruby/models/patch_virtual_machine_part_type.rb +0 -259
- data/lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb +0 -241
- data/lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb +0 -272
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response.rb +0 -221
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records200_response_dns_record.rb +0 -272
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_records_request.rb +0 -237
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl200_response_dns_zone.rb +0 -250
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_update_ttl_request.rb +0 -238
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify200_response.rb +0 -221
- data/lib/katapult-ruby/models/post_organization_dns_zones201_response_dns_zone.rb +0 -250
- data/lib/katapult-ruby/models/post_organization_load_balancers_part_weights.rb +0 -223
- data/lib/katapult-ruby/models/post_organization_managed201_response.rb +0 -221
- data/lib/katapult-ruby/models/post_organization_managed201_response_organization.rb +0 -367
- data/lib/katapult-ruby/models/post_organization_managed_part_country.rb +0 -259
- data/lib/katapult-ruby/models/post_organization_managed_part_country_state.rb +0 -241
- data/lib/katapult-ruby/models/post_organization_managed_part_currency.rb +0 -241
- data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response.rb +0 -221
- data/lib/katapult-ruby/models/post_organizations_organization_dns_zones201_response_dns_zone.rb +0 -241
- data/lib/katapult-ruby/models/post_virtual_machine_disk_backup_policies_part_schedule.rb +0 -272
- data/lib/katapult-ruby/models/txt.rb +0 -214
@@ -17,13 +17,13 @@ module KatapultAPI
|
|
17
17
|
class PostOrganizationDnsZonesRequest
|
18
18
|
attr_accessor :organization
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :properties
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
25
|
:'organization' => :'organization',
|
26
|
-
:'
|
26
|
+
:'properties' => :'properties'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -36,7 +36,7 @@ module KatapultAPI
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'organization' => :'OrganizationLookup',
|
39
|
-
:'
|
39
|
+
:'properties' => :'DNSZoneArguments'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -67,10 +67,10 @@ module KatapultAPI
|
|
67
67
|
self.organization = nil
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.key?(:'
|
71
|
-
self.
|
70
|
+
if attributes.key?(:'properties')
|
71
|
+
self.properties = attributes[:'properties']
|
72
72
|
else
|
73
|
-
self.
|
73
|
+
self.properties = nil
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -83,8 +83,8 @@ module KatapultAPI
|
|
83
83
|
invalid_properties.push('invalid value for "organization", organization cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
-
if @
|
87
|
-
invalid_properties.push('invalid value for "
|
86
|
+
if @properties.nil?
|
87
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
88
88
|
end
|
89
89
|
|
90
90
|
invalid_properties
|
@@ -95,7 +95,7 @@ module KatapultAPI
|
|
95
95
|
def valid?
|
96
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
97
|
return false if @organization.nil?
|
98
|
-
return false if @
|
98
|
+
return false if @properties.nil?
|
99
99
|
true
|
100
100
|
end
|
101
101
|
|
@@ -105,7 +105,7 @@ module KatapultAPI
|
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
107
|
organization == o.organization &&
|
108
|
-
|
108
|
+
properties == o.properties
|
109
109
|
end
|
110
110
|
|
111
111
|
# @see the `==` method
|
@@ -117,7 +117,7 @@ module KatapultAPI
|
|
117
117
|
# Calculates hash code according to all attributes.
|
118
118
|
# @return [Integer] Hash code
|
119
119
|
def hash
|
120
|
-
[organization,
|
120
|
+
[organization, properties].hash
|
121
121
|
end
|
122
122
|
|
123
123
|
# 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 PostOrganizationLoadBalancers201Response
|
18
18
|
attr_accessor :load_balancer
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module KatapultAPI
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'load_balancer' => :'
|
35
|
+
:'load_balancer' => :'PostOrganizationLoadBalancers201ResponseLoadBalancer'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -46,13 +46,13 @@ module KatapultAPI
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers201Response` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class PostOrganizationLoadBalancers201ResponseLoadBalancer
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
20
|
attr_accessor :name
|
@@ -99,13 +99,13 @@ module KatapultAPI
|
|
99
99
|
:'resource_type' => :'LoadBalancerResourceTypesEnum',
|
100
100
|
:'resources' => :'Array<LoadBalancerResource>',
|
101
101
|
:'resource_ids' => :'Array<String>',
|
102
|
-
:'ip_address' => :'
|
102
|
+
:'ip_address' => :'PostOrganizationLoadBalancersPartIPAddress',
|
103
103
|
:'https_redirect' => :'Boolean',
|
104
104
|
:'backend_certificate' => :'String',
|
105
105
|
:'backend_certificate_key' => :'String',
|
106
106
|
:'data_center' => :'PostOrganizationLoadBalancersPartDataCenter',
|
107
107
|
:'enable_weighting' => :'Boolean',
|
108
|
-
:'weights' => :'Array<
|
108
|
+
:'weights' => :'Array<LoadBalancerWeight>',
|
109
109
|
:'standby_vms' => :'Array<String>'
|
110
110
|
}
|
111
111
|
end
|
@@ -113,6 +113,7 @@ module KatapultAPI
|
|
113
113
|
# List of attributes with nullable: true
|
114
114
|
def self.openapi_nullable
|
115
115
|
Set.new([
|
116
|
+
:'api_reference',
|
116
117
|
])
|
117
118
|
end
|
118
119
|
|
@@ -120,13 +121,13 @@ module KatapultAPI
|
|
120
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
121
122
|
def initialize(attributes = {})
|
122
123
|
if (!attributes.is_a?(Hash))
|
123
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
124
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationLoadBalancers201ResponseLoadBalancer` initialize method"
|
124
125
|
end
|
125
126
|
|
126
127
|
# check to see if the attribute exists and convert string to symbol for hash key
|
127
128
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
128
129
|
if (!self.class.attribute_map.key?(k.to_sym))
|
129
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
130
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationLoadBalancers201ResponseLoadBalancer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
130
131
|
end
|
131
132
|
h[k.to_sym] = v
|
132
133
|
}
|
@@ -160,9 +161,7 @@ module KatapultAPI
|
|
160
161
|
end
|
161
162
|
|
162
163
|
if attributes.key?(:'ip_address')
|
163
|
-
|
164
|
-
self.ip_address = value
|
165
|
-
end
|
164
|
+
self.ip_address = attributes[:'ip_address']
|
166
165
|
end
|
167
166
|
|
168
167
|
if attributes.key?(:'https_redirect')
|
@@ -51,7 +51,7 @@ module KatapultAPI
|
|
51
51
|
:'retention' => :'Integer',
|
52
52
|
:'total_size' => :'Float',
|
53
53
|
:'target' => :'DiskBackupPolicyTarget',
|
54
|
-
:'schedule' => :'
|
54
|
+
:'schedule' => :'Schedule',
|
55
55
|
:'auto_move_to_trash_at' => :'Integer'
|
56
56
|
}
|
57
57
|
end
|
@@ -59,6 +59,7 @@ module KatapultAPI
|
|
59
59
|
# List of attributes with nullable: true
|
60
60
|
def self.openapi_nullable
|
61
61
|
Set.new([
|
62
|
+
:'auto_move_to_trash_at'
|
62
63
|
])
|
63
64
|
end
|
64
65
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class Schedule
|
18
18
|
attr_accessor :frequency
|
19
19
|
|
20
20
|
attr_accessor :interval
|
@@ -84,13 +84,13 @@ module KatapultAPI
|
|
84
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
85
85
|
def initialize(attributes = {})
|
86
86
|
if (!attributes.is_a?(Hash))
|
87
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
87
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::Schedule` initialize method"
|
88
88
|
end
|
89
89
|
|
90
90
|
# check to see if the attribute exists and convert string to symbol for hash key
|
91
91
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
92
92
|
if (!self.class.attribute_map.key?(k.to_sym))
|
93
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::Schedule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
94
94
|
end
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
@@ -45,6 +45,8 @@ module KatapultAPI
|
|
45
45
|
|
46
46
|
attr_accessor :cpu_cores
|
47
47
|
|
48
|
+
attr_accessor :use_dedicated_cpus
|
49
|
+
|
48
50
|
attr_accessor :gpu_type
|
49
51
|
|
50
52
|
attr_accessor :gpus
|
@@ -95,6 +97,7 @@ module KatapultAPI
|
|
95
97
|
:'attached_iso' => :'attached_iso',
|
96
98
|
:'memory_in_gb' => :'memory_in_gb',
|
97
99
|
:'cpu_cores' => :'cpu_cores',
|
100
|
+
:'use_dedicated_cpus' => :'use_dedicated_cpus',
|
98
101
|
:'gpu_type' => :'gpu_type',
|
99
102
|
:'gpus' => :'gpus',
|
100
103
|
:'tags' => :'tags',
|
@@ -126,6 +129,7 @@ module KatapultAPI
|
|
126
129
|
:'attached_iso' => :'ISO',
|
127
130
|
:'memory_in_gb' => :'Integer',
|
128
131
|
:'cpu_cores' => :'Integer',
|
132
|
+
:'use_dedicated_cpus' => :'Boolean',
|
129
133
|
:'gpu_type' => :'GPUType',
|
130
134
|
:'gpus' => :'Array<VirtualMachineGPU>',
|
131
135
|
:'tags' => :'Array<Tag>',
|
@@ -137,6 +141,15 @@ module KatapultAPI
|
|
137
141
|
# List of attributes with nullable: true
|
138
142
|
def self.openapi_nullable
|
139
143
|
Set.new([
|
144
|
+
:'description',
|
145
|
+
:'initial_root_password',
|
146
|
+
:'group',
|
147
|
+
:'package',
|
148
|
+
:'attached_iso',
|
149
|
+
:'memory_in_gb',
|
150
|
+
:'cpu_cores',
|
151
|
+
:'use_dedicated_cpus',
|
152
|
+
:'gpu_type',
|
140
153
|
])
|
141
154
|
end
|
142
155
|
|
@@ -215,6 +228,10 @@ module KatapultAPI
|
|
215
228
|
self.cpu_cores = attributes[:'cpu_cores']
|
216
229
|
end
|
217
230
|
|
231
|
+
if attributes.key?(:'use_dedicated_cpus')
|
232
|
+
self.use_dedicated_cpus = attributes[:'use_dedicated_cpus']
|
233
|
+
end
|
234
|
+
|
218
235
|
if attributes.key?(:'gpu_type')
|
219
236
|
self.gpu_type = attributes[:'gpu_type']
|
220
237
|
end
|
@@ -279,6 +296,7 @@ module KatapultAPI
|
|
279
296
|
attached_iso == o.attached_iso &&
|
280
297
|
memory_in_gb == o.memory_in_gb &&
|
281
298
|
cpu_cores == o.cpu_cores &&
|
299
|
+
use_dedicated_cpus == o.use_dedicated_cpus &&
|
282
300
|
gpu_type == o.gpu_type &&
|
283
301
|
gpus == o.gpus &&
|
284
302
|
tags == o.tags &&
|
@@ -295,7 +313,7 @@ module KatapultAPI
|
|
295
313
|
# Calculates hash code according to all attributes.
|
296
314
|
# @return [Integer] Hash code
|
297
315
|
def hash
|
298
|
-
[id, name, hostname, fqdn, description, created_at, initial_root_password, state, zone, organization, group, package, attached_iso, memory_in_gb, cpu_cores, gpu_type, gpus, tags, tag_names, ip_addresses].hash
|
316
|
+
[id, name, hostname, fqdn, description, created_at, initial_root_password, state, zone, organization, group, package, attached_iso, memory_in_gb, cpu_cores, use_dedicated_cpus, gpu_type, gpus, tags, tag_names, ip_addresses].hash
|
299
317
|
end
|
300
318
|
|
301
319
|
# Builds the object from hash
|
@@ -20,11 +20,14 @@ module KatapultAPI
|
|
20
20
|
|
21
21
|
attr_accessor :memory_in_gb
|
22
22
|
|
23
|
+
attr_accessor :use_dedicated_cpus
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
:'cpu_cores' => :'cpu_cores',
|
27
|
-
:'memory_in_gb' => :'memory_in_gb'
|
29
|
+
:'memory_in_gb' => :'memory_in_gb',
|
30
|
+
:'use_dedicated_cpus' => :'use_dedicated_cpus'
|
28
31
|
}
|
29
32
|
end
|
30
33
|
|
@@ -37,7 +40,8 @@ module KatapultAPI
|
|
37
40
|
def self.openapi_types
|
38
41
|
{
|
39
42
|
:'cpu_cores' => :'Integer',
|
40
|
-
:'memory_in_gb' => :'Integer'
|
43
|
+
:'memory_in_gb' => :'Integer',
|
44
|
+
:'use_dedicated_cpus' => :'Boolean'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -73,6 +77,10 @@ module KatapultAPI
|
|
73
77
|
else
|
74
78
|
self.memory_in_gb = nil
|
75
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'use_dedicated_cpus')
|
82
|
+
self.use_dedicated_cpus = attributes[:'use_dedicated_cpus']
|
83
|
+
end
|
76
84
|
end
|
77
85
|
|
78
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -106,7 +114,8 @@ module KatapultAPI
|
|
106
114
|
return true if self.equal?(o)
|
107
115
|
self.class == o.class &&
|
108
116
|
cpu_cores == o.cpu_cores &&
|
109
|
-
memory_in_gb == o.memory_in_gb
|
117
|
+
memory_in_gb == o.memory_in_gb &&
|
118
|
+
use_dedicated_cpus == o.use_dedicated_cpus
|
110
119
|
end
|
111
120
|
|
112
121
|
# @see the `==` method
|
@@ -118,7 +127,7 @@ module KatapultAPI
|
|
118
127
|
# Calculates hash code according to all attributes.
|
119
128
|
# @return [Integer] Hash code
|
120
129
|
def hash
|
121
|
-
[cpu_cores, memory_in_gb].hash
|
130
|
+
[cpu_cores, memory_in_gb, use_dedicated_cpus].hash
|
122
131
|
end
|
123
132
|
|
124
133
|
# Builds the object from hash
|
@@ -35,6 +35,8 @@ module KatapultAPI
|
|
35
35
|
|
36
36
|
attr_accessor :icon
|
37
37
|
|
38
|
+
attr_accessor :use_dedicated_cpus
|
39
|
+
|
38
40
|
class EnumAttributeValidator
|
39
41
|
attr_reader :datatype
|
40
42
|
attr_reader :allowable_values
|
@@ -69,7 +71,8 @@ module KatapultAPI
|
|
69
71
|
:'storage_in_gb' => :'storage_in_gb',
|
70
72
|
:'monthly_bandwidth_allowance_in_gb' => :'monthly_bandwidth_allowance_in_gb',
|
71
73
|
:'privacy' => :'privacy',
|
72
|
-
:'icon' => :'icon'
|
74
|
+
:'icon' => :'icon',
|
75
|
+
:'use_dedicated_cpus' => :'use_dedicated_cpus'
|
73
76
|
}
|
74
77
|
end
|
75
78
|
|
@@ -90,13 +93,16 @@ module KatapultAPI
|
|
90
93
|
:'storage_in_gb' => :'Integer',
|
91
94
|
:'monthly_bandwidth_allowance_in_gb' => :'Integer',
|
92
95
|
:'privacy' => :'PrivacyTypesEnum',
|
93
|
-
:'icon' => :'Attachment'
|
96
|
+
:'icon' => :'Attachment',
|
97
|
+
:'use_dedicated_cpus' => :'Boolean'
|
94
98
|
}
|
95
99
|
end
|
96
100
|
|
97
101
|
# List of attributes with nullable: true
|
98
102
|
def self.openapi_nullable
|
99
103
|
Set.new([
|
104
|
+
:'monthly_bandwidth_allowance_in_gb',
|
105
|
+
:'icon',
|
100
106
|
])
|
101
107
|
end
|
102
108
|
|
@@ -154,6 +160,10 @@ module KatapultAPI
|
|
154
160
|
if attributes.key?(:'icon')
|
155
161
|
self.icon = attributes[:'icon']
|
156
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'use_dedicated_cpus')
|
165
|
+
self.use_dedicated_cpus = attributes[:'use_dedicated_cpus']
|
166
|
+
end
|
157
167
|
end
|
158
168
|
|
159
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -185,7 +195,8 @@ module KatapultAPI
|
|
185
195
|
storage_in_gb == o.storage_in_gb &&
|
186
196
|
monthly_bandwidth_allowance_in_gb == o.monthly_bandwidth_allowance_in_gb &&
|
187
197
|
privacy == o.privacy &&
|
188
|
-
icon == o.icon
|
198
|
+
icon == o.icon &&
|
199
|
+
use_dedicated_cpus == o.use_dedicated_cpus
|
189
200
|
end
|
190
201
|
|
191
202
|
# @see the `==` method
|
@@ -197,7 +208,7 @@ module KatapultAPI
|
|
197
208
|
# Calculates hash code according to all attributes.
|
198
209
|
# @return [Integer] Hash code
|
199
210
|
def hash
|
200
|
-
[id, name, permalink, cpu_cores, ipv4_addresses, memory_in_gb, storage_in_gb, monthly_bandwidth_allowance_in_gb, privacy, icon].hash
|
211
|
+
[id, name, permalink, cpu_cores, ipv4_addresses, memory_in_gb, storage_in_gb, monthly_bandwidth_allowance_in_gb, privacy, icon, use_dedicated_cpus].hash
|
201
212
|
end
|
202
213
|
|
203
214
|
# Builds the object from hash
|
@@ -25,10 +25,11 @@ module KatapultAPI
|
|
25
25
|
MIGRATING = "migrating".freeze
|
26
26
|
STOPPING = "stopping".freeze
|
27
27
|
SHUTTING_DOWN = "shutting_down".freeze
|
28
|
+
TRANSFERRING = "transferring".freeze
|
28
29
|
ORPHANED = "orphaned".freeze
|
29
30
|
|
30
31
|
def self.all_vars
|
31
|
-
@all_vars ||= [STOPPED, FAILED, STARTED, STARTING, ALLOCATED, ALLOCATING, RESETTING, MIGRATING, STOPPING, SHUTTING_DOWN, ORPHANED].freeze
|
32
|
+
@all_vars ||= [STOPPED, FAILED, STARTED, STARTING, ALLOCATED, ALLOCATING, RESETTING, MIGRATING, STOPPING, SHUTTING_DOWN, TRANSFERRING, ORPHANED].freeze
|
32
33
|
end
|
33
34
|
|
34
35
|
# Builds the enum from string
|