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
@@ -149,8 +149,8 @@ module KatapultAPI
|
|
149
149
|
attr_accessor :force_ending_format
|
150
150
|
|
151
151
|
def initialize
|
152
|
-
@scheme = '
|
153
|
-
@host = '
|
152
|
+
@scheme = 'https'
|
153
|
+
@host = 'api.katapult.io'
|
154
154
|
@base_path = '/core/v1'
|
155
155
|
@server_index = nil
|
156
156
|
@server_operation_index = {}
|
@@ -248,7 +248,7 @@ module KatapultAPI
|
|
248
248
|
def server_settings
|
249
249
|
[
|
250
250
|
{
|
251
|
-
url: "
|
251
|
+
url: "https://api.katapult.io/core/v1",
|
252
252
|
description: "No description provided",
|
253
253
|
}
|
254
254
|
]
|
data/lib/katapult-ruby/models/{delete_virtual_machine_part_data_center.rb → address_list.rb}
RENAMED
@@ -14,22 +14,24 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class AddressList
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
# Name of the address list.
|
20
21
|
attr_accessor :name
|
21
22
|
|
22
|
-
|
23
|
+
# Whether the address list is global or not.
|
24
|
+
attr_accessor :global
|
23
25
|
|
24
|
-
attr_accessor :
|
26
|
+
attr_accessor :entries
|
25
27
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'id' => :'id',
|
30
32
|
:'name' => :'name',
|
31
|
-
:'
|
32
|
-
:'
|
33
|
+
:'global' => :'global',
|
34
|
+
:'entries' => :'entries'
|
33
35
|
}
|
34
36
|
end
|
35
37
|
|
@@ -43,8 +45,8 @@ module KatapultAPI
|
|
43
45
|
{
|
44
46
|
:'id' => :'String',
|
45
47
|
:'name' => :'String',
|
46
|
-
:'
|
47
|
-
:'
|
48
|
+
:'global' => :'Boolean',
|
49
|
+
:'entries' => :'Array<AddressListEntry>'
|
48
50
|
}
|
49
51
|
end
|
50
52
|
|
@@ -58,13 +60,13 @@ module KatapultAPI
|
|
58
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
61
|
def initialize(attributes = {})
|
60
62
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressList` initialize method"
|
62
64
|
end
|
63
65
|
|
64
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
70
|
end
|
69
71
|
h[k.to_sym] = v
|
70
72
|
}
|
@@ -77,12 +79,14 @@ module KatapultAPI
|
|
77
79
|
self.name = attributes[:'name']
|
78
80
|
end
|
79
81
|
|
80
|
-
if attributes.key?(:'
|
81
|
-
self.
|
82
|
+
if attributes.key?(:'global')
|
83
|
+
self.global = attributes[:'global']
|
82
84
|
end
|
83
85
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
|
86
|
+
if attributes.key?(:'entries')
|
87
|
+
if (value = attributes[:'entries']).is_a?(Array)
|
88
|
+
self.entries = value
|
89
|
+
end
|
86
90
|
end
|
87
91
|
end
|
88
92
|
|
@@ -108,8 +112,8 @@ module KatapultAPI
|
|
108
112
|
self.class == o.class &&
|
109
113
|
id == o.id &&
|
110
114
|
name == o.name &&
|
111
|
-
|
112
|
-
|
115
|
+
global == o.global &&
|
116
|
+
entries == o.entries
|
113
117
|
end
|
114
118
|
|
115
119
|
# @see the `==` method
|
@@ -121,7 +125,7 @@ module KatapultAPI
|
|
121
125
|
# Calculates hash code according to all attributes.
|
122
126
|
# @return [Integer] Hash code
|
123
127
|
def hash
|
124
|
-
[id, name,
|
128
|
+
[id, name, global, entries].hash
|
125
129
|
end
|
126
130
|
|
127
131
|
# Builds the object from hash
|
@@ -14,7 +14,9 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
|
17
|
+
# All 'properties[]' params are mutually exclusive, only one can be provided.
|
18
|
+
class AddressListArguments
|
19
|
+
# Name of the address list.
|
18
20
|
attr_accessor :name
|
19
21
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,13 +48,13 @@ module KatapultAPI
|
|
46
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
49
|
def initialize(attributes = {})
|
48
50
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressListArguments` initialize method"
|
50
52
|
end
|
51
53
|
|
52
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressListArguments`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
58
|
end
|
57
59
|
h[k.to_sym] = v
|
58
60
|
}
|
@@ -14,15 +14,20 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
17
|
+
class AddressListEntry
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
# Address or network.
|
21
|
+
attr_accessor :address
|
22
|
+
|
23
|
+
# Optional name/comment.
|
20
24
|
attr_accessor :name
|
21
25
|
|
22
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
27
|
def self.attribute_map
|
24
28
|
{
|
25
29
|
:'id' => :'id',
|
30
|
+
:'address' => :'address',
|
26
31
|
:'name' => :'name'
|
27
32
|
}
|
28
33
|
end
|
@@ -36,6 +41,7 @@ module KatapultAPI
|
|
36
41
|
def self.openapi_types
|
37
42
|
{
|
38
43
|
:'id' => :'String',
|
44
|
+
:'address' => :'String',
|
39
45
|
:'name' => :'String'
|
40
46
|
}
|
41
47
|
end
|
@@ -50,13 +56,13 @@ module KatapultAPI
|
|
50
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
57
|
def initialize(attributes = {})
|
52
58
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressListEntry` initialize method"
|
54
60
|
end
|
55
61
|
|
56
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressListEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -65,6 +71,10 @@ module KatapultAPI
|
|
65
71
|
self.id = attributes[:'id']
|
66
72
|
end
|
67
73
|
|
74
|
+
if attributes.key?(:'address')
|
75
|
+
self.address = attributes[:'address']
|
76
|
+
end
|
77
|
+
|
68
78
|
if attributes.key?(:'name')
|
69
79
|
self.name = attributes[:'name']
|
70
80
|
end
|
@@ -91,6 +101,7 @@ module KatapultAPI
|
|
91
101
|
return true if self.equal?(o)
|
92
102
|
self.class == o.class &&
|
93
103
|
id == o.id &&
|
104
|
+
address == o.address &&
|
94
105
|
name == o.name
|
95
106
|
end
|
96
107
|
|
@@ -103,7 +114,7 @@ module KatapultAPI
|
|
103
114
|
# Calculates hash code according to all attributes.
|
104
115
|
# @return [Integer] Hash code
|
105
116
|
def hash
|
106
|
-
[id, name].hash
|
117
|
+
[id, address, name].hash
|
107
118
|
end
|
108
119
|
|
109
120
|
# Builds the object from hash
|
@@ -14,12 +14,18 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
|
17
|
+
# All 'properties[]' params are mutually exclusive, only one can be provided.
|
18
|
+
class AddressListEntryArguments
|
19
|
+
# Address or network to add to the list.
|
20
|
+
attr_accessor :address
|
21
|
+
|
22
|
+
# Optional name/comment.
|
18
23
|
attr_accessor :name
|
19
24
|
|
20
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
26
|
def self.attribute_map
|
22
27
|
{
|
28
|
+
:'address' => :'address',
|
23
29
|
:'name' => :'name'
|
24
30
|
}
|
25
31
|
end
|
@@ -32,6 +38,7 @@ module KatapultAPI
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
41
|
+
:'address' => :'String',
|
35
42
|
:'name' => :'String'
|
36
43
|
}
|
37
44
|
end
|
@@ -46,17 +53,21 @@ module KatapultAPI
|
|
46
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
54
|
def initialize(attributes = {})
|
48
55
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressListEntryArguments` initialize method"
|
50
57
|
end
|
51
58
|
|
52
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressListEntryArguments`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
63
|
end
|
57
64
|
h[k.to_sym] = v
|
58
65
|
}
|
59
66
|
|
67
|
+
if attributes.key?(:'address')
|
68
|
+
self.address = attributes[:'address']
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'name')
|
61
72
|
self.name = attributes[:'name']
|
62
73
|
end
|
@@ -82,6 +93,7 @@ module KatapultAPI
|
|
82
93
|
def ==(o)
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
96
|
+
address == o.address &&
|
85
97
|
name == o.name
|
86
98
|
end
|
87
99
|
|
@@ -94,7 +106,7 @@ module KatapultAPI
|
|
94
106
|
# Calculates hash code according to all attributes.
|
95
107
|
# @return [Integer] Hash code
|
96
108
|
def hash
|
97
|
-
[name].hash
|
109
|
+
[address, name].hash
|
98
110
|
end
|
99
111
|
|
100
112
|
# Builds the object from hash
|
@@ -14,13 +14,14 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
|
18
|
-
|
17
|
+
# All 'address_list_entry[]' params are mutually exclusive, only one can be provided.
|
18
|
+
class AddressListEntryLookup
|
19
|
+
attr_accessor :id
|
19
20
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
23
|
-
:'
|
24
|
+
:'id' => :'id'
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
@@ -32,7 +33,7 @@ module KatapultAPI
|
|
32
33
|
# Attribute type mapping.
|
33
34
|
def self.openapi_types
|
34
35
|
{
|
35
|
-
:'
|
36
|
+
:'id' => :'String'
|
36
37
|
}
|
37
38
|
end
|
38
39
|
|
@@ -46,19 +47,19 @@ module KatapultAPI
|
|
46
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
48
|
def initialize(attributes = {})
|
48
49
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressListEntryLookup` initialize method"
|
50
51
|
end
|
51
52
|
|
52
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressListEntryLookup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
57
|
end
|
57
58
|
h[k.to_sym] = v
|
58
59
|
}
|
59
60
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
61
|
+
if attributes.key?(:'id')
|
62
|
+
self.id = attributes[:'id']
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
@@ -82,7 +83,7 @@ module KatapultAPI
|
|
82
83
|
def ==(o)
|
83
84
|
return true if self.equal?(o)
|
84
85
|
self.class == o.class &&
|
85
|
-
|
86
|
+
id == o.id
|
86
87
|
end
|
87
88
|
|
88
89
|
# @see the `==` method
|
@@ -94,7 +95,7 @@ module KatapultAPI
|
|
94
95
|
# Calculates hash code according to all attributes.
|
95
96
|
# @return [Integer] Hash code
|
96
97
|
def hash
|
97
|
-
[
|
98
|
+
[id].hash
|
98
99
|
end
|
99
100
|
|
100
101
|
# Builds the object from hash
|
@@ -14,11 +14,11 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
|
17
|
+
class AddressListEntryNotFoundEnum
|
18
|
+
ADDRESS_LIST_ENTRY_NOT_FOUND = "address_list_entry_not_found".freeze
|
19
19
|
|
20
20
|
def self.all_vars
|
21
|
-
@all_vars ||= [
|
21
|
+
@all_vars ||= [ADDRESS_LIST_ENTRY_NOT_FOUND].freeze
|
22
22
|
end
|
23
23
|
|
24
24
|
# Builds the enum from string
|
@@ -32,8 +32,8 @@ module KatapultAPI
|
|
32
32
|
# @param [String] The enum value in the form of the string
|
33
33
|
# @return [String] The enum value
|
34
34
|
def build_from_hash(value)
|
35
|
-
return value if
|
36
|
-
raise "Invalid ENUM value #{value} for class #
|
35
|
+
return value if AddressListEntryNotFoundEnum.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #AddressListEntryNotFoundEnum"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -14,13 +14,14 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
|
18
|
-
|
17
|
+
# All 'address_list[]' params are mutually exclusive, only one can be provided.
|
18
|
+
class AddressListLookup
|
19
|
+
attr_accessor :id
|
19
20
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
23
|
-
:'
|
24
|
+
:'id' => :'id'
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
@@ -32,7 +33,7 @@ module KatapultAPI
|
|
32
33
|
# Attribute type mapping.
|
33
34
|
def self.openapi_types
|
34
35
|
{
|
35
|
-
:'
|
36
|
+
:'id' => :'String'
|
36
37
|
}
|
37
38
|
end
|
38
39
|
|
@@ -46,19 +47,19 @@ module KatapultAPI
|
|
46
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
48
|
def initialize(attributes = {})
|
48
49
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::AddressListLookup` initialize method"
|
50
51
|
end
|
51
52
|
|
52
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::AddressListLookup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
57
|
end
|
57
58
|
h[k.to_sym] = v
|
58
59
|
}
|
59
60
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
61
|
+
if attributes.key?(:'id')
|
62
|
+
self.id = attributes[:'id']
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
@@ -82,7 +83,7 @@ module KatapultAPI
|
|
82
83
|
def ==(o)
|
83
84
|
return true if self.equal?(o)
|
84
85
|
self.class == o.class &&
|
85
|
-
|
86
|
+
id == o.id
|
86
87
|
end
|
87
88
|
|
88
89
|
# @see the `==` method
|
@@ -94,7 +95,7 @@ module KatapultAPI
|
|
94
95
|
# Calculates hash code according to all attributes.
|
95
96
|
# @return [Integer] Hash code
|
96
97
|
def hash
|
97
|
-
[
|
98
|
+
[id].hash
|
98
99
|
end
|
99
100
|
|
100
101
|
# Builds the object from hash
|
@@ -14,13 +14,11 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
|
19
|
-
ISSUEWILD = "issuewild".freeze
|
20
|
-
IODEF = "iodef".freeze
|
17
|
+
class AddressListNotFoundEnum
|
18
|
+
ADDRESS_LIST_NOT_FOUND = "address_list_not_found".freeze
|
21
19
|
|
22
20
|
def self.all_vars
|
23
|
-
@all_vars ||= [
|
21
|
+
@all_vars ||= [ADDRESS_LIST_NOT_FOUND].freeze
|
24
22
|
end
|
25
23
|
|
26
24
|
# Builds the enum from string
|
@@ -34,8 +32,8 @@ module KatapultAPI
|
|
34
32
|
# @param [String] The enum value in the form of the string
|
35
33
|
# @return [String] The enum value
|
36
34
|
def build_from_hash(value)
|
37
|
-
return value if
|
38
|
-
raise "Invalid ENUM value #{value} for class #
|
35
|
+
return value if AddressListNotFoundEnum.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #AddressListNotFoundEnum"
|
39
37
|
end
|
40
38
|
end
|
41
39
|
end
|
@@ -114,6 +114,14 @@ module KatapultAPI
|
|
114
114
|
# List of attributes with nullable: true
|
115
115
|
def self.openapi_nullable
|
116
116
|
Set.new([
|
117
|
+
:'expires_at',
|
118
|
+
:'last_issued_at',
|
119
|
+
:'issue_error',
|
120
|
+
:'authorization_method',
|
121
|
+
:'certificate_api_url',
|
122
|
+
:'certificate',
|
123
|
+
:'chain',
|
124
|
+
:'private_key'
|
117
125
|
])
|
118
126
|
end
|
119
127
|
|
@@ -14,13 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class DecimalOrUnlimited
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
attr_accessor :unlimited
|
19
21
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
|
-
:'
|
25
|
+
:'value' => :'value',
|
26
|
+
:'unlimited' => :'unlimited'
|
24
27
|
}
|
25
28
|
end
|
26
29
|
|
@@ -32,13 +35,15 @@ module KatapultAPI
|
|
32
35
|
# Attribute type mapping.
|
33
36
|
def self.openapi_types
|
34
37
|
{
|
35
|
-
:'
|
38
|
+
:'value' => :'Float',
|
39
|
+
:'unlimited' => :'Boolean'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
39
43
|
# List of attributes with nullable: true
|
40
44
|
def self.openapi_nullable
|
41
45
|
Set.new([
|
46
|
+
:'value',
|
42
47
|
])
|
43
48
|
end
|
44
49
|
|
@@ -46,19 +51,23 @@ module KatapultAPI
|
|
46
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
52
|
def initialize(attributes = {})
|
48
53
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DecimalOrUnlimited` initialize method"
|
50
55
|
end
|
51
56
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DecimalOrUnlimited`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
61
|
end
|
57
62
|
h[k.to_sym] = v
|
58
63
|
}
|
59
64
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
65
|
+
if attributes.key?(:'value')
|
66
|
+
self.value = attributes[:'value']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'unlimited')
|
70
|
+
self.unlimited = attributes[:'unlimited']
|
62
71
|
end
|
63
72
|
end
|
64
73
|
|
@@ -82,7 +91,8 @@ module KatapultAPI
|
|
82
91
|
def ==(o)
|
83
92
|
return true if self.equal?(o)
|
84
93
|
self.class == o.class &&
|
85
|
-
|
94
|
+
value == o.value &&
|
95
|
+
unlimited == o.unlimited
|
86
96
|
end
|
87
97
|
|
88
98
|
# @see the `==` method
|
@@ -94,7 +104,7 @@ module KatapultAPI
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Integer] Hash code
|
96
106
|
def hash
|
97
|
-
[
|
107
|
+
[value, unlimited].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|