katapult-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +121 -57
- data/lib/katapult-ruby/models/{interface_not_found_response.rb → api_authenticator400_schema.rb} +5 -17
- data/lib/katapult-ruby/models/certificate_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/country_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/country_state_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/currency_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/data_center_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{location_required_response.rb → data_center_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/delete_ip_address409_response.rb +1 -13
- data/lib/katapult-ruby/models/delete_ssh_key404_response.rb +1 -13
- data/lib/katapult-ruby/models/delete_ssh_key409_response.rb +1 -13
- data/lib/katapult-ruby/models/deletion_restricted_enum.rb +39 -0
- data/lib/katapult-ruby/models/disk_backup_policy_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/disk_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/disk_template_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{ip_already_allocated_response.rb → disk_template_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/disk_template_version_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/dns_record_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/dns_zone_already_verified_enum.rb +39 -0
- data/lib/katapult-ruby/models/dns_zone_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/dns_zone_not_verified_enum.rb +39 -0
- data/lib/katapult-ruby/models/file_storage_volume_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_enum.rb +39 -0
- data/lib/katapult-ruby/models/{flexible_resources_unavailable_to_organization_response.rb → flexible_resources_unavailable_to_organization_schema.rb} +4 -16
- data/lib/katapult-ruby/models/get_certificate404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_country404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_country_state404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_currency404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_data_center404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_data_centers400_response.rb +1 -13
- data/lib/katapult-ruby/models/get_data_centers429_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_backup_policy404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_template404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_disk_template_version404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_dns_records_dns_record404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_dns_zones_dns_zone_verification_details422_response.rb +1 -13
- data/lib/katapult-ruby/models/get_file_storage_volume404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_gpu_type404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_ip_address404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_load_balancer404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_load_balancers_rules_load_balancer_rule404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_network404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_operating_system404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_organization404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_security_group404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_security_groups_rules_security_group_rule404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_tag404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_task404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_trash_object404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_users_current404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_disks404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_disks406_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_group404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machine_package404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_virtual_machines_builds_virtual_machine_build404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_vmnivmni404_response.rb +1 -13
- data/lib/katapult-ruby/models/get_zone404_response.rb +1 -13
- data/lib/katapult-ruby/models/gpu_type_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/identity_not_linked_to_web_session_enum.rb +39 -0
- data/lib/katapult-ruby/models/{network_speed_profile_not_found_response.rb → identity_not_linked_to_web_session_schema.rb} +5 -17
- data/lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_enum.rb +39 -0
- data/lib/katapult-ruby/models/{infrastructure_dns_zone_cannot_be_edited_response.rb → infrastructure_dns_zone_cannot_be_edited_schema.rb} +4 -16
- data/lib/katapult-ruby/models/interface_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{network_not_found_response.rb → interface_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/invalid_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_api_token_response.rb → invalid_api_token_schema.rb} +4 -16
- data/lib/katapult-ruby/models/invalid_ip_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_ip_response.rb → invalid_ip_schema.rb} +4 -16
- data/lib/katapult-ruby/models/invalid_spec_xml_enum.rb +39 -0
- data/lib/katapult-ruby/models/invalid_spec_xml_schema.rb +255 -0
- data/lib/katapult-ruby/models/invalid_timestamp_enum.rb +39 -0
- data/lib/katapult-ruby/models/{invalid_spec_xml_response.rb → invalid_timestamp_schema.rb} +6 -18
- data/lib/katapult-ruby/models/ip_address_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{ip_address_not_found_response.rb → ip_address_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/models/ip_already_allocated_enum.rb +39 -0
- data/lib/katapult-ruby/models/ip_already_allocated_schema.rb +255 -0
- data/lib/katapult-ruby/models/load_balancer_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/load_balancer_rule_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/location_required_enum.rb +39 -0
- data/lib/katapult-ruby/models/location_required_schema.rb +255 -0
- data/lib/katapult-ruby/models/missing_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/network_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/network_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/network_speed_profile_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/network_speed_profile_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/no_allocation_enum.rb +39 -0
- data/lib/katapult-ruby/models/no_available_addresses_enum.rb +39 -0
- data/lib/katapult-ruby/models/no_interface_available_enum.rb +39 -0
- data/lib/katapult-ruby/models/{data_center_not_found_response.rb → no_interface_available_schema.rb} +5 -17
- data/lib/katapult-ruby/models/no_user_associated_with_identity_enum.rb +39 -0
- data/lib/katapult-ruby/models/object_in_trash_enum.rb +39 -0
- data/lib/katapult-ruby/models/{object_in_trash_response.rb → object_in_trash_schema.rb} +4 -16
- data/lib/katapult-ruby/models/one_of_api_authenticator403_response.rb +3 -3
- data/lib/katapult-ruby/models/{one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_error.rb → one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_res.rb} +7 -7
- data/lib/katapult-ruby/models/{one_of_flexible_resources_unavailable_to_organization_permission_denied403_error.rb → one_of_flexible_resources_unavailable_to_organization_permission_denied403_res.rb} +6 -6
- data/lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_res.rb +105 -0
- data/lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_res.rb +107 -0
- data/lib/katapult-ruby/models/{one_of_interface_not_found_network_not_found_virtual_machine_not_found404_error.rb → one_of_interface_not_found_network_not_found_virtual_machine_not_found404_res.rb} +4 -4
- data/lib/katapult-ruby/models/{one_of_invalid_spec_xml400_error.rb → one_of_invalid_spec_xml400_res.rb} +3 -3
- data/lib/katapult-ruby/models/{one_of_invalid_timestamp400_error.rb → one_of_invalid_timestamp400_res.rb} +3 -3
- data/lib/katapult-ruby/models/{one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_error.rb → one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_res.rb} +3 -3
- data/lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_res.rb +105 -0
- data/lib/katapult-ruby/models/{one_of_ip_already_allocated_invalid_ip422_error.rb → one_of_ip_already_allocated_invalid_ip422_res.rb} +3 -3
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_res.rb +105 -0
- data/lib/katapult-ruby/models/{one_of_object_in_trash_task_queueing_error406_error.rb → one_of_location_required_validation_error422_res.rb} +3 -3
- data/lib/katapult-ruby/models/{one_of_location_required_validation_error422_error.rb → one_of_network_not_found_organization_not_found404_res.rb} +3 -3
- data/lib/katapult-ruby/models/{one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_error.rb → one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_res.rb} +3 -3
- data/lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_res.rb +105 -0
- data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_res.rb +105 -0
- data/lib/katapult-ruby/models/{one_of_ip_address_not_found_virtual_machine_not_found404_error.rb → one_of_operating_system_not_found_organization_not_found404_res.rb} +3 -3
- data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_res.rb +105 -0
- data/lib/katapult-ruby/models/{one_of_infrastructure_dns_zone_cannot_be_edited403_error.rb → one_of_organization_not_activated_organization_suspended403_res.rb} +6 -5
- data/lib/katapult-ruby/models/{one_of_organization_not_activated_organization_suspended_permission_denied403_error.rb → one_of_organization_not_activated_organization_suspended_permission_denied403_res.rb} +7 -7
- data/lib/katapult-ruby/models/{one_of_organization_not_activated_permission_denied_resource_creation_restricted403_error.rb → one_of_organization_not_activated_permission_denied_resource_creation_restricted403_res.rb} +8 -8
- data/lib/katapult-ruby/models/{one_of_identity_not_linked_to_web_session400_error.rb → one_of_permission_denied403_res.rb} +5 -3
- data/lib/katapult-ruby/models/{one_of_virtual_machine_not_found_virtual_machine_package_not_found404_error.rb → one_of_virtual_machine_not_found_virtual_machine_package_not_found404_res.rb} +3 -3
- data/lib/katapult-ruby/models/operating_system_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_suspended_response.rb → operating_system_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/organization_limit_reached_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_not_found_response.rb → organization_limit_reached_schema.rb} +5 -17
- data/lib/katapult-ruby/models/organization_not_activated_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_not_activated_response.rb → organization_not_activated_schema.rb} +4 -16
- data/lib/katapult-ruby/models/organization_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/organization_not_found_schema.rb +255 -0
- data/lib/katapult-ruby/models/organization_suspended_enum.rb +39 -0
- data/lib/katapult-ruby/models/{api_authenticator400_response.rb → organization_suspended_schema.rb} +5 -17
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile406_response.rb +1 -13
- data/lib/katapult-ruby/models/patch_virtual_machine_network_interface_update_speed_profile422_response.rb +1 -13
- data/lib/katapult-ruby/models/permission_denied_enum.rb +39 -0
- data/lib/katapult-ruby/models/{permission_denied_response.rb → permission_denied_schema.rb} +4 -16
- data/lib/katapult-ruby/models/post_dns_zones_dns_zone_verify422_response.rb +1 -13
- data/lib/katapult-ruby/models/post_ip_address_unallocate422_response.rb +1 -13
- data/lib/katapult-ruby/models/post_organization_ip_addresses503_response.rb +1 -13
- data/lib/katapult-ruby/models/post_organization_virtual_machines_build_from_spec422_response.rb +1 -13
- data/lib/katapult-ruby/models/rate_limit_reached_enum.rb +39 -0
- data/lib/katapult-ruby/models/resource_creation_restricted_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_limit_reached_response.rb → resource_creation_restricted_schema.rb} +6 -18
- data/lib/katapult-ruby/models/resource_does_not_support_unallocation_enum.rb +39 -0
- data/lib/katapult-ruby/models/scope_not_granted_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{scope_not_granted_error_response.rb → scope_not_granted_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/security_group_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/security_group_rule_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/speed_profile_already_assigned_enum.rb +39 -0
- data/lib/katapult-ruby/models/ssh_key_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/tag_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/task_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/task_queueing_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{task_queueing_error_response.rb → task_queueing_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/trash_object_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/unauthorized_network_for_api_token_enum.rb +39 -0
- data/lib/katapult-ruby/models/{unauthorized_network_for_api_token_response.rb → unauthorized_network_for_api_token_schema.rb} +4 -16
- data/lib/katapult-ruby/models/validation_error_enum.rb +39 -0
- data/lib/katapult-ruby/models/{validation_error_response.rb → validation_error_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine_build_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/virtual_machine_group_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/virtual_machine_must_be_started_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_must_be_started_response.rb → virtual_machine_must_be_started_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine_network_interface_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_network_interface_not_found_response.rb → virtual_machine_network_interface_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/models/virtual_machine_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{organization_not_found_response.rb → virtual_machine_not_found_schema.rb} +5 -17
- data/lib/katapult-ruby/models/virtual_machine_package_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{virtual_machine_package_not_found_response.rb → virtual_machine_package_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/models/zone_not_found_enum.rb +39 -0
- data/lib/katapult-ruby/models/{zone_not_found_response.rb → zone_not_found_schema.rb} +4 -16
- data/lib/katapult-ruby/version.rb +1 -1
- data/lib/katapult-ruby.rb +121 -57
- metadata +123 -59
- data/lib/katapult-ruby/models/disk_template_not_found_response.rb +0 -267
- data/lib/katapult-ruby/models/identity_not_linked_to_web_session_response.rb +0 -267
- data/lib/katapult-ruby/models/invalid_timestamp_response.rb +0 -267
- data/lib/katapult-ruby/models/no_interface_available_response.rb +0 -267
- data/lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_error.rb +0 -105
- data/lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_error.rb +0 -108
- data/lib/katapult-ruby/models/one_of_permission_denied403_error.rb +0 -107
- data/lib/katapult-ruby/models/operating_system_not_found_response.rb +0 -267
- data/lib/katapult-ruby/models/resource_creation_restricted_response.rb +0 -267
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katapult-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krystal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- lib/katapult-ruby/configuration.rb
|
70
70
|
- lib/katapult-ruby/models/a.rb
|
71
71
|
- lib/katapult-ruby/models/aaaa.rb
|
72
|
-
- lib/katapult-ruby/models/
|
72
|
+
- lib/katapult-ruby/models/api_authenticator400_schema.rb
|
73
73
|
- lib/katapult-ruby/models/attachment.rb
|
74
74
|
- lib/katapult-ruby/models/auth_ssh_key.rb
|
75
75
|
- lib/katapult-ruby/models/auth_ssh_key_lookup.rb
|
@@ -77,14 +77,19 @@ files:
|
|
77
77
|
- lib/katapult-ruby/models/caa.rb
|
78
78
|
- lib/katapult-ruby/models/certificate.rb
|
79
79
|
- lib/katapult-ruby/models/certificate_lookup.rb
|
80
|
+
- lib/katapult-ruby/models/certificate_not_found_enum.rb
|
80
81
|
- lib/katapult-ruby/models/certificate_state_enum.rb
|
81
82
|
- lib/katapult-ruby/models/cname.rb
|
82
83
|
- lib/katapult-ruby/models/country.rb
|
84
|
+
- lib/katapult-ruby/models/country_not_found_enum.rb
|
83
85
|
- lib/katapult-ruby/models/country_state.rb
|
86
|
+
- lib/katapult-ruby/models/country_state_not_found_enum.rb
|
84
87
|
- lib/katapult-ruby/models/currency.rb
|
88
|
+
- lib/katapult-ruby/models/currency_not_found_enum.rb
|
85
89
|
- lib/katapult-ruby/models/data_center.rb
|
86
90
|
- lib/katapult-ruby/models/data_center_lookup.rb
|
87
|
-
- lib/katapult-ruby/models/
|
91
|
+
- lib/katapult-ruby/models/data_center_not_found_enum.rb
|
92
|
+
- lib/katapult-ruby/models/data_center_not_found_schema.rb
|
88
93
|
- lib/katapult-ruby/models/delete_disk_backup_policy200_response.rb
|
89
94
|
- lib/katapult-ruby/models/delete_disk_backup_policy200_response_disk_backup_policy.rb
|
90
95
|
- lib/katapult-ruby/models/delete_disk_backup_policy_request.rb
|
@@ -145,38 +150,49 @@ files:
|
|
145
150
|
- lib/katapult-ruby/models/delete_virtual_machine_part_zone.rb
|
146
151
|
- lib/katapult-ruby/models/delete_virtual_machine_request.rb
|
147
152
|
- lib/katapult-ruby/models/deletion_restricted.rb
|
153
|
+
- lib/katapult-ruby/models/deletion_restricted_enum.rb
|
148
154
|
- lib/katapult-ruby/models/disk.rb
|
149
155
|
- lib/katapult-ruby/models/disk_backup_policy_arguments.rb
|
150
156
|
- lib/katapult-ruby/models/disk_backup_policy_lookup.rb
|
157
|
+
- lib/katapult-ruby/models/disk_backup_policy_not_found_enum.rb
|
151
158
|
- lib/katapult-ruby/models/disk_backup_policy_target.rb
|
152
159
|
- lib/katapult-ruby/models/disk_backup_policy_target_target.rb
|
153
160
|
- lib/katapult-ruby/models/disk_installation.rb
|
154
161
|
- lib/katapult-ruby/models/disk_installation_attribute.rb
|
155
162
|
- lib/katapult-ruby/models/disk_io_profile.rb
|
156
163
|
- lib/katapult-ruby/models/disk_lookup.rb
|
164
|
+
- lib/katapult-ruby/models/disk_not_found_enum.rb
|
157
165
|
- lib/katapult-ruby/models/disk_state_enum.rb
|
158
166
|
- lib/katapult-ruby/models/disk_template.rb
|
159
167
|
- lib/katapult-ruby/models/disk_template_lookup.rb
|
160
|
-
- lib/katapult-ruby/models/
|
168
|
+
- lib/katapult-ruby/models/disk_template_not_found_enum.rb
|
169
|
+
- lib/katapult-ruby/models/disk_template_not_found_schema.rb
|
161
170
|
- lib/katapult-ruby/models/disk_template_version.rb
|
171
|
+
- lib/katapult-ruby/models/disk_template_version_not_found_enum.rb
|
162
172
|
- lib/katapult-ruby/models/dns_record.rb
|
163
173
|
- lib/katapult-ruby/models/dns_record_arguments.rb
|
164
174
|
- lib/katapult-ruby/models/dns_record_content_attributes.rb
|
165
175
|
- lib/katapult-ruby/models/dns_record_lookup.rb
|
176
|
+
- lib/katapult-ruby/models/dns_record_not_found_enum.rb
|
166
177
|
- lib/katapult-ruby/models/dns_record_properties.rb
|
167
178
|
- lib/katapult-ruby/models/dns_record_properties_arguments.rb
|
168
179
|
- lib/katapult-ruby/models/dns_record_properties_properties.rb
|
169
180
|
- lib/katapult-ruby/models/dns_record_type_enum.rb
|
170
181
|
- lib/katapult-ruby/models/dns_record_types_enum.rb
|
171
182
|
- lib/katapult-ruby/models/dns_zone.rb
|
183
|
+
- lib/katapult-ruby/models/dns_zone_already_verified_enum.rb
|
172
184
|
- lib/katapult-ruby/models/dns_zone_arguments.rb
|
173
185
|
- lib/katapult-ruby/models/dns_zone_lookup.rb
|
186
|
+
- lib/katapult-ruby/models/dns_zone_not_found_enum.rb
|
174
187
|
- lib/katapult-ruby/models/dns_zone_not_verified.rb
|
188
|
+
- lib/katapult-ruby/models/dns_zone_not_verified_enum.rb
|
175
189
|
- lib/katapult-ruby/models/dns_zone_verification_details.rb
|
176
190
|
- lib/katapult-ruby/models/file_storage_volume_arguments.rb
|
177
191
|
- lib/katapult-ruby/models/file_storage_volume_lookup.rb
|
192
|
+
- lib/katapult-ruby/models/file_storage_volume_not_found_enum.rb
|
178
193
|
- lib/katapult-ruby/models/file_storage_volume_state_enum.rb
|
179
|
-
- lib/katapult-ruby/models/
|
194
|
+
- lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_enum.rb
|
195
|
+
- lib/katapult-ruby/models/flexible_resources_unavailable_to_organization_schema.rb
|
180
196
|
- lib/katapult-ruby/models/get_certificate200_response.rb
|
181
197
|
- lib/katapult-ruby/models/get_certificate404_response.rb
|
182
198
|
- lib/katapult-ruby/models/get_countries200_response.rb
|
@@ -415,25 +431,36 @@ files:
|
|
415
431
|
- lib/katapult-ruby/models/get_zones_part_data_center.rb
|
416
432
|
- lib/katapult-ruby/models/gpu_type.rb
|
417
433
|
- lib/katapult-ruby/models/gpu_type_lookup.rb
|
418
|
-
- lib/katapult-ruby/models/
|
419
|
-
- lib/katapult-ruby/models/
|
420
|
-
- lib/katapult-ruby/models/
|
434
|
+
- lib/katapult-ruby/models/gpu_type_not_found_enum.rb
|
435
|
+
- lib/katapult-ruby/models/identity_not_linked_to_web_session_enum.rb
|
436
|
+
- lib/katapult-ruby/models/identity_not_linked_to_web_session_schema.rb
|
437
|
+
- lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_enum.rb
|
438
|
+
- lib/katapult-ruby/models/infrastructure_dns_zone_cannot_be_edited_schema.rb
|
439
|
+
- lib/katapult-ruby/models/interface_not_found_enum.rb
|
440
|
+
- lib/katapult-ruby/models/interface_not_found_schema.rb
|
421
441
|
- lib/katapult-ruby/models/invalid_api_token.rb
|
422
|
-
- lib/katapult-ruby/models/
|
423
|
-
- lib/katapult-ruby/models/
|
442
|
+
- lib/katapult-ruby/models/invalid_api_token_enum.rb
|
443
|
+
- lib/katapult-ruby/models/invalid_api_token_schema.rb
|
444
|
+
- lib/katapult-ruby/models/invalid_ip_enum.rb
|
445
|
+
- lib/katapult-ruby/models/invalid_ip_schema.rb
|
424
446
|
- lib/katapult-ruby/models/invalid_spec_xml.rb
|
425
|
-
- lib/katapult-ruby/models/
|
426
|
-
- lib/katapult-ruby/models/
|
447
|
+
- lib/katapult-ruby/models/invalid_spec_xml_enum.rb
|
448
|
+
- lib/katapult-ruby/models/invalid_spec_xml_schema.rb
|
449
|
+
- lib/katapult-ruby/models/invalid_timestamp_enum.rb
|
450
|
+
- lib/katapult-ruby/models/invalid_timestamp_schema.rb
|
427
451
|
- lib/katapult-ruby/models/ip_address.rb
|
428
452
|
- lib/katapult-ruby/models/ip_address_lookup.rb
|
429
|
-
- lib/katapult-ruby/models/
|
453
|
+
- lib/katapult-ruby/models/ip_address_not_found_enum.rb
|
454
|
+
- lib/katapult-ruby/models/ip_address_not_found_schema.rb
|
430
455
|
- lib/katapult-ruby/models/ip_address_version_enum.rb
|
431
|
-
- lib/katapult-ruby/models/
|
456
|
+
- lib/katapult-ruby/models/ip_already_allocated_enum.rb
|
457
|
+
- lib/katapult-ruby/models/ip_already_allocated_schema.rb
|
432
458
|
- lib/katapult-ruby/models/iso.rb
|
433
459
|
- lib/katapult-ruby/models/issuer_enum.rb
|
434
460
|
- lib/katapult-ruby/models/key_value.rb
|
435
461
|
- lib/katapult-ruby/models/load_balancer_arguments.rb
|
436
462
|
- lib/katapult-ruby/models/load_balancer_lookup.rb
|
463
|
+
- lib/katapult-ruby/models/load_balancer_not_found_enum.rb
|
437
464
|
- lib/katapult-ruby/models/load_balancer_resource.rb
|
438
465
|
- lib/katapult-ruby/models/load_balancer_resource_resources.rb
|
439
466
|
- lib/katapult-ruby/models/load_balancer_resource_types_enum.rb
|
@@ -442,53 +469,68 @@ files:
|
|
442
469
|
- lib/katapult-ruby/models/load_balancer_rule_check_protocol_enum.rb
|
443
470
|
- lib/katapult-ruby/models/load_balancer_rule_http_statuses_enum.rb
|
444
471
|
- lib/katapult-ruby/models/load_balancer_rule_lookup.rb
|
472
|
+
- lib/katapult-ruby/models/load_balancer_rule_not_found_enum.rb
|
445
473
|
- lib/katapult-ruby/models/load_balancer_rule_protocol_enum.rb
|
446
474
|
- lib/katapult-ruby/models/load_balancer_weights_arguments.rb
|
447
|
-
- lib/katapult-ruby/models/
|
475
|
+
- lib/katapult-ruby/models/location_required_enum.rb
|
476
|
+
- lib/katapult-ruby/models/location_required_schema.rb
|
477
|
+
- lib/katapult-ruby/models/missing_api_token_enum.rb
|
448
478
|
- lib/katapult-ruby/models/model_alias.rb
|
449
479
|
- lib/katapult-ruby/models/mx.rb
|
450
480
|
- lib/katapult-ruby/models/network.rb
|
451
481
|
- lib/katapult-ruby/models/network_lookup.rb
|
452
|
-
- lib/katapult-ruby/models/
|
482
|
+
- lib/katapult-ruby/models/network_not_found_enum.rb
|
483
|
+
- lib/katapult-ruby/models/network_not_found_schema.rb
|
453
484
|
- lib/katapult-ruby/models/network_speed_profile.rb
|
454
485
|
- lib/katapult-ruby/models/network_speed_profile_lookup.rb
|
455
|
-
- lib/katapult-ruby/models/
|
456
|
-
- lib/katapult-ruby/models/
|
486
|
+
- lib/katapult-ruby/models/network_speed_profile_not_found_enum.rb
|
487
|
+
- lib/katapult-ruby/models/network_speed_profile_not_found_schema.rb
|
488
|
+
- lib/katapult-ruby/models/no_allocation_enum.rb
|
489
|
+
- lib/katapult-ruby/models/no_available_addresses_enum.rb
|
490
|
+
- lib/katapult-ruby/models/no_interface_available_enum.rb
|
491
|
+
- lib/katapult-ruby/models/no_interface_available_schema.rb
|
492
|
+
- lib/katapult-ruby/models/no_user_associated_with_identity_enum.rb
|
457
493
|
- lib/katapult-ruby/models/ns.rb
|
458
494
|
- lib/katapult-ruby/models/object_in_trash.rb
|
459
|
-
- lib/katapult-ruby/models/
|
495
|
+
- lib/katapult-ruby/models/object_in_trash_enum.rb
|
496
|
+
- lib/katapult-ruby/models/object_in_trash_schema.rb
|
460
497
|
- lib/katapult-ruby/models/one_of_api_authenticator403_response.rb
|
461
|
-
- lib/katapult-ruby/models/
|
462
|
-
- lib/katapult-ruby/models/
|
463
|
-
- lib/katapult-ruby/models/
|
464
|
-
- lib/katapult-ruby/models/
|
465
|
-
- lib/katapult-ruby/models/
|
466
|
-
- lib/katapult-ruby/models/
|
467
|
-
- lib/katapult-ruby/models/
|
468
|
-
- lib/katapult-ruby/models/
|
469
|
-
- lib/katapult-ruby/models/
|
470
|
-
- lib/katapult-ruby/models/
|
471
|
-
- lib/katapult-ruby/models/
|
472
|
-
- lib/katapult-ruby/models/
|
473
|
-
- lib/katapult-ruby/models/
|
474
|
-
- lib/katapult-ruby/models/
|
475
|
-
- lib/katapult-ruby/models/
|
476
|
-
- lib/katapult-ruby/models/
|
477
|
-
- lib/katapult-ruby/models/
|
478
|
-
- lib/katapult-ruby/models/
|
479
|
-
- lib/katapult-ruby/models/
|
480
|
-
- lib/katapult-ruby/models/
|
481
|
-
- lib/katapult-ruby/models/
|
482
|
-
- lib/katapult-ruby/models/
|
483
|
-
- lib/katapult-ruby/models/
|
498
|
+
- lib/katapult-ruby/models/one_of_data_center_not_found_virtual_machine_package_not_found_zone_not_found404_res.rb
|
499
|
+
- lib/katapult-ruby/models/one_of_flexible_resources_unavailable_to_organization_permission_denied403_res.rb
|
500
|
+
- lib/katapult-ruby/models/one_of_identity_not_linked_to_web_session400_res.rb
|
501
|
+
- lib/katapult-ruby/models/one_of_infrastructure_dns_zone_cannot_be_edited403_res.rb
|
502
|
+
- lib/katapult-ruby/models/one_of_interface_not_found_network_not_found_virtual_machine_not_found404_res.rb
|
503
|
+
- lib/katapult-ruby/models/one_of_invalid_spec_xml400_res.rb
|
504
|
+
- lib/katapult-ruby/models/one_of_invalid_timestamp400_res.rb
|
505
|
+
- lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_network_interface_not_found404_res.rb
|
506
|
+
- lib/katapult-ruby/models/one_of_ip_address_not_found_virtual_machine_not_found404_res.rb
|
507
|
+
- lib/katapult-ruby/models/one_of_ip_already_allocated_invalid_ip422_res.rb
|
508
|
+
- lib/katapult-ruby/models/one_of_ip_already_allocated_no_interface_available422_res.rb
|
509
|
+
- lib/katapult-ruby/models/one_of_location_required_validation_error422_res.rb
|
510
|
+
- lib/katapult-ruby/models/one_of_network_not_found_organization_not_found404_res.rb
|
511
|
+
- lib/katapult-ruby/models/one_of_network_speed_profile_not_found_virtual_machine_network_interface_not_found404_res.rb
|
512
|
+
- lib/katapult-ruby/models/one_of_object_in_trash_task_queueing_error406_res.rb
|
513
|
+
- lib/katapult-ruby/models/one_of_object_in_trash_virtual_machine_must_be_started406_res.rb
|
514
|
+
- lib/katapult-ruby/models/one_of_operating_system_not_found_organization_not_found404_res.rb
|
515
|
+
- lib/katapult-ruby/models/one_of_organization_limit_reached_validation_error422_res.rb
|
516
|
+
- lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended403_res.rb
|
517
|
+
- lib/katapult-ruby/models/one_of_organization_not_activated_organization_suspended_permission_denied403_res.rb
|
518
|
+
- lib/katapult-ruby/models/one_of_organization_not_activated_permission_denied_resource_creation_restricted403_res.rb
|
519
|
+
- lib/katapult-ruby/models/one_of_permission_denied403_res.rb
|
520
|
+
- lib/katapult-ruby/models/one_of_virtual_machine_not_found_virtual_machine_package_not_found404_res.rb
|
484
521
|
- lib/katapult-ruby/models/operating_system.rb
|
485
|
-
- lib/katapult-ruby/models/
|
522
|
+
- lib/katapult-ruby/models/operating_system_not_found_enum.rb
|
523
|
+
- lib/katapult-ruby/models/operating_system_not_found_schema.rb
|
486
524
|
- lib/katapult-ruby/models/organization.rb
|
487
|
-
- lib/katapult-ruby/models/
|
525
|
+
- lib/katapult-ruby/models/organization_limit_reached_enum.rb
|
526
|
+
- lib/katapult-ruby/models/organization_limit_reached_schema.rb
|
488
527
|
- lib/katapult-ruby/models/organization_lookup.rb
|
489
|
-
- lib/katapult-ruby/models/
|
490
|
-
- lib/katapult-ruby/models/
|
491
|
-
- lib/katapult-ruby/models/
|
528
|
+
- lib/katapult-ruby/models/organization_not_activated_enum.rb
|
529
|
+
- lib/katapult-ruby/models/organization_not_activated_schema.rb
|
530
|
+
- lib/katapult-ruby/models/organization_not_found_enum.rb
|
531
|
+
- lib/katapult-ruby/models/organization_not_found_schema.rb
|
532
|
+
- lib/katapult-ruby/models/organization_suspended_enum.rb
|
533
|
+
- lib/katapult-ruby/models/organization_suspended_schema.rb
|
492
534
|
- lib/katapult-ruby/models/pagination_object.rb
|
493
535
|
- lib/katapult-ruby/models/patch_disk_backup_policy200_response.rb
|
494
536
|
- lib/katapult-ruby/models/patch_disk_backup_policy200_response_disk_backup_policy.rb
|
@@ -552,7 +594,8 @@ files:
|
|
552
594
|
- lib/katapult-ruby/models/patch_virtual_machine_part_zone.rb
|
553
595
|
- lib/katapult-ruby/models/patch_virtual_machine_request.rb
|
554
596
|
- lib/katapult-ruby/models/permission_denied.rb
|
555
|
-
- lib/katapult-ruby/models/
|
597
|
+
- lib/katapult-ruby/models/permission_denied_enum.rb
|
598
|
+
- lib/katapult-ruby/models/permission_denied_schema.rb
|
556
599
|
- lib/katapult-ruby/models/post_disk_disk_backup_policies200_response.rb
|
557
600
|
- lib/katapult-ruby/models/post_disk_disk_backup_policies200_response_disk_backup_policy.rb
|
558
601
|
- lib/katapult-ruby/models/post_disk_disk_backup_policies_part_schedule.rb
|
@@ -653,6 +696,7 @@ files:
|
|
653
696
|
- lib/katapult-ruby/models/put_virtual_machine_package200_response.rb
|
654
697
|
- lib/katapult-ruby/models/put_virtual_machine_package_request.rb
|
655
698
|
- lib/katapult-ruby/models/rate_limit_reached.rb
|
699
|
+
- lib/katapult-ruby/models/rate_limit_reached_enum.rb
|
656
700
|
- lib/katapult-ruby/models/record_content_attributes_for_a.rb
|
657
701
|
- lib/katapult-ruby/models/record_content_attributes_for_aaaa.rb
|
658
702
|
- lib/katapult-ruby/models/record_content_attributes_for_alias.rb
|
@@ -667,43 +711,57 @@ files:
|
|
667
711
|
- lib/katapult-ruby/models/record_content_attributes_for_txt.rb
|
668
712
|
- lib/katapult-ruby/models/record_content_attributes_for_virtual_machine.rb
|
669
713
|
- lib/katapult-ruby/models/resource_creation_restricted.rb
|
670
|
-
- lib/katapult-ruby/models/
|
714
|
+
- lib/katapult-ruby/models/resource_creation_restricted_enum.rb
|
715
|
+
- lib/katapult-ruby/models/resource_creation_restricted_schema.rb
|
716
|
+
- lib/katapult-ruby/models/resource_does_not_support_unallocation_enum.rb
|
671
717
|
- lib/katapult-ruby/models/schedule_arguments.rb
|
672
718
|
- lib/katapult-ruby/models/schedule_interval_type_enum.rb
|
673
719
|
- lib/katapult-ruby/models/scope_not_granted_error.rb
|
674
|
-
- lib/katapult-ruby/models/
|
720
|
+
- lib/katapult-ruby/models/scope_not_granted_error_enum.rb
|
721
|
+
- lib/katapult-ruby/models/scope_not_granted_error_schema.rb
|
675
722
|
- lib/katapult-ruby/models/security_group.rb
|
676
723
|
- lib/katapult-ruby/models/security_group_arguments.rb
|
677
724
|
- lib/katapult-ruby/models/security_group_lookup.rb
|
725
|
+
- lib/katapult-ruby/models/security_group_not_found_enum.rb
|
678
726
|
- lib/katapult-ruby/models/security_group_rule_action_enum.rb
|
679
727
|
- lib/katapult-ruby/models/security_group_rule_arguments.rb
|
680
728
|
- lib/katapult-ruby/models/security_group_rule_direction_enum.rb
|
681
729
|
- lib/katapult-ruby/models/security_group_rule_lookup.rb
|
730
|
+
- lib/katapult-ruby/models/security_group_rule_not_found_enum.rb
|
682
731
|
- lib/katapult-ruby/models/security_group_rule_protocol_enum.rb
|
732
|
+
- lib/katapult-ruby/models/speed_profile_already_assigned_enum.rb
|
683
733
|
- lib/katapult-ruby/models/srv.rb
|
734
|
+
- lib/katapult-ruby/models/ssh_key_not_found_enum.rb
|
684
735
|
- lib/katapult-ruby/models/sshfp.rb
|
685
736
|
- lib/katapult-ruby/models/storage_speed_enum.rb
|
686
737
|
- lib/katapult-ruby/models/tag.rb
|
687
738
|
- lib/katapult-ruby/models/tag_arguments.rb
|
688
739
|
- lib/katapult-ruby/models/tag_colors_enum.rb
|
689
740
|
- lib/katapult-ruby/models/tag_lookup.rb
|
741
|
+
- lib/katapult-ruby/models/tag_not_found_enum.rb
|
690
742
|
- lib/katapult-ruby/models/task.rb
|
743
|
+
- lib/katapult-ruby/models/task_not_found_enum.rb
|
691
744
|
- lib/katapult-ruby/models/task_queueing_error.rb
|
692
|
-
- lib/katapult-ruby/models/
|
745
|
+
- lib/katapult-ruby/models/task_queueing_error_enum.rb
|
746
|
+
- lib/katapult-ruby/models/task_queueing_error_schema.rb
|
693
747
|
- lib/katapult-ruby/models/task_status_enum.rb
|
694
748
|
- lib/katapult-ruby/models/template_spec.rb
|
695
749
|
- lib/katapult-ruby/models/template_spec_field.rb
|
696
750
|
- lib/katapult-ruby/models/template_spec_field_type_enum.rb
|
697
751
|
- lib/katapult-ruby/models/trash_object.rb
|
698
752
|
- lib/katapult-ruby/models/trash_object_lookup.rb
|
753
|
+
- lib/katapult-ruby/models/trash_object_not_found_enum.rb
|
699
754
|
- lib/katapult-ruby/models/txt.rb
|
700
755
|
- lib/katapult-ruby/models/unauthorized_network_for_api_token.rb
|
701
|
-
- lib/katapult-ruby/models/
|
756
|
+
- lib/katapult-ruby/models/unauthorized_network_for_api_token_enum.rb
|
757
|
+
- lib/katapult-ruby/models/unauthorized_network_for_api_token_schema.rb
|
702
758
|
- lib/katapult-ruby/models/user.rb
|
703
759
|
- lib/katapult-ruby/models/validation_error.rb
|
704
|
-
- lib/katapult-ruby/models/
|
760
|
+
- lib/katapult-ruby/models/validation_error_enum.rb
|
761
|
+
- lib/katapult-ruby/models/validation_error_schema.rb
|
705
762
|
- lib/katapult-ruby/models/virtual_machine.rb
|
706
763
|
- lib/katapult-ruby/models/virtual_machine_arguments.rb
|
764
|
+
- lib/katapult-ruby/models/virtual_machine_build_not_found_enum.rb
|
707
765
|
- lib/katapult-ruby/models/virtual_machine_build_state_enum.rb
|
708
766
|
- lib/katapult-ruby/models/virtual_machine_disk.rb
|
709
767
|
- lib/katapult-ruby/models/virtual_machine_disk_attachment_state_enum.rb
|
@@ -714,19 +772,25 @@ files:
|
|
714
772
|
- lib/katapult-ruby/models/virtual_machine_group.rb
|
715
773
|
- lib/katapult-ruby/models/virtual_machine_group_arguments.rb
|
716
774
|
- lib/katapult-ruby/models/virtual_machine_group_lookup.rb
|
775
|
+
- lib/katapult-ruby/models/virtual_machine_group_not_found_enum.rb
|
717
776
|
- lib/katapult-ruby/models/virtual_machine_lookup.rb
|
718
777
|
- lib/katapult-ruby/models/virtual_machine_must_be_started.rb
|
719
|
-
- lib/katapult-ruby/models/
|
778
|
+
- lib/katapult-ruby/models/virtual_machine_must_be_started_enum.rb
|
779
|
+
- lib/katapult-ruby/models/virtual_machine_must_be_started_schema.rb
|
720
780
|
- lib/katapult-ruby/models/virtual_machine_network_interface_lookup.rb
|
721
|
-
- lib/katapult-ruby/models/
|
722
|
-
- lib/katapult-ruby/models/
|
781
|
+
- lib/katapult-ruby/models/virtual_machine_network_interface_not_found_enum.rb
|
782
|
+
- lib/katapult-ruby/models/virtual_machine_network_interface_not_found_schema.rb
|
783
|
+
- lib/katapult-ruby/models/virtual_machine_not_found_enum.rb
|
784
|
+
- lib/katapult-ruby/models/virtual_machine_not_found_schema.rb
|
723
785
|
- lib/katapult-ruby/models/virtual_machine_package.rb
|
724
786
|
- lib/katapult-ruby/models/virtual_machine_package_lookup.rb
|
725
|
-
- lib/katapult-ruby/models/
|
787
|
+
- lib/katapult-ruby/models/virtual_machine_package_not_found_enum.rb
|
788
|
+
- lib/katapult-ruby/models/virtual_machine_package_not_found_schema.rb
|
726
789
|
- lib/katapult-ruby/models/virtual_machine_state_enum.rb
|
727
790
|
- lib/katapult-ruby/models/zone.rb
|
728
791
|
- lib/katapult-ruby/models/zone_lookup.rb
|
729
|
-
- lib/katapult-ruby/models/
|
792
|
+
- lib/katapult-ruby/models/zone_not_found_enum.rb
|
793
|
+
- lib/katapult-ruby/models/zone_not_found_schema.rb
|
730
794
|
- lib/katapult-ruby/version.rb
|
731
795
|
homepage: https://katapult.io
|
732
796
|
licenses:
|
@@ -1,267 +0,0 @@
|
|
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
|
-
# No disk template was found matching any of the criteria provided in the arguments
|
18
|
-
class DiskTemplateNotFoundResponse
|
19
|
-
attr_accessor :code
|
20
|
-
|
21
|
-
attr_accessor :description
|
22
|
-
|
23
|
-
attr_accessor :detail
|
24
|
-
|
25
|
-
class EnumAttributeValidator
|
26
|
-
attr_reader :datatype
|
27
|
-
attr_reader :allowable_values
|
28
|
-
|
29
|
-
def initialize(datatype, allowable_values)
|
30
|
-
@allowable_values = allowable_values.map do |value|
|
31
|
-
case datatype.to_s
|
32
|
-
when /Integer/i
|
33
|
-
value.to_i
|
34
|
-
when /Float/i
|
35
|
-
value.to_f
|
36
|
-
else
|
37
|
-
value
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def valid?(value)
|
43
|
-
!value || allowable_values.include?(value)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
-
def self.attribute_map
|
49
|
-
{
|
50
|
-
:'code' => :'code',
|
51
|
-
:'description' => :'description',
|
52
|
-
:'detail' => :'detail'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Returns all the JSON keys this model knows about
|
57
|
-
def self.acceptable_attributes
|
58
|
-
attribute_map.values
|
59
|
-
end
|
60
|
-
|
61
|
-
# Attribute type mapping.
|
62
|
-
def self.openapi_types
|
63
|
-
{
|
64
|
-
:'code' => :'String',
|
65
|
-
:'description' => :'String',
|
66
|
-
:'detail' => :'Object'
|
67
|
-
}
|
68
|
-
end
|
69
|
-
|
70
|
-
# List of attributes with nullable: true
|
71
|
-
def self.openapi_nullable
|
72
|
-
Set.new([
|
73
|
-
])
|
74
|
-
end
|
75
|
-
|
76
|
-
# Initializes the object
|
77
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
-
def initialize(attributes = {})
|
79
|
-
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::DiskTemplateNotFoundResponse` initialize method"
|
81
|
-
end
|
82
|
-
|
83
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::DiskTemplateNotFoundResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
|
-
end
|
88
|
-
h[k.to_sym] = v
|
89
|
-
}
|
90
|
-
|
91
|
-
if attributes.key?(:'code')
|
92
|
-
self.code = attributes[:'code']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'description')
|
96
|
-
self.description = attributes[:'description']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'detail')
|
100
|
-
self.detail = attributes[:'detail']
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
105
|
-
# @return Array for valid properties with the reasons
|
106
|
-
def list_invalid_properties
|
107
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
108
|
-
invalid_properties = Array.new
|
109
|
-
invalid_properties
|
110
|
-
end
|
111
|
-
|
112
|
-
# Check to see if the all the properties in the model are valid
|
113
|
-
# @return true if the model is valid
|
114
|
-
def valid?
|
115
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
-
code_validator = EnumAttributeValidator.new('String', ["disk_template_not_found"])
|
117
|
-
return false unless code_validator.valid?(@code)
|
118
|
-
true
|
119
|
-
end
|
120
|
-
|
121
|
-
# Custom attribute writer method checking allowed values (enum).
|
122
|
-
# @param [Object] code Object to be assigned
|
123
|
-
def code=(code)
|
124
|
-
validator = EnumAttributeValidator.new('String', ["disk_template_not_found"])
|
125
|
-
unless validator.valid?(code)
|
126
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
127
|
-
end
|
128
|
-
@code = code
|
129
|
-
end
|
130
|
-
|
131
|
-
# Checks equality by comparing each attribute.
|
132
|
-
# @param [Object] Object to be compared
|
133
|
-
def ==(o)
|
134
|
-
return true if self.equal?(o)
|
135
|
-
self.class == o.class &&
|
136
|
-
code == o.code &&
|
137
|
-
description == o.description &&
|
138
|
-
detail == o.detail
|
139
|
-
end
|
140
|
-
|
141
|
-
# @see the `==` method
|
142
|
-
# @param [Object] Object to be compared
|
143
|
-
def eql?(o)
|
144
|
-
self == o
|
145
|
-
end
|
146
|
-
|
147
|
-
# Calculates hash code according to all attributes.
|
148
|
-
# @return [Integer] Hash code
|
149
|
-
def hash
|
150
|
-
[code, description, detail].hash
|
151
|
-
end
|
152
|
-
|
153
|
-
# Builds the object from hash
|
154
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
-
# @return [Object] Returns the model itself
|
156
|
-
def self.build_from_hash(attributes)
|
157
|
-
return nil unless attributes.is_a?(Hash)
|
158
|
-
attributes = attributes.transform_keys(&:to_sym)
|
159
|
-
transformed_hash = {}
|
160
|
-
openapi_types.each_pair do |key, type|
|
161
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
162
|
-
transformed_hash["#{key}"] = nil
|
163
|
-
elsif type =~ /\AArray<(.*)>/i
|
164
|
-
# check to ensure the input is an array given that the attribute
|
165
|
-
# is documented as an array but the input is not
|
166
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
167
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
168
|
-
end
|
169
|
-
elsif !attributes[attribute_map[key]].nil?
|
170
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
171
|
-
end
|
172
|
-
end
|
173
|
-
new(transformed_hash)
|
174
|
-
end
|
175
|
-
|
176
|
-
# Deserializes the data based on type
|
177
|
-
# @param string type Data type
|
178
|
-
# @param string value Value to be deserialized
|
179
|
-
# @return [Object] Deserialized data
|
180
|
-
def self._deserialize(type, value)
|
181
|
-
case type.to_sym
|
182
|
-
when :Time
|
183
|
-
Time.parse(value)
|
184
|
-
when :Date
|
185
|
-
Date.parse(value)
|
186
|
-
when :String
|
187
|
-
value.to_s
|
188
|
-
when :Integer
|
189
|
-
value.to_i
|
190
|
-
when :Float
|
191
|
-
value.to_f
|
192
|
-
when :Boolean
|
193
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
194
|
-
true
|
195
|
-
else
|
196
|
-
false
|
197
|
-
end
|
198
|
-
when :Object
|
199
|
-
# generic object (usually a Hash), return directly
|
200
|
-
value
|
201
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
202
|
-
inner_type = Regexp.last_match[:inner_type]
|
203
|
-
value.map { |v| _deserialize(inner_type, v) }
|
204
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
205
|
-
k_type = Regexp.last_match[:k_type]
|
206
|
-
v_type = Regexp.last_match[:v_type]
|
207
|
-
{}.tap do |hash|
|
208
|
-
value.each do |k, v|
|
209
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
210
|
-
end
|
211
|
-
end
|
212
|
-
else # model
|
213
|
-
# models (e.g. Pet) or oneOf
|
214
|
-
klass = KatapultAPI.const_get(type)
|
215
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
# Returns the string representation of the object
|
220
|
-
# @return [String] String presentation of the object
|
221
|
-
def to_s
|
222
|
-
to_hash.to_s
|
223
|
-
end
|
224
|
-
|
225
|
-
# to_body is an alias to to_hash (backward compatibility)
|
226
|
-
# @return [Hash] Returns the object in the form of hash
|
227
|
-
def to_body
|
228
|
-
to_hash
|
229
|
-
end
|
230
|
-
|
231
|
-
# Returns the object in the form of hash
|
232
|
-
# @return [Hash] Returns the object in the form of hash
|
233
|
-
def to_hash
|
234
|
-
hash = {}
|
235
|
-
self.class.attribute_map.each_pair do |attr, param|
|
236
|
-
value = self.send(attr)
|
237
|
-
if value.nil?
|
238
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
239
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
240
|
-
end
|
241
|
-
|
242
|
-
hash[param] = _to_hash(value)
|
243
|
-
end
|
244
|
-
hash
|
245
|
-
end
|
246
|
-
|
247
|
-
# Outputs non-array value in the form of hash
|
248
|
-
# For object, use to_hash. Otherwise, just return the value
|
249
|
-
# @param [Object] value Any valid value
|
250
|
-
# @return [Hash] Returns the value in the form of hash
|
251
|
-
def _to_hash(value)
|
252
|
-
if value.is_a?(Array)
|
253
|
-
value.compact.map { |v| _to_hash(v) }
|
254
|
-
elsif value.is_a?(Hash)
|
255
|
-
{}.tap do |hash|
|
256
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
257
|
-
end
|
258
|
-
elsif value.respond_to? :to_hash
|
259
|
-
value.to_hash
|
260
|
-
else
|
261
|
-
value
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
end
|
266
|
-
|
267
|
-
end
|