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
@@ -0,0 +1,349 @@
|
|
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 OrganizationPolicy
|
18
|
+
attr_accessor :maximum_uninvoiced_balance
|
19
|
+
|
20
|
+
attr_accessor :maximum_virtual_machines
|
21
|
+
|
22
|
+
attr_accessor :maximum_virtual_machine_memory
|
23
|
+
|
24
|
+
attr_accessor :maximum_disk_space
|
25
|
+
|
26
|
+
attr_accessor :maximum_managed_organizations
|
27
|
+
|
28
|
+
attr_accessor :maximum_unallocated_ip_addresses
|
29
|
+
|
30
|
+
attr_accessor :maximum_security_groups
|
31
|
+
|
32
|
+
attr_accessor :maximum_virtual_networks
|
33
|
+
|
34
|
+
attr_accessor :maximum_load_balancers
|
35
|
+
|
36
|
+
attr_accessor :maximum_dns_zones
|
37
|
+
|
38
|
+
attr_accessor :maximum_certificates
|
39
|
+
|
40
|
+
attr_accessor :maximum_file_storage_volumes
|
41
|
+
|
42
|
+
attr_accessor :maximum_isos
|
43
|
+
|
44
|
+
attr_accessor :flexible_virtual_machine_resources
|
45
|
+
|
46
|
+
attr_accessor :allow_suspension
|
47
|
+
|
48
|
+
attr_accessor :allow_restricted_traffic_types
|
49
|
+
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
51
|
+
def self.attribute_map
|
52
|
+
{
|
53
|
+
:'maximum_uninvoiced_balance' => :'maximum_uninvoiced_balance',
|
54
|
+
:'maximum_virtual_machines' => :'maximum_virtual_machines',
|
55
|
+
:'maximum_virtual_machine_memory' => :'maximum_virtual_machine_memory',
|
56
|
+
:'maximum_disk_space' => :'maximum_disk_space',
|
57
|
+
:'maximum_managed_organizations' => :'maximum_managed_organizations',
|
58
|
+
:'maximum_unallocated_ip_addresses' => :'maximum_unallocated_ip_addresses',
|
59
|
+
:'maximum_security_groups' => :'maximum_security_groups',
|
60
|
+
:'maximum_virtual_networks' => :'maximum_virtual_networks',
|
61
|
+
:'maximum_load_balancers' => :'maximum_load_balancers',
|
62
|
+
:'maximum_dns_zones' => :'maximum_dns_zones',
|
63
|
+
:'maximum_certificates' => :'maximum_certificates',
|
64
|
+
:'maximum_file_storage_volumes' => :'maximum_file_storage_volumes',
|
65
|
+
:'maximum_isos' => :'maximum_isos',
|
66
|
+
:'flexible_virtual_machine_resources' => :'flexible_virtual_machine_resources',
|
67
|
+
:'allow_suspension' => :'allow_suspension',
|
68
|
+
:'allow_restricted_traffic_types' => :'allow_restricted_traffic_types'
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
# Returns all the JSON keys this model knows about
|
73
|
+
def self.acceptable_attributes
|
74
|
+
attribute_map.values
|
75
|
+
end
|
76
|
+
|
77
|
+
# Attribute type mapping.
|
78
|
+
def self.openapi_types
|
79
|
+
{
|
80
|
+
:'maximum_uninvoiced_balance' => :'DecimalOrUnlimited',
|
81
|
+
:'maximum_virtual_machines' => :'IntegerOrUnlimited',
|
82
|
+
:'maximum_virtual_machine_memory' => :'IntegerOrUnlimited',
|
83
|
+
:'maximum_disk_space' => :'IntegerOrUnlimited',
|
84
|
+
:'maximum_managed_organizations' => :'IntegerOrUnlimited',
|
85
|
+
:'maximum_unallocated_ip_addresses' => :'IntegerOrUnlimited',
|
86
|
+
:'maximum_security_groups' => :'IntegerOrUnlimited',
|
87
|
+
:'maximum_virtual_networks' => :'IntegerOrUnlimited',
|
88
|
+
:'maximum_load_balancers' => :'IntegerOrUnlimited',
|
89
|
+
:'maximum_dns_zones' => :'IntegerOrUnlimited',
|
90
|
+
:'maximum_certificates' => :'IntegerOrUnlimited',
|
91
|
+
:'maximum_file_storage_volumes' => :'IntegerOrUnlimited',
|
92
|
+
:'maximum_isos' => :'IntegerOrUnlimited',
|
93
|
+
:'flexible_virtual_machine_resources' => :'Boolean',
|
94
|
+
:'allow_suspension' => :'Boolean',
|
95
|
+
:'allow_restricted_traffic_types' => :'Boolean'
|
96
|
+
}
|
97
|
+
end
|
98
|
+
|
99
|
+
# List of attributes with nullable: true
|
100
|
+
def self.openapi_nullable
|
101
|
+
Set.new([
|
102
|
+
])
|
103
|
+
end
|
104
|
+
|
105
|
+
# Initializes the object
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
def initialize(attributes = {})
|
108
|
+
if (!attributes.is_a?(Hash))
|
109
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::OrganizationPolicy` initialize method"
|
110
|
+
end
|
111
|
+
|
112
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
113
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
115
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::OrganizationPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
116
|
+
end
|
117
|
+
h[k.to_sym] = v
|
118
|
+
}
|
119
|
+
|
120
|
+
if attributes.key?(:'maximum_uninvoiced_balance')
|
121
|
+
self.maximum_uninvoiced_balance = attributes[:'maximum_uninvoiced_balance']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'maximum_virtual_machines')
|
125
|
+
self.maximum_virtual_machines = attributes[:'maximum_virtual_machines']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'maximum_virtual_machine_memory')
|
129
|
+
self.maximum_virtual_machine_memory = attributes[:'maximum_virtual_machine_memory']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'maximum_disk_space')
|
133
|
+
self.maximum_disk_space = attributes[:'maximum_disk_space']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'maximum_managed_organizations')
|
137
|
+
self.maximum_managed_organizations = attributes[:'maximum_managed_organizations']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'maximum_unallocated_ip_addresses')
|
141
|
+
self.maximum_unallocated_ip_addresses = attributes[:'maximum_unallocated_ip_addresses']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'maximum_security_groups')
|
145
|
+
self.maximum_security_groups = attributes[:'maximum_security_groups']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'maximum_virtual_networks')
|
149
|
+
self.maximum_virtual_networks = attributes[:'maximum_virtual_networks']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'maximum_load_balancers')
|
153
|
+
self.maximum_load_balancers = attributes[:'maximum_load_balancers']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'maximum_dns_zones')
|
157
|
+
self.maximum_dns_zones = attributes[:'maximum_dns_zones']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'maximum_certificates')
|
161
|
+
self.maximum_certificates = attributes[:'maximum_certificates']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'maximum_file_storage_volumes')
|
165
|
+
self.maximum_file_storage_volumes = attributes[:'maximum_file_storage_volumes']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'maximum_isos')
|
169
|
+
self.maximum_isos = attributes[:'maximum_isos']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'flexible_virtual_machine_resources')
|
173
|
+
self.flexible_virtual_machine_resources = attributes[:'flexible_virtual_machine_resources']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'allow_suspension')
|
177
|
+
self.allow_suspension = attributes[:'allow_suspension']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'allow_restricted_traffic_types')
|
181
|
+
self.allow_restricted_traffic_types = attributes[:'allow_restricted_traffic_types']
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
186
|
+
# @return Array for valid properties with the reasons
|
187
|
+
def list_invalid_properties
|
188
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
189
|
+
invalid_properties = Array.new
|
190
|
+
invalid_properties
|
191
|
+
end
|
192
|
+
|
193
|
+
# Check to see if the all the properties in the model are valid
|
194
|
+
# @return true if the model is valid
|
195
|
+
def valid?
|
196
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
197
|
+
true
|
198
|
+
end
|
199
|
+
|
200
|
+
# Checks equality by comparing each attribute.
|
201
|
+
# @param [Object] Object to be compared
|
202
|
+
def ==(o)
|
203
|
+
return true if self.equal?(o)
|
204
|
+
self.class == o.class &&
|
205
|
+
maximum_uninvoiced_balance == o.maximum_uninvoiced_balance &&
|
206
|
+
maximum_virtual_machines == o.maximum_virtual_machines &&
|
207
|
+
maximum_virtual_machine_memory == o.maximum_virtual_machine_memory &&
|
208
|
+
maximum_disk_space == o.maximum_disk_space &&
|
209
|
+
maximum_managed_organizations == o.maximum_managed_organizations &&
|
210
|
+
maximum_unallocated_ip_addresses == o.maximum_unallocated_ip_addresses &&
|
211
|
+
maximum_security_groups == o.maximum_security_groups &&
|
212
|
+
maximum_virtual_networks == o.maximum_virtual_networks &&
|
213
|
+
maximum_load_balancers == o.maximum_load_balancers &&
|
214
|
+
maximum_dns_zones == o.maximum_dns_zones &&
|
215
|
+
maximum_certificates == o.maximum_certificates &&
|
216
|
+
maximum_file_storage_volumes == o.maximum_file_storage_volumes &&
|
217
|
+
maximum_isos == o.maximum_isos &&
|
218
|
+
flexible_virtual_machine_resources == o.flexible_virtual_machine_resources &&
|
219
|
+
allow_suspension == o.allow_suspension &&
|
220
|
+
allow_restricted_traffic_types == o.allow_restricted_traffic_types
|
221
|
+
end
|
222
|
+
|
223
|
+
# @see the `==` method
|
224
|
+
# @param [Object] Object to be compared
|
225
|
+
def eql?(o)
|
226
|
+
self == o
|
227
|
+
end
|
228
|
+
|
229
|
+
# Calculates hash code according to all attributes.
|
230
|
+
# @return [Integer] Hash code
|
231
|
+
def hash
|
232
|
+
[maximum_uninvoiced_balance, maximum_virtual_machines, maximum_virtual_machine_memory, maximum_disk_space, maximum_managed_organizations, maximum_unallocated_ip_addresses, maximum_security_groups, maximum_virtual_networks, maximum_load_balancers, maximum_dns_zones, maximum_certificates, maximum_file_storage_volumes, maximum_isos, flexible_virtual_machine_resources, allow_suspension, allow_restricted_traffic_types].hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Builds the object from hash
|
236
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
237
|
+
# @return [Object] Returns the model itself
|
238
|
+
def self.build_from_hash(attributes)
|
239
|
+
return nil unless attributes.is_a?(Hash)
|
240
|
+
attributes = attributes.transform_keys(&:to_sym)
|
241
|
+
transformed_hash = {}
|
242
|
+
openapi_types.each_pair do |key, type|
|
243
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
244
|
+
transformed_hash["#{key}"] = nil
|
245
|
+
elsif type =~ /\AArray<(.*)>/i
|
246
|
+
# check to ensure the input is an array given that the attribute
|
247
|
+
# is documented as an array but the input is not
|
248
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
249
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
250
|
+
end
|
251
|
+
elsif !attributes[attribute_map[key]].nil?
|
252
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
253
|
+
end
|
254
|
+
end
|
255
|
+
new(transformed_hash)
|
256
|
+
end
|
257
|
+
|
258
|
+
# Deserializes the data based on type
|
259
|
+
# @param string type Data type
|
260
|
+
# @param string value Value to be deserialized
|
261
|
+
# @return [Object] Deserialized data
|
262
|
+
def self._deserialize(type, value)
|
263
|
+
case type.to_sym
|
264
|
+
when :Time
|
265
|
+
Time.parse(value)
|
266
|
+
when :Date
|
267
|
+
Date.parse(value)
|
268
|
+
when :String
|
269
|
+
value.to_s
|
270
|
+
when :Integer
|
271
|
+
value.to_i
|
272
|
+
when :Float
|
273
|
+
value.to_f
|
274
|
+
when :Boolean
|
275
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
276
|
+
true
|
277
|
+
else
|
278
|
+
false
|
279
|
+
end
|
280
|
+
when :Object
|
281
|
+
# generic object (usually a Hash), return directly
|
282
|
+
value
|
283
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
284
|
+
inner_type = Regexp.last_match[:inner_type]
|
285
|
+
value.map { |v| _deserialize(inner_type, v) }
|
286
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
287
|
+
k_type = Regexp.last_match[:k_type]
|
288
|
+
v_type = Regexp.last_match[:v_type]
|
289
|
+
{}.tap do |hash|
|
290
|
+
value.each do |k, v|
|
291
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
292
|
+
end
|
293
|
+
end
|
294
|
+
else # model
|
295
|
+
# models (e.g. Pet) or oneOf
|
296
|
+
klass = KatapultAPI.const_get(type)
|
297
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# Returns the string representation of the object
|
302
|
+
# @return [String] String presentation of the object
|
303
|
+
def to_s
|
304
|
+
to_hash.to_s
|
305
|
+
end
|
306
|
+
|
307
|
+
# to_body is an alias to to_hash (backward compatibility)
|
308
|
+
# @return [Hash] Returns the object in the form of hash
|
309
|
+
def to_body
|
310
|
+
to_hash
|
311
|
+
end
|
312
|
+
|
313
|
+
# Returns the object in the form of hash
|
314
|
+
# @return [Hash] Returns the object in the form of hash
|
315
|
+
def to_hash
|
316
|
+
hash = {}
|
317
|
+
self.class.attribute_map.each_pair do |attr, param|
|
318
|
+
value = self.send(attr)
|
319
|
+
if value.nil?
|
320
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
321
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
322
|
+
end
|
323
|
+
|
324
|
+
hash[param] = _to_hash(value)
|
325
|
+
end
|
326
|
+
hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Outputs non-array value in the form of hash
|
330
|
+
# For object, use to_hash. Otherwise, just return the value
|
331
|
+
# @param [Object] value Any valid value
|
332
|
+
# @return [Hash] Returns the value in the form of hash
|
333
|
+
def _to_hash(value)
|
334
|
+
if value.is_a?(Array)
|
335
|
+
value.compact.map { |v| _to_hash(v) }
|
336
|
+
elsif value.is_a?(Hash)
|
337
|
+
{}.tap do |hash|
|
338
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
339
|
+
end
|
340
|
+
elsif value.respond_to? :to_hash
|
341
|
+
value.to_hash
|
342
|
+
else
|
343
|
+
value
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
end
|
348
|
+
|
349
|
+
end
|
@@ -14,22 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class PatchAddressListEntryRequest
|
18
|
+
attr_accessor :address_list_entry
|
19
19
|
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :permalink
|
23
|
-
|
24
|
-
attr_accessor :data_center
|
20
|
+
attr_accessor :properties
|
25
21
|
|
26
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
23
|
def self.attribute_map
|
28
24
|
{
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'permalink' => :'permalink',
|
32
|
-
:'data_center' => :'data_center'
|
25
|
+
:'address_list_entry' => :'address_list_entry',
|
26
|
+
:'properties' => :'properties'
|
33
27
|
}
|
34
28
|
end
|
35
29
|
|
@@ -41,10 +35,8 @@ module KatapultAPI
|
|
41
35
|
# Attribute type mapping.
|
42
36
|
def self.openapi_types
|
43
37
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'permalink' => :'String',
|
47
|
-
:'data_center' => :'DeleteVirtualMachinePartDataCenter'
|
38
|
+
:'address_list_entry' => :'AddressListEntryLookup',
|
39
|
+
:'properties' => :'AddressListEntryArguments'
|
48
40
|
}
|
49
41
|
end
|
50
42
|
|
@@ -58,31 +50,27 @@ module KatapultAPI
|
|
58
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
51
|
def initialize(attributes = {})
|
60
52
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PatchAddressListEntryRequest` initialize method"
|
62
54
|
end
|
63
55
|
|
64
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PatchAddressListEntryRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
60
|
end
|
69
61
|
h[k.to_sym] = v
|
70
62
|
}
|
71
63
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
74
|
-
|
75
|
-
|
76
|
-
if attributes.key?(:'name')
|
77
|
-
self.name = attributes[:'name']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'permalink')
|
81
|
-
self.permalink = attributes[:'permalink']
|
64
|
+
if attributes.key?(:'address_list_entry')
|
65
|
+
self.address_list_entry = attributes[:'address_list_entry']
|
66
|
+
else
|
67
|
+
self.address_list_entry = nil
|
82
68
|
end
|
83
69
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
70
|
+
if attributes.key?(:'properties')
|
71
|
+
self.properties = attributes[:'properties']
|
72
|
+
else
|
73
|
+
self.properties = nil
|
86
74
|
end
|
87
75
|
end
|
88
76
|
|
@@ -91,6 +79,14 @@ module KatapultAPI
|
|
91
79
|
def list_invalid_properties
|
92
80
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
93
81
|
invalid_properties = Array.new
|
82
|
+
if @address_list_entry.nil?
|
83
|
+
invalid_properties.push('invalid value for "address_list_entry", address_list_entry cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @properties.nil?
|
87
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
88
|
+
end
|
89
|
+
|
94
90
|
invalid_properties
|
95
91
|
end
|
96
92
|
|
@@ -98,6 +94,8 @@ module KatapultAPI
|
|
98
94
|
# @return true if the model is valid
|
99
95
|
def valid?
|
100
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
|
+
return false if @address_list_entry.nil?
|
98
|
+
return false if @properties.nil?
|
101
99
|
true
|
102
100
|
end
|
103
101
|
|
@@ -106,10 +104,8 @@ module KatapultAPI
|
|
106
104
|
def ==(o)
|
107
105
|
return true if self.equal?(o)
|
108
106
|
self.class == o.class &&
|
109
|
-
|
110
|
-
|
111
|
-
permalink == o.permalink &&
|
112
|
-
data_center == o.data_center
|
107
|
+
address_list_entry == o.address_list_entry &&
|
108
|
+
properties == o.properties
|
113
109
|
end
|
114
110
|
|
115
111
|
# @see the `==` method
|
@@ -121,7 +117,7 @@ module KatapultAPI
|
|
121
117
|
# Calculates hash code according to all attributes.
|
122
118
|
# @return [Integer] Hash code
|
123
119
|
def hash
|
124
|
-
[
|
120
|
+
[address_list_entry, properties].hash
|
125
121
|
end
|
126
122
|
|
127
123
|
# Builds the object from hash
|
data/lib/katapult-ruby/models/{get_disk_part_disk_template.rb → patch_address_list_request.rb}
RENAMED
@@ -14,22 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class PatchAddressListRequest
|
18
|
+
attr_accessor :address_list
|
19
19
|
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :permalink
|
23
|
-
|
24
|
-
attr_accessor :operating_system
|
20
|
+
attr_accessor :properties
|
25
21
|
|
26
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
23
|
def self.attribute_map
|
28
24
|
{
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'permalink' => :'permalink',
|
32
|
-
:'operating_system' => :'operating_system'
|
25
|
+
:'address_list' => :'address_list',
|
26
|
+
:'properties' => :'properties'
|
33
27
|
}
|
34
28
|
end
|
35
29
|
|
@@ -41,10 +35,8 @@ module KatapultAPI
|
|
41
35
|
# Attribute type mapping.
|
42
36
|
def self.openapi_types
|
43
37
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'permalink' => :'String',
|
47
|
-
:'operating_system' => :'GetDiskPartOperatingSystem'
|
38
|
+
:'address_list' => :'AddressListLookup',
|
39
|
+
:'properties' => :'AddressListArguments'
|
48
40
|
}
|
49
41
|
end
|
50
42
|
|
@@ -58,31 +50,27 @@ module KatapultAPI
|
|
58
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
51
|
def initialize(attributes = {})
|
60
52
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PatchAddressListRequest` initialize method"
|
62
54
|
end
|
63
55
|
|
64
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PatchAddressListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
60
|
end
|
69
61
|
h[k.to_sym] = v
|
70
62
|
}
|
71
63
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
74
|
-
|
75
|
-
|
76
|
-
if attributes.key?(:'name')
|
77
|
-
self.name = attributes[:'name']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'permalink')
|
81
|
-
self.permalink = attributes[:'permalink']
|
64
|
+
if attributes.key?(:'address_list')
|
65
|
+
self.address_list = attributes[:'address_list']
|
66
|
+
else
|
67
|
+
self.address_list = nil
|
82
68
|
end
|
83
69
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
70
|
+
if attributes.key?(:'properties')
|
71
|
+
self.properties = attributes[:'properties']
|
72
|
+
else
|
73
|
+
self.properties = nil
|
86
74
|
end
|
87
75
|
end
|
88
76
|
|
@@ -91,6 +79,14 @@ module KatapultAPI
|
|
91
79
|
def list_invalid_properties
|
92
80
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
93
81
|
invalid_properties = Array.new
|
82
|
+
if @address_list.nil?
|
83
|
+
invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @properties.nil?
|
87
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
88
|
+
end
|
89
|
+
|
94
90
|
invalid_properties
|
95
91
|
end
|
96
92
|
|
@@ -98,6 +94,8 @@ module KatapultAPI
|
|
98
94
|
# @return true if the model is valid
|
99
95
|
def valid?
|
100
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
|
+
return false if @address_list.nil?
|
98
|
+
return false if @properties.nil?
|
101
99
|
true
|
102
100
|
end
|
103
101
|
|
@@ -106,10 +104,8 @@ module KatapultAPI
|
|
106
104
|
def ==(o)
|
107
105
|
return true if self.equal?(o)
|
108
106
|
self.class == o.class &&
|
109
|
-
|
110
|
-
|
111
|
-
permalink == o.permalink &&
|
112
|
-
operating_system == o.operating_system
|
107
|
+
address_list == o.address_list &&
|
108
|
+
properties == o.properties
|
113
109
|
end
|
114
110
|
|
115
111
|
# @see the `==` method
|
@@ -121,7 +117,7 @@ module KatapultAPI
|
|
121
117
|
# Calculates hash code according to all attributes.
|
122
118
|
# @return [Integer] Hash code
|
123
119
|
def hash
|
124
|
-
[
|
120
|
+
[address_list, properties].hash
|
125
121
|
end
|
126
122
|
|
127
123
|
# Builds the object from hash
|
@@ -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' => :'PatchLoadBalancerPartIPAddress',
|
103
103
|
:'https_redirect' => :'Boolean',
|
104
104
|
:'backend_certificate' => :'String',
|
105
105
|
:'backend_certificate_key' => :'String',
|
106
106
|
:'data_center' => :'PatchLoadBalancerPartDataCenter',
|
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
|
|
@@ -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')
|