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
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module KatapultAPI
|
17
17
|
# The organization is not permitted to use flexible resources
|
18
|
-
class
|
18
|
+
class FlexibleResourcesUnavailableToOrganizationSchema
|
19
19
|
attr_accessor :code
|
20
20
|
|
21
21
|
attr_accessor :description
|
@@ -61,7 +61,7 @@ module KatapultAPI
|
|
61
61
|
# Attribute type mapping.
|
62
62
|
def self.openapi_types
|
63
63
|
{
|
64
|
-
:'code' => :'
|
64
|
+
:'code' => :'FlexibleResourcesUnavailableToOrganizationEnum',
|
65
65
|
:'description' => :'String',
|
66
66
|
:'detail' => :'Object'
|
67
67
|
}
|
@@ -77,13 +77,13 @@ module KatapultAPI
|
|
77
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
78
|
def initialize(attributes = {})
|
79
79
|
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KatapultAPI::FlexibleResourcesUnavailableToOrganizationSchema` initialize method"
|
81
81
|
end
|
82
82
|
|
83
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
84
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
85
|
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KatapultAPI::FlexibleResourcesUnavailableToOrganizationSchema`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
87
|
end
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
@@ -113,21 +113,9 @@ module KatapultAPI
|
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
-
code_validator = EnumAttributeValidator.new('String', ["flexible_resources_unavailable_to_organization"])
|
117
|
-
return false unless code_validator.valid?(@code)
|
118
116
|
true
|
119
117
|
end
|
120
118
|
|
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', ["flexible_resources_unavailable_to_organization"])
|
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
119
|
# Checks equality by comparing each attribute.
|
132
120
|
# @param [Object] Object to be compared
|
133
121
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'CertificateNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["certificate_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["certificate_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'CountryNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["country_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["country_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'CountryStateNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["country_state_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["country_state_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'CurrencyNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["currency_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["currency_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DataCenterNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["data_center_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["data_center_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'MissingAPITokenEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["missing_api_token"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["missing_api_token"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'RateLimitReachedEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'RateLimitReached'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["rate_limit_reached"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["rate_limit_reached"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DiskNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["disk_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["disk_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DiskBackupPolicyNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["disk_backup_policy_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["disk_backup_policy_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DiskTemplateNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["disk_template_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["disk_template_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DiskTemplateVersionNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["disk_template_version_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["disk_template_version_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DNSRecordNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["dns_record_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["dns_record_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DNSZoneNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["dns_zone_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["dns_zone_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'DNSZoneAlreadyVerifiedEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["dns_zone_already_verified"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["dns_zone_already_verified"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'FileStorageVolumeNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["file_storage_volume_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["file_storage_volume_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'GPUTypeNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["gpu_type_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["gpu_type_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'IPAddressNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["ip_address_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["ip_address_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'LoadBalancerNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["load_balancer_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["load_balancer_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|
@@ -60,7 +60,7 @@ module KatapultAPI
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'code' => :'
|
63
|
+
:'code' => :'LoadBalancerRuleNotFoundEnum',
|
64
64
|
:'description' => :'String',
|
65
65
|
:'detail' => :'Object'
|
66
66
|
}
|
@@ -112,21 +112,9 @@ module KatapultAPI
|
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
|
-
code_validator = EnumAttributeValidator.new('String', ["load_balancer_rule_not_found"])
|
116
|
-
return false unless code_validator.valid?(@code)
|
117
115
|
true
|
118
116
|
end
|
119
117
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] code Object to be assigned
|
122
|
-
def code=(code)
|
123
|
-
validator = EnumAttributeValidator.new('String', ["load_balancer_rule_not_found"])
|
124
|
-
unless validator.valid?(code)
|
125
|
-
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
126
|
-
end
|
127
|
-
@code = code
|
128
|
-
end
|
129
|
-
|
130
118
|
# Checks equality by comparing each attribute.
|
131
119
|
# @param [Object] Object to be compared
|
132
120
|
def ==(o)
|