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
@@ -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',
|
@@ -119,24 +122,34 @@ module KatapultAPI
|
|
119
122
|
:'created_at' => :'Integer',
|
120
123
|
:'initial_root_password' => :'String',
|
121
124
|
:'state' => :'VirtualMachineStateEnum',
|
122
|
-
:'zone' => :'
|
123
|
-
:'organization' => :'
|
124
|
-
:'group' => :'
|
125
|
-
:'package' => :'
|
126
|
-
:'attached_iso' => :'
|
125
|
+
:'zone' => :'Zone',
|
126
|
+
:'organization' => :'Organization',
|
127
|
+
:'group' => :'VirtualMachineGroup',
|
128
|
+
:'package' => :'VirtualMachinePackage',
|
129
|
+
:'attached_iso' => :'ISO',
|
127
130
|
:'memory_in_gb' => :'Integer',
|
128
131
|
:'cpu_cores' => :'Integer',
|
132
|
+
:'use_dedicated_cpus' => :'Boolean',
|
129
133
|
:'gpu_type' => :'PatchVirtualMachinePartGPUType',
|
130
|
-
:'gpus' => :'Array<
|
131
|
-
:'tags' => :'Array<
|
134
|
+
:'gpus' => :'Array<VirtualMachineGPU>',
|
135
|
+
:'tags' => :'Array<Tag>',
|
132
136
|
:'tag_names' => :'Array<String>',
|
133
|
-
:'ip_addresses' => :'Array<
|
137
|
+
:'ip_addresses' => :'Array<IPAddress>'
|
134
138
|
}
|
135
139
|
end
|
136
140
|
|
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
|
@@ -0,0 +1,221 @@
|
|
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 PostAddressListEntries201Response
|
18
|
+
attr_accessor :address_list_entry
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'address_list_entry' => :'address_list_entry'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'address_list_entry' => :'AddressListEntry'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostAddressListEntries201Response` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostAddressListEntries201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'address_list_entry')
|
61
|
+
self.address_list_entry = attributes[:'address_list_entry']
|
62
|
+
else
|
63
|
+
self.address_list_entry = nil
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
71
|
+
invalid_properties = Array.new
|
72
|
+
if @address_list_entry.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list_entry", address_list_entry cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
+
return false if @address_list_entry.nil?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
address_list_entry == o.address_list_entry
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[address_list_entry].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
113
|
+
transformed_hash = {}
|
114
|
+
openapi_types.each_pair do |key, type|
|
115
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
116
|
+
transformed_hash["#{key}"] = nil
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
121
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
122
|
+
end
|
123
|
+
elsif !attributes[attribute_map[key]].nil?
|
124
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
125
|
+
end
|
126
|
+
end
|
127
|
+
new(transformed_hash)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def self._deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :Time
|
137
|
+
Time.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :Boolean
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
# models (e.g. Pet) or oneOf
|
168
|
+
klass = KatapultAPI.const_get(type)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
188
|
+
hash = {}
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
190
|
+
value = self.send(attr)
|
191
|
+
if value.nil?
|
192
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
|
+
end
|
195
|
+
|
196
|
+
hash[param] = _to_hash(value)
|
197
|
+
end
|
198
|
+
hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Outputs non-array value in the form of hash
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
203
|
+
# @param [Object] value Any valid value
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
205
|
+
def _to_hash(value)
|
206
|
+
if value.is_a?(Array)
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
208
|
+
elsif value.is_a?(Hash)
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
+
end
|
212
|
+
elsif value.respond_to? :to_hash
|
213
|
+
value.to_hash
|
214
|
+
else
|
215
|
+
value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
@@ -14,22 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class PostAddressListEntriesRequest
|
18
|
+
attr_accessor :address_list
|
19
19
|
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :iso_code
|
23
|
-
|
24
|
-
attr_accessor :symbol
|
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
|
-
:'iso_code' => :'iso_code',
|
32
|
-
:'symbol' => :'symbol'
|
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
|
-
:'iso_code' => :'String',
|
47
|
-
:'symbol' => :'String'
|
38
|
+
:'address_list' => :'AddressListLookup',
|
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::PostAddressListEntriesRequest` 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::PostAddressListEntriesRequest`. 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?(:'iso_code')
|
81
|
-
self.iso_code = attributes[:'iso_code']
|
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
|
-
iso_code == o.iso_code &&
|
112
|
-
symbol == o.symbol
|
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
|
data/lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb
CHANGED
@@ -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 PostDnsZoneVerify422Response
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
20
|
attr_accessor :description
|
@@ -62,7 +62,7 @@ module KatapultAPI
|
|
62
62
|
{
|
63
63
|
:'code' => :'DNSZoneNotVerifiedEnum',
|
64
64
|
:'description' => :'String',
|
65
|
-
:'detail' => :'
|
65
|
+
:'detail' => :'Object'
|
66
66
|
}
|
67
67
|
end
|
68
68
|
|
@@ -76,13 +76,13 @@ module KatapultAPI
|
|
76
76
|
# @param [Hash] attributes Model attributes in the form of hash
|
77
77
|
def initialize(attributes = {})
|
78
78
|
if (!attributes.is_a?(Hash))
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostDnsZoneVerify422Response` initialize method"
|
80
80
|
end
|
81
81
|
|
82
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
84
84
|
if (!self.class.attribute_map.key?(k.to_sym))
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostDnsZoneVerify422Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
86
86
|
end
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class PostOrganizationAddressLists201Response
|
18
|
+
attr_accessor :address_list
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'address_list' => :'address_list'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
@@ -32,7 +32,7 @@ module KatapultAPI
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'address_list' => :'AddressList'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -46,21 +46,21 @@ module KatapultAPI
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::PostOrganizationAddressLists201Response` 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::PostOrganizationAddressLists201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
60
|
+
if attributes.key?(:'address_list')
|
61
|
+
self.address_list = attributes[:'address_list']
|
62
62
|
else
|
63
|
-
self.
|
63
|
+
self.address_list = nil
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -69,8 +69,8 @@ module KatapultAPI
|
|
69
69
|
def list_invalid_properties
|
70
70
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
71
71
|
invalid_properties = Array.new
|
72
|
-
if @
|
73
|
-
invalid_properties.push('invalid value for "
|
72
|
+
if @address_list.nil?
|
73
|
+
invalid_properties.push('invalid value for "address_list", address_list cannot be nil.')
|
74
74
|
end
|
75
75
|
|
76
76
|
invalid_properties
|
@@ -80,7 +80,7 @@ module KatapultAPI
|
|
80
80
|
# @return true if the model is valid
|
81
81
|
def valid?
|
82
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
-
return false if @
|
83
|
+
return false if @address_list.nil?
|
84
84
|
true
|
85
85
|
end
|
86
86
|
|
@@ -89,7 +89,7 @@ module KatapultAPI
|
|
89
89
|
def ==(o)
|
90
90
|
return true if self.equal?(o)
|
91
91
|
self.class == o.class &&
|
92
|
-
|
92
|
+
address_list == o.address_list
|
93
93
|
end
|
94
94
|
|
95
95
|
# @see the `==` method
|
@@ -101,7 +101,7 @@ module KatapultAPI
|
|
101
101
|
# Calculates hash code according to all attributes.
|
102
102
|
# @return [Integer] Hash code
|
103
103
|
def hash
|
104
|
-
[
|
104
|
+
[address_list].hash
|
105
105
|
end
|
106
106
|
|
107
107
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class PostOrganizationAddressListsRequest
|
18
18
|
attr_accessor :organization
|
19
19
|
|
20
20
|
attr_accessor :properties
|
@@ -36,7 +36,7 @@ module KatapultAPI
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'organization' => :'OrganizationLookup',
|
39
|
-
:'properties' => :'
|
39
|
+
:'properties' => :'AddressListArguments'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -50,13 +50,13 @@ module KatapultAPI
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
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::PostOrganizationAddressListsRequest` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::PostOrganizationAddressListsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|