From b47a928799372064db5903db19eaa6d59a958d0e Mon Sep 17 00:00:00 2001 From: Przemyslaw Hejman Date: Wed, 5 Apr 2023 13:24:33 +0200 Subject: [PATCH] Align generated code with `ms-89` --- Makefile | 2 +- api/apidocs-user.json | 240 ++++++++- api/apidocs.json | 474 ++++++++++++------ .../platformapi/allocatorapi/search_test.go | 2 +- pkg/api/platformapi/runnerapi/search_test.go | 2 +- pkg/api/version.go | 2 +- pkg/client/accounts/accounts_client.go | 12 +- .../get_current_account_parameters.go | 8 +- .../accounts/get_current_account_responses.go | 76 ++- .../patch_current_account_parameters.go | 8 +- .../patch_current_account_responses.go | 76 ++- .../update_current_account_parameters.go | 8 +- .../update_current_account_responses.go | 76 ++- .../authentication/authentication_client.go | 82 +-- .../create_api_key_parameters.go | 8 +- .../create_api_key_responses.go | 114 ++++- .../delete_api_key_parameters.go | 8 +- .../delete_api_key_responses.go | 114 ++++- .../delete_api_keys_parameters.go | 8 +- .../delete_api_keys_responses.go | 76 ++- .../delete_user_api_key_parameters.go | 8 +- .../delete_user_api_key_responses.go | 114 ++++- .../delete_user_api_keys_parameters.go | 8 +- .../delete_user_api_keys_responses.go | 114 ++++- .../delete_users_api_keys_parameters.go | 8 +- .../delete_users_api_keys_responses.go | 76 ++- ...disable_elevated_permissions_parameters.go | 8 +- .../disable_elevated_permissions_responses.go | 152 +++++- .../enable_elevated_permissions_parameters.go | 8 +- .../enable_elevated_permissions_responses.go | 190 ++++++- .../authentication/get_api_key_parameters.go | 8 +- .../authentication/get_api_key_responses.go | 76 ++- .../authentication/get_api_keys_parameters.go | 8 +- .../authentication/get_api_keys_responses.go | 38 +- .../get_authentication_info_parameters.go | 8 +- .../get_authentication_info_responses.go | 38 +- .../get_user_api_key_parameters.go | 8 +- .../get_user_api_key_responses.go | 76 ++- .../get_user_api_keys_parameters.go | 8 +- .../get_user_api_keys_responses.go | 76 ++- .../get_users_api_keys_parameters.go | 8 +- .../get_users_api_keys_responses.go | 38 +- pkg/client/authentication/login_parameters.go | 8 +- pkg/client/authentication/login_responses.go | 190 ++++++- .../authentication/logout_parameters.go | 8 +- pkg/client/authentication/logout_responses.go | 114 ++++- .../authentication/methods_parameters.go | 8 +- .../authentication/methods_responses.go | 38 +- .../refresh_token_parameters.go | 8 +- .../authentication/refresh_token_responses.go | 152 +++++- .../saml_callback_parameters.go | 8 +- .../authentication/saml_callback_responses.go | 152 +++++- .../authentication/saml_init_parameters.go | 8 +- .../authentication/saml_init_responses.go | 114 ++++- .../billing_costs_analysis_client.go | 24 +- ...t_costs_charts_by_deployment_parameters.go | 8 +- ...et_costs_charts_by_deployment_responses.go | 190 ++++++- .../get_costs_charts_parameters.go | 8 +- .../get_costs_charts_responses.go | 190 ++++++- .../get_costs_deployments_parameters.go | 8 +- .../get_costs_deployments_responses.go | 190 ++++++- ...et_costs_items_by_deployment_parameters.go | 8 +- ...get_costs_items_by_deployment_responses.go | 193 ++++++- .../get_costs_items_parameters.go | 8 +- .../get_costs_items_responses.go | 190 ++++++- .../get_costs_overview_parameters.go | 8 +- .../get_costs_overview_responses.go | 190 ++++++- pkg/client/comments/comments_client.go | 20 +- .../comments/create_comment_parameters.go | 8 +- .../comments/create_comment_responses.go | 152 +++++- .../comments/delete_comment_parameters.go | 8 +- .../comments/delete_comment_responses.go | 155 +++++- pkg/client/comments/get_comment_parameters.go | 8 +- pkg/client/comments/get_comment_responses.go | 76 ++- .../comments/list_comment_parameters.go | 8 +- pkg/client/comments/list_comment_responses.go | 38 +- .../comments/update_comment_parameters.go | 8 +- .../comments/update_comment_responses.go | 155 +++++- ...reate_deployment_template_v2_parameters.go | 8 +- ...create_deployment_template_v2_responses.go | 190 ++++++- ...elete_deployment_template_v2_parameters.go | 8 +- ...delete_deployment_template_v2_responses.go | 190 ++++++- .../deployment_templates_client.go | 20 +- .../get_deployment_template_v2_parameters.go | 8 +- .../get_deployment_template_v2_responses.go | 152 +++++- .../get_deployment_templates_v2_parameters.go | 8 +- .../get_deployment_templates_v2_responses.go | 114 ++++- .../set_deployment_template_v2_parameters.go | 8 +- .../set_deployment_template_v2_responses.go | 266 +++++++++- ...oyment_resource_pending_plan_parameters.go | 8 +- ...loyment_resource_pending_plan_responses.go | 190 ++++++- ...eployment_instance_heap_dump_parameters.go | 8 +- ...deployment_instance_heap_dump_responses.go | 117 ++++- ...loyment_instance_thread_dump_parameters.go | 8 +- ...ployment_instance_thread_dump_responses.go | 79 ++- ...loyment_resource_diagnostics_parameters.go | 8 +- ...ployment_resource_diagnostics_responses.go | 155 +++++- .../create_deployment_parameters.go | 8 +- .../create_deployment_responses.go | 190 ++++++- .../delete_deployment_parameters.go | 8 +- ...ment_resource_proxy_requests_parameters.go | 8 +- ...yment_resource_proxy_requests_responses.go | 117 ++++- .../delete_deployment_responses.go | 152 +++++- ...eployment_stateless_resource_parameters.go | 8 +- ...deployment_stateless_resource_responses.go | 193 ++++++- ...yment_apm_reset_secret_token_parameters.go | 8 +- ...oyment_apm_reset_secret_token_responses.go | 193 ++++++- pkg/client/deployments/deployments_client.go | 250 ++++----- ...eployment_instance_heap_dump_parameters.go | 8 +- ...deployment_instance_heap_dump_responses.go | 117 ++++- ...able_deployment_resource_ccr_parameters.go | 8 +- ...nable_deployment_resource_ccr_responses.go | 117 ++++- ...able_deployment_resource_ilm_parameters.go | 8 +- ...nable_deployment_resource_ilm_responses.go | 155 +++++- ...able_deployment_resource_slm_parameters.go | 8 +- ...nable_deployment_resource_slm_responses.go | 155 +++++- ...get_appsearch_read_only_mode_parameters.go | 8 +- .../get_appsearch_read_only_mode_responses.go | 114 ++++- ...deployment_apm_resource_info_parameters.go | 8 +- ..._deployment_apm_resource_info_responses.go | 114 ++++- ...ment_appsearch_resource_info_parameters.go | 8 +- ...yment_appsearch_resource_info_responses.go | 114 ++++- ...oyment_certificate_authority_parameters.go | 8 +- ...loyment_certificate_authority_responses.go | 79 ++- ...erprise_search_resource_info_parameters.go | 8 +- ...terprise_search_resource_info_responses.go | 114 ++++- ...rce_eligible_remote_clusters_parameters.go | 8 +- ...urce_eligible_remote_clusters_responses.go | 117 ++++- ..._deployment_es_resource_info_parameters.go | 8 +- ...t_deployment_es_resource_info_responses.go | 114 ++++- ...loyment_es_resource_keystore_parameters.go | 8 +- ...ployment_es_resource_keystore_responses.go | 155 +++++- ..._es_resource_remote_clusters_parameters.go | 8 +- ...t_es_resource_remote_clusters_responses.go | 79 ++- .../get_deployment_heap_dumps_parameters.go | 8 +- .../get_deployment_heap_dumps_responses.go | 76 ++- ...rations_server_resource_info_parameters.go | 8 +- ...grations_server_resource_info_responses.go | 114 ++++- ...deployment_kib_resource_info_parameters.go | 8 +- ..._deployment_kib_resource_info_responses.go | 114 ++++- .../deployments/get_deployment_parameters.go | 8 +- ...yment_resource_plan_activity_parameters.go | 8 +- ...oyment_resource_plan_activity_responses.go | 79 ++- ...ment_resource_proxy_requests_parameters.go | 8 +- ...yment_resource_proxy_requests_responses.go | 117 ++++- .../deployments/get_deployment_responses.go | 114 ++++- ...ent_upgrade_assistant_status_parameters.go | 8 +- ...ment_upgrade_assistant_status_responses.go | 76 ++- .../list_deployments_parameters.go | 8 +- .../deployments/list_deployments_responses.go | 76 ++- .../migrate_deployment_template_parameters.go | 8 +- .../migrate_deployment_template_responses.go | 152 +++++- ...ticsearch_resource_instances_parameters.go | 8 +- ...sticsearch_resource_instances_responses.go | 155 +++++- ...ment_resource_proxy_requests_parameters.go | 8 +- ...yment_resource_proxy_requests_responses.go | 117 ++++- ...ment_resource_proxy_requests_parameters.go | 8 +- ...yment_resource_proxy_requests_responses.go | 117 ++++- ..._elasticsearch_user_password_parameters.go | 8 +- ...t_elasticsearch_user_password_responses.go | 155 +++++- ...start_deployment_es_resource_parameters.go | 8 +- ...estart_deployment_es_resource_responses.go | 193 ++++++- ...eployment_stateless_resource_parameters.go | 8 +- ...deployment_stateless_resource_responses.go | 193 ++++++- .../restore_deployment_parameters.go | 8 +- .../restore_deployment_resource_parameters.go | 8 +- .../restore_deployment_resource_responses.go | 155 +++++- .../restore_deployment_responses.go | 152 +++++- .../resync_deployment_parameters.go | 8 +- .../resync_deployment_responses.go | 114 ++++- .../resync_deployments_parameters.go | 8 +- .../resync_deployments_responses.go | 114 ++++- .../search_deployments_parameters.go | 8 +- .../search_deployments_responses.go | 38 +- ...rch_eligible_remote_clusters_parameters.go | 8 +- ...arch_eligible_remote_clusters_responses.go | 76 ++- ...instances_settings_overrides_parameters.go | 8 +- ..._instances_settings_overrides_responses.go | 117 ++++- ...set_appsearch_read_only_mode_parameters.go | 8 +- .../set_appsearch_read_only_mode_responses.go | 152 +++++- ...loyment_es_resource_keystore_parameters.go | 8 +- ...ployment_es_resource_keystore_responses.go | 155 +++++- ..._es_resource_remote_clusters_parameters.go | 8 +- ...t_es_resource_remote_clusters_responses.go | 117 ++++- ...oyment_resource_raw_metadata_parameters.go | 8 +- ...loyment_resource_raw_metadata_responses.go | 193 ++++++- ..._instance_settings_overrides_parameters.go | 8 +- ...t_instance_settings_overrides_responses.go | 117 ++++- ...tdown_deployment_es_resource_parameters.go | 8 +- ...utdown_deployment_es_resource_responses.go | 155 +++++- .../shutdown_deployment_parameters.go | 8 +- .../shutdown_deployment_responses.go | 152 +++++- ...eployment_stateless_resource_parameters.go | 8 +- ...deployment_stateless_resource_responses.go | 193 ++++++- ...stances_all_maintenance_mode_parameters.go | 8 +- ...nstances_all_maintenance_mode_responses.go | 193 ++++++- ...yment_resource_instances_all_parameters.go | 8 +- ...oyment_resource_instances_all_responses.go | 193 ++++++- ...eployment_resource_instances_parameters.go | 8 +- ...deployment_resource_instances_responses.go | 193 ++++++- ...nt_resource_maintenance_mode_parameters.go | 8 +- ...ent_resource_maintenance_mode_responses.go | 193 ++++++- ...stances_all_maintenance_mode_parameters.go | 8 +- ...nstances_all_maintenance_mode_responses.go | 193 ++++++- ...yment_resource_instances_all_parameters.go | 8 +- ...oyment_resource_instances_all_responses.go | 193 ++++++- ...eployment_resource_instances_parameters.go | 8 +- ...deployment_resource_instances_responses.go | 193 ++++++- ...nt_resource_maintenance_mode_parameters.go | 8 +- ...ent_resource_maintenance_mode_responses.go | 193 ++++++- .../update_deployment_parameters.go | 8 +- .../update_deployment_responses.go | 152 +++++- ...eployment_stateless_resource_parameters.go | 8 +- ...deployment_stateless_resource_responses.go | 117 ++++- .../create_deployment_note_parameters.go | 8 +- .../create_deployment_note_responses.go | 114 ++++- .../delete_deployment_note_parameters.go | 8 +- .../delete_deployment_note_responses.go | 117 ++++- .../deployments_notes_client.go | 25 +- .../get_deployment_note_parameters.go | 8 +- .../get_deployment_note_responses.go | 79 ++- .../get_deployment_notes_parameters.go | 8 +- .../get_deployment_notes_responses.go | 76 ++- .../update_deployment_note_parameters.go | 8 +- .../update_deployment_note_responses.go | 117 ++++- ...c_filter_ruleset_association_parameters.go | 8 +- ...ic_filter_ruleset_association_responses.go | 152 +++++- ...reate_traffic_filter_ruleset_parameters.go | 8 +- ...create_traffic_filter_ruleset_responses.go | 76 ++- ...c_filter_ruleset_association_parameters.go | 8 +- ...ic_filter_ruleset_association_responses.go | 114 ++++- ...elete_traffic_filter_ruleset_parameters.go | 8 +- ...delete_traffic_filter_ruleset_responses.go | 114 ++++- .../deployments_traffic_filter_client.go | 36 +- ...loyment_ruleset_associations_parameters.go | 8 +- ...ployment_ruleset_associations_responses.go | 114 ++++- ...eset_deployment_associations_parameters.go | 8 +- ...leset_deployment_associations_responses.go | 76 ++- .../get_traffic_filter_ruleset_parameters.go | 8 +- .../get_traffic_filter_ruleset_responses.go | 114 ++++- .../get_traffic_filter_rulesets_parameters.go | 8 +- .../get_traffic_filter_rulesets_responses.go | 76 ++- ...pdate_traffic_filter_ruleset_parameters.go | 8 +- ...update_traffic_filter_ruleset_responses.go | 114 ++++- .../extensions/create_extension_parameters.go | 8 +- .../extensions/create_extension_responses.go | 152 +++++- .../extensions/delete_extension_parameters.go | 8 +- .../extensions/delete_extension_responses.go | 155 +++++- pkg/client/extensions/extensions_client.go | 30 +- .../extensions/get_extension_parameters.go | 8 +- .../extensions/get_extension_responses.go | 76 ++- .../extensions/list_extensions_parameters.go | 8 +- .../extensions/list_extensions_responses.go | 38 +- .../extensions/update_extension_parameters.go | 8 +- .../extensions/update_extension_responses.go | 193 ++++++- .../extensions/upload_extension_parameters.go | 8 +- .../extensions/upload_extension_responses.go | 155 +++++- ...cept_organization_invitation_parameters.go | 8 +- ...ccept_organization_invitation_responses.go | 155 +++++- ...ate_organization_invitations_parameters.go | 8 +- ...eate_organization_invitations_responses.go | 196 +++++++- ...ete_organization_invitations_parameters.go | 8 +- ...lete_organization_invitations_responses.go | 117 ++++- ...ete_organization_memberships_parameters.go | 8 +- ...lete_organization_memberships_responses.go | 79 ++- .../get_organization_invitation_parameters.go | 8 +- .../get_organization_invitation_responses.go | 76 ++- .../get_organization_parameters.go | 8 +- .../get_organization_responses.go | 152 +++++- ...ist_organization_invitations_parameters.go | 8 +- ...list_organization_invitations_responses.go | 76 ++- .../list_organization_members_parameters.go | 8 +- .../list_organization_members_responses.go | 76 ++- .../list_organizations_parameters.go | 8 +- .../list_organizations_responses.go | 76 ++- .../organizations/organizations_client.go | 41 +- .../update_organization_parameters.go | 8 +- .../update_organization_responses.go | 193 ++++++- .../delete_extra_certificate_parameters.go | 8 +- .../delete_extra_certificate_responses.go | 76 ++- .../get_extra_certificate_parameters.go | 8 +- .../get_extra_certificate_responses.go | 76 ++- .../get_extra_certificates_parameters.go | 8 +- .../get_extra_certificates_responses.go | 38 +- .../platform/get_platform_parameters.go | 8 +- pkg/client/platform/get_platform_responses.go | 38 +- pkg/client/platform/platform_client.go | 20 +- .../set_extra_certificate_parameters.go | 8 +- .../set_extra_certificate_responses.go | 76 ++- ...reate_instance_configuration_parameters.go | 8 +- ...create_instance_configuration_responses.go | 152 +++++- ...elete_instance_configuration_parameters.go | 8 +- ...delete_instance_configuration_responses.go | 152 +++++- .../get_instance_configuration_parameters.go | 8 +- .../get_instance_configuration_responses.go | 76 ++- .../get_instance_configurations_parameters.go | 8 +- .../get_instance_configurations_responses.go | 38 +- ...platform_configuration_instances_client.go | 20 +- .../set_instance_configuration_parameters.go | 8 +- .../set_instance_configuration_responses.go | 228 ++++++++- ...fault_deployment_domain_name_parameters.go | 8 +- ...efault_deployment_domain_name_responses.go | 76 ++- ..._kind_deployment_domain_name_parameters.go | 8 +- ...e_kind_deployment_domain_name_responses.go | 76 ++- ...latform_configuration_networking_client.go | 16 +- ...fault_deployment_domain_name_parameters.go | 8 +- ...efault_deployment_domain_name_responses.go | 190 ++++++- ..._kind_deployment_domain_name_parameters.go | 8 +- ...e_kind_deployment_domain_name_responses.go | 190 ++++++- ...tive_directory_configuration_parameters.go | 8 +- ...ctive_directory_configuration_responses.go | 117 ++++- .../create_enrollment_token_parameters.go | 8 +- .../create_enrollment_token_responses.go | 152 +++++- .../create_ldap_configuration_parameters.go | 8 +- .../create_ldap_configuration_responses.go | 117 ++++- .../create_saml_configuration_parameters.go | 8 +- .../create_saml_configuration_responses.go | 117 ++++- .../create_security_deployment_parameters.go | 8 +- .../create_security_deployment_responses.go | 117 ++++- ...tive_directory_configuration_parameters.go | 8 +- ...ctive_directory_configuration_responses.go | 152 +++++- .../delete_enrollment_token_parameters.go | 8 +- .../delete_enrollment_token_responses.go | 114 ++++- .../delete_ldap_configuration_parameters.go | 8 +- .../delete_ldap_configuration_responses.go | 152 +++++- .../delete_saml_configuration_parameters.go | 8 +- .../delete_saml_configuration_responses.go | 152 +++++- ...tive_directory_configuration_parameters.go | 8 +- ...ctive_directory_configuration_responses.go | 76 ++- .../get_enrollment_tokens_parameters.go | 8 +- .../get_enrollment_tokens_responses.go | 76 ++- .../get_ldap_configuration_parameters.go | 8 +- .../get_ldap_configuration_responses.go | 76 ++- .../get_saml_configuration_parameters.go | 8 +- .../get_saml_configuration_responses.go | 76 ++- .../get_security_deployment_parameters.go | 8 +- .../get_security_deployment_responses.go | 76 ++- ...ecurity_realm_configurations_parameters.go | 8 +- ...security_realm_configurations_responses.go | 38 +- .../get_tls_certificate_parameters.go | 8 +- .../get_tls_certificate_responses.go | 38 +- .../platform_configuration_security_client.go | 88 ++-- .../reorder_security_realms_parameters.go | 8 +- .../reorder_security_realms_responses.go | 117 ++++- .../set_tls_certificate_parameters.go | 8 +- .../set_tls_certificate_responses.go | 76 ++- ...tive_directory_configuration_parameters.go | 8 +- ...ctive_directory_configuration_responses.go | 193 ++++++- .../update_ldap_configuration_parameters.go | 8 +- .../update_ldap_configuration_responses.go | 193 ++++++- .../update_saml_configuration_parameters.go | 8 +- .../update_saml_configuration_responses.go | 193 ++++++- .../update_security_deployment_parameters.go | 8 +- .../update_security_deployment_responses.go | 155 +++++- .../delete_snapshot_repository_parameters.go | 8 +- .../delete_snapshot_repository_responses.go | 152 +++++- .../get_snapshot_repositories_parameters.go | 8 +- .../get_snapshot_repositories_responses.go | 38 +- .../get_snapshot_repository_parameters.go | 8 +- .../get_snapshot_repository_responses.go | 38 +- ...platform_configuration_snapshots_client.go | 16 +- .../set_snapshot_repository_parameters.go | 8 +- .../set_snapshot_repository_responses.go | 76 ++- ..._global_deployment_templates_parameters.go | 8 +- ...t_global_deployment_templates_responses.go | 38 +- ...platform_configuration_templates_client.go | 4 +- .../create_trust_relationship_parameters.go | 8 +- .../create_trust_relationship_responses.go | 114 ++++- .../delete_trust_relationship_parameters.go | 8 +- .../delete_trust_relationship_responses.go | 114 ++++- .../get_trust_relationship_parameters.go | 8 +- .../get_trust_relationship_responses.go | 114 ++++- .../get_trust_relationships_parameters.go | 8 +- .../get_trust_relationships_responses.go | 76 ++- ...onfiguration_trust_relationships_client.go | 20 +- .../update_trust_relationship_parameters.go | 8 +- .../update_trust_relationship_responses.go | 152 +++++- .../add_blueprinter_blessing_parameters.go | 8 +- .../add_blueprinter_blessing_responses.go | 114 ++++- .../create_blueprinter_role_parameters.go | 8 +- .../create_blueprinter_role_responses.go | 76 ++- .../create_config_store_option_parameters.go | 8 +- .../create_config_store_option_responses.go | 76 ++- ...reate_proxies_filtered_group_parameters.go | 8 +- ...create_proxies_filtered_group_responses.go | 117 ++++- ...dminconsole_logging_settings_parameters.go | 8 +- ...adminconsole_logging_settings_responses.go | 76 ++- ...e_allocator_logging_settings_parameters.go | 8 +- ...te_allocator_logging_settings_responses.go | 76 ++- ...lete_allocator_metadata_item_parameters.go | 8 +- ...elete_allocator_metadata_item_responses.go | 114 ++++- .../delete_allocator_parameters.go | 8 +- .../delete_allocator_responses.go | 155 +++++- .../delete_blueprinter_role_parameters.go | 8 +- .../delete_blueprinter_role_responses.go | 152 +++++- .../delete_config_store_option_parameters.go | 8 +- .../delete_config_store_option_responses.go | 76 ++- ...constructor_logging_settings_parameters.go | 8 +- ..._constructor_logging_settings_responses.go | 76 ++- ...delete_coordinator_candidate_parameters.go | 8 +- .../delete_coordinator_candidate_responses.go | 152 +++++- .../delete_license_parameters.go | 8 +- .../delete_license_responses.go | 114 ++++- ...elete_proxies_filtered_group_parameters.go | 8 +- ...delete_proxies_filtered_group_responses.go | 152 +++++- ...lete_runner_logging_settings_parameters.go | 8 +- ...elete_runner_logging_settings_responses.go | 76 ++- .../delete_runner_parameters.go | 8 +- .../delete_runner_responses.go | 152 +++++- .../demote_coordinator_parameters.go | 8 +- .../demote_coordinator_responses.go | 152 +++++- ...dminconsole_logging_settings_parameters.go | 8 +- ...adminconsole_logging_settings_responses.go | 76 ++- .../get_adminconsoles_parameters.go | 8 +- .../get_adminconsoles_responses.go | 38 +- ...t_allocator_logging_settings_parameters.go | 8 +- ...et_allocator_logging_settings_responses.go | 76 ++- .../get_allocator_metadata_parameters.go | 8 +- .../get_allocator_metadata_responses.go | 76 ++- .../get_allocator_parameters.go | 8 +- .../get_allocator_responses.go | 76 ++- .../get_allocator_settings_parameters.go | 8 +- .../get_allocator_settings_responses.go | 76 ++- .../get_allocators_parameters.go | 8 +- .../get_allocators_responses.go | 38 +- .../get_api_base_url_parameters.go | 8 +- .../get_api_base_url_responses.go | 114 ++++- .../get_blueprinter_role_parameters.go | 8 +- .../get_blueprinter_role_responses.go | 76 ++- .../get_config_store_option_parameters.go | 8 +- .../get_config_store_option_responses.go | 76 ++- ...constructor_logging_settings_parameters.go | 8 +- ..._constructor_logging_settings_responses.go | 76 ++- .../get_constructor_parameters.go | 8 +- .../get_constructor_responses.go | 76 ++- .../get_constructors_parameters.go | 8 +- .../get_constructors_responses.go | 38 +- .../get_coordinator_candidate_parameters.go | 8 +- .../get_coordinator_candidate_responses.go | 76 ++- .../get_coordinator_candidates_parameters.go | 8 +- .../get_coordinator_candidates_responses.go | 38 +- .../get_coordinator_parameters.go | 8 +- .../get_coordinator_responses.go | 76 ++- .../get_coordinators_parameters.go | 8 +- .../get_coordinators_responses.go | 38 +- .../get_license_parameters.go | 8 +- .../get_license_responses.go | 76 ++- ...roxies_filtered_group_health_parameters.go | 8 +- ...proxies_filtered_group_health_responses.go | 114 ++++- .../get_proxies_filtered_group_parameters.go | 8 +- .../get_proxies_filtered_group_responses.go | 76 ++- .../get_proxies_health_parameters.go | 8 +- .../get_proxies_health_responses.go | 114 ++++- .../get_proxies_parameters.go | 8 +- .../get_proxies_responses.go | 38 +- .../get_proxies_settings_parameters.go | 8 +- .../get_proxies_settings_responses.go | 38 +- .../get_proxy_parameters.go | 8 +- .../get_proxy_responses.go | 76 ++- .../get_runner_logging_settings_parameters.go | 8 +- .../get_runner_logging_settings_responses.go | 76 ++- .../get_runner_parameters.go | 8 +- .../get_runner_responses.go | 76 ++- .../get_runners_parameters.go | 8 +- .../get_runners_responses.go | 38 +- .../list_blueprinter_roles_parameters.go | 8 +- .../list_blueprinter_roles_responses.go | 38 +- .../list_config_store_option_parameters.go | 8 +- .../list_config_store_option_responses.go | 38 +- .../move_clusters_by_type_parameters.go | 8 +- .../move_clusters_by_type_responses.go | 155 +++++- .../move_clusters_parameters.go | 8 +- .../move_clusters_responses.go | 155 +++++- .../platform_infrastructure_client.go | 331 ++++++------ ...romote_coordinator_candidate_parameters.go | 8 +- ...promote_coordinator_candidate_responses.go | 114 ++++- .../put_config_store_option_parameters.go | 8 +- .../put_config_store_option_responses.go | 114 ++++- .../resync_allocator_parameters.go | 8 +- .../resync_allocator_responses.go | 114 ++++- .../resync_allocators_parameters.go | 8 +- .../resync_allocators_responses.go | 76 ++- .../resync_constructor_parameters.go | 8 +- .../resync_constructor_responses.go | 114 ++++- .../resync_constructors_parameters.go | 8 +- .../resync_constructors_responses.go | 76 ++- .../resync_runner_parameters.go | 8 +- .../resync_runner_responses.go | 114 ++++- .../resync_runners_parameters.go | 8 +- .../resync_runners_responses.go | 76 ++- .../search_allocators_parameters.go | 8 +- .../search_allocators_responses.go | 38 +- .../search_runners_parameters.go | 8 +- .../search_runners_responses.go | 76 ++- ...dminconsole_logging_settings_parameters.go | 8 +- ...adminconsole_logging_settings_responses.go | 76 ++- ...t_allocator_logging_settings_parameters.go | 8 +- ...et_allocator_logging_settings_responses.go | 76 ++- .../set_allocator_metadata_item_parameters.go | 8 +- .../set_allocator_metadata_item_responses.go | 155 +++++- .../set_allocator_metadata_parameters.go | 8 +- .../set_allocator_metadata_responses.go | 152 +++++- .../set_allocator_settings_parameters.go | 8 +- .../set_allocator_settings_responses.go | 114 ++++- .../set_api_base_url_parameters.go | 8 +- .../set_api_base_url_responses.go | 190 ++++++- .../set_blueprinter_blessings_parameters.go | 8 +- .../set_blueprinter_blessings_responses.go | 114 ++++- ...constructor_logging_settings_parameters.go | 8 +- ..._constructor_logging_settings_responses.go | 76 ++- .../set_license_parameters.go | 8 +- .../set_license_responses.go | 114 ++++- .../set_proxies_settings_parameters.go | 8 +- .../set_proxies_settings_responses.go | 114 ++++- .../set_runner_logging_settings_parameters.go | 8 +- .../set_runner_logging_settings_responses.go | 76 ++- .../set_runner_roles_parameters.go | 8 +- .../set_runner_roles_responses.go | 152 +++++- ...t_allocator_maintenance_mode_parameters.go | 8 +- ...rt_allocator_maintenance_mode_responses.go | 152 +++++- ...constructor_maintenance_mode_parameters.go | 8 +- ..._constructor_maintenance_mode_responses.go | 152 +++++- ...p_allocator_maintenance_mode_parameters.go | 8 +- ...op_allocator_maintenance_mode_responses.go | 152 +++++- ...constructor_maintenance_mode_parameters.go | 8 +- ..._constructor_maintenance_mode_responses.go | 152 +++++- ...dminconsole_logging_settings_parameters.go | 8 +- ...adminconsole_logging_settings_responses.go | 114 ++++- ...e_allocator_logging_settings_parameters.go | 8 +- ...te_allocator_logging_settings_responses.go | 114 ++++- .../update_allocator_settings_parameters.go | 8 +- .../update_allocator_settings_responses.go | 114 ++++- .../update_blueprinter_role_parameters.go | 8 +- .../update_blueprinter_role_responses.go | 152 +++++- ...constructor_logging_settings_parameters.go | 8 +- ..._constructor_logging_settings_responses.go | 114 ++++- ...pdate_proxies_filtered_group_parameters.go | 8 +- ...update_proxies_filtered_group_responses.go | 152 +++++- .../update_proxies_settings_parameters.go | 8 +- .../update_proxies_settings_responses.go | 114 ++++- ...date_runner_logging_settings_parameters.go | 8 +- ...pdate_runner_logging_settings_responses.go | 114 ++++- .../stack/delete_version_stack_parameters.go | 8 +- .../stack/delete_version_stack_responses.go | 114 ++++- .../stack/get_instance_types_parameters.go | 8 +- .../stack/get_instance_types_responses.go | 38 +- .../stack/get_version_stack_parameters.go | 8 +- .../stack/get_version_stack_responses.go | 76 ++- .../stack/get_version_stacks_parameters.go | 8 +- .../stack/get_version_stacks_responses.go | 38 +- pkg/client/stack/stack_client.go | 25 +- .../stack/update_stack_packs_parameters.go | 8 +- .../stack/update_stack_packs_responses.go | 79 ++- .../stack/update_version_stack_parameters.go | 8 +- .../stack/update_version_stack_responses.go | 76 ++- .../get_telemetry_config_parameters.go | 8 +- .../get_telemetry_config_responses.go | 76 ++- .../set_telemetry_config_parameters.go | 8 +- .../set_telemetry_config_responses.go | 190 ++++++- pkg/client/telemetry/telemetry_client.go | 8 +- .../get_trusted_envs_parameters.go | 8 +- .../get_trusted_envs_responses.go | 76 ++- .../trusted_environments_client.go | 4 +- pkg/client/users/create_user_parameters.go | 8 +- pkg/client/users/create_user_responses.go | 155 +++++- pkg/client/users/delete_user_parameters.go | 8 +- pkg/client/users/delete_user_responses.go | 155 +++++- .../users/get_current_user_parameters.go | 8 +- .../users/get_current_user_responses.go | 76 ++- pkg/client/users/get_user_parameters.go | 8 +- pkg/client/users/get_user_responses.go | 76 ++- pkg/client/users/get_users_parameters.go | 8 +- pkg/client/users/get_users_responses.go | 38 +- .../users/update_current_user_parameters.go | 8 +- .../users/update_current_user_responses.go | 117 ++++- pkg/client/users/update_user_parameters.go | 8 +- pkg/client/users/update_user_responses.go | 155 +++++- pkg/client/users/users_client.go | 28 +- pkg/models/account_response.go | 4 + pkg/models/account_update_request.go | 4 + ...ctory_security_realm_role_mapping_rules.go | 4 + pkg/models/active_directory_settings.go | 16 + pkg/models/adminconsoles_overview.go | 4 + pkg/models/allocated_instance_status.go | 4 + pkg/models/allocator_capacity.go | 4 + pkg/models/allocator_health_status.go | 4 + pkg/models/allocator_info.go | 28 ++ pkg/models/allocator_overview.go | 4 + pkg/models/allocator_zone_info.go | 4 + pkg/models/allocators_summary.go | 4 + pkg/models/api_keys_response.go | 4 + pkg/models/apm_configuration.go | 4 + pkg/models/apm_info.go | 29 ++ pkg/models/apm_payload.go | 8 + pkg/models/apm_plan.go | 12 + pkg/models/apm_plan_control_configuration.go | 8 + pkg/models/apm_plan_info.go | 20 + pkg/models/apm_plans_info.go | 12 + pkg/models/apm_resource_info.go | 4 + pkg/models/apm_settings.go | 4 + pkg/models/apm_sub_info.go | 5 + pkg/models/apm_topology_element.go | 8 + pkg/models/app_search_configuration.go | 4 + pkg/models/app_search_info.go | 29 ++ pkg/models/app_search_payload.go | 8 + pkg/models/app_search_plan.go | 12 + .../app_search_plan_control_configuration.go | 8 + pkg/models/app_search_plan_info.go | 20 + pkg/models/app_search_plans_info.go | 12 + pkg/models/app_search_resource_info.go | 4 + pkg/models/app_search_settings.go | 4 + pkg/models/app_search_sub_info.go | 5 + pkg/models/app_search_topology_element.go | 12 + .../available_authentication_methods.go | 4 + pkg/models/balance.go | 4 + pkg/models/basic_failed_reply.go | 4 + pkg/models/blessings.go | 5 + pkg/models/blessings_with_meta.go | 8 + pkg/models/bool_query.go | 16 + pkg/models/certificate_authority.go | 4 + pkg/models/chart_item.go | 4 + pkg/models/chart_items.go | 4 + pkg/models/cluster_curation_settings.go | 4 + pkg/models/cluster_instance_info.go | 12 + pkg/models/cluster_metadata_info.go | 8 + .../cluster_metadata_resources_settings.go | 4 + pkg/models/cluster_metadata_settings.go | 4 + pkg/models/cluster_plan_step_info.go | 4 + .../cluster_snapshot_repository_info.go | 8 + pkg/models/cluster_snapshot_settings.go | 8 + pkg/models/cluster_topology_info.go | 4 + pkg/models/comment_with_meta.go | 8 + pkg/models/comments_with_metas.go | 4 + pkg/models/common_cluster_plan_info.go | 16 + pkg/models/compatible_node_types_resource.go | 4 + pkg/models/compatible_version_resource.go | 8 + pkg/models/config_store_option_list.go | 4 + pkg/models/constructor_info.go | 4 + pkg/models/constructor_overview.go | 4 + pkg/models/container_config_host_config.go | 8 + pkg/models/container_sets_summary.go | 4 + pkg/models/containers_entry.go | 4 + pkg/models/containers_entry_options.go | 12 + ...ntainers_entry_options_container_config.go | 4 + .../containers_entry_options_overrides.go | 4 + pkg/models/coordinator_candidate_info.go | 4 + pkg/models/coordinator_candidates_summary.go | 4 + pkg/models/coordinators_summary.go | 4 + pkg/models/costs.go | 4 + pkg/models/costs_overview.go | 8 + pkg/models/creates.go | 24 + pkg/models/delete_users_api_keys_request.go | 4 + pkg/models/deployment_costs.go | 8 + pkg/models/deployment_create_metadata.go | 4 + pkg/models/deployment_create_request.go | 12 + pkg/models/deployment_create_resources.go | 24 + pkg/models/deployment_create_response.go | 8 + pkg/models/deployment_create_settings.go | 8 + pkg/models/deployment_delete_response.go | 4 + pkg/models/deployment_diagnostics.go | 8 + pkg/models/deployment_get_response.go | 16 + pkg/models/deployment_heap_dumps.go | 8 + pkg/models/deployment_logging.go | 4 + pkg/models/deployment_logging_settings.go | 4 + pkg/models/deployment_metadata.go | 4 + pkg/models/deployment_metrics.go | 4 + pkg/models/deployment_metrics_settings.go | 4 + pkg/models/deployment_observability.go | 12 + .../deployment_observability_settings.go | 8 + pkg/models/deployment_resource.go | 8 + .../deployment_resource_command_response.go | 4 + pkg/models/deployment_resources.go | 24 + pkg/models/deployment_search_response.go | 12 + pkg/models/deployment_settings.go | 8 + pkg/models/deployment_shutdown_response.go | 4 + pkg/models/deployment_template_info_v2.go | 20 + .../deployment_template_request_body.go | 12 + pkg/models/deployment_update_metadata.go | 4 + pkg/models/deployment_update_request.go | 12 + pkg/models/deployment_update_resources.go | 24 + pkg/models/deployment_update_response.go | 12 + pkg/models/deployment_update_settings.go | 4 + pkg/models/deployments_costs.go | 4 + pkg/models/deployments_list_response.go | 4 + pkg/models/deployments_listing_data.go | 4 + pkg/models/deployments_search_response.go | 4 + pkg/models/direct_trust_relationship.go | 4 + pkg/models/dts_dimension_costs.go | 8 + pkg/models/elasticsearch_blocking_issues.go | 4 + .../elasticsearch_cluster_blocking_issues.go | 8 + pkg/models/elasticsearch_cluster_info.go | 61 +++ pkg/models/elasticsearch_cluster_plan.go | 16 + pkg/models/elasticsearch_cluster_plan_info.go | 20 + .../elasticsearch_cluster_plans_info.go | 12 + .../elasticsearch_cluster_security_info.go | 8 + pkg/models/elasticsearch_cluster_settings.go | 24 + .../elasticsearch_cluster_topology_element.go | 24 + .../elasticsearch_cluster_trust_settings.go | 12 + pkg/models/elasticsearch_configuration.go | 16 + pkg/models/elasticsearch_info.go | 20 + pkg/models/elasticsearch_master_info.go | 4 + pkg/models/elasticsearch_payload.go | 8 + ...lasticsearch_plan_control_configuration.go | 8 + pkg/models/elasticsearch_resource_info.go | 4 + .../elasticsearch_scripting_user_settings.go | 12 + pkg/models/elasticsearch_shards_info.go | 12 + pkg/models/elasticsearch_system_settings.go | 4 + pkg/models/enable_ilm_request.go | 4 + pkg/models/enterprise_search_configuration.go | 4 + pkg/models/enterprise_search_info.go | 29 ++ pkg/models/enterprise_search_payload.go | 8 + pkg/models/enterprise_search_plan.go | 12 + ...prise_search_plan_control_configuration.go | 8 + pkg/models/enterprise_search_plan_info.go | 20 + pkg/models/enterprise_search_plans_info.go | 12 + pkg/models/enterprise_search_resource_info.go | 4 + pkg/models/enterprise_search_settings.go | 4 + pkg/models/enterprise_search_sub_info.go | 5 + .../enterprise_search_topology_element.go | 12 + pkg/models/extension.go | 4 + pkg/models/extensions.go | 4 + pkg/models/global_deployment_template_info.go | 8 + .../global_deployment_template_region.go | 4 + pkg/models/instance_configuration.go | 8 + pkg/models/instance_configuration_info.go | 4 + pkg/models/instance_type_resource.go | 8 + .../integrations_server_configuration.go | 4 + pkg/models/integrations_server_info.go | 29 ++ pkg/models/integrations_server_payload.go | 8 + pkg/models/integrations_server_plan.go | 12 + ...tions_server_plan_control_configuration.go | 8 + pkg/models/integrations_server_plan_info.go | 20 + pkg/models/integrations_server_plans_info.go | 12 + .../integrations_server_resource_info.go | 4 + pkg/models/integrations_server_settings.go | 4 + .../integrations_server_topology_element.go | 8 + pkg/models/item_costs.go | 4 + pkg/models/items_costs.go | 12 + pkg/models/keystore_contents.go | 5 + pkg/models/kibana_cluster_info.go | 29 ++ pkg/models/kibana_cluster_plan.go | 12 + pkg/models/kibana_cluster_plan_info.go | 20 + pkg/models/kibana_cluster_plans_info.go | 12 + pkg/models/kibana_cluster_settings.go | 4 + pkg/models/kibana_cluster_topology_element.go | 8 + pkg/models/kibana_configuration.go | 4 + pkg/models/kibana_payload.go | 8 + .../kibana_plan_control_configuration.go | 8 + pkg/models/kibana_resource_info.go | 4 + pkg/models/kibana_sub_cluster_info.go | 5 + .../ldap_security_realm_role_mapping_rules.go | 4 + pkg/models/ldap_settings.go | 16 + pkg/models/license_info.go | 4 + pkg/models/license_object.go | 8 + pkg/models/list_enrollment_token_reply.go | 4 + pkg/models/login_request.go | 4 + pkg/models/metadata_items.go | 4 + ...l_version_index_synchronization_results.go | 5 + pkg/models/move_apm_cluster_configuration.go | 4 + pkg/models/move_apm_cluster_details.go | 8 + pkg/models/move_app_search_configuration.go | 4 + pkg/models/move_app_search_details.go | 8 + pkg/models/move_clusters_command_response.go | 8 + pkg/models/move_clusters_details.go | 20 + pkg/models/move_clusters_request.go | 20 + ...ove_elasticsearch_cluster_configuration.go | 4 + .../move_elasticsearch_cluster_details.go | 8 + .../move_enterprise_search_configuration.go | 4 + pkg/models/move_enterprise_search_details.go | 8 + .../move_kibana_cluster_configuration.go | 4 + pkg/models/move_kibana_cluster_details.go | 8 + pkg/models/nested_query.go | 4 + pkg/models/notes.go | 4 + pkg/models/organization_invitation.go | 4 + pkg/models/organization_invitations.go | 4 + pkg/models/organization_list.go | 4 + pkg/models/organization_memberships.go | 4 + pkg/models/orphaned.go | 4 + pkg/models/orphaned_elasticsearch.go | 4 + pkg/models/pending_states.go | 5 + pkg/models/pending_states_with_meta.go | 8 + pkg/models/plan_strategy.go | 4 + pkg/models/platform_info.go | 12 + pkg/models/platform_service_info.go | 4 + pkg/models/proxies_filtered_group.go | 4 + pkg/models/proxies_filtered_group_health.go | 4 + pkg/models/proxies_health.go | 8 + pkg/models/proxies_http_settings.go | 4 + pkg/models/proxies_settings.go | 4 + pkg/models/proxies_summary.go | 4 + pkg/models/proxy_allocation_info.go | 4 + pkg/models/proxy_info.go | 4 + pkg/models/proxy_overview.go | 8 + pkg/models/public_cert_chain_collection.go | 5 + pkg/models/public_certificate.go | 4 + pkg/models/query_container.go | 36 ++ pkg/models/region_info.go | 32 ++ pkg/models/remote_resource_ref.go | 4 + pkg/models/remote_resources.go | 4 + pkg/models/repository_configs.go | 4 + pkg/models/resource_heap_dumps.go | 4 + pkg/models/restore_snapshot_configuration.go | 8 + pkg/models/role.go | 4 + pkg/models/role_aggregate.go | 12 + pkg/models/role_aggregate_create_data.go | 8 + pkg/models/role_aggregates.go | 4 + pkg/models/role_with_meta.go | 8 + pkg/models/ruleset_associations.go | 4 + pkg/models/runner_info.go | 16 + pkg/models/runner_overview.go | 4 + pkg/models/runner_roles_info.go | 4 + .../saml_security_realm_role_mapping_rules.go | 4 + pkg/models/saml_settings.go | 16 + pkg/models/search_request.go | 4 + .../security_deployment_create_request.go | 4 + pkg/models/security_deployment_topology.go | 4 + .../security_deployment_update_request.go | 4 + pkg/models/security_realm_info_list.go | 4 + pkg/models/stack_version_apm_config.go | 4 + pkg/models/stack_version_app_search_config.go | 8 + .../stack_version_archive_processing_error.go | 4 + ...stack_version_archive_processing_result.go | 8 + pkg/models/stack_version_config.go | 28 ++ pkg/models/stack_version_config_post.go | 28 ++ pkg/models/stack_version_configs.go | 4 + .../stack_version_elasticsearch_config.go | 8 + .../stack_version_enterprise_search_config.go | 8 + ...tack_version_integrations_server_config.go | 4 + pkg/models/stack_version_kibana_config.go | 4 + pkg/models/stack_version_node_type.go | 4 + pkg/models/stack_version_template_info.go | 4 + pkg/models/target_elasticsearch_cluster.go | 5 + pkg/models/tls_public_cert_chain.go | 4 + pkg/models/topology_element_control.go | 4 + pkg/models/traffic_filter_rule.go | 4 + pkg/models/traffic_filter_ruleset_info.go | 8 + pkg/models/traffic_filter_ruleset_request.go | 4 + pkg/models/traffic_filter_rulesets.go | 4 + .../transient_apm_plan_configuration.go | 8 + ...transient_app_search_plan_configuration.go | 8 + ...nsient_elasticsearch_plan_configuration.go | 16 + ...nt_enterprise_search_plan_configuration.go | 8 + ..._integrations_server_plan_configuration.go | 8 + .../transient_kibana_plan_configuration.go | 8 + .../trust_relationships_list_response.go | 4 + pkg/models/trusted_certificate.go | 4 + pkg/models/updates.go | 24 + pkg/models/user.go | 8 + pkg/models/user_list.go | 4 + pkg/models/user_security.go | 8 + pkg/models/zookeeper_summary.go | 4 + scripts/update-swagger.sh | 4 +- 852 files changed, 35396 insertions(+), 2443 deletions(-) diff --git a/Makefile b/Makefile index c19100b2..3f6d81c0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL := /bin/bash export GO111MODULE ?= on export VERSION ?= v1.13.0 export ECE_VERSION ?= $(shell cat ECE_VERSION) -export ECE_BRANCH ?= ms-81 +export ECE_BRANCH ?= ms-89 ECE_DEF_FILE ?= api/version/$(ECE_VERSION).md export GOBIN = $(shell pwd)/bin BINARY := cloud-sdk-go diff --git a/api/apidocs-user.json b/api/apidocs-user.json index d9f8b2c2..21a6bfbf 100644 --- a/api/apidocs-user.json +++ b/api/apidocs-user.json @@ -1599,6 +1599,151 @@ } } }, + "/deployments/traffic-filter/link-ids" : { + "get" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "List traffic filter claimed link id", + "description" : "List all of the traffic filter claimed link id.", + "operationId" : "get-traffic-filter-claimed-link-ids", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "region", + "in" : "query", + "description" : "If provided limits the claimed id to that region only.", + "required" : false, + "type" : "string" + }, { + "name" : "organization_id", + "in" : "query", + "description" : "Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin.", + "required" : false, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "The collection of traffic filter claimed link id", + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIds" + } + }, + "500" : { + "description" : "Error fetching traffic filter claimed link ids. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, + "/deployments/traffic-filter/link-ids/_claim" : { + "post" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "Claim a link id", + "description" : "Claim the ownership of a link id.", + "operationId" : "claim-traffic-filter-link-id", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "description" : "The specification for traffic filter claimed link id.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdRequest" + } + } ], + "responses" : { + "201" : { + "description" : "The ruleset definition is valid and the creation has started.", + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdInfo" + } + }, + "500" : { + "description" : "Error creating the traffic filter ruleset. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, + "/deployments/traffic-filter/link-ids/_unclaim" : { + "post" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "Unclaims a link id", + "description" : "Unclaims the ownership of a link id.", + "operationId" : "unclaim-traffic-filter-link-id", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "description" : "The specification for traffic filter claimed link id.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdRequest" + } + } ], + "responses" : { + "200" : { + "description" : "The claimed link id was successfully deleted.", + "schema" : { + "$ref" : "#/definitions/EmptyResponse" + } + }, + "400" : { + "description" : "Error validating the request. (code: `traffic_filter_claimed_link_id.invalid_input`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.invalid_input" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + }, + "500" : { + "description" : "Error deleting the traffic filter claimed link id. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, "/deployments/traffic-filter/rulesets" : { "get" : { "tags" : [ "DeploymentsTrafficFilter" ], @@ -7708,15 +7853,15 @@ "memory_pressure" : { "type" : "integer", "format" : "int32", - "description" : "The % memory pressure of the service if available (60-75% consider increasing capacity, >75% can incur significant performance and stability issues)" + "description" : "The % memory pressure of Elasticsearch JVM heap space if available (60-75% consider increasing capacity, >75% can incur significant performance and stability issues)" }, "native_memory_pressure" : { "type" : "integer", "format" : "int32", - "description" : "The % native memory pressure of the service if available" + "description" : "The % memory pressure of the instance Docker container (if available)" } }, - "description" : "Information about the memory capacity and use of the Kibana instance or APM Server." + "description" : "Information about the specific instances memory capacity and its usage" }, "ClusterMetadataInfo" : { "type" : "object", @@ -11893,6 +12038,20 @@ "items" : { "type" : "string" } + }, + "billing_contacts" : { + "type" : "array", + "description" : "The list of contacts for billing notifications, if specified", + "items" : { + "type" : "string" + } + }, + "operational_contacts" : { + "type" : "array", + "description" : "The list of contacts for operational notifications, if specified", + "items" : { + "type" : "string" + } } }, "description" : "An organization" @@ -12044,6 +12203,20 @@ "items" : { "type" : "string" } + }, + "billing_contacts" : { + "type" : "array", + "description" : "The list of contacts for billing notifications", + "items" : { + "type" : "string" + } + }, + "operational_contacts" : { + "type" : "array", + "description" : "The list of contacts for operational notifications", + "items" : { + "type" : "string" + } } }, "description" : "A request to create or update an organization" @@ -13038,6 +13211,65 @@ }, "description" : "Measured by the amount of a resource. The final cluster size is calculated using multipliers from the topology instance configuration." }, + "TrafficFilterClaimedLinkIdInfo" : { + "type" : "object", + "required" : [ "region" ], + "properties" : { + "link_id" : { + "type" : "string", + "description" : "Link id. A GCP private service connect ID or AWS VPC endpoint ID" + }, + "azure_endpoint_name" : { + "type" : "string", + "description" : "Name of the Azure Private Endpoint to allow connections from" + }, + "azure_endpoint_guid" : { + "type" : "string", + "description" : "Resource GUID of the Azure Private Endpoint to allow connections from" + }, + "region" : { + "type" : "string", + "description" : "The claimed link id can be used only for traffic filter in the specific region" + } + } + }, + "TrafficFilterClaimedLinkIdRequest" : { + "type" : "object", + "required" : [ "region" ], + "properties" : { + "link_id" : { + "type" : "string", + "description" : "Link id. A GCP private service connect ID or AWS VPC endpoint ID" + }, + "azure_endpoint_name" : { + "type" : "string", + "description" : "Name of the Azure Private Endpoint to allow connections from" + }, + "azure_endpoint_guid" : { + "type" : "string", + "description" : "Resource GUID of the Azure Private Endpoint to allow connections from" + }, + "region" : { + "type" : "string", + "description" : "The claimed link id can be used only for traffic filter in the specific region" + } + }, + "description" : "The specification for traffic filter claimed link id." + }, + "TrafficFilterClaimedLinkIds" : { + "type" : "object", + "required" : [ "claimed_link_ids" ], + "properties" : { + "claimed_link_ids" : { + "type" : "array", + "description" : "List of traffic filter claimed link id", + "items" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdInfo" + } + } + }, + "description" : "The container for a set of traffic filter claimed link id." + }, "TrafficFilterEgressRule" : { "type" : "object", "required" : [ "protocol", "target" ], @@ -13257,7 +13489,7 @@ }, "cluster_settings_json" : { "type" : "object", - "description" : "If specified, contains transient settings to be applied to an Elasticsearch cluster during changes, default values shown below applied.\nThese can be overridden by specifying them in the map (or null to unset). Additional settings can also be set. Settings will be cleared after the plan has finished. If not specified, no settings will be applied.\nNOTE: These settings are only explicitly cleared for 5.x+ clusters, they must be hand-reset to their defaults in 2.x- (or a cluster reboot will clear them).\n- indices.store.throttle.max_bytes_per_sec: 150Mb\n- indices.recovery.max_bytes_per_sec: 150Mb\n- cluster.routing.allocation.cluster_concurrent_rebalance: 10\n- cluster.routing.allocation.node_initial_primaries_recoveries: 8\n- cluster.routing.allocation.node_concurrent_incoming_recoveries: 8\n" + "description" : "If specified, contains transient settings to be applied to an Elasticsearch cluster during changes,default values shown below applied.\nThese can be overridden by specifying them in the map (or null to unset). Additional settings can also be set. Settings will be cleared after the plan has finished. If not specified, no settings will be applied.\nNOTE: These settings are only explicitly cleared for 5.x+ clusters, they must be hand-reset to their defaults in 2.x- (or a cluster reboot will clear them).\n- indices.store.throttle.max_bytes_per_sec: 120Mb\n- indices.recovery.max_bytes_per_sec: 120Mb\n- cluster.routing.allocation.cluster_concurrent_rebalance: 5\n- cluster.routing.allocation.node_initial_primaries_recoveries: 5\n- cluster.routing.allocation.node_concurrent_incoming_recoveries: 5\nFor version 8.1 and later no defaults are provided through this mechanism, but instead hardware dependent settings are provided to each instance." } }, "description" : "Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and Elasticsearch settings." diff --git a/api/apidocs.json b/api/apidocs.json index 32e4dcf2..8f64e5df 100644 --- a/api/apidocs.json +++ b/api/apidocs.json @@ -2379,6 +2379,151 @@ } } }, + "/deployments/traffic-filter/link-ids" : { + "get" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "List traffic filter claimed link id", + "description" : "List all of the traffic filter claimed link id.", + "operationId" : "get-traffic-filter-claimed-link-ids", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "region", + "in" : "query", + "description" : "If provided limits the claimed id to that region only.", + "required" : false, + "type" : "string" + }, { + "name" : "organization_id", + "in" : "query", + "description" : "Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin.", + "required" : false, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "The collection of traffic filter claimed link id", + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIds" + } + }, + "500" : { + "description" : "Error fetching traffic filter claimed link ids. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, + "/deployments/traffic-filter/link-ids/_claim" : { + "post" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "Claim a link id", + "description" : "Claim the ownership of a link id.", + "operationId" : "claim-traffic-filter-link-id", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "description" : "The specification for traffic filter claimed link id.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdRequest" + } + } ], + "responses" : { + "201" : { + "description" : "The ruleset definition is valid and the creation has started.", + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdInfo" + } + }, + "500" : { + "description" : "Error creating the traffic filter ruleset. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, + "/deployments/traffic-filter/link-ids/_unclaim" : { + "post" : { + "tags" : [ "DeploymentsTrafficFilter" ], + "summary" : "Unclaims a link id", + "description" : "Unclaims the ownership of a link id.", + "operationId" : "unclaim-traffic-filter-link-id", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "description" : "The specification for traffic filter claimed link id.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdRequest" + } + } ], + "responses" : { + "200" : { + "description" : "The claimed link id was successfully deleted.", + "schema" : { + "$ref" : "#/definitions/EmptyResponse" + } + }, + "400" : { + "description" : "Error validating the request. (code: `traffic_filter_claimed_link_id.invalid_input`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.invalid_input" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + }, + "500" : { + "description" : "Error deleting the traffic filter claimed link id. (code: `traffic_filter_claimed_link_id.request_execution_failed`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "traffic_filter_claimed_link_id.request_execution_failed" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Deployments - Traffic Filter Claimed Link Id" + } + } + }, "/deployments/traffic-filter/rulesets" : { "get" : { "tags" : [ "DeploymentsTrafficFilter" ], @@ -4523,6 +4668,13 @@ "required" : false, "type" : "boolean", "default" : false + }, { + "name" : "force_move", + "in" : "query", + "description" : "When `true`, moves instance data at file-system level (not via Elasticsearch), and re-creates instances on target allocator(s).", + "required" : false, + "type" : "boolean", + "default" : false }, { "name" : "validate_only", "in" : "query", @@ -6230,7 +6382,7 @@ "put" : { "tags" : [ "Deployments" ], "summary" : "Set size overrides", - "description" : "Applies size overrides for all of the instances belonging to the given resource.", + "description" : "Applies size overrides for all of the instances belonging to the given resource. Instance size overrides will be reset with the next plan change.", "operationId" : "set-all-instances-settings-overrides", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], @@ -6743,7 +6895,7 @@ "put" : { "tags" : [ "Deployments" ], "summary" : "Set size overrides", - "description" : "Applies size overrides for the given instances belonging to the given resource.", + "description" : "Applies size overrides for the given instances belonging to the given resource. Instance size overrides will be reset with the next plan change.", "operationId" : "set-instance-settings-overrides", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], @@ -11435,7 +11587,7 @@ "get" : { "tags" : [ "PlatformConfigurationTrustRelationships" ], "summary" : "Get trust relationship", - "description" : "Retrieves information about a trust relationship. `local` can be used as the ID to obtain the local trust relationship.", + "description" : "Retrieves information about a trust relationship.", "operationId" : "get-trust-relationship", "produces" : [ "application/json" ], "parameters" : [ { @@ -11656,6 +11808,40 @@ } } }, + "/platform/infrastructure/adminconsoles/_reindex" : { + "post" : { + "tags" : [ "PlatformInfrastructure" ], + "summary" : "Reindex region indices", + "description" : "Start reindex of all regional indices.", + "operationId" : "reindex-adminconsoles", + "produces" : [ "application/json" ], + "parameters" : [ ], + "responses" : { + "202" : { + "description" : "Started reindexing of regional indices.", + "schema" : { + "$ref" : "#/definitions/EmptyResponse" + } + }, + "449" : { + "description" : "Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)", + "headers" : { + "x-cloud-error-codes" : { + "type" : "string", + "description" : "The error codes associated with the response", + "enum" : [ "root.unauthorized.rbac.elevated_permissions_required" ] + } + }, + "schema" : { + "$ref" : "#/definitions/BasicFailedReply" + } + } + }, + "x-doc" : { + "tag" : "Platform - Adminconsoles" + } + } + }, "/platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings" : { "get" : { "tags" : [ "PlatformInfrastructure" ], @@ -12207,6 +12393,13 @@ "required" : false, "type" : "boolean", "default" : true + }, { + "name" : "force_move", + "in" : "query", + "description" : "When `true`, execute a primitive vacate by moving data at file-system level, and recreating instances on the target allocator(s).", + "required" : false, + "type" : "boolean", + "default" : false }, { "name" : "allocator_down", "in" : "query", @@ -12316,6 +12509,13 @@ "required" : false, "type" : "boolean", "default" : true + }, { + "name" : "force_move", + "in" : "query", + "description" : "When `true`, execute a primitive vacate by moving data at file-system level, and recreating instances on the target allocator(s).", + "required" : false, + "type" : "boolean", + "default" : false }, { "name" : "allocator_down", "in" : "query", @@ -16272,146 +16472,6 @@ } } }, - "/users/auth/_elevate" : { - "post" : { - "tags" : [ "Authentication" ], - "summary" : "Enable elevated permissions", - "description" : "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. Sudo has been retired\n\nEnables the elevated permissions for the current user. Elevated permissions allow the user to complete potentially destructive operations on clusters. Elevated permissions are available for a limited period of time and automatically expire if you do not renew them.", - "operationId" : "enable-elevated-permissions", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "The request for elevated permissions", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ElevatePermissionsRequest" - } - } ], - "responses" : { - "200" : { - "description" : "Elevated permissions are enabled and the authorization token was generated.", - "schema" : { - "$ref" : "#/definitions/TokenResponse" - } - }, - "400" : { - "description" : "Missed or invalid MFA token. (code: `authc.invalid_token`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "authc.invalid_token" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - }, - "401" : { - "description" : "The authentication token is invalid or expired. (code: `root.unauthorized`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "root.unauthorized" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - }, - "501" : { - "description" : "The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "authc.no_authentication_cluster" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - }, - "502" : { - "description" : "The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "authc.authentication_cluster_error" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - } - }, - "x-doc" : { - "tag" : "Authentication" - } - }, - "delete" : { - "tags" : [ "Authentication" ], - "summary" : "Disable elevated permissions", - "description" : "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. Sudo has been retired\n\nDisables elevated permissions for the user.", - "operationId" : "disable-elevated-permissions", - "produces" : [ "application/json" ], - "parameters" : [ ], - "responses" : { - "200" : { - "description" : "The elevated permissions are disabled and the authorization token was generated", - "schema" : { - "$ref" : "#/definitions/TokenResponse" - } - }, - "401" : { - "description" : "The authentication token is invalid or expired. (code: `root.unauthorized`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "root.unauthorized" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - }, - "501" : { - "description" : "The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "authc.no_authentication_cluster" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - }, - "502" : { - "description" : "The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)", - "headers" : { - "x-cloud-error-codes" : { - "type" : "string", - "description" : "The error codes associated with the response", - "enum" : [ "authc.authentication_cluster_error" ] - } - }, - "schema" : { - "$ref" : "#/definitions/BasicFailedReply" - } - } - }, - "x-doc" : { - "tag" : "Authentication" - } - } - }, "/users/auth/_login" : { "post" : { "tags" : [ "Authentication" ], @@ -17746,11 +17806,15 @@ }, "AllocatorCapacity" : { "type" : "object", - "required" : [ "memory" ], + "required" : [ "memory", "storage" ], "properties" : { "memory" : { "$ref" : "#/definitions/AllocatorCapacityMemory" }, + "storage" : { + "description" : "The storage capacity of the allocator.", + "$ref" : "#/definitions/AllocatorCapacityStorage" + }, "available_cpus" : { "type" : "integer", "format" : "int32", @@ -17781,6 +17845,18 @@ }, "description" : "The available and used memory of the allocator." }, + "AllocatorCapacityStorage" : { + "type" : "object", + "required" : [ "total" ], + "properties" : { + "total" : { + "type" : "integer", + "format" : "int64", + "description" : "Total storage in MiB capacity installed on this allocator" + } + }, + "description" : "The storage capacity of the allocator." + }, "AllocatorHealthChecks" : { "type" : "object", "required" : [ "has_instances", "is_connected_to_zk", "is_docker_healthy" ], @@ -19464,15 +19540,15 @@ "memory_pressure" : { "type" : "integer", "format" : "int32", - "description" : "The % memory pressure of the service if available (60-75% consider increasing capacity, >75% can incur significant performance and stability issues)" + "description" : "The % memory pressure of Elasticsearch JVM heap space if available (60-75% consider increasing capacity, >75% can incur significant performance and stability issues)" }, "native_memory_pressure" : { "type" : "integer", "format" : "int32", - "description" : "The % native memory pressure of the service if available" + "description" : "The % memory pressure of the instance Docker container (if available)" } }, - "description" : "Information about the memory capacity and use of the Kibana instance or APM Server." + "description" : "Information about the specific instances memory capacity and its usage" }, "ClusterLicenseInfo" : { "type" : "object", @@ -22931,17 +23007,6 @@ }, "description" : "A list of admin-uploaded plugin objects." }, - "ElevatePermissionsRequest" : { - "type" : "object", - "required" : [ "token" ], - "properties" : { - "token" : { - "type" : "string", - "description" : "Multi-factor authorization token" - } - }, - "description" : "Deprecated: The request body for elevated permissions." - }, "ElevatedPermissions" : { "type" : "object", "required" : [ "enabled" ], @@ -25783,6 +25848,20 @@ "items" : { "type" : "string" } + }, + "billing_contacts" : { + "type" : "array", + "description" : "The list of contacts for billing notifications, if specified", + "items" : { + "type" : "string" + } + }, + "operational_contacts" : { + "type" : "array", + "description" : "The list of contacts for operational notifications, if specified", + "items" : { + "type" : "string" + } } }, "description" : "An organization" @@ -25934,6 +26013,20 @@ "items" : { "type" : "string" } + }, + "billing_contacts" : { + "type" : "array", + "description" : "The list of contacts for billing notifications", + "items" : { + "type" : "string" + } + }, + "operational_contacts" : { + "type" : "array", + "description" : "The list of contacts for operational notifications", + "items" : { + "type" : "string" + } } }, "description" : "A request to create or update an organization" @@ -27471,6 +27564,10 @@ "description" : "The SAML attribute mapping configuration", "$ref" : "#/definitions/SamlAttributeSettings" }, + "nameid_format" : { + "type" : "string", + "description" : "The NameID format. If not specified the IdP default is used. Example: 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'" + }, "role_mappings" : { "description" : "The role mapping rules associated with the security realm", "$ref" : "#/definitions/SamlSecurityRealmRoleMappingRules" @@ -28475,6 +28572,65 @@ }, "description" : "Measured by the amount of a resource. The final cluster size is calculated using multipliers from the topology instance configuration." }, + "TrafficFilterClaimedLinkIdInfo" : { + "type" : "object", + "required" : [ "region" ], + "properties" : { + "link_id" : { + "type" : "string", + "description" : "Link id. A GCP private service connect ID or AWS VPC endpoint ID" + }, + "azure_endpoint_name" : { + "type" : "string", + "description" : "Name of the Azure Private Endpoint to allow connections from" + }, + "azure_endpoint_guid" : { + "type" : "string", + "description" : "Resource GUID of the Azure Private Endpoint to allow connections from" + }, + "region" : { + "type" : "string", + "description" : "The claimed link id can be used only for traffic filter in the specific region" + } + } + }, + "TrafficFilterClaimedLinkIdRequest" : { + "type" : "object", + "required" : [ "region" ], + "properties" : { + "link_id" : { + "type" : "string", + "description" : "Link id. A GCP private service connect ID or AWS VPC endpoint ID" + }, + "azure_endpoint_name" : { + "type" : "string", + "description" : "Name of the Azure Private Endpoint to allow connections from" + }, + "azure_endpoint_guid" : { + "type" : "string", + "description" : "Resource GUID of the Azure Private Endpoint to allow connections from" + }, + "region" : { + "type" : "string", + "description" : "The claimed link id can be used only for traffic filter in the specific region" + } + }, + "description" : "The specification for traffic filter claimed link id." + }, + "TrafficFilterClaimedLinkIds" : { + "type" : "object", + "required" : [ "claimed_link_ids" ], + "properties" : { + "claimed_link_ids" : { + "type" : "array", + "description" : "List of traffic filter claimed link id", + "items" : { + "$ref" : "#/definitions/TrafficFilterClaimedLinkIdInfo" + } + } + }, + "description" : "The container for a set of traffic filter claimed link id." + }, "TrafficFilterEgressRule" : { "type" : "object", "required" : [ "protocol", "target" ], @@ -28694,7 +28850,7 @@ }, "cluster_settings_json" : { "type" : "object", - "description" : "If specified, contains transient settings to be applied to an Elasticsearch cluster during changes, default values shown below applied.\nThese can be overridden by specifying them in the map (or null to unset). Additional settings can also be set. Settings will be cleared after the plan has finished. If not specified, no settings will be applied.\nNOTE: These settings are only explicitly cleared for 5.x+ clusters, they must be hand-reset to their defaults in 2.x- (or a cluster reboot will clear them).\n- indices.store.throttle.max_bytes_per_sec: 150Mb\n- indices.recovery.max_bytes_per_sec: 150Mb\n- cluster.routing.allocation.cluster_concurrent_rebalance: 10\n- cluster.routing.allocation.node_initial_primaries_recoveries: 8\n- cluster.routing.allocation.node_concurrent_incoming_recoveries: 8\n" + "description" : "If specified, contains transient settings to be applied to an Elasticsearch cluster during changes,default values shown below applied.\nThese can be overridden by specifying them in the map (or null to unset). Additional settings can also be set. Settings will be cleared after the plan has finished. If not specified, no settings will be applied.\nNOTE: These settings are only explicitly cleared for 5.x+ clusters, they must be hand-reset to their defaults in 2.x- (or a cluster reboot will clear them).\n- indices.store.throttle.max_bytes_per_sec: 120Mb\n- indices.recovery.max_bytes_per_sec: 120Mb\n- cluster.routing.allocation.cluster_concurrent_rebalance: 5\n- cluster.routing.allocation.node_initial_primaries_recoveries: 5\n- cluster.routing.allocation.node_concurrent_incoming_recoveries: 5\nFor version 8.1 and later no defaults are provided through this mechanism, but instead hardware dependent settings are provided to each instance." } }, "description" : "Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and Elasticsearch settings." diff --git a/pkg/api/platformapi/allocatorapi/search_test.go b/pkg/api/platformapi/allocatorapi/search_test.go index 44425304..6f6a2b7b 100644 --- a/pkg/api/platformapi/allocatorapi/search_test.go +++ b/pkg/api/platformapi/allocatorapi/search_test.go @@ -51,7 +51,7 @@ func TestSearch(t *testing.T) { StatusCode: 200, }}), }}, - err: "invalid allocator search params: 2 errors occurred:\n\t* region not specified and is required for this operation\n\t* validation failure list:\nvalidation failure list:\nvalidation failure list:\nfield in body is required\n\n", + err: "invalid allocator search params: 2 errors occurred:\n\t* region not specified and is required for this operation\n\t* validation failure list:\nvalidation failure list:\nvalidation failure list:\nquery.exists.field in body is required\n\n", }, { name: "fails if api reference is empty", diff --git a/pkg/api/platformapi/runnerapi/search_test.go b/pkg/api/platformapi/runnerapi/search_test.go index 37ca25fa..fd94bb8a 100644 --- a/pkg/api/platformapi/runnerapi/search_test.go +++ b/pkg/api/platformapi/runnerapi/search_test.go @@ -45,7 +45,7 @@ func TestSearch(t *testing.T) { var searchReqErr = `validation failure list: validation failure list: validation failure list: -field in body is required` +query.exists.field in body is required` type args struct { params SearchParams diff --git a/pkg/api/version.go b/pkg/api/version.go index 37408770..7aaf3a09 100644 --- a/pkg/api/version.go +++ b/pkg/api/version.go @@ -24,4 +24,4 @@ package api // on the minor version, i.e: 2.4.2 means that all the 2.4 branch is supported, // expecting some potentially unfixed bugs when ECE version is the same feature // version bug higher bugfix version. -const Version = "3.5.2" +const Version = "3.6.0" diff --git a/pkg/client/accounts/accounts_client.go b/pkg/client/accounts/accounts_client.go index ee3ebced..b5314f3c 100644 --- a/pkg/client/accounts/accounts_client.go +++ b/pkg/client/accounts/accounts_client.go @@ -57,9 +57,9 @@ type ClientService interface { } /* - GetCurrentAccount fetches current account information +GetCurrentAccount fetches current account information - Fetch current account information. +Fetch current account information. */ func (a *Client) GetCurrentAccount(params *GetCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentAccountOK, error) { // TODO: Validate the params before sending @@ -98,9 +98,9 @@ func (a *Client) GetCurrentAccount(params *GetCurrentAccountParams, authInfo run } /* - PatchCurrentAccount updates the current account +PatchCurrentAccount updates the current account - Updates the current account. +Updates the current account. */ func (a *Client) PatchCurrentAccount(params *PatchCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchCurrentAccountOK, error) { // TODO: Validate the params before sending @@ -139,9 +139,9 @@ func (a *Client) PatchCurrentAccount(params *PatchCurrentAccountParams, authInfo } /* - UpdateCurrentAccount updates the current account +UpdateCurrentAccount updates the current account - Updates the current account. +Updates the current account. */ func (a *Client) UpdateCurrentAccount(params *UpdateCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentAccountOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/accounts/get_current_account_parameters.go b/pkg/client/accounts/get_current_account_parameters.go index 7b4ee422..a574de10 100644 --- a/pkg/client/accounts/get_current_account_parameters.go +++ b/pkg/client/accounts/get_current_account_parameters.go @@ -69,10 +69,12 @@ func NewGetCurrentAccountParamsWithHTTPClient(client *http.Client) *GetCurrentAc } } -/* GetCurrentAccountParams contains all the parameters to send to the API endpoint - for the get current account operation. +/* +GetCurrentAccountParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get current account operation. + + Typically these are written to a http.Request. */ type GetCurrentAccountParams struct { timeout time.Duration diff --git a/pkg/client/accounts/get_current_account_responses.go b/pkg/client/accounts/get_current_account_responses.go index 0da9820b..85aa61b0 100644 --- a/pkg/client/accounts/get_current_account_responses.go +++ b/pkg/client/accounts/get_current_account_responses.go @@ -62,7 +62,8 @@ func NewGetCurrentAccountOK() *GetCurrentAccountOK { return &GetCurrentAccountOK{} } -/* GetCurrentAccountOK describes a response with status code 200, with default header values. +/* +GetCurrentAccountOK describes a response with status code 200, with default header values. Account fetched successfully */ @@ -70,9 +71,44 @@ type GetCurrentAccountOK struct { Payload *models.AccountResponse } +// IsSuccess returns true when this get current account o k response has a 2xx status code +func (o *GetCurrentAccountOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get current account o k response has a 3xx status code +func (o *GetCurrentAccountOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get current account o k response has a 4xx status code +func (o *GetCurrentAccountOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get current account o k response has a 5xx status code +func (o *GetCurrentAccountOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get current account o k response a status code equal to that given +func (o *GetCurrentAccountOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get current account o k response +func (o *GetCurrentAccountOK) Code() int { + return 200 +} + func (o *GetCurrentAccountOK) Error() string { return fmt.Sprintf("[GET /account][%d] getCurrentAccountOK %+v", 200, o.Payload) } + +func (o *GetCurrentAccountOK) String() string { + return fmt.Sprintf("[GET /account][%d] getCurrentAccountOK %+v", 200, o.Payload) +} + func (o *GetCurrentAccountOK) GetPayload() *models.AccountResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetCurrentAccountNotFound() *GetCurrentAccountNotFound { return &GetCurrentAccountNotFound{} } -/* GetCurrentAccountNotFound describes a response with status code 404, with default header values. +/* +GetCurrentAccountNotFound describes a response with status code 404, with default header values. Account not found. (code: `accounts.not_found`) */ @@ -107,9 +144,44 @@ type GetCurrentAccountNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get current account not found response has a 2xx status code +func (o *GetCurrentAccountNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get current account not found response has a 3xx status code +func (o *GetCurrentAccountNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get current account not found response has a 4xx status code +func (o *GetCurrentAccountNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get current account not found response has a 5xx status code +func (o *GetCurrentAccountNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get current account not found response a status code equal to that given +func (o *GetCurrentAccountNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get current account not found response +func (o *GetCurrentAccountNotFound) Code() int { + return 404 +} + func (o *GetCurrentAccountNotFound) Error() string { return fmt.Sprintf("[GET /account][%d] getCurrentAccountNotFound %+v", 404, o.Payload) } + +func (o *GetCurrentAccountNotFound) String() string { + return fmt.Sprintf("[GET /account][%d] getCurrentAccountNotFound %+v", 404, o.Payload) +} + func (o *GetCurrentAccountNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/accounts/patch_current_account_parameters.go b/pkg/client/accounts/patch_current_account_parameters.go index 2d77d2e7..b6dadc3c 100644 --- a/pkg/client/accounts/patch_current_account_parameters.go +++ b/pkg/client/accounts/patch_current_account_parameters.go @@ -69,10 +69,12 @@ func NewPatchCurrentAccountParamsWithHTTPClient(client *http.Client) *PatchCurre } } -/* PatchCurrentAccountParams contains all the parameters to send to the API endpoint - for the patch current account operation. +/* +PatchCurrentAccountParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the patch current account operation. + + Typically these are written to a http.Request. */ type PatchCurrentAccountParams struct { diff --git a/pkg/client/accounts/patch_current_account_responses.go b/pkg/client/accounts/patch_current_account_responses.go index 59233ead..3d242b2f 100644 --- a/pkg/client/accounts/patch_current_account_responses.go +++ b/pkg/client/accounts/patch_current_account_responses.go @@ -62,7 +62,8 @@ func NewPatchCurrentAccountOK() *PatchCurrentAccountOK { return &PatchCurrentAccountOK{} } -/* PatchCurrentAccountOK describes a response with status code 200, with default header values. +/* +PatchCurrentAccountOK describes a response with status code 200, with default header values. Account updated successfully */ @@ -70,9 +71,44 @@ type PatchCurrentAccountOK struct { Payload *models.AccountResponse } +// IsSuccess returns true when this patch current account o k response has a 2xx status code +func (o *PatchCurrentAccountOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this patch current account o k response has a 3xx status code +func (o *PatchCurrentAccountOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this patch current account o k response has a 4xx status code +func (o *PatchCurrentAccountOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this patch current account o k response has a 5xx status code +func (o *PatchCurrentAccountOK) IsServerError() bool { + return false +} + +// IsCode returns true when this patch current account o k response a status code equal to that given +func (o *PatchCurrentAccountOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the patch current account o k response +func (o *PatchCurrentAccountOK) Code() int { + return 200 +} + func (o *PatchCurrentAccountOK) Error() string { return fmt.Sprintf("[PATCH /account][%d] patchCurrentAccountOK %+v", 200, o.Payload) } + +func (o *PatchCurrentAccountOK) String() string { + return fmt.Sprintf("[PATCH /account][%d] patchCurrentAccountOK %+v", 200, o.Payload) +} + func (o *PatchCurrentAccountOK) GetPayload() *models.AccountResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewPatchCurrentAccountNotFound() *PatchCurrentAccountNotFound { return &PatchCurrentAccountNotFound{} } -/* PatchCurrentAccountNotFound describes a response with status code 404, with default header values. +/* +PatchCurrentAccountNotFound describes a response with status code 404, with default header values. Account not found. (code: `accounts.not_found`) */ @@ -107,9 +144,44 @@ type PatchCurrentAccountNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this patch current account not found response has a 2xx status code +func (o *PatchCurrentAccountNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this patch current account not found response has a 3xx status code +func (o *PatchCurrentAccountNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this patch current account not found response has a 4xx status code +func (o *PatchCurrentAccountNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this patch current account not found response has a 5xx status code +func (o *PatchCurrentAccountNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this patch current account not found response a status code equal to that given +func (o *PatchCurrentAccountNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the patch current account not found response +func (o *PatchCurrentAccountNotFound) Code() int { + return 404 +} + func (o *PatchCurrentAccountNotFound) Error() string { return fmt.Sprintf("[PATCH /account][%d] patchCurrentAccountNotFound %+v", 404, o.Payload) } + +func (o *PatchCurrentAccountNotFound) String() string { + return fmt.Sprintf("[PATCH /account][%d] patchCurrentAccountNotFound %+v", 404, o.Payload) +} + func (o *PatchCurrentAccountNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/accounts/update_current_account_parameters.go b/pkg/client/accounts/update_current_account_parameters.go index 8f0c8e4d..0659c58f 100644 --- a/pkg/client/accounts/update_current_account_parameters.go +++ b/pkg/client/accounts/update_current_account_parameters.go @@ -71,10 +71,12 @@ func NewUpdateCurrentAccountParamsWithHTTPClient(client *http.Client) *UpdateCur } } -/* UpdateCurrentAccountParams contains all the parameters to send to the API endpoint - for the update current account operation. +/* +UpdateCurrentAccountParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update current account operation. + + Typically these are written to a http.Request. */ type UpdateCurrentAccountParams struct { diff --git a/pkg/client/accounts/update_current_account_responses.go b/pkg/client/accounts/update_current_account_responses.go index 98d6f1b7..1ba4d644 100644 --- a/pkg/client/accounts/update_current_account_responses.go +++ b/pkg/client/accounts/update_current_account_responses.go @@ -62,7 +62,8 @@ func NewUpdateCurrentAccountOK() *UpdateCurrentAccountOK { return &UpdateCurrentAccountOK{} } -/* UpdateCurrentAccountOK describes a response with status code 200, with default header values. +/* +UpdateCurrentAccountOK describes a response with status code 200, with default header values. Account updated successfully */ @@ -70,9 +71,44 @@ type UpdateCurrentAccountOK struct { Payload *models.AccountResponse } +// IsSuccess returns true when this update current account o k response has a 2xx status code +func (o *UpdateCurrentAccountOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update current account o k response has a 3xx status code +func (o *UpdateCurrentAccountOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update current account o k response has a 4xx status code +func (o *UpdateCurrentAccountOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update current account o k response has a 5xx status code +func (o *UpdateCurrentAccountOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update current account o k response a status code equal to that given +func (o *UpdateCurrentAccountOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update current account o k response +func (o *UpdateCurrentAccountOK) Code() int { + return 200 +} + func (o *UpdateCurrentAccountOK) Error() string { return fmt.Sprintf("[PUT /account][%d] updateCurrentAccountOK %+v", 200, o.Payload) } + +func (o *UpdateCurrentAccountOK) String() string { + return fmt.Sprintf("[PUT /account][%d] updateCurrentAccountOK %+v", 200, o.Payload) +} + func (o *UpdateCurrentAccountOK) GetPayload() *models.AccountResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewUpdateCurrentAccountNotFound() *UpdateCurrentAccountNotFound { return &UpdateCurrentAccountNotFound{} } -/* UpdateCurrentAccountNotFound describes a response with status code 404, with default header values. +/* +UpdateCurrentAccountNotFound describes a response with status code 404, with default header values. Account not found. (code: `accounts.not_found`) */ @@ -107,9 +144,44 @@ type UpdateCurrentAccountNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update current account not found response has a 2xx status code +func (o *UpdateCurrentAccountNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update current account not found response has a 3xx status code +func (o *UpdateCurrentAccountNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update current account not found response has a 4xx status code +func (o *UpdateCurrentAccountNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update current account not found response has a 5xx status code +func (o *UpdateCurrentAccountNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update current account not found response a status code equal to that given +func (o *UpdateCurrentAccountNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update current account not found response +func (o *UpdateCurrentAccountNotFound) Code() int { + return 404 +} + func (o *UpdateCurrentAccountNotFound) Error() string { return fmt.Sprintf("[PUT /account][%d] updateCurrentAccountNotFound %+v", 404, o.Payload) } + +func (o *UpdateCurrentAccountNotFound) String() string { + return fmt.Sprintf("[PUT /account][%d] updateCurrentAccountNotFound %+v", 404, o.Payload) +} + func (o *UpdateCurrentAccountNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/authentication_client.go b/pkg/client/authentication/authentication_client.go index 255d3b3d..07111f93 100644 --- a/pkg/client/authentication/authentication_client.go +++ b/pkg/client/authentication/authentication_client.go @@ -91,9 +91,9 @@ type ClientService interface { } /* - CreateAPIKey creates API key +CreateAPIKey creates API key - Creates a new API key. +Creates a new API key. */ func (a *Client) CreateAPIKey(params *CreateAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAPIKeyCreated, error) { // TODO: Validate the params before sending @@ -132,9 +132,9 @@ func (a *Client) CreateAPIKey(params *CreateAPIKeyParams, authInfo runtime.Clien } /* - DeleteAPIKey deletes API key +DeleteAPIKey deletes API key - Delete or invalidate the API key. +Delete or invalidate the API key. */ func (a *Client) DeleteAPIKey(params *DeleteAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyOK, error) { // TODO: Validate the params before sending @@ -173,9 +173,9 @@ func (a *Client) DeleteAPIKey(params *DeleteAPIKeyParams, authInfo runtime.Clien } /* - DeleteAPIKeys deletes API keys +DeleteAPIKeys deletes API keys - Delete or invalidate API keys. +Delete or invalidate API keys. */ func (a *Client) DeleteAPIKeys(params *DeleteAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeysOK, error) { // TODO: Validate the params before sending @@ -214,9 +214,9 @@ func (a *Client) DeleteAPIKeys(params *DeleteAPIKeysParams, authInfo runtime.Cli } /* - DeleteUserAPIKey deletes an API key for a user +DeleteUserAPIKey deletes an API key for a user - Delete or invalidate an API key for a user. +Delete or invalidate an API key for a user. */ func (a *Client) DeleteUserAPIKey(params *DeleteUserAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserAPIKeyOK, error) { // TODO: Validate the params before sending @@ -255,9 +255,9 @@ func (a *Client) DeleteUserAPIKey(params *DeleteUserAPIKeyParams, authInfo runti } /* - DeleteUserAPIKeys deletes API keys for a user +DeleteUserAPIKeys deletes API keys for a user - Delete or invalidate all of the API keys for a user. +Delete or invalidate all of the API keys for a user. */ func (a *Client) DeleteUserAPIKeys(params *DeleteUserAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserAPIKeysOK, error) { // TODO: Validate the params before sending @@ -296,9 +296,9 @@ func (a *Client) DeleteUserAPIKeys(params *DeleteUserAPIKeysParams, authInfo run } /* - DeleteUsersAPIKeys deletes API keys of multiple users +DeleteUsersAPIKeys deletes API keys of multiple users - Delete or invalidate the API keys for multiple users. +Delete or invalidate the API keys for multiple users. */ func (a *Client) DeleteUsersAPIKeys(params *DeleteUsersAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUsersAPIKeysOK, error) { // TODO: Validate the params before sending @@ -337,9 +337,10 @@ func (a *Client) DeleteUsersAPIKeys(params *DeleteUsersAPIKeysParams, authInfo r } /* - DisableElevatedPermissions disables elevated permissions + DisableElevatedPermissions disables elevated permissions + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Sudo has been retired Disables elevated permissions for the user. @@ -381,9 +382,10 @@ func (a *Client) DisableElevatedPermissions(params *DisableElevatedPermissionsPa } /* - EnableElevatedPermissions enables elevated permissions + EnableElevatedPermissions enables elevated permissions + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Sudo has been retired Enables the elevated permissions for the current user. Elevated permissions allow the user to complete potentially destructive operations on clusters. Elevated permissions are available for a limited period of time and automatically expire if you do not renew them. @@ -425,9 +427,9 @@ func (a *Client) EnableElevatedPermissions(params *EnableElevatedPermissionsPara } /* - GetAPIKey gets API key +GetAPIKey gets API key - Retrieves the metadata for an API key. +Retrieves the metadata for an API key. */ func (a *Client) GetAPIKey(params *GetAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyOK, error) { // TODO: Validate the params before sending @@ -466,9 +468,9 @@ func (a *Client) GetAPIKey(params *GetAPIKeyParams, authInfo runtime.ClientAuthI } /* - GetAPIKeys gets all API keys +GetAPIKeys gets all API keys - Retrieves the metadata for all of the API keys that the user generated. +Retrieves the metadata for all of the API keys that the user generated. */ func (a *Client) GetAPIKeys(params *GetAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeysOK, error) { // TODO: Validate the params before sending @@ -507,9 +509,9 @@ func (a *Client) GetAPIKeys(params *GetAPIKeysParams, authInfo runtime.ClientAut } /* - GetAuthenticationInfo users authentication information +GetAuthenticationInfo users authentication information - Provides authentication information about a user, including elevated permission status and TOTP device availability. +Provides authentication information about a user, including elevated permission status and TOTP device availability. */ func (a *Client) GetAuthenticationInfo(params *GetAuthenticationInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticationInfoOK, error) { // TODO: Validate the params before sending @@ -548,9 +550,9 @@ func (a *Client) GetAuthenticationInfo(params *GetAuthenticationInfoParams, auth } /* - GetUserAPIKey gets a user API key +GetUserAPIKey gets a user API key - Retrieves the API key metadata for a user. +Retrieves the API key metadata for a user. */ func (a *Client) GetUserAPIKey(params *GetUserAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserAPIKeyOK, error) { // TODO: Validate the params before sending @@ -589,9 +591,9 @@ func (a *Client) GetUserAPIKey(params *GetUserAPIKeyParams, authInfo runtime.Cli } /* - GetUserAPIKeys gets API key metadata for all keys created by the user +GetUserAPIKeys gets API key metadata for all keys created by the user - Retrieves metadata for all API keys created by the given user. +Retrieves metadata for all API keys created by the given user. */ func (a *Client) GetUserAPIKeys(params *GetUserAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserAPIKeysOK, error) { // TODO: Validate the params before sending @@ -630,9 +632,9 @@ func (a *Client) GetUserAPIKeys(params *GetUserAPIKeysParams, authInfo runtime.C } /* - GetUsersAPIKeys gets all API keys for all users +GetUsersAPIKeys gets all API keys for all users - Retrieves the metadata for all of the API keys for all users. +Retrieves the metadata for all of the API keys for all users. */ func (a *Client) GetUsersAPIKeys(params *GetUsersAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersAPIKeysOK, error) { // TODO: Validate the params before sending @@ -671,9 +673,9 @@ func (a *Client) GetUsersAPIKeys(params *GetUsersAPIKeysParams, authInfo runtime } /* - Login logins to e c e +Login logins to e c e - Authenticates against available users. +Authenticates against available users. */ func (a *Client) Login(params *LoginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LoginOK, error) { // TODO: Validate the params before sending @@ -712,9 +714,9 @@ func (a *Client) Login(params *LoginParams, authInfo runtime.ClientAuthInfoWrite } /* - Logout logouts from e c e +Logout logouts from e c e - Destroys the current session. +Destroys the current session. */ func (a *Client) Logout(params *LogoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LogoutOK, error) { // TODO: Validate the params before sending @@ -753,9 +755,9 @@ func (a *Client) Logout(params *LogoutParams, authInfo runtime.ClientAuthInfoWri } /* - Methods availables authentication methods +Methods availables authentication methods - Provides information about available authentication methods. +Provides information about available authentication methods. */ func (a *Client) Methods(params *MethodsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MethodsOK, error) { // TODO: Validate the params before sending @@ -794,9 +796,9 @@ func (a *Client) Methods(params *MethodsParams, authInfo runtime.ClientAuthInfoW } /* - RefreshToken refreshes authentication token +RefreshToken refreshes authentication token - Issues a new authentication token. +Issues a new authentication token. */ func (a *Client) RefreshToken(params *RefreshTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefreshTokenOK, error) { // TODO: Validate the params before sending @@ -835,9 +837,9 @@ func (a *Client) RefreshToken(params *RefreshTokenParams, authInfo runtime.Clien } /* - SamlCallback s a m l callback +SamlCallback s a m l callback - Accepts a callback request from an identity provider and authenticates the user. +Accepts a callback request from an identity provider and authenticates the user. */ func (a *Client) SamlCallback(params *SamlCallbackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error { // TODO: Validate the params before sending @@ -869,9 +871,9 @@ func (a *Client) SamlCallback(params *SamlCallbackParams, authInfo runtime.Clien } /* - SamlInit initiates s a m l protocol +SamlInit initiates s a m l protocol - Calls the authentication cluster to initiate SAML Single Sign-on (Web Browser SSO profile) protocol and redirects the user to the identity provider for authentication. The authentication cluster must be configured prior to initiation. +Calls the authentication cluster to initiate SAML Single Sign-on (Web Browser SSO profile) protocol and redirects the user to the identity provider for authentication. The authentication cluster must be configured prior to initiation. */ func (a *Client) SamlInit(params *SamlInitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error { // TODO: Validate the params before sending diff --git a/pkg/client/authentication/create_api_key_parameters.go b/pkg/client/authentication/create_api_key_parameters.go index 75ca455f..7eacd8b3 100644 --- a/pkg/client/authentication/create_api_key_parameters.go +++ b/pkg/client/authentication/create_api_key_parameters.go @@ -71,10 +71,12 @@ func NewCreateAPIKeyParamsWithHTTPClient(client *http.Client) *CreateAPIKeyParam } } -/* CreateAPIKeyParams contains all the parameters to send to the API endpoint - for the create api key operation. +/* +CreateAPIKeyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create api key operation. + + Typically these are written to a http.Request. */ type CreateAPIKeyParams struct { diff --git a/pkg/client/authentication/create_api_key_responses.go b/pkg/client/authentication/create_api_key_responses.go index 5ac227d8..df732f52 100644 --- a/pkg/client/authentication/create_api_key_responses.go +++ b/pkg/client/authentication/create_api_key_responses.go @@ -68,7 +68,8 @@ func NewCreateAPIKeyCreated() *CreateAPIKeyCreated { return &CreateAPIKeyCreated{} } -/* CreateAPIKeyCreated describes a response with status code 201, with default header values. +/* +CreateAPIKeyCreated describes a response with status code 201, with default header values. The API key is created and returned in the body of the response. */ @@ -76,9 +77,44 @@ type CreateAPIKeyCreated struct { Payload *models.APIKeyResponse } +// IsSuccess returns true when this create Api key created response has a 2xx status code +func (o *CreateAPIKeyCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create Api key created response has a 3xx status code +func (o *CreateAPIKeyCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create Api key created response has a 4xx status code +func (o *CreateAPIKeyCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create Api key created response has a 5xx status code +func (o *CreateAPIKeyCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create Api key created response a status code equal to that given +func (o *CreateAPIKeyCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create Api key created response +func (o *CreateAPIKeyCreated) Code() int { + return 201 +} + func (o *CreateAPIKeyCreated) Error() string { return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyCreated %+v", 201, o.Payload) } + +func (o *CreateAPIKeyCreated) String() string { + return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyCreated %+v", 201, o.Payload) +} + func (o *CreateAPIKeyCreated) GetPayload() *models.APIKeyResponse { return o.Payload } @@ -100,7 +136,8 @@ func NewCreateAPIKeyBadRequest() *CreateAPIKeyBadRequest { return &CreateAPIKeyBadRequest{} } -/* CreateAPIKeyBadRequest describes a response with status code 400, with default header values. +/* +CreateAPIKeyBadRequest describes a response with status code 400, with default header values. The request is invalid. Specify a different request, then try again. (code: `api_keys.invalid_input`) */ @@ -113,9 +150,44 @@ type CreateAPIKeyBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create Api key bad request response has a 2xx status code +func (o *CreateAPIKeyBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create Api key bad request response has a 3xx status code +func (o *CreateAPIKeyBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create Api key bad request response has a 4xx status code +func (o *CreateAPIKeyBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create Api key bad request response has a 5xx status code +func (o *CreateAPIKeyBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create Api key bad request response a status code equal to that given +func (o *CreateAPIKeyBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create Api key bad request response +func (o *CreateAPIKeyBadRequest) Code() int { + return 400 +} + func (o *CreateAPIKeyBadRequest) Error() string { return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyBadRequest %+v", 400, o.Payload) } + +func (o *CreateAPIKeyBadRequest) String() string { + return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyBadRequest %+v", 400, o.Payload) +} + func (o *CreateAPIKeyBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewCreateAPIKeyRetryWith() *CreateAPIKeyRetryWith { return &CreateAPIKeyRetryWith{} } -/* CreateAPIKeyRetryWith describes a response with status code 449, with default header values. +/* +CreateAPIKeyRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type CreateAPIKeyRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create Api key retry with response has a 2xx status code +func (o *CreateAPIKeyRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create Api key retry with response has a 3xx status code +func (o *CreateAPIKeyRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create Api key retry with response has a 4xx status code +func (o *CreateAPIKeyRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create Api key retry with response has a 5xx status code +func (o *CreateAPIKeyRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create Api key retry with response a status code equal to that given +func (o *CreateAPIKeyRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create Api key retry with response +func (o *CreateAPIKeyRetryWith) Code() int { + return 449 +} + func (o *CreateAPIKeyRetryWith) Error() string { return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyRetryWith %+v", 449, o.Payload) } + +func (o *CreateAPIKeyRetryWith) String() string { + return fmt.Sprintf("[POST /users/auth/keys][%d] createApiKeyRetryWith %+v", 449, o.Payload) +} + func (o *CreateAPIKeyRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/delete_api_key_parameters.go b/pkg/client/authentication/delete_api_key_parameters.go index 66d9f5c0..f8795d78 100644 --- a/pkg/client/authentication/delete_api_key_parameters.go +++ b/pkg/client/authentication/delete_api_key_parameters.go @@ -69,10 +69,12 @@ func NewDeleteAPIKeyParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyParam } } -/* DeleteAPIKeyParams contains all the parameters to send to the API endpoint - for the delete api key operation. +/* +DeleteAPIKeyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete api key operation. + + Typically these are written to a http.Request. */ type DeleteAPIKeyParams struct { diff --git a/pkg/client/authentication/delete_api_key_responses.go b/pkg/client/authentication/delete_api_key_responses.go index 218f0409..8e2fea89 100644 --- a/pkg/client/authentication/delete_api_key_responses.go +++ b/pkg/client/authentication/delete_api_key_responses.go @@ -68,7 +68,8 @@ func NewDeleteAPIKeyOK() *DeleteAPIKeyOK { return &DeleteAPIKeyOK{} } -/* DeleteAPIKeyOK describes a response with status code 200, with default header values. +/* +DeleteAPIKeyOK describes a response with status code 200, with default header values. The API key is deleted. */ @@ -76,9 +77,44 @@ type DeleteAPIKeyOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete Api key o k response has a 2xx status code +func (o *DeleteAPIKeyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete Api key o k response has a 3xx status code +func (o *DeleteAPIKeyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete Api key o k response has a 4xx status code +func (o *DeleteAPIKeyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete Api key o k response has a 5xx status code +func (o *DeleteAPIKeyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete Api key o k response a status code equal to that given +func (o *DeleteAPIKeyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete Api key o k response +func (o *DeleteAPIKeyOK) Code() int { + return 200 +} + func (o *DeleteAPIKeyOK) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyOK %+v", 200, o.Payload) } + +func (o *DeleteAPIKeyOK) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyOK %+v", 200, o.Payload) +} + func (o *DeleteAPIKeyOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteAPIKeyNotFound() *DeleteAPIKeyNotFound { return &DeleteAPIKeyNotFound{} } -/* DeleteAPIKeyNotFound describes a response with status code 404, with default header values. +/* +DeleteAPIKeyNotFound describes a response with status code 404, with default header values. The {api_key_id} can't be found. (code: `api_keys.key_not_found`) */ @@ -111,9 +148,44 @@ type DeleteAPIKeyNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete Api key not found response has a 2xx status code +func (o *DeleteAPIKeyNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete Api key not found response has a 3xx status code +func (o *DeleteAPIKeyNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete Api key not found response has a 4xx status code +func (o *DeleteAPIKeyNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete Api key not found response has a 5xx status code +func (o *DeleteAPIKeyNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete Api key not found response a status code equal to that given +func (o *DeleteAPIKeyNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete Api key not found response +func (o *DeleteAPIKeyNotFound) Code() int { + return 404 +} + func (o *DeleteAPIKeyNotFound) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyNotFound %+v", 404, o.Payload) } + +func (o *DeleteAPIKeyNotFound) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyNotFound %+v", 404, o.Payload) +} + func (o *DeleteAPIKeyNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteAPIKeyRetryWith() *DeleteAPIKeyRetryWith { return &DeleteAPIKeyRetryWith{} } -/* DeleteAPIKeyRetryWith describes a response with status code 449, with default header values. +/* +DeleteAPIKeyRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteAPIKeyRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete Api key retry with response has a 2xx status code +func (o *DeleteAPIKeyRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete Api key retry with response has a 3xx status code +func (o *DeleteAPIKeyRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete Api key retry with response has a 4xx status code +func (o *DeleteAPIKeyRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete Api key retry with response has a 5xx status code +func (o *DeleteAPIKeyRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete Api key retry with response a status code equal to that given +func (o *DeleteAPIKeyRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete Api key retry with response +func (o *DeleteAPIKeyRetryWith) Code() int { + return 449 +} + func (o *DeleteAPIKeyRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyRetryWith %+v", 449, o.Payload) } + +func (o *DeleteAPIKeyRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys/{api_key_id}][%d] deleteApiKeyRetryWith %+v", 449, o.Payload) +} + func (o *DeleteAPIKeyRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/delete_api_keys_parameters.go b/pkg/client/authentication/delete_api_keys_parameters.go index d6f84a36..644508e1 100644 --- a/pkg/client/authentication/delete_api_keys_parameters.go +++ b/pkg/client/authentication/delete_api_keys_parameters.go @@ -71,10 +71,12 @@ func NewDeleteAPIKeysParamsWithHTTPClient(client *http.Client) *DeleteAPIKeysPar } } -/* DeleteAPIKeysParams contains all the parameters to send to the API endpoint - for the delete api keys operation. +/* +DeleteAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete api keys operation. + + Typically these are written to a http.Request. */ type DeleteAPIKeysParams struct { diff --git a/pkg/client/authentication/delete_api_keys_responses.go b/pkg/client/authentication/delete_api_keys_responses.go index 547c87b7..d0720b8a 100644 --- a/pkg/client/authentication/delete_api_keys_responses.go +++ b/pkg/client/authentication/delete_api_keys_responses.go @@ -62,7 +62,8 @@ func NewDeleteAPIKeysOK() *DeleteAPIKeysOK { return &DeleteAPIKeysOK{} } -/* DeleteAPIKeysOK describes a response with status code 200, with default header values. +/* +DeleteAPIKeysOK describes a response with status code 200, with default header values. The API keys are deleted. */ @@ -70,9 +71,44 @@ type DeleteAPIKeysOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete Api keys o k response has a 2xx status code +func (o *DeleteAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete Api keys o k response has a 3xx status code +func (o *DeleteAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete Api keys o k response has a 4xx status code +func (o *DeleteAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete Api keys o k response has a 5xx status code +func (o *DeleteAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete Api keys o k response a status code equal to that given +func (o *DeleteAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete Api keys o k response +func (o *DeleteAPIKeysOK) Code() int { + return 200 +} + func (o *DeleteAPIKeysOK) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys][%d] deleteApiKeysOK %+v", 200, o.Payload) } + +func (o *DeleteAPIKeysOK) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys][%d] deleteApiKeysOK %+v", 200, o.Payload) +} + func (o *DeleteAPIKeysOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -92,7 +128,8 @@ func NewDeleteAPIKeysRetryWith() *DeleteAPIKeysRetryWith { return &DeleteAPIKeysRetryWith{} } -/* DeleteAPIKeysRetryWith describes a response with status code 449, with default header values. +/* +DeleteAPIKeysRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -105,9 +142,44 @@ type DeleteAPIKeysRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete Api keys retry with response has a 2xx status code +func (o *DeleteAPIKeysRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete Api keys retry with response has a 3xx status code +func (o *DeleteAPIKeysRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete Api keys retry with response has a 4xx status code +func (o *DeleteAPIKeysRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete Api keys retry with response has a 5xx status code +func (o *DeleteAPIKeysRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete Api keys retry with response a status code equal to that given +func (o *DeleteAPIKeysRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete Api keys retry with response +func (o *DeleteAPIKeysRetryWith) Code() int { + return 449 +} + func (o *DeleteAPIKeysRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys][%d] deleteApiKeysRetryWith %+v", 449, o.Payload) } + +func (o *DeleteAPIKeysRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys][%d] deleteApiKeysRetryWith %+v", 449, o.Payload) +} + func (o *DeleteAPIKeysRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/delete_user_api_key_parameters.go b/pkg/client/authentication/delete_user_api_key_parameters.go index 7f36e7d1..9af7eb95 100644 --- a/pkg/client/authentication/delete_user_api_key_parameters.go +++ b/pkg/client/authentication/delete_user_api_key_parameters.go @@ -69,10 +69,12 @@ func NewDeleteUserAPIKeyParamsWithHTTPClient(client *http.Client) *DeleteUserAPI } } -/* DeleteUserAPIKeyParams contains all the parameters to send to the API endpoint - for the delete user api key operation. +/* +DeleteUserAPIKeyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete user api key operation. + + Typically these are written to a http.Request. */ type DeleteUserAPIKeyParams struct { diff --git a/pkg/client/authentication/delete_user_api_key_responses.go b/pkg/client/authentication/delete_user_api_key_responses.go index 365e2f1c..f7ccf8b7 100644 --- a/pkg/client/authentication/delete_user_api_key_responses.go +++ b/pkg/client/authentication/delete_user_api_key_responses.go @@ -68,7 +68,8 @@ func NewDeleteUserAPIKeyOK() *DeleteUserAPIKeyOK { return &DeleteUserAPIKeyOK{} } -/* DeleteUserAPIKeyOK describes a response with status code 200, with default header values. +/* +DeleteUserAPIKeyOK describes a response with status code 200, with default header values. The API key is deleted. */ @@ -76,9 +77,44 @@ type DeleteUserAPIKeyOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete user Api key o k response has a 2xx status code +func (o *DeleteUserAPIKeyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete user Api key o k response has a 3xx status code +func (o *DeleteUserAPIKeyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api key o k response has a 4xx status code +func (o *DeleteUserAPIKeyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete user Api key o k response has a 5xx status code +func (o *DeleteUserAPIKeyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api key o k response a status code equal to that given +func (o *DeleteUserAPIKeyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete user Api key o k response +func (o *DeleteUserAPIKeyOK) Code() int { + return 200 +} + func (o *DeleteUserAPIKeyOK) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyOK %+v", 200, o.Payload) } + +func (o *DeleteUserAPIKeyOK) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyOK %+v", 200, o.Payload) +} + func (o *DeleteUserAPIKeyOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteUserAPIKeyNotFound() *DeleteUserAPIKeyNotFound { return &DeleteUserAPIKeyNotFound{} } -/* DeleteUserAPIKeyNotFound describes a response with status code 404, with default header values. +/* +DeleteUserAPIKeyNotFound describes a response with status code 404, with default header values. The {api_key_id} can't be found. (code: `api_keys.key_not_found`) */ @@ -111,9 +148,44 @@ type DeleteUserAPIKeyNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user Api key not found response has a 2xx status code +func (o *DeleteUserAPIKeyNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user Api key not found response has a 3xx status code +func (o *DeleteUserAPIKeyNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api key not found response has a 4xx status code +func (o *DeleteUserAPIKeyNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user Api key not found response has a 5xx status code +func (o *DeleteUserAPIKeyNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api key not found response a status code equal to that given +func (o *DeleteUserAPIKeyNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete user Api key not found response +func (o *DeleteUserAPIKeyNotFound) Code() int { + return 404 +} + func (o *DeleteUserAPIKeyNotFound) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyNotFound %+v", 404, o.Payload) } + +func (o *DeleteUserAPIKeyNotFound) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyNotFound %+v", 404, o.Payload) +} + func (o *DeleteUserAPIKeyNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteUserAPIKeyRetryWith() *DeleteUserAPIKeyRetryWith { return &DeleteUserAPIKeyRetryWith{} } -/* DeleteUserAPIKeyRetryWith describes a response with status code 449, with default header values. +/* +DeleteUserAPIKeyRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteUserAPIKeyRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user Api key retry with response has a 2xx status code +func (o *DeleteUserAPIKeyRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user Api key retry with response has a 3xx status code +func (o *DeleteUserAPIKeyRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api key retry with response has a 4xx status code +func (o *DeleteUserAPIKeyRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user Api key retry with response has a 5xx status code +func (o *DeleteUserAPIKeyRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api key retry with response a status code equal to that given +func (o *DeleteUserAPIKeyRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete user Api key retry with response +func (o *DeleteUserAPIKeyRetryWith) Code() int { + return 449 +} + func (o *DeleteUserAPIKeyRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyRetryWith %+v", 449, o.Payload) } + +func (o *DeleteUserAPIKeyRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys/{api_key_id}][%d] deleteUserApiKeyRetryWith %+v", 449, o.Payload) +} + func (o *DeleteUserAPIKeyRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/delete_user_api_keys_parameters.go b/pkg/client/authentication/delete_user_api_keys_parameters.go index 57917e2b..6024e6ca 100644 --- a/pkg/client/authentication/delete_user_api_keys_parameters.go +++ b/pkg/client/authentication/delete_user_api_keys_parameters.go @@ -69,10 +69,12 @@ func NewDeleteUserAPIKeysParamsWithHTTPClient(client *http.Client) *DeleteUserAP } } -/* DeleteUserAPIKeysParams contains all the parameters to send to the API endpoint - for the delete user api keys operation. +/* +DeleteUserAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete user api keys operation. + + Typically these are written to a http.Request. */ type DeleteUserAPIKeysParams struct { diff --git a/pkg/client/authentication/delete_user_api_keys_responses.go b/pkg/client/authentication/delete_user_api_keys_responses.go index 15349545..68859376 100644 --- a/pkg/client/authentication/delete_user_api_keys_responses.go +++ b/pkg/client/authentication/delete_user_api_keys_responses.go @@ -68,7 +68,8 @@ func NewDeleteUserAPIKeysOK() *DeleteUserAPIKeysOK { return &DeleteUserAPIKeysOK{} } -/* DeleteUserAPIKeysOK describes a response with status code 200, with default header values. +/* +DeleteUserAPIKeysOK describes a response with status code 200, with default header values. The API key is deleted. */ @@ -76,9 +77,44 @@ type DeleteUserAPIKeysOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete user Api keys o k response has a 2xx status code +func (o *DeleteUserAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete user Api keys o k response has a 3xx status code +func (o *DeleteUserAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api keys o k response has a 4xx status code +func (o *DeleteUserAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete user Api keys o k response has a 5xx status code +func (o *DeleteUserAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api keys o k response a status code equal to that given +func (o *DeleteUserAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete user Api keys o k response +func (o *DeleteUserAPIKeysOK) Code() int { + return 200 +} + func (o *DeleteUserAPIKeysOK) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysOK %+v", 200, o.Payload) } + +func (o *DeleteUserAPIKeysOK) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysOK %+v", 200, o.Payload) +} + func (o *DeleteUserAPIKeysOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteUserAPIKeysNotFound() *DeleteUserAPIKeysNotFound { return &DeleteUserAPIKeysNotFound{} } -/* DeleteUserAPIKeysNotFound describes a response with status code 404, with default header values. +/* +DeleteUserAPIKeysNotFound describes a response with status code 404, with default header values. The {user_id} can't be found. (code: `api_keys.user_not_found`) */ @@ -111,9 +148,44 @@ type DeleteUserAPIKeysNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user Api keys not found response has a 2xx status code +func (o *DeleteUserAPIKeysNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user Api keys not found response has a 3xx status code +func (o *DeleteUserAPIKeysNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api keys not found response has a 4xx status code +func (o *DeleteUserAPIKeysNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user Api keys not found response has a 5xx status code +func (o *DeleteUserAPIKeysNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api keys not found response a status code equal to that given +func (o *DeleteUserAPIKeysNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete user Api keys not found response +func (o *DeleteUserAPIKeysNotFound) Code() int { + return 404 +} + func (o *DeleteUserAPIKeysNotFound) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysNotFound %+v", 404, o.Payload) } + +func (o *DeleteUserAPIKeysNotFound) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysNotFound %+v", 404, o.Payload) +} + func (o *DeleteUserAPIKeysNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteUserAPIKeysRetryWith() *DeleteUserAPIKeysRetryWith { return &DeleteUserAPIKeysRetryWith{} } -/* DeleteUserAPIKeysRetryWith describes a response with status code 449, with default header values. +/* +DeleteUserAPIKeysRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteUserAPIKeysRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user Api keys retry with response has a 2xx status code +func (o *DeleteUserAPIKeysRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user Api keys retry with response has a 3xx status code +func (o *DeleteUserAPIKeysRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user Api keys retry with response has a 4xx status code +func (o *DeleteUserAPIKeysRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user Api keys retry with response has a 5xx status code +func (o *DeleteUserAPIKeysRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user Api keys retry with response a status code equal to that given +func (o *DeleteUserAPIKeysRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete user Api keys retry with response +func (o *DeleteUserAPIKeysRetryWith) Code() int { + return 449 +} + func (o *DeleteUserAPIKeysRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysRetryWith %+v", 449, o.Payload) } + +func (o *DeleteUserAPIKeysRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/{user_id}/auth/keys][%d] deleteUserApiKeysRetryWith %+v", 449, o.Payload) +} + func (o *DeleteUserAPIKeysRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/delete_users_api_keys_parameters.go b/pkg/client/authentication/delete_users_api_keys_parameters.go index de46bdb9..db903432 100644 --- a/pkg/client/authentication/delete_users_api_keys_parameters.go +++ b/pkg/client/authentication/delete_users_api_keys_parameters.go @@ -71,10 +71,12 @@ func NewDeleteUsersAPIKeysParamsWithHTTPClient(client *http.Client) *DeleteUsers } } -/* DeleteUsersAPIKeysParams contains all the parameters to send to the API endpoint - for the delete users api keys operation. +/* +DeleteUsersAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete users api keys operation. + + Typically these are written to a http.Request. */ type DeleteUsersAPIKeysParams struct { diff --git a/pkg/client/authentication/delete_users_api_keys_responses.go b/pkg/client/authentication/delete_users_api_keys_responses.go index 9f8cda34..3dd30970 100644 --- a/pkg/client/authentication/delete_users_api_keys_responses.go +++ b/pkg/client/authentication/delete_users_api_keys_responses.go @@ -62,7 +62,8 @@ func NewDeleteUsersAPIKeysOK() *DeleteUsersAPIKeysOK { return &DeleteUsersAPIKeysOK{} } -/* DeleteUsersAPIKeysOK describes a response with status code 200, with default header values. +/* +DeleteUsersAPIKeysOK describes a response with status code 200, with default header values. The API keys are deleted. */ @@ -70,9 +71,44 @@ type DeleteUsersAPIKeysOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete users Api keys o k response has a 2xx status code +func (o *DeleteUsersAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete users Api keys o k response has a 3xx status code +func (o *DeleteUsersAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete users Api keys o k response has a 4xx status code +func (o *DeleteUsersAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete users Api keys o k response has a 5xx status code +func (o *DeleteUsersAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete users Api keys o k response a status code equal to that given +func (o *DeleteUsersAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete users Api keys o k response +func (o *DeleteUsersAPIKeysOK) Code() int { + return 200 +} + func (o *DeleteUsersAPIKeysOK) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys/_all][%d] deleteUsersApiKeysOK %+v", 200, o.Payload) } + +func (o *DeleteUsersAPIKeysOK) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys/_all][%d] deleteUsersApiKeysOK %+v", 200, o.Payload) +} + func (o *DeleteUsersAPIKeysOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -92,7 +128,8 @@ func NewDeleteUsersAPIKeysRetryWith() *DeleteUsersAPIKeysRetryWith { return &DeleteUsersAPIKeysRetryWith{} } -/* DeleteUsersAPIKeysRetryWith describes a response with status code 449, with default header values. +/* +DeleteUsersAPIKeysRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -105,9 +142,44 @@ type DeleteUsersAPIKeysRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete users Api keys retry with response has a 2xx status code +func (o *DeleteUsersAPIKeysRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete users Api keys retry with response has a 3xx status code +func (o *DeleteUsersAPIKeysRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete users Api keys retry with response has a 4xx status code +func (o *DeleteUsersAPIKeysRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete users Api keys retry with response has a 5xx status code +func (o *DeleteUsersAPIKeysRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete users Api keys retry with response a status code equal to that given +func (o *DeleteUsersAPIKeysRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete users Api keys retry with response +func (o *DeleteUsersAPIKeysRetryWith) Code() int { + return 449 +} + func (o *DeleteUsersAPIKeysRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/auth/keys/_all][%d] deleteUsersApiKeysRetryWith %+v", 449, o.Payload) } + +func (o *DeleteUsersAPIKeysRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/auth/keys/_all][%d] deleteUsersApiKeysRetryWith %+v", 449, o.Payload) +} + func (o *DeleteUsersAPIKeysRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/disable_elevated_permissions_parameters.go b/pkg/client/authentication/disable_elevated_permissions_parameters.go index d202d21c..1bcb3758 100644 --- a/pkg/client/authentication/disable_elevated_permissions_parameters.go +++ b/pkg/client/authentication/disable_elevated_permissions_parameters.go @@ -69,10 +69,12 @@ func NewDisableElevatedPermissionsParamsWithHTTPClient(client *http.Client) *Dis } } -/* DisableElevatedPermissionsParams contains all the parameters to send to the API endpoint - for the disable elevated permissions operation. +/* +DisableElevatedPermissionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the disable elevated permissions operation. + + Typically these are written to a http.Request. */ type DisableElevatedPermissionsParams struct { timeout time.Duration diff --git a/pkg/client/authentication/disable_elevated_permissions_responses.go b/pkg/client/authentication/disable_elevated_permissions_responses.go index 68fa1258..96c6d46e 100644 --- a/pkg/client/authentication/disable_elevated_permissions_responses.go +++ b/pkg/client/authentication/disable_elevated_permissions_responses.go @@ -74,7 +74,8 @@ func NewDisableElevatedPermissionsOK() *DisableElevatedPermissionsOK { return &DisableElevatedPermissionsOK{} } -/* DisableElevatedPermissionsOK describes a response with status code 200, with default header values. +/* +DisableElevatedPermissionsOK describes a response with status code 200, with default header values. The elevated permissions are disabled and the authorization token was generated */ @@ -82,9 +83,44 @@ type DisableElevatedPermissionsOK struct { Payload *models.TokenResponse } +// IsSuccess returns true when this disable elevated permissions o k response has a 2xx status code +func (o *DisableElevatedPermissionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this disable elevated permissions o k response has a 3xx status code +func (o *DisableElevatedPermissionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this disable elevated permissions o k response has a 4xx status code +func (o *DisableElevatedPermissionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this disable elevated permissions o k response has a 5xx status code +func (o *DisableElevatedPermissionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this disable elevated permissions o k response a status code equal to that given +func (o *DisableElevatedPermissionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the disable elevated permissions o k response +func (o *DisableElevatedPermissionsOK) Code() int { + return 200 +} + func (o *DisableElevatedPermissionsOK) Error() string { return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsOK %+v", 200, o.Payload) } + +func (o *DisableElevatedPermissionsOK) String() string { + return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsOK %+v", 200, o.Payload) +} + func (o *DisableElevatedPermissionsOK) GetPayload() *models.TokenResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewDisableElevatedPermissionsUnauthorized() *DisableElevatedPermissionsUnau return &DisableElevatedPermissionsUnauthorized{} } -/* DisableElevatedPermissionsUnauthorized describes a response with status code 401, with default header values. +/* +DisableElevatedPermissionsUnauthorized describes a response with status code 401, with default header values. The authentication token is invalid or expired. (code: `root.unauthorized`) */ @@ -119,9 +156,44 @@ type DisableElevatedPermissionsUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this disable elevated permissions unauthorized response has a 2xx status code +func (o *DisableElevatedPermissionsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this disable elevated permissions unauthorized response has a 3xx status code +func (o *DisableElevatedPermissionsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this disable elevated permissions unauthorized response has a 4xx status code +func (o *DisableElevatedPermissionsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this disable elevated permissions unauthorized response has a 5xx status code +func (o *DisableElevatedPermissionsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this disable elevated permissions unauthorized response a status code equal to that given +func (o *DisableElevatedPermissionsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the disable elevated permissions unauthorized response +func (o *DisableElevatedPermissionsUnauthorized) Code() int { + return 401 +} + func (o *DisableElevatedPermissionsUnauthorized) Error() string { return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsUnauthorized %+v", 401, o.Payload) } + +func (o *DisableElevatedPermissionsUnauthorized) String() string { + return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsUnauthorized %+v", 401, o.Payload) +} + func (o *DisableElevatedPermissionsUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewDisableElevatedPermissionsNotImplemented() *DisableElevatedPermissionsNo return &DisableElevatedPermissionsNotImplemented{} } -/* DisableElevatedPermissionsNotImplemented describes a response with status code 501, with default header values. +/* +DisableElevatedPermissionsNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -163,9 +236,44 @@ type DisableElevatedPermissionsNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this disable elevated permissions not implemented response has a 2xx status code +func (o *DisableElevatedPermissionsNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this disable elevated permissions not implemented response has a 3xx status code +func (o *DisableElevatedPermissionsNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this disable elevated permissions not implemented response has a 4xx status code +func (o *DisableElevatedPermissionsNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this disable elevated permissions not implemented response has a 5xx status code +func (o *DisableElevatedPermissionsNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this disable elevated permissions not implemented response a status code equal to that given +func (o *DisableElevatedPermissionsNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the disable elevated permissions not implemented response +func (o *DisableElevatedPermissionsNotImplemented) Code() int { + return 501 +} + func (o *DisableElevatedPermissionsNotImplemented) Error() string { return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsNotImplemented %+v", 501, o.Payload) } + +func (o *DisableElevatedPermissionsNotImplemented) String() string { + return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsNotImplemented %+v", 501, o.Payload) +} + func (o *DisableElevatedPermissionsNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewDisableElevatedPermissionsBadGateway() *DisableElevatedPermissionsBadGat return &DisableElevatedPermissionsBadGateway{} } -/* DisableElevatedPermissionsBadGateway describes a response with status code 502, with default header values. +/* +DisableElevatedPermissionsBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -207,9 +316,44 @@ type DisableElevatedPermissionsBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this disable elevated permissions bad gateway response has a 2xx status code +func (o *DisableElevatedPermissionsBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this disable elevated permissions bad gateway response has a 3xx status code +func (o *DisableElevatedPermissionsBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this disable elevated permissions bad gateway response has a 4xx status code +func (o *DisableElevatedPermissionsBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this disable elevated permissions bad gateway response has a 5xx status code +func (o *DisableElevatedPermissionsBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this disable elevated permissions bad gateway response a status code equal to that given +func (o *DisableElevatedPermissionsBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the disable elevated permissions bad gateway response +func (o *DisableElevatedPermissionsBadGateway) Code() int { + return 502 +} + func (o *DisableElevatedPermissionsBadGateway) Error() string { return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsBadGateway %+v", 502, o.Payload) } + +func (o *DisableElevatedPermissionsBadGateway) String() string { + return fmt.Sprintf("[DELETE /users/auth/_elevate][%d] disableElevatedPermissionsBadGateway %+v", 502, o.Payload) +} + func (o *DisableElevatedPermissionsBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/enable_elevated_permissions_parameters.go b/pkg/client/authentication/enable_elevated_permissions_parameters.go index f42e95c2..1b094f13 100644 --- a/pkg/client/authentication/enable_elevated_permissions_parameters.go +++ b/pkg/client/authentication/enable_elevated_permissions_parameters.go @@ -71,10 +71,12 @@ func NewEnableElevatedPermissionsParamsWithHTTPClient(client *http.Client) *Enab } } -/* EnableElevatedPermissionsParams contains all the parameters to send to the API endpoint - for the enable elevated permissions operation. +/* +EnableElevatedPermissionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the enable elevated permissions operation. + + Typically these are written to a http.Request. */ type EnableElevatedPermissionsParams struct { diff --git a/pkg/client/authentication/enable_elevated_permissions_responses.go b/pkg/client/authentication/enable_elevated_permissions_responses.go index 01cd00e4..f0ed0245 100644 --- a/pkg/client/authentication/enable_elevated_permissions_responses.go +++ b/pkg/client/authentication/enable_elevated_permissions_responses.go @@ -80,7 +80,8 @@ func NewEnableElevatedPermissionsOK() *EnableElevatedPermissionsOK { return &EnableElevatedPermissionsOK{} } -/* EnableElevatedPermissionsOK describes a response with status code 200, with default header values. +/* +EnableElevatedPermissionsOK describes a response with status code 200, with default header values. Elevated permissions are enabled and the authorization token was generated. */ @@ -88,9 +89,44 @@ type EnableElevatedPermissionsOK struct { Payload *models.TokenResponse } +// IsSuccess returns true when this enable elevated permissions o k response has a 2xx status code +func (o *EnableElevatedPermissionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this enable elevated permissions o k response has a 3xx status code +func (o *EnableElevatedPermissionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable elevated permissions o k response has a 4xx status code +func (o *EnableElevatedPermissionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable elevated permissions o k response has a 5xx status code +func (o *EnableElevatedPermissionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this enable elevated permissions o k response a status code equal to that given +func (o *EnableElevatedPermissionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the enable elevated permissions o k response +func (o *EnableElevatedPermissionsOK) Code() int { + return 200 +} + func (o *EnableElevatedPermissionsOK) Error() string { return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsOK %+v", 200, o.Payload) } + +func (o *EnableElevatedPermissionsOK) String() string { + return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsOK %+v", 200, o.Payload) +} + func (o *EnableElevatedPermissionsOK) GetPayload() *models.TokenResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewEnableElevatedPermissionsBadRequest() *EnableElevatedPermissionsBadReque return &EnableElevatedPermissionsBadRequest{} } -/* EnableElevatedPermissionsBadRequest describes a response with status code 400, with default header values. +/* +EnableElevatedPermissionsBadRequest describes a response with status code 400, with default header values. Missed or invalid MFA token. (code: `authc.invalid_token`) */ @@ -125,9 +162,44 @@ type EnableElevatedPermissionsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable elevated permissions bad request response has a 2xx status code +func (o *EnableElevatedPermissionsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable elevated permissions bad request response has a 3xx status code +func (o *EnableElevatedPermissionsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable elevated permissions bad request response has a 4xx status code +func (o *EnableElevatedPermissionsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable elevated permissions bad request response has a 5xx status code +func (o *EnableElevatedPermissionsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this enable elevated permissions bad request response a status code equal to that given +func (o *EnableElevatedPermissionsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the enable elevated permissions bad request response +func (o *EnableElevatedPermissionsBadRequest) Code() int { + return 400 +} + func (o *EnableElevatedPermissionsBadRequest) Error() string { return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsBadRequest %+v", 400, o.Payload) } + +func (o *EnableElevatedPermissionsBadRequest) String() string { + return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsBadRequest %+v", 400, o.Payload) +} + func (o *EnableElevatedPermissionsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewEnableElevatedPermissionsUnauthorized() *EnableElevatedPermissionsUnauth return &EnableElevatedPermissionsUnauthorized{} } -/* EnableElevatedPermissionsUnauthorized describes a response with status code 401, with default header values. +/* +EnableElevatedPermissionsUnauthorized describes a response with status code 401, with default header values. The authentication token is invalid or expired. (code: `root.unauthorized`) */ @@ -169,9 +242,44 @@ type EnableElevatedPermissionsUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable elevated permissions unauthorized response has a 2xx status code +func (o *EnableElevatedPermissionsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable elevated permissions unauthorized response has a 3xx status code +func (o *EnableElevatedPermissionsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable elevated permissions unauthorized response has a 4xx status code +func (o *EnableElevatedPermissionsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable elevated permissions unauthorized response has a 5xx status code +func (o *EnableElevatedPermissionsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this enable elevated permissions unauthorized response a status code equal to that given +func (o *EnableElevatedPermissionsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the enable elevated permissions unauthorized response +func (o *EnableElevatedPermissionsUnauthorized) Code() int { + return 401 +} + func (o *EnableElevatedPermissionsUnauthorized) Error() string { return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsUnauthorized %+v", 401, o.Payload) } + +func (o *EnableElevatedPermissionsUnauthorized) String() string { + return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsUnauthorized %+v", 401, o.Payload) +} + func (o *EnableElevatedPermissionsUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewEnableElevatedPermissionsNotImplemented() *EnableElevatedPermissionsNotI return &EnableElevatedPermissionsNotImplemented{} } -/* EnableElevatedPermissionsNotImplemented describes a response with status code 501, with default header values. +/* +EnableElevatedPermissionsNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -213,9 +322,44 @@ type EnableElevatedPermissionsNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable elevated permissions not implemented response has a 2xx status code +func (o *EnableElevatedPermissionsNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable elevated permissions not implemented response has a 3xx status code +func (o *EnableElevatedPermissionsNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable elevated permissions not implemented response has a 4xx status code +func (o *EnableElevatedPermissionsNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable elevated permissions not implemented response has a 5xx status code +func (o *EnableElevatedPermissionsNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this enable elevated permissions not implemented response a status code equal to that given +func (o *EnableElevatedPermissionsNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the enable elevated permissions not implemented response +func (o *EnableElevatedPermissionsNotImplemented) Code() int { + return 501 +} + func (o *EnableElevatedPermissionsNotImplemented) Error() string { return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsNotImplemented %+v", 501, o.Payload) } + +func (o *EnableElevatedPermissionsNotImplemented) String() string { + return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsNotImplemented %+v", 501, o.Payload) +} + func (o *EnableElevatedPermissionsNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewEnableElevatedPermissionsBadGateway() *EnableElevatedPermissionsBadGatew return &EnableElevatedPermissionsBadGateway{} } -/* EnableElevatedPermissionsBadGateway describes a response with status code 502, with default header values. +/* +EnableElevatedPermissionsBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -257,9 +402,44 @@ type EnableElevatedPermissionsBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable elevated permissions bad gateway response has a 2xx status code +func (o *EnableElevatedPermissionsBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable elevated permissions bad gateway response has a 3xx status code +func (o *EnableElevatedPermissionsBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable elevated permissions bad gateway response has a 4xx status code +func (o *EnableElevatedPermissionsBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable elevated permissions bad gateway response has a 5xx status code +func (o *EnableElevatedPermissionsBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this enable elevated permissions bad gateway response a status code equal to that given +func (o *EnableElevatedPermissionsBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the enable elevated permissions bad gateway response +func (o *EnableElevatedPermissionsBadGateway) Code() int { + return 502 +} + func (o *EnableElevatedPermissionsBadGateway) Error() string { return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsBadGateway %+v", 502, o.Payload) } + +func (o *EnableElevatedPermissionsBadGateway) String() string { + return fmt.Sprintf("[POST /users/auth/_elevate][%d] enableElevatedPermissionsBadGateway %+v", 502, o.Payload) +} + func (o *EnableElevatedPermissionsBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/get_api_key_parameters.go b/pkg/client/authentication/get_api_key_parameters.go index 260f616a..24ee66a9 100644 --- a/pkg/client/authentication/get_api_key_parameters.go +++ b/pkg/client/authentication/get_api_key_parameters.go @@ -69,10 +69,12 @@ func NewGetAPIKeyParamsWithHTTPClient(client *http.Client) *GetAPIKeyParams { } } -/* GetAPIKeyParams contains all the parameters to send to the API endpoint - for the get api key operation. +/* +GetAPIKeyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get api key operation. + + Typically these are written to a http.Request. */ type GetAPIKeyParams struct { diff --git a/pkg/client/authentication/get_api_key_responses.go b/pkg/client/authentication/get_api_key_responses.go index ed196006..22c2931c 100644 --- a/pkg/client/authentication/get_api_key_responses.go +++ b/pkg/client/authentication/get_api_key_responses.go @@ -62,7 +62,8 @@ func NewGetAPIKeyOK() *GetAPIKeyOK { return &GetAPIKeyOK{} } -/* GetAPIKeyOK describes a response with status code 200, with default header values. +/* +GetAPIKeyOK describes a response with status code 200, with default header values. The API key metadata is retrieved. */ @@ -70,9 +71,44 @@ type GetAPIKeyOK struct { Payload *models.APIKeyResponse } +// IsSuccess returns true when this get Api key o k response has a 2xx status code +func (o *GetAPIKeyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get Api key o k response has a 3xx status code +func (o *GetAPIKeyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api key o k response has a 4xx status code +func (o *GetAPIKeyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get Api key o k response has a 5xx status code +func (o *GetAPIKeyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get Api key o k response a status code equal to that given +func (o *GetAPIKeyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get Api key o k response +func (o *GetAPIKeyOK) Code() int { + return 200 +} + func (o *GetAPIKeyOK) Error() string { return fmt.Sprintf("[GET /users/auth/keys/{api_key_id}][%d] getApiKeyOK %+v", 200, o.Payload) } + +func (o *GetAPIKeyOK) String() string { + return fmt.Sprintf("[GET /users/auth/keys/{api_key_id}][%d] getApiKeyOK %+v", 200, o.Payload) +} + func (o *GetAPIKeyOK) GetPayload() *models.APIKeyResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetAPIKeyNotFound() *GetAPIKeyNotFound { return &GetAPIKeyNotFound{} } -/* GetAPIKeyNotFound describes a response with status code 404, with default header values. +/* +GetAPIKeyNotFound describes a response with status code 404, with default header values. The {api_key_id} can't be found. (code: `api_keys.key_not_found`) */ @@ -107,9 +144,44 @@ type GetAPIKeyNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get Api key not found response has a 2xx status code +func (o *GetAPIKeyNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get Api key not found response has a 3xx status code +func (o *GetAPIKeyNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api key not found response has a 4xx status code +func (o *GetAPIKeyNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get Api key not found response has a 5xx status code +func (o *GetAPIKeyNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get Api key not found response a status code equal to that given +func (o *GetAPIKeyNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get Api key not found response +func (o *GetAPIKeyNotFound) Code() int { + return 404 +} + func (o *GetAPIKeyNotFound) Error() string { return fmt.Sprintf("[GET /users/auth/keys/{api_key_id}][%d] getApiKeyNotFound %+v", 404, o.Payload) } + +func (o *GetAPIKeyNotFound) String() string { + return fmt.Sprintf("[GET /users/auth/keys/{api_key_id}][%d] getApiKeyNotFound %+v", 404, o.Payload) +} + func (o *GetAPIKeyNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/get_api_keys_parameters.go b/pkg/client/authentication/get_api_keys_parameters.go index 2b8b2468..61740027 100644 --- a/pkg/client/authentication/get_api_keys_parameters.go +++ b/pkg/client/authentication/get_api_keys_parameters.go @@ -69,10 +69,12 @@ func NewGetAPIKeysParamsWithHTTPClient(client *http.Client) *GetAPIKeysParams { } } -/* GetAPIKeysParams contains all the parameters to send to the API endpoint - for the get api keys operation. +/* +GetAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get api keys operation. + + Typically these are written to a http.Request. */ type GetAPIKeysParams struct { timeout time.Duration diff --git a/pkg/client/authentication/get_api_keys_responses.go b/pkg/client/authentication/get_api_keys_responses.go index f934e7bf..d00abb91 100644 --- a/pkg/client/authentication/get_api_keys_responses.go +++ b/pkg/client/authentication/get_api_keys_responses.go @@ -56,7 +56,8 @@ func NewGetAPIKeysOK() *GetAPIKeysOK { return &GetAPIKeysOK{} } -/* GetAPIKeysOK describes a response with status code 200, with default header values. +/* +GetAPIKeysOK describes a response with status code 200, with default header values. The metadata for the API keys is retrieved. */ @@ -64,9 +65,44 @@ type GetAPIKeysOK struct { Payload *models.APIKeysResponse } +// IsSuccess returns true when this get Api keys o k response has a 2xx status code +func (o *GetAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get Api keys o k response has a 3xx status code +func (o *GetAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api keys o k response has a 4xx status code +func (o *GetAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get Api keys o k response has a 5xx status code +func (o *GetAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get Api keys o k response a status code equal to that given +func (o *GetAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get Api keys o k response +func (o *GetAPIKeysOK) Code() int { + return 200 +} + func (o *GetAPIKeysOK) Error() string { return fmt.Sprintf("[GET /users/auth/keys][%d] getApiKeysOK %+v", 200, o.Payload) } + +func (o *GetAPIKeysOK) String() string { + return fmt.Sprintf("[GET /users/auth/keys][%d] getApiKeysOK %+v", 200, o.Payload) +} + func (o *GetAPIKeysOK) GetPayload() *models.APIKeysResponse { return o.Payload } diff --git a/pkg/client/authentication/get_authentication_info_parameters.go b/pkg/client/authentication/get_authentication_info_parameters.go index 9542a7b2..65a85eb6 100644 --- a/pkg/client/authentication/get_authentication_info_parameters.go +++ b/pkg/client/authentication/get_authentication_info_parameters.go @@ -69,10 +69,12 @@ func NewGetAuthenticationInfoParamsWithHTTPClient(client *http.Client) *GetAuthe } } -/* GetAuthenticationInfoParams contains all the parameters to send to the API endpoint - for the get authentication info operation. +/* +GetAuthenticationInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get authentication info operation. + + Typically these are written to a http.Request. */ type GetAuthenticationInfoParams struct { timeout time.Duration diff --git a/pkg/client/authentication/get_authentication_info_responses.go b/pkg/client/authentication/get_authentication_info_responses.go index 0f28e4a1..8a565448 100644 --- a/pkg/client/authentication/get_authentication_info_responses.go +++ b/pkg/client/authentication/get_authentication_info_responses.go @@ -56,7 +56,8 @@ func NewGetAuthenticationInfoOK() *GetAuthenticationInfoOK { return &GetAuthenticationInfoOK{} } -/* GetAuthenticationInfoOK describes a response with status code 200, with default header values. +/* +GetAuthenticationInfoOK describes a response with status code 200, with default header values. User authentication information response */ @@ -64,9 +65,44 @@ type GetAuthenticationInfoOK struct { Payload *models.AuthenticationInfo } +// IsSuccess returns true when this get authentication info o k response has a 2xx status code +func (o *GetAuthenticationInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get authentication info o k response has a 3xx status code +func (o *GetAuthenticationInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get authentication info o k response has a 4xx status code +func (o *GetAuthenticationInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get authentication info o k response has a 5xx status code +func (o *GetAuthenticationInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get authentication info o k response a status code equal to that given +func (o *GetAuthenticationInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get authentication info o k response +func (o *GetAuthenticationInfoOK) Code() int { + return 200 +} + func (o *GetAuthenticationInfoOK) Error() string { return fmt.Sprintf("[GET /users/auth][%d] getAuthenticationInfoOK %+v", 200, o.Payload) } + +func (o *GetAuthenticationInfoOK) String() string { + return fmt.Sprintf("[GET /users/auth][%d] getAuthenticationInfoOK %+v", 200, o.Payload) +} + func (o *GetAuthenticationInfoOK) GetPayload() *models.AuthenticationInfo { return o.Payload } diff --git a/pkg/client/authentication/get_user_api_key_parameters.go b/pkg/client/authentication/get_user_api_key_parameters.go index d166af6b..7fb1fa79 100644 --- a/pkg/client/authentication/get_user_api_key_parameters.go +++ b/pkg/client/authentication/get_user_api_key_parameters.go @@ -69,10 +69,12 @@ func NewGetUserAPIKeyParamsWithHTTPClient(client *http.Client) *GetUserAPIKeyPar } } -/* GetUserAPIKeyParams contains all the parameters to send to the API endpoint - for the get user api key operation. +/* +GetUserAPIKeyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get user api key operation. + + Typically these are written to a http.Request. */ type GetUserAPIKeyParams struct { diff --git a/pkg/client/authentication/get_user_api_key_responses.go b/pkg/client/authentication/get_user_api_key_responses.go index 56689389..46a2ba87 100644 --- a/pkg/client/authentication/get_user_api_key_responses.go +++ b/pkg/client/authentication/get_user_api_key_responses.go @@ -62,7 +62,8 @@ func NewGetUserAPIKeyOK() *GetUserAPIKeyOK { return &GetUserAPIKeyOK{} } -/* GetUserAPIKeyOK describes a response with status code 200, with default header values. +/* +GetUserAPIKeyOK describes a response with status code 200, with default header values. The API key metadata is retrieved. */ @@ -70,9 +71,44 @@ type GetUserAPIKeyOK struct { Payload *models.APIKeyResponse } +// IsSuccess returns true when this get user Api key o k response has a 2xx status code +func (o *GetUserAPIKeyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get user Api key o k response has a 3xx status code +func (o *GetUserAPIKeyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user Api key o k response has a 4xx status code +func (o *GetUserAPIKeyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get user Api key o k response has a 5xx status code +func (o *GetUserAPIKeyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get user Api key o k response a status code equal to that given +func (o *GetUserAPIKeyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get user Api key o k response +func (o *GetUserAPIKeyOK) Code() int { + return 200 +} + func (o *GetUserAPIKeyOK) Error() string { return fmt.Sprintf("[GET /users/{user_id}/auth/keys/{api_key_id}][%d] getUserApiKeyOK %+v", 200, o.Payload) } + +func (o *GetUserAPIKeyOK) String() string { + return fmt.Sprintf("[GET /users/{user_id}/auth/keys/{api_key_id}][%d] getUserApiKeyOK %+v", 200, o.Payload) +} + func (o *GetUserAPIKeyOK) GetPayload() *models.APIKeyResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetUserAPIKeyNotFound() *GetUserAPIKeyNotFound { return &GetUserAPIKeyNotFound{} } -/* GetUserAPIKeyNotFound describes a response with status code 404, with default header values. +/* +GetUserAPIKeyNotFound describes a response with status code 404, with default header values. The {api_key_id} can't be found. (code: `api_keys.key_not_found`) */ @@ -107,9 +144,44 @@ type GetUserAPIKeyNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get user Api key not found response has a 2xx status code +func (o *GetUserAPIKeyNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user Api key not found response has a 3xx status code +func (o *GetUserAPIKeyNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user Api key not found response has a 4xx status code +func (o *GetUserAPIKeyNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user Api key not found response has a 5xx status code +func (o *GetUserAPIKeyNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get user Api key not found response a status code equal to that given +func (o *GetUserAPIKeyNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get user Api key not found response +func (o *GetUserAPIKeyNotFound) Code() int { + return 404 +} + func (o *GetUserAPIKeyNotFound) Error() string { return fmt.Sprintf("[GET /users/{user_id}/auth/keys/{api_key_id}][%d] getUserApiKeyNotFound %+v", 404, o.Payload) } + +func (o *GetUserAPIKeyNotFound) String() string { + return fmt.Sprintf("[GET /users/{user_id}/auth/keys/{api_key_id}][%d] getUserApiKeyNotFound %+v", 404, o.Payload) +} + func (o *GetUserAPIKeyNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/get_user_api_keys_parameters.go b/pkg/client/authentication/get_user_api_keys_parameters.go index b5437053..9a1ead25 100644 --- a/pkg/client/authentication/get_user_api_keys_parameters.go +++ b/pkg/client/authentication/get_user_api_keys_parameters.go @@ -69,10 +69,12 @@ func NewGetUserAPIKeysParamsWithHTTPClient(client *http.Client) *GetUserAPIKeysP } } -/* GetUserAPIKeysParams contains all the parameters to send to the API endpoint - for the get user api keys operation. +/* +GetUserAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get user api keys operation. + + Typically these are written to a http.Request. */ type GetUserAPIKeysParams struct { diff --git a/pkg/client/authentication/get_user_api_keys_responses.go b/pkg/client/authentication/get_user_api_keys_responses.go index 031e9c7f..7aae84a6 100644 --- a/pkg/client/authentication/get_user_api_keys_responses.go +++ b/pkg/client/authentication/get_user_api_keys_responses.go @@ -62,7 +62,8 @@ func NewGetUserAPIKeysOK() *GetUserAPIKeysOK { return &GetUserAPIKeysOK{} } -/* GetUserAPIKeysOK describes a response with status code 200, with default header values. +/* +GetUserAPIKeysOK describes a response with status code 200, with default header values. The API key metadata is retrieved. */ @@ -70,9 +71,44 @@ type GetUserAPIKeysOK struct { Payload *models.APIKeysResponse } +// IsSuccess returns true when this get user Api keys o k response has a 2xx status code +func (o *GetUserAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get user Api keys o k response has a 3xx status code +func (o *GetUserAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user Api keys o k response has a 4xx status code +func (o *GetUserAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get user Api keys o k response has a 5xx status code +func (o *GetUserAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get user Api keys o k response a status code equal to that given +func (o *GetUserAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get user Api keys o k response +func (o *GetUserAPIKeysOK) Code() int { + return 200 +} + func (o *GetUserAPIKeysOK) Error() string { return fmt.Sprintf("[GET /users/{user_id}/auth/keys][%d] getUserApiKeysOK %+v", 200, o.Payload) } + +func (o *GetUserAPIKeysOK) String() string { + return fmt.Sprintf("[GET /users/{user_id}/auth/keys][%d] getUserApiKeysOK %+v", 200, o.Payload) +} + func (o *GetUserAPIKeysOK) GetPayload() *models.APIKeysResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetUserAPIKeysNotFound() *GetUserAPIKeysNotFound { return &GetUserAPIKeysNotFound{} } -/* GetUserAPIKeysNotFound describes a response with status code 404, with default header values. +/* +GetUserAPIKeysNotFound describes a response with status code 404, with default header values. The {user_id} can't be found. (code: `api_keys.user_not_found`) */ @@ -107,9 +144,44 @@ type GetUserAPIKeysNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get user Api keys not found response has a 2xx status code +func (o *GetUserAPIKeysNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user Api keys not found response has a 3xx status code +func (o *GetUserAPIKeysNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user Api keys not found response has a 4xx status code +func (o *GetUserAPIKeysNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user Api keys not found response has a 5xx status code +func (o *GetUserAPIKeysNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get user Api keys not found response a status code equal to that given +func (o *GetUserAPIKeysNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get user Api keys not found response +func (o *GetUserAPIKeysNotFound) Code() int { + return 404 +} + func (o *GetUserAPIKeysNotFound) Error() string { return fmt.Sprintf("[GET /users/{user_id}/auth/keys][%d] getUserApiKeysNotFound %+v", 404, o.Payload) } + +func (o *GetUserAPIKeysNotFound) String() string { + return fmt.Sprintf("[GET /users/{user_id}/auth/keys][%d] getUserApiKeysNotFound %+v", 404, o.Payload) +} + func (o *GetUserAPIKeysNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/get_users_api_keys_parameters.go b/pkg/client/authentication/get_users_api_keys_parameters.go index 00d48164..cbbae856 100644 --- a/pkg/client/authentication/get_users_api_keys_parameters.go +++ b/pkg/client/authentication/get_users_api_keys_parameters.go @@ -69,10 +69,12 @@ func NewGetUsersAPIKeysParamsWithHTTPClient(client *http.Client) *GetUsersAPIKey } } -/* GetUsersAPIKeysParams contains all the parameters to send to the API endpoint - for the get users api keys operation. +/* +GetUsersAPIKeysParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get users api keys operation. + + Typically these are written to a http.Request. */ type GetUsersAPIKeysParams struct { timeout time.Duration diff --git a/pkg/client/authentication/get_users_api_keys_responses.go b/pkg/client/authentication/get_users_api_keys_responses.go index bcca31f5..d6ccad73 100644 --- a/pkg/client/authentication/get_users_api_keys_responses.go +++ b/pkg/client/authentication/get_users_api_keys_responses.go @@ -56,7 +56,8 @@ func NewGetUsersAPIKeysOK() *GetUsersAPIKeysOK { return &GetUsersAPIKeysOK{} } -/* GetUsersAPIKeysOK describes a response with status code 200, with default header values. +/* +GetUsersAPIKeysOK describes a response with status code 200, with default header values. The metadata for the API keys is retrieved. */ @@ -64,9 +65,44 @@ type GetUsersAPIKeysOK struct { Payload *models.APIKeysResponse } +// IsSuccess returns true when this get users Api keys o k response has a 2xx status code +func (o *GetUsersAPIKeysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get users Api keys o k response has a 3xx status code +func (o *GetUsersAPIKeysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users Api keys o k response has a 4xx status code +func (o *GetUsersAPIKeysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get users Api keys o k response has a 5xx status code +func (o *GetUsersAPIKeysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get users Api keys o k response a status code equal to that given +func (o *GetUsersAPIKeysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get users Api keys o k response +func (o *GetUsersAPIKeysOK) Code() int { + return 200 +} + func (o *GetUsersAPIKeysOK) Error() string { return fmt.Sprintf("[GET /users/auth/keys/_all][%d] getUsersApiKeysOK %+v", 200, o.Payload) } + +func (o *GetUsersAPIKeysOK) String() string { + return fmt.Sprintf("[GET /users/auth/keys/_all][%d] getUsersApiKeysOK %+v", 200, o.Payload) +} + func (o *GetUsersAPIKeysOK) GetPayload() *models.APIKeysResponse { return o.Payload } diff --git a/pkg/client/authentication/login_parameters.go b/pkg/client/authentication/login_parameters.go index ae30648c..818cf46b 100644 --- a/pkg/client/authentication/login_parameters.go +++ b/pkg/client/authentication/login_parameters.go @@ -71,10 +71,12 @@ func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams { } } -/* LoginParams contains all the parameters to send to the API endpoint - for the login operation. +/* +LoginParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the login operation. + + Typically these are written to a http.Request. */ type LoginParams struct { diff --git a/pkg/client/authentication/login_responses.go b/pkg/client/authentication/login_responses.go index 238c982f..c23d2b5d 100644 --- a/pkg/client/authentication/login_responses.go +++ b/pkg/client/authentication/login_responses.go @@ -80,7 +80,8 @@ func NewLoginOK() *LoginOK { return &LoginOK{} } -/* LoginOK describes a response with status code 200, with default header values. +/* +LoginOK describes a response with status code 200, with default header values. Login successful, returns the token in the body (if 'login_state.path' not specified) */ @@ -88,9 +89,44 @@ type LoginOK struct { Payload *models.TokenResponse } +// IsSuccess returns true when this login o k response has a 2xx status code +func (o *LoginOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this login o k response has a 3xx status code +func (o *LoginOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this login o k response has a 4xx status code +func (o *LoginOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this login o k response has a 5xx status code +func (o *LoginOK) IsServerError() bool { + return false +} + +// IsCode returns true when this login o k response a status code equal to that given +func (o *LoginOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the login o k response +func (o *LoginOK) Code() int { + return 200 +} + func (o *LoginOK) Error() string { return fmt.Sprintf("[POST /users/auth/_login][%d] loginOK %+v", 200, o.Payload) } + +func (o *LoginOK) String() string { + return fmt.Sprintf("[POST /users/auth/_login][%d] loginOK %+v", 200, o.Payload) +} + func (o *LoginOK) GetPayload() *models.TokenResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewLoginFound() *LoginFound { return &LoginFound{} } -/* LoginFound describes a response with status code 302, with default header values. +/* +LoginFound describes a response with status code 302, with default header values. Redirects to '/sso/token#BEARER_TOKEN?state=LOGIN_STATE' with the fragment containing a bearer token (if 'login_state.path' is specified) */ @@ -120,9 +157,44 @@ type LoginFound struct { Payload models.EmptyResponse } +// IsSuccess returns true when this login found response has a 2xx status code +func (o *LoginFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this login found response has a 3xx status code +func (o *LoginFound) IsRedirect() bool { + return true +} + +// IsClientError returns true when this login found response has a 4xx status code +func (o *LoginFound) IsClientError() bool { + return false +} + +// IsServerError returns true when this login found response has a 5xx status code +func (o *LoginFound) IsServerError() bool { + return false +} + +// IsCode returns true when this login found response a status code equal to that given +func (o *LoginFound) IsCode(code int) bool { + return code == 302 +} + +// Code gets the status code for the login found response +func (o *LoginFound) Code() int { + return 302 +} + func (o *LoginFound) Error() string { return fmt.Sprintf("[POST /users/auth/_login][%d] loginFound %+v", 302, o.Payload) } + +func (o *LoginFound) String() string { + return fmt.Sprintf("[POST /users/auth/_login][%d] loginFound %+v", 302, o.Payload) +} + func (o *LoginFound) GetPayload() models.EmptyResponse { return o.Payload } @@ -142,7 +214,8 @@ func NewLoginUnauthorized() *LoginUnauthorized { return &LoginUnauthorized{} } -/* LoginUnauthorized describes a response with status code 401, with default header values. +/* +LoginUnauthorized describes a response with status code 401, with default header values. The supplied authentication is invalid. (code: `root.unauthenticated`) */ @@ -155,9 +228,44 @@ type LoginUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this login unauthorized response has a 2xx status code +func (o *LoginUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this login unauthorized response has a 3xx status code +func (o *LoginUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this login unauthorized response has a 4xx status code +func (o *LoginUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this login unauthorized response has a 5xx status code +func (o *LoginUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this login unauthorized response a status code equal to that given +func (o *LoginUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the login unauthorized response +func (o *LoginUnauthorized) Code() int { + return 401 +} + func (o *LoginUnauthorized) Error() string { return fmt.Sprintf("[POST /users/auth/_login][%d] loginUnauthorized %+v", 401, o.Payload) } + +func (o *LoginUnauthorized) String() string { + return fmt.Sprintf("[POST /users/auth/_login][%d] loginUnauthorized %+v", 401, o.Payload) +} + func (o *LoginUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -186,7 +294,8 @@ func NewLoginNotImplemented() *LoginNotImplemented { return &LoginNotImplemented{} } -/* LoginNotImplemented describes a response with status code 501, with default header values. +/* +LoginNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -199,9 +308,44 @@ type LoginNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this login not implemented response has a 2xx status code +func (o *LoginNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this login not implemented response has a 3xx status code +func (o *LoginNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this login not implemented response has a 4xx status code +func (o *LoginNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this login not implemented response has a 5xx status code +func (o *LoginNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this login not implemented response a status code equal to that given +func (o *LoginNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the login not implemented response +func (o *LoginNotImplemented) Code() int { + return 501 +} + func (o *LoginNotImplemented) Error() string { return fmt.Sprintf("[POST /users/auth/_login][%d] loginNotImplemented %+v", 501, o.Payload) } + +func (o *LoginNotImplemented) String() string { + return fmt.Sprintf("[POST /users/auth/_login][%d] loginNotImplemented %+v", 501, o.Payload) +} + func (o *LoginNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -230,7 +374,8 @@ func NewLoginBadGateway() *LoginBadGateway { return &LoginBadGateway{} } -/* LoginBadGateway describes a response with status code 502, with default header values. +/* +LoginBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -243,9 +388,44 @@ type LoginBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this login bad gateway response has a 2xx status code +func (o *LoginBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this login bad gateway response has a 3xx status code +func (o *LoginBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this login bad gateway response has a 4xx status code +func (o *LoginBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this login bad gateway response has a 5xx status code +func (o *LoginBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this login bad gateway response a status code equal to that given +func (o *LoginBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the login bad gateway response +func (o *LoginBadGateway) Code() int { + return 502 +} + func (o *LoginBadGateway) Error() string { return fmt.Sprintf("[POST /users/auth/_login][%d] loginBadGateway %+v", 502, o.Payload) } + +func (o *LoginBadGateway) String() string { + return fmt.Sprintf("[POST /users/auth/_login][%d] loginBadGateway %+v", 502, o.Payload) +} + func (o *LoginBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/logout_parameters.go b/pkg/client/authentication/logout_parameters.go index 8cad4059..683a7eb8 100644 --- a/pkg/client/authentication/logout_parameters.go +++ b/pkg/client/authentication/logout_parameters.go @@ -69,10 +69,12 @@ func NewLogoutParamsWithHTTPClient(client *http.Client) *LogoutParams { } } -/* LogoutParams contains all the parameters to send to the API endpoint - for the logout operation. +/* +LogoutParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the logout operation. + + Typically these are written to a http.Request. */ type LogoutParams struct { diff --git a/pkg/client/authentication/logout_responses.go b/pkg/client/authentication/logout_responses.go index 2b3c1274..750c3742 100644 --- a/pkg/client/authentication/logout_responses.go +++ b/pkg/client/authentication/logout_responses.go @@ -68,7 +68,8 @@ func NewLogoutOK() *LogoutOK { return &LogoutOK{} } -/* LogoutOK describes a response with status code 200, with default header values. +/* +LogoutOK describes a response with status code 200, with default header values. The current session was successfully destroyed. */ @@ -76,9 +77,44 @@ type LogoutOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this logout o k response has a 2xx status code +func (o *LogoutOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this logout o k response has a 3xx status code +func (o *LogoutOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this logout o k response has a 4xx status code +func (o *LogoutOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this logout o k response has a 5xx status code +func (o *LogoutOK) IsServerError() bool { + return false +} + +// IsCode returns true when this logout o k response a status code equal to that given +func (o *LogoutOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the logout o k response +func (o *LogoutOK) Code() int { + return 200 +} + func (o *LogoutOK) Error() string { return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutOK %+v", 200, o.Payload) } + +func (o *LogoutOK) String() string { + return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutOK %+v", 200, o.Payload) +} + func (o *LogoutOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewLogoutNotImplemented() *LogoutNotImplemented { return &LogoutNotImplemented{} } -/* LogoutNotImplemented describes a response with status code 501, with default header values. +/* +LogoutNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -111,9 +148,44 @@ type LogoutNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this logout not implemented response has a 2xx status code +func (o *LogoutNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this logout not implemented response has a 3xx status code +func (o *LogoutNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this logout not implemented response has a 4xx status code +func (o *LogoutNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this logout not implemented response has a 5xx status code +func (o *LogoutNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this logout not implemented response a status code equal to that given +func (o *LogoutNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the logout not implemented response +func (o *LogoutNotImplemented) Code() int { + return 501 +} + func (o *LogoutNotImplemented) Error() string { return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutNotImplemented %+v", 501, o.Payload) } + +func (o *LogoutNotImplemented) String() string { + return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutNotImplemented %+v", 501, o.Payload) +} + func (o *LogoutNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewLogoutBadGateway() *LogoutBadGateway { return &LogoutBadGateway{} } -/* LogoutBadGateway describes a response with status code 502, with default header values. +/* +LogoutBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -155,9 +228,44 @@ type LogoutBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this logout bad gateway response has a 2xx status code +func (o *LogoutBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this logout bad gateway response has a 3xx status code +func (o *LogoutBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this logout bad gateway response has a 4xx status code +func (o *LogoutBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this logout bad gateway response has a 5xx status code +func (o *LogoutBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this logout bad gateway response a status code equal to that given +func (o *LogoutBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the logout bad gateway response +func (o *LogoutBadGateway) Code() int { + return 502 +} + func (o *LogoutBadGateway) Error() string { return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutBadGateway %+v", 502, o.Payload) } + +func (o *LogoutBadGateway) String() string { + return fmt.Sprintf("[POST /users/auth/_logout][%d] logoutBadGateway %+v", 502, o.Payload) +} + func (o *LogoutBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/methods_parameters.go b/pkg/client/authentication/methods_parameters.go index 3cf3fc80..b85ce9de 100644 --- a/pkg/client/authentication/methods_parameters.go +++ b/pkg/client/authentication/methods_parameters.go @@ -69,10 +69,12 @@ func NewMethodsParamsWithHTTPClient(client *http.Client) *MethodsParams { } } -/* MethodsParams contains all the parameters to send to the API endpoint - for the methods operation. +/* +MethodsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the methods operation. + + Typically these are written to a http.Request. */ type MethodsParams struct { timeout time.Duration diff --git a/pkg/client/authentication/methods_responses.go b/pkg/client/authentication/methods_responses.go index 86d2d775..28b065d8 100644 --- a/pkg/client/authentication/methods_responses.go +++ b/pkg/client/authentication/methods_responses.go @@ -56,7 +56,8 @@ func NewMethodsOK() *MethodsOK { return &MethodsOK{} } -/* MethodsOK describes a response with status code 200, with default header values. +/* +MethodsOK describes a response with status code 200, with default header values. Available authentication methods response */ @@ -64,9 +65,44 @@ type MethodsOK struct { Payload *models.AvailableAuthenticationMethods } +// IsSuccess returns true when this methods o k response has a 2xx status code +func (o *MethodsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this methods o k response has a 3xx status code +func (o *MethodsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this methods o k response has a 4xx status code +func (o *MethodsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this methods o k response has a 5xx status code +func (o *MethodsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this methods o k response a status code equal to that given +func (o *MethodsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the methods o k response +func (o *MethodsOK) Code() int { + return 200 +} + func (o *MethodsOK) Error() string { return fmt.Sprintf("[GET /users/auth/methods][%d] methodsOK %+v", 200, o.Payload) } + +func (o *MethodsOK) String() string { + return fmt.Sprintf("[GET /users/auth/methods][%d] methodsOK %+v", 200, o.Payload) +} + func (o *MethodsOK) GetPayload() *models.AvailableAuthenticationMethods { return o.Payload } diff --git a/pkg/client/authentication/refresh_token_parameters.go b/pkg/client/authentication/refresh_token_parameters.go index ce18c946..d75420c7 100644 --- a/pkg/client/authentication/refresh_token_parameters.go +++ b/pkg/client/authentication/refresh_token_parameters.go @@ -69,10 +69,12 @@ func NewRefreshTokenParamsWithHTTPClient(client *http.Client) *RefreshTokenParam } } -/* RefreshTokenParams contains all the parameters to send to the API endpoint - for the refresh token operation. +/* +RefreshTokenParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the refresh token operation. + + Typically these are written to a http.Request. */ type RefreshTokenParams struct { timeout time.Duration diff --git a/pkg/client/authentication/refresh_token_responses.go b/pkg/client/authentication/refresh_token_responses.go index a8ae54c1..243c129f 100644 --- a/pkg/client/authentication/refresh_token_responses.go +++ b/pkg/client/authentication/refresh_token_responses.go @@ -74,7 +74,8 @@ func NewRefreshTokenOK() *RefreshTokenOK { return &RefreshTokenOK{} } -/* RefreshTokenOK describes a response with status code 200, with default header values. +/* +RefreshTokenOK describes a response with status code 200, with default header values. The token refreshed successfully and was returned in the body of the response. */ @@ -82,9 +83,44 @@ type RefreshTokenOK struct { Payload *models.TokenResponse } +// IsSuccess returns true when this refresh token o k response has a 2xx status code +func (o *RefreshTokenOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this refresh token o k response has a 3xx status code +func (o *RefreshTokenOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this refresh token o k response has a 4xx status code +func (o *RefreshTokenOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this refresh token o k response has a 5xx status code +func (o *RefreshTokenOK) IsServerError() bool { + return false +} + +// IsCode returns true when this refresh token o k response a status code equal to that given +func (o *RefreshTokenOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the refresh token o k response +func (o *RefreshTokenOK) Code() int { + return 200 +} + func (o *RefreshTokenOK) Error() string { return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenOK %+v", 200, o.Payload) } + +func (o *RefreshTokenOK) String() string { + return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenOK %+v", 200, o.Payload) +} + func (o *RefreshTokenOK) GetPayload() *models.TokenResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewRefreshTokenUnauthorized() *RefreshTokenUnauthorized { return &RefreshTokenUnauthorized{} } -/* RefreshTokenUnauthorized describes a response with status code 401, with default header values. +/* +RefreshTokenUnauthorized describes a response with status code 401, with default header values. The authentication token is invalid or expired. (code: `root.unauthorized`) */ @@ -119,9 +156,44 @@ type RefreshTokenUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this refresh token unauthorized response has a 2xx status code +func (o *RefreshTokenUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this refresh token unauthorized response has a 3xx status code +func (o *RefreshTokenUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this refresh token unauthorized response has a 4xx status code +func (o *RefreshTokenUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this refresh token unauthorized response has a 5xx status code +func (o *RefreshTokenUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this refresh token unauthorized response a status code equal to that given +func (o *RefreshTokenUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the refresh token unauthorized response +func (o *RefreshTokenUnauthorized) Code() int { + return 401 +} + func (o *RefreshTokenUnauthorized) Error() string { return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenUnauthorized %+v", 401, o.Payload) } + +func (o *RefreshTokenUnauthorized) String() string { + return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenUnauthorized %+v", 401, o.Payload) +} + func (o *RefreshTokenUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewRefreshTokenNotImplemented() *RefreshTokenNotImplemented { return &RefreshTokenNotImplemented{} } -/* RefreshTokenNotImplemented describes a response with status code 501, with default header values. +/* +RefreshTokenNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -163,9 +236,44 @@ type RefreshTokenNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this refresh token not implemented response has a 2xx status code +func (o *RefreshTokenNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this refresh token not implemented response has a 3xx status code +func (o *RefreshTokenNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this refresh token not implemented response has a 4xx status code +func (o *RefreshTokenNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this refresh token not implemented response has a 5xx status code +func (o *RefreshTokenNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this refresh token not implemented response a status code equal to that given +func (o *RefreshTokenNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the refresh token not implemented response +func (o *RefreshTokenNotImplemented) Code() int { + return 501 +} + func (o *RefreshTokenNotImplemented) Error() string { return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenNotImplemented %+v", 501, o.Payload) } + +func (o *RefreshTokenNotImplemented) String() string { + return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenNotImplemented %+v", 501, o.Payload) +} + func (o *RefreshTokenNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewRefreshTokenBadGateway() *RefreshTokenBadGateway { return &RefreshTokenBadGateway{} } -/* RefreshTokenBadGateway describes a response with status code 502, with default header values. +/* +RefreshTokenBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -207,9 +316,44 @@ type RefreshTokenBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this refresh token bad gateway response has a 2xx status code +func (o *RefreshTokenBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this refresh token bad gateway response has a 3xx status code +func (o *RefreshTokenBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this refresh token bad gateway response has a 4xx status code +func (o *RefreshTokenBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this refresh token bad gateway response has a 5xx status code +func (o *RefreshTokenBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this refresh token bad gateway response a status code equal to that given +func (o *RefreshTokenBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the refresh token bad gateway response +func (o *RefreshTokenBadGateway) Code() int { + return 502 +} + func (o *RefreshTokenBadGateway) Error() string { return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenBadGateway %+v", 502, o.Payload) } + +func (o *RefreshTokenBadGateway) String() string { + return fmt.Sprintf("[POST /users/auth/_refresh][%d] refreshTokenBadGateway %+v", 502, o.Payload) +} + func (o *RefreshTokenBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/saml_callback_parameters.go b/pkg/client/authentication/saml_callback_parameters.go index 6f520ba7..c35f7723 100644 --- a/pkg/client/authentication/saml_callback_parameters.go +++ b/pkg/client/authentication/saml_callback_parameters.go @@ -69,10 +69,12 @@ func NewSamlCallbackParamsWithHTTPClient(client *http.Client) *SamlCallbackParam } } -/* SamlCallbackParams contains all the parameters to send to the API endpoint - for the saml callback operation. +/* +SamlCallbackParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the saml callback operation. + + Typically these are written to a http.Request. */ type SamlCallbackParams struct { diff --git a/pkg/client/authentication/saml_callback_responses.go b/pkg/client/authentication/saml_callback_responses.go index 00c5dcbe..2bb7fa4b 100644 --- a/pkg/client/authentication/saml_callback_responses.go +++ b/pkg/client/authentication/saml_callback_responses.go @@ -74,7 +74,8 @@ func NewSamlCallbackFound() *SamlCallbackFound { return &SamlCallbackFound{} } -/* SamlCallbackFound describes a response with status code 302, with default header values. +/* +SamlCallbackFound describes a response with status code 302, with default header values. Redirects to the UI endpoint with an authorization token in the fragment and the relay state, if it was specified during the initialization. */ @@ -82,9 +83,44 @@ type SamlCallbackFound struct { Payload models.EmptyResponse } +// IsSuccess returns true when this saml callback found response has a 2xx status code +func (o *SamlCallbackFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml callback found response has a 3xx status code +func (o *SamlCallbackFound) IsRedirect() bool { + return true +} + +// IsClientError returns true when this saml callback found response has a 4xx status code +func (o *SamlCallbackFound) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml callback found response has a 5xx status code +func (o *SamlCallbackFound) IsServerError() bool { + return false +} + +// IsCode returns true when this saml callback found response a status code equal to that given +func (o *SamlCallbackFound) IsCode(code int) bool { + return code == 302 +} + +// Code gets the status code for the saml callback found response +func (o *SamlCallbackFound) Code() int { + return 302 +} + func (o *SamlCallbackFound) Error() string { return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackFound %+v", 302, o.Payload) } + +func (o *SamlCallbackFound) String() string { + return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackFound %+v", 302, o.Payload) +} + func (o *SamlCallbackFound) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewSamlCallbackUnauthorized() *SamlCallbackUnauthorized { return &SamlCallbackUnauthorized{} } -/* SamlCallbackUnauthorized describes a response with status code 401, with default header values. +/* +SamlCallbackUnauthorized describes a response with status code 401, with default header values. The supplied SAML response is invalid. (code: `root.unauthenticated`) */ @@ -117,9 +154,44 @@ type SamlCallbackUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this saml callback unauthorized response has a 2xx status code +func (o *SamlCallbackUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml callback unauthorized response has a 3xx status code +func (o *SamlCallbackUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this saml callback unauthorized response has a 4xx status code +func (o *SamlCallbackUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this saml callback unauthorized response has a 5xx status code +func (o *SamlCallbackUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this saml callback unauthorized response a status code equal to that given +func (o *SamlCallbackUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the saml callback unauthorized response +func (o *SamlCallbackUnauthorized) Code() int { + return 401 +} + func (o *SamlCallbackUnauthorized) Error() string { return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackUnauthorized %+v", 401, o.Payload) } + +func (o *SamlCallbackUnauthorized) String() string { + return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackUnauthorized %+v", 401, o.Payload) +} + func (o *SamlCallbackUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewSamlCallbackNotImplemented() *SamlCallbackNotImplemented { return &SamlCallbackNotImplemented{} } -/* SamlCallbackNotImplemented describes a response with status code 501, with default header values. +/* +SamlCallbackNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -161,9 +234,44 @@ type SamlCallbackNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this saml callback not implemented response has a 2xx status code +func (o *SamlCallbackNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml callback not implemented response has a 3xx status code +func (o *SamlCallbackNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this saml callback not implemented response has a 4xx status code +func (o *SamlCallbackNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml callback not implemented response has a 5xx status code +func (o *SamlCallbackNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this saml callback not implemented response a status code equal to that given +func (o *SamlCallbackNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the saml callback not implemented response +func (o *SamlCallbackNotImplemented) Code() int { + return 501 +} + func (o *SamlCallbackNotImplemented) Error() string { return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackNotImplemented %+v", 501, o.Payload) } + +func (o *SamlCallbackNotImplemented) String() string { + return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackNotImplemented %+v", 501, o.Payload) +} + func (o *SamlCallbackNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewSamlCallbackBadGateway() *SamlCallbackBadGateway { return &SamlCallbackBadGateway{} } -/* SamlCallbackBadGateway describes a response with status code 502, with default header values. +/* +SamlCallbackBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -205,9 +314,44 @@ type SamlCallbackBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this saml callback bad gateway response has a 2xx status code +func (o *SamlCallbackBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml callback bad gateway response has a 3xx status code +func (o *SamlCallbackBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this saml callback bad gateway response has a 4xx status code +func (o *SamlCallbackBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml callback bad gateway response has a 5xx status code +func (o *SamlCallbackBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this saml callback bad gateway response a status code equal to that given +func (o *SamlCallbackBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the saml callback bad gateway response +func (o *SamlCallbackBadGateway) Code() int { + return 502 +} + func (o *SamlCallbackBadGateway) Error() string { return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackBadGateway %+v", 502, o.Payload) } + +func (o *SamlCallbackBadGateway) String() string { + return fmt.Sprintf("[POST /users/auth/saml/_callback][%d] samlCallbackBadGateway %+v", 502, o.Payload) +} + func (o *SamlCallbackBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/authentication/saml_init_parameters.go b/pkg/client/authentication/saml_init_parameters.go index c2afaa5a..aa9e2c8c 100644 --- a/pkg/client/authentication/saml_init_parameters.go +++ b/pkg/client/authentication/saml_init_parameters.go @@ -69,10 +69,12 @@ func NewSamlInitParamsWithHTTPClient(client *http.Client) *SamlInitParams { } } -/* SamlInitParams contains all the parameters to send to the API endpoint - for the saml init operation. +/* +SamlInitParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the saml init operation. + + Typically these are written to a http.Request. */ type SamlInitParams struct { diff --git a/pkg/client/authentication/saml_init_responses.go b/pkg/client/authentication/saml_init_responses.go index fbef68f9..453c3a16 100644 --- a/pkg/client/authentication/saml_init_responses.go +++ b/pkg/client/authentication/saml_init_responses.go @@ -68,7 +68,8 @@ func NewSamlInitFound() *SamlInitFound { return &SamlInitFound{} } -/* SamlInitFound describes a response with status code 302, with default header values. +/* +SamlInitFound describes a response with status code 302, with default header values. Redirects the client to the identity provider with a SAML authentication request */ @@ -76,9 +77,44 @@ type SamlInitFound struct { Payload models.EmptyResponse } +// IsSuccess returns true when this saml init found response has a 2xx status code +func (o *SamlInitFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml init found response has a 3xx status code +func (o *SamlInitFound) IsRedirect() bool { + return true +} + +// IsClientError returns true when this saml init found response has a 4xx status code +func (o *SamlInitFound) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml init found response has a 5xx status code +func (o *SamlInitFound) IsServerError() bool { + return false +} + +// IsCode returns true when this saml init found response a status code equal to that given +func (o *SamlInitFound) IsCode(code int) bool { + return code == 302 +} + +// Code gets the status code for the saml init found response +func (o *SamlInitFound) Code() int { + return 302 +} + func (o *SamlInitFound) Error() string { return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitFound %+v", 302, o.Payload) } + +func (o *SamlInitFound) String() string { + return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitFound %+v", 302, o.Payload) +} + func (o *SamlInitFound) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewSamlInitNotImplemented() *SamlInitNotImplemented { return &SamlInitNotImplemented{} } -/* SamlInitNotImplemented describes a response with status code 501, with default header values. +/* +SamlInitNotImplemented describes a response with status code 501, with default header values. The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`) */ @@ -111,9 +148,44 @@ type SamlInitNotImplemented struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this saml init not implemented response has a 2xx status code +func (o *SamlInitNotImplemented) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml init not implemented response has a 3xx status code +func (o *SamlInitNotImplemented) IsRedirect() bool { + return false +} + +// IsClientError returns true when this saml init not implemented response has a 4xx status code +func (o *SamlInitNotImplemented) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml init not implemented response has a 5xx status code +func (o *SamlInitNotImplemented) IsServerError() bool { + return true +} + +// IsCode returns true when this saml init not implemented response a status code equal to that given +func (o *SamlInitNotImplemented) IsCode(code int) bool { + return code == 501 +} + +// Code gets the status code for the saml init not implemented response +func (o *SamlInitNotImplemented) Code() int { + return 501 +} + func (o *SamlInitNotImplemented) Error() string { return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitNotImplemented %+v", 501, o.Payload) } + +func (o *SamlInitNotImplemented) String() string { + return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitNotImplemented %+v", 501, o.Payload) +} + func (o *SamlInitNotImplemented) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewSamlInitBadGateway() *SamlInitBadGateway { return &SamlInitBadGateway{} } -/* SamlInitBadGateway describes a response with status code 502, with default header values. +/* +SamlInitBadGateway describes a response with status code 502, with default header values. The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`) */ @@ -155,9 +228,44 @@ type SamlInitBadGateway struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this saml init bad gateway response has a 2xx status code +func (o *SamlInitBadGateway) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this saml init bad gateway response has a 3xx status code +func (o *SamlInitBadGateway) IsRedirect() bool { + return false +} + +// IsClientError returns true when this saml init bad gateway response has a 4xx status code +func (o *SamlInitBadGateway) IsClientError() bool { + return false +} + +// IsServerError returns true when this saml init bad gateway response has a 5xx status code +func (o *SamlInitBadGateway) IsServerError() bool { + return true +} + +// IsCode returns true when this saml init bad gateway response a status code equal to that given +func (o *SamlInitBadGateway) IsCode(code int) bool { + return code == 502 +} + +// Code gets the status code for the saml init bad gateway response +func (o *SamlInitBadGateway) Code() int { + return 502 +} + func (o *SamlInitBadGateway) Error() string { return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitBadGateway %+v", 502, o.Payload) } + +func (o *SamlInitBadGateway) String() string { + return fmt.Sprintf("[GET /users/auth/saml/_init][%d] samlInitBadGateway %+v", 502, o.Payload) +} + func (o *SamlInitBadGateway) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/billing_costs_analysis_client.go b/pkg/client/billing_costs_analysis/billing_costs_analysis_client.go index 2d265e1c..da9410bb 100644 --- a/pkg/client/billing_costs_analysis/billing_costs_analysis_client.go +++ b/pkg/client/billing_costs_analysis/billing_costs_analysis_client.go @@ -63,9 +63,9 @@ type ClientService interface { } /* - GetCostsCharts gets charts for the organization currently unavailable in self hosted e c e +GetCostsCharts gets charts for the organization currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the organization. +EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the organization. */ func (a *Client) GetCostsCharts(params *GetCostsChartsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsOK, error) { // TODO: Validate the params before sending @@ -104,9 +104,9 @@ func (a *Client) GetCostsCharts(params *GetCostsChartsParams, authInfo runtime.C } /* - GetCostsChartsByDeployment gets charts by deployment currently unavailable in self hosted e c e +GetCostsChartsByDeployment gets charts by deployment currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the given deployment. +EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the given deployment. */ func (a *Client) GetCostsChartsByDeployment(params *GetCostsChartsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsByDeploymentOK, error) { // TODO: Validate the params before sending @@ -145,9 +145,9 @@ func (a *Client) GetCostsChartsByDeployment(params *GetCostsChartsByDeploymentPa } /* - GetCostsDeployments gets deployments costs for the organization currently unavailable in self hosted e c e +GetCostsDeployments gets deployments costs for the organization currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves the costs associated with all deployments for the organization. +EXPERIMENTAL (it may change in future versions): Retrieves the costs associated with all deployments for the organization. */ func (a *Client) GetCostsDeployments(params *GetCostsDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsDeploymentsOK, error) { // TODO: Validate the params before sending @@ -186,9 +186,9 @@ func (a *Client) GetCostsDeployments(params *GetCostsDeploymentsParams, authInfo } /* - GetCostsItems gets itemized costs for the organization currently unavailable in self hosted e c e +GetCostsItems gets itemized costs for the organization currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the organization. +EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the organization. */ func (a *Client) GetCostsItems(params *GetCostsItemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsOK, error) { // TODO: Validate the params before sending @@ -227,9 +227,9 @@ func (a *Client) GetCostsItems(params *GetCostsItemsParams, authInfo runtime.Cli } /* - GetCostsItemsByDeployment gets itemized costs by deployments currently unavailable in self hosted e c e +GetCostsItemsByDeployment gets itemized costs by deployments currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the given deployment. +EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the given deployment. */ func (a *Client) GetCostsItemsByDeployment(params *GetCostsItemsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsByDeploymentOK, error) { // TODO: Validate the params before sending @@ -268,9 +268,9 @@ func (a *Client) GetCostsItemsByDeployment(params *GetCostsItemsByDeploymentPara } /* - GetCostsOverview gets costs overview for the organization currently unavailable in self hosted e c e +GetCostsOverview gets costs overview for the organization currently unavailable in self hosted e c e - EXPERIMENTAL (it may change in future versions): Retrieves an overview of the costs by organization ID. +EXPERIMENTAL (it may change in future versions): Retrieves an overview of the costs by organization ID. */ func (a *Client) GetCostsOverview(params *GetCostsOverviewParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsOverviewOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_parameters.go b/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_parameters.go index 983c2bc1..37064f8f 100644 --- a/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsChartsByDeploymentParamsWithHTTPClient(client *http.Client) *Get } } -/* GetCostsChartsByDeploymentParams contains all the parameters to send to the API endpoint - for the get costs charts by deployment operation. +/* +GetCostsChartsByDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs charts by deployment operation. + + Typically these are written to a http.Request. */ type GetCostsChartsByDeploymentParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_responses.go b/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_responses.go index be925fc1..a88f355a 100644 --- a/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_charts_by_deployment_responses.go @@ -80,7 +80,8 @@ func NewGetCostsChartsByDeploymentOK() *GetCostsChartsByDeploymentOK { return &GetCostsChartsByDeploymentOK{} } -/* GetCostsChartsByDeploymentOK describes a response with status code 200, with default header values. +/* +GetCostsChartsByDeploymentOK describes a response with status code 200, with default header values. The usage charts of a deployment. */ @@ -88,9 +89,44 @@ type GetCostsChartsByDeploymentOK struct { Payload *models.ChartItems } +// IsSuccess returns true when this get costs charts by deployment o k response has a 2xx status code +func (o *GetCostsChartsByDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs charts by deployment o k response has a 3xx status code +func (o *GetCostsChartsByDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts by deployment o k response has a 4xx status code +func (o *GetCostsChartsByDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs charts by deployment o k response has a 5xx status code +func (o *GetCostsChartsByDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts by deployment o k response a status code equal to that given +func (o *GetCostsChartsByDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs charts by deployment o k response +func (o *GetCostsChartsByDeploymentOK) Code() int { + return 200 +} + func (o *GetCostsChartsByDeploymentOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentOK %+v", 200, o.Payload) } + +func (o *GetCostsChartsByDeploymentOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentOK %+v", 200, o.Payload) +} + func (o *GetCostsChartsByDeploymentOK) GetPayload() *models.ChartItems { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsChartsByDeploymentBadRequest() *GetCostsChartsByDeploymentBadReq return &GetCostsChartsByDeploymentBadRequest{} } -/* GetCostsChartsByDeploymentBadRequest describes a response with status code 400, with default header values. +/* +GetCostsChartsByDeploymentBadRequest describes a response with status code 400, with default header values. The specified date range is invalid. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsChartsByDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts by deployment bad request response has a 2xx status code +func (o *GetCostsChartsByDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts by deployment bad request response has a 3xx status code +func (o *GetCostsChartsByDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts by deployment bad request response has a 4xx status code +func (o *GetCostsChartsByDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts by deployment bad request response has a 5xx status code +func (o *GetCostsChartsByDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts by deployment bad request response a status code equal to that given +func (o *GetCostsChartsByDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs charts by deployment bad request response +func (o *GetCostsChartsByDeploymentBadRequest) Code() int { + return 400 +} + func (o *GetCostsChartsByDeploymentBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsChartsByDeploymentBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsChartsByDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsChartsByDeploymentForbidden() *GetCostsChartsByDeploymentForbidd return &GetCostsChartsByDeploymentForbidden{} } -/* GetCostsChartsByDeploymentForbidden describes a response with status code 403, with default header values. +/* +GetCostsChartsByDeploymentForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsChartsByDeploymentForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts by deployment forbidden response has a 2xx status code +func (o *GetCostsChartsByDeploymentForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts by deployment forbidden response has a 3xx status code +func (o *GetCostsChartsByDeploymentForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts by deployment forbidden response has a 4xx status code +func (o *GetCostsChartsByDeploymentForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts by deployment forbidden response has a 5xx status code +func (o *GetCostsChartsByDeploymentForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts by deployment forbidden response a status code equal to that given +func (o *GetCostsChartsByDeploymentForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs charts by deployment forbidden response +func (o *GetCostsChartsByDeploymentForbidden) Code() int { + return 403 +} + func (o *GetCostsChartsByDeploymentForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentForbidden %+v", 403, o.Payload) } + +func (o *GetCostsChartsByDeploymentForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentForbidden %+v", 403, o.Payload) +} + func (o *GetCostsChartsByDeploymentForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewGetCostsChartsByDeploymentNotFound() *GetCostsChartsByDeploymentNotFound return &GetCostsChartsByDeploymentNotFound{} } -/* GetCostsChartsByDeploymentNotFound describes a response with status code 404, with default header values. +/* +GetCostsChartsByDeploymentNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -213,9 +322,44 @@ type GetCostsChartsByDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts by deployment not found response has a 2xx status code +func (o *GetCostsChartsByDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts by deployment not found response has a 3xx status code +func (o *GetCostsChartsByDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts by deployment not found response has a 4xx status code +func (o *GetCostsChartsByDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts by deployment not found response has a 5xx status code +func (o *GetCostsChartsByDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts by deployment not found response a status code equal to that given +func (o *GetCostsChartsByDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs charts by deployment not found response +func (o *GetCostsChartsByDeploymentNotFound) Code() int { + return 404 +} + func (o *GetCostsChartsByDeploymentNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentNotFound %+v", 404, o.Payload) } + +func (o *GetCostsChartsByDeploymentNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentNotFound %+v", 404, o.Payload) +} + func (o *GetCostsChartsByDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewGetCostsChartsByDeploymentInternalServerError() *GetCostsChartsByDeploym return &GetCostsChartsByDeploymentInternalServerError{} } -/* GetCostsChartsByDeploymentInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsChartsByDeploymentInternalServerError describes a response with status code 500, with default header values. Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`) */ @@ -257,9 +402,44 @@ type GetCostsChartsByDeploymentInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts by deployment internal server error response has a 2xx status code +func (o *GetCostsChartsByDeploymentInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts by deployment internal server error response has a 3xx status code +func (o *GetCostsChartsByDeploymentInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts by deployment internal server error response has a 4xx status code +func (o *GetCostsChartsByDeploymentInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs charts by deployment internal server error response has a 5xx status code +func (o *GetCostsChartsByDeploymentInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs charts by deployment internal server error response a status code equal to that given +func (o *GetCostsChartsByDeploymentInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs charts by deployment internal server error response +func (o *GetCostsChartsByDeploymentInternalServerError) Code() int { + return 500 +} + func (o *GetCostsChartsByDeploymentInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsChartsByDeploymentInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts][%d] getCostsChartsByDeploymentInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsChartsByDeploymentInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/get_costs_charts_parameters.go b/pkg/client/billing_costs_analysis/get_costs_charts_parameters.go index 3757609b..038c3ba3 100644 --- a/pkg/client/billing_costs_analysis/get_costs_charts_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_charts_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsChartsParamsWithHTTPClient(client *http.Client) *GetCostsChartsP } } -/* GetCostsChartsParams contains all the parameters to send to the API endpoint - for the get costs charts operation. +/* +GetCostsChartsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs charts operation. + + Typically these are written to a http.Request. */ type GetCostsChartsParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_charts_responses.go b/pkg/client/billing_costs_analysis/get_costs_charts_responses.go index 7695b535..65c774b3 100644 --- a/pkg/client/billing_costs_analysis/get_costs_charts_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_charts_responses.go @@ -80,7 +80,8 @@ func NewGetCostsChartsOK() *GetCostsChartsOK { return &GetCostsChartsOK{} } -/* GetCostsChartsOK describes a response with status code 200, with default header values. +/* +GetCostsChartsOK describes a response with status code 200, with default header values. The usage charts of an organization. */ @@ -88,9 +89,44 @@ type GetCostsChartsOK struct { Payload *models.ChartItems } +// IsSuccess returns true when this get costs charts o k response has a 2xx status code +func (o *GetCostsChartsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs charts o k response has a 3xx status code +func (o *GetCostsChartsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts o k response has a 4xx status code +func (o *GetCostsChartsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs charts o k response has a 5xx status code +func (o *GetCostsChartsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts o k response a status code equal to that given +func (o *GetCostsChartsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs charts o k response +func (o *GetCostsChartsOK) Code() int { + return 200 +} + func (o *GetCostsChartsOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsOK %+v", 200, o.Payload) } + +func (o *GetCostsChartsOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsOK %+v", 200, o.Payload) +} + func (o *GetCostsChartsOK) GetPayload() *models.ChartItems { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsChartsBadRequest() *GetCostsChartsBadRequest { return &GetCostsChartsBadRequest{} } -/* GetCostsChartsBadRequest describes a response with status code 400, with default header values. +/* +GetCostsChartsBadRequest describes a response with status code 400, with default header values. The specified date range is invalid. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsChartsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts bad request response has a 2xx status code +func (o *GetCostsChartsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts bad request response has a 3xx status code +func (o *GetCostsChartsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts bad request response has a 4xx status code +func (o *GetCostsChartsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts bad request response has a 5xx status code +func (o *GetCostsChartsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts bad request response a status code equal to that given +func (o *GetCostsChartsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs charts bad request response +func (o *GetCostsChartsBadRequest) Code() int { + return 400 +} + func (o *GetCostsChartsBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsChartsBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsChartsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsChartsForbidden() *GetCostsChartsForbidden { return &GetCostsChartsForbidden{} } -/* GetCostsChartsForbidden describes a response with status code 403, with default header values. +/* +GetCostsChartsForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsChartsForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts forbidden response has a 2xx status code +func (o *GetCostsChartsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts forbidden response has a 3xx status code +func (o *GetCostsChartsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts forbidden response has a 4xx status code +func (o *GetCostsChartsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts forbidden response has a 5xx status code +func (o *GetCostsChartsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts forbidden response a status code equal to that given +func (o *GetCostsChartsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs charts forbidden response +func (o *GetCostsChartsForbidden) Code() int { + return 403 +} + func (o *GetCostsChartsForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsForbidden %+v", 403, o.Payload) } + +func (o *GetCostsChartsForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsForbidden %+v", 403, o.Payload) +} + func (o *GetCostsChartsForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewGetCostsChartsNotFound() *GetCostsChartsNotFound { return &GetCostsChartsNotFound{} } -/* GetCostsChartsNotFound describes a response with status code 404, with default header values. +/* +GetCostsChartsNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -213,9 +322,44 @@ type GetCostsChartsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts not found response has a 2xx status code +func (o *GetCostsChartsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts not found response has a 3xx status code +func (o *GetCostsChartsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts not found response has a 4xx status code +func (o *GetCostsChartsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs charts not found response has a 5xx status code +func (o *GetCostsChartsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs charts not found response a status code equal to that given +func (o *GetCostsChartsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs charts not found response +func (o *GetCostsChartsNotFound) Code() int { + return 404 +} + func (o *GetCostsChartsNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsNotFound %+v", 404, o.Payload) } + +func (o *GetCostsChartsNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsNotFound %+v", 404, o.Payload) +} + func (o *GetCostsChartsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewGetCostsChartsInternalServerError() *GetCostsChartsInternalServerError { return &GetCostsChartsInternalServerError{} } -/* GetCostsChartsInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsChartsInternalServerError describes a response with status code 500, with default header values. Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`) */ @@ -257,9 +402,44 @@ type GetCostsChartsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs charts internal server error response has a 2xx status code +func (o *GetCostsChartsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs charts internal server error response has a 3xx status code +func (o *GetCostsChartsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs charts internal server error response has a 4xx status code +func (o *GetCostsChartsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs charts internal server error response has a 5xx status code +func (o *GetCostsChartsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs charts internal server error response a status code equal to that given +func (o *GetCostsChartsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs charts internal server error response +func (o *GetCostsChartsInternalServerError) Code() int { + return 500 +} + func (o *GetCostsChartsInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsChartsInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/charts][%d] getCostsChartsInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsChartsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/get_costs_deployments_parameters.go b/pkg/client/billing_costs_analysis/get_costs_deployments_parameters.go index 1a613949..1a7e3ff9 100644 --- a/pkg/client/billing_costs_analysis/get_costs_deployments_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_deployments_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsDeploymentsParamsWithHTTPClient(client *http.Client) *GetCostsDe } } -/* GetCostsDeploymentsParams contains all the parameters to send to the API endpoint - for the get costs deployments operation. +/* +GetCostsDeploymentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs deployments operation. + + Typically these are written to a http.Request. */ type GetCostsDeploymentsParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_deployments_responses.go b/pkg/client/billing_costs_analysis/get_costs_deployments_responses.go index d3864da0..c85ce226 100644 --- a/pkg/client/billing_costs_analysis/get_costs_deployments_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_deployments_responses.go @@ -80,7 +80,8 @@ func NewGetCostsDeploymentsOK() *GetCostsDeploymentsOK { return &GetCostsDeploymentsOK{} } -/* GetCostsDeploymentsOK describes a response with status code 200, with default header values. +/* +GetCostsDeploymentsOK describes a response with status code 200, with default header values. The costs associated to a set of products */ @@ -88,9 +89,44 @@ type GetCostsDeploymentsOK struct { Payload *models.DeploymentsCosts } +// IsSuccess returns true when this get costs deployments o k response has a 2xx status code +func (o *GetCostsDeploymentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs deployments o k response has a 3xx status code +func (o *GetCostsDeploymentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs deployments o k response has a 4xx status code +func (o *GetCostsDeploymentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs deployments o k response has a 5xx status code +func (o *GetCostsDeploymentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs deployments o k response a status code equal to that given +func (o *GetCostsDeploymentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs deployments o k response +func (o *GetCostsDeploymentsOK) Code() int { + return 200 +} + func (o *GetCostsDeploymentsOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsOK %+v", 200, o.Payload) } + +func (o *GetCostsDeploymentsOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsOK %+v", 200, o.Payload) +} + func (o *GetCostsDeploymentsOK) GetPayload() *models.DeploymentsCosts { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsDeploymentsBadRequest() *GetCostsDeploymentsBadRequest { return &GetCostsDeploymentsBadRequest{} } -/* GetCostsDeploymentsBadRequest describes a response with status code 400, with default header values. +/* +GetCostsDeploymentsBadRequest describes a response with status code 400, with default header values. Invalid date range specified. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsDeploymentsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs deployments bad request response has a 2xx status code +func (o *GetCostsDeploymentsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs deployments bad request response has a 3xx status code +func (o *GetCostsDeploymentsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs deployments bad request response has a 4xx status code +func (o *GetCostsDeploymentsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs deployments bad request response has a 5xx status code +func (o *GetCostsDeploymentsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs deployments bad request response a status code equal to that given +func (o *GetCostsDeploymentsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs deployments bad request response +func (o *GetCostsDeploymentsBadRequest) Code() int { + return 400 +} + func (o *GetCostsDeploymentsBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsDeploymentsBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsDeploymentsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsDeploymentsForbidden() *GetCostsDeploymentsForbidden { return &GetCostsDeploymentsForbidden{} } -/* GetCostsDeploymentsForbidden describes a response with status code 403, with default header values. +/* +GetCostsDeploymentsForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsDeploymentsForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs deployments forbidden response has a 2xx status code +func (o *GetCostsDeploymentsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs deployments forbidden response has a 3xx status code +func (o *GetCostsDeploymentsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs deployments forbidden response has a 4xx status code +func (o *GetCostsDeploymentsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs deployments forbidden response has a 5xx status code +func (o *GetCostsDeploymentsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs deployments forbidden response a status code equal to that given +func (o *GetCostsDeploymentsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs deployments forbidden response +func (o *GetCostsDeploymentsForbidden) Code() int { + return 403 +} + func (o *GetCostsDeploymentsForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsForbidden %+v", 403, o.Payload) } + +func (o *GetCostsDeploymentsForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsForbidden %+v", 403, o.Payload) +} + func (o *GetCostsDeploymentsForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewGetCostsDeploymentsNotFound() *GetCostsDeploymentsNotFound { return &GetCostsDeploymentsNotFound{} } -/* GetCostsDeploymentsNotFound describes a response with status code 404, with default header values. +/* +GetCostsDeploymentsNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -213,9 +322,44 @@ type GetCostsDeploymentsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs deployments not found response has a 2xx status code +func (o *GetCostsDeploymentsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs deployments not found response has a 3xx status code +func (o *GetCostsDeploymentsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs deployments not found response has a 4xx status code +func (o *GetCostsDeploymentsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs deployments not found response has a 5xx status code +func (o *GetCostsDeploymentsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs deployments not found response a status code equal to that given +func (o *GetCostsDeploymentsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs deployments not found response +func (o *GetCostsDeploymentsNotFound) Code() int { + return 404 +} + func (o *GetCostsDeploymentsNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsNotFound %+v", 404, o.Payload) } + +func (o *GetCostsDeploymentsNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsNotFound %+v", 404, o.Payload) +} + func (o *GetCostsDeploymentsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewGetCostsDeploymentsInternalServerError() *GetCostsDeploymentsInternalSer return &GetCostsDeploymentsInternalServerError{} } -/* GetCostsDeploymentsInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsDeploymentsInternalServerError describes a response with status code 500, with default header values. An error occurred when fetching the costs associated with all deployments for the organization. (code: `billing_service.failed_request`) */ @@ -257,9 +402,44 @@ type GetCostsDeploymentsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs deployments internal server error response has a 2xx status code +func (o *GetCostsDeploymentsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs deployments internal server error response has a 3xx status code +func (o *GetCostsDeploymentsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs deployments internal server error response has a 4xx status code +func (o *GetCostsDeploymentsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs deployments internal server error response has a 5xx status code +func (o *GetCostsDeploymentsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs deployments internal server error response a status code equal to that given +func (o *GetCostsDeploymentsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs deployments internal server error response +func (o *GetCostsDeploymentsInternalServerError) Code() int { + return 500 +} + func (o *GetCostsDeploymentsInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsDeploymentsInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments][%d] getCostsDeploymentsInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsDeploymentsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_parameters.go b/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_parameters.go index 9e22e6b2..7a55c0da 100644 --- a/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsItemsByDeploymentParamsWithHTTPClient(client *http.Client) *GetC } } -/* GetCostsItemsByDeploymentParams contains all the parameters to send to the API endpoint - for the get costs items by deployment operation. +/* +GetCostsItemsByDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs items by deployment operation. + + Typically these are written to a http.Request. */ type GetCostsItemsByDeploymentParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_responses.go b/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_responses.go index 0523d15d..30d3efa8 100644 --- a/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_items_by_deployment_responses.go @@ -80,7 +80,8 @@ func NewGetCostsItemsByDeploymentOK() *GetCostsItemsByDeploymentOK { return &GetCostsItemsByDeploymentOK{} } -/* GetCostsItemsByDeploymentOK describes a response with status code 200, with default header values. +/* +GetCostsItemsByDeploymentOK describes a response with status code 200, with default header values. The costs associated to a set items billed for a single deployment. */ @@ -88,9 +89,44 @@ type GetCostsItemsByDeploymentOK struct { Payload *models.ItemsCosts } +// IsSuccess returns true when this get costs items by deployment o k response has a 2xx status code +func (o *GetCostsItemsByDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs items by deployment o k response has a 3xx status code +func (o *GetCostsItemsByDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items by deployment o k response has a 4xx status code +func (o *GetCostsItemsByDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs items by deployment o k response has a 5xx status code +func (o *GetCostsItemsByDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items by deployment o k response a status code equal to that given +func (o *GetCostsItemsByDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs items by deployment o k response +func (o *GetCostsItemsByDeploymentOK) Code() int { + return 200 +} + func (o *GetCostsItemsByDeploymentOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentOK %+v", 200, o.Payload) } + +func (o *GetCostsItemsByDeploymentOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentOK %+v", 200, o.Payload) +} + func (o *GetCostsItemsByDeploymentOK) GetPayload() *models.ItemsCosts { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsItemsByDeploymentBadRequest() *GetCostsItemsByDeploymentBadReque return &GetCostsItemsByDeploymentBadRequest{} } -/* GetCostsItemsByDeploymentBadRequest describes a response with status code 400, with default header values. +/* +GetCostsItemsByDeploymentBadRequest describes a response with status code 400, with default header values. The specified date range is invalid. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsItemsByDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items by deployment bad request response has a 2xx status code +func (o *GetCostsItemsByDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items by deployment bad request response has a 3xx status code +func (o *GetCostsItemsByDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items by deployment bad request response has a 4xx status code +func (o *GetCostsItemsByDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items by deployment bad request response has a 5xx status code +func (o *GetCostsItemsByDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items by deployment bad request response a status code equal to that given +func (o *GetCostsItemsByDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs items by deployment bad request response +func (o *GetCostsItemsByDeploymentBadRequest) Code() int { + return 400 +} + func (o *GetCostsItemsByDeploymentBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsItemsByDeploymentBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsItemsByDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsItemsByDeploymentForbidden() *GetCostsItemsByDeploymentForbidden return &GetCostsItemsByDeploymentForbidden{} } -/* GetCostsItemsByDeploymentForbidden describes a response with status code 403, with default header values. +/* +GetCostsItemsByDeploymentForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsItemsByDeploymentForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items by deployment forbidden response has a 2xx status code +func (o *GetCostsItemsByDeploymentForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items by deployment forbidden response has a 3xx status code +func (o *GetCostsItemsByDeploymentForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items by deployment forbidden response has a 4xx status code +func (o *GetCostsItemsByDeploymentForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items by deployment forbidden response has a 5xx status code +func (o *GetCostsItemsByDeploymentForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items by deployment forbidden response a status code equal to that given +func (o *GetCostsItemsByDeploymentForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs items by deployment forbidden response +func (o *GetCostsItemsByDeploymentForbidden) Code() int { + return 403 +} + func (o *GetCostsItemsByDeploymentForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentForbidden %+v", 403, o.Payload) } + +func (o *GetCostsItemsByDeploymentForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentForbidden %+v", 403, o.Payload) +} + func (o *GetCostsItemsByDeploymentForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,9 +308,11 @@ func NewGetCostsItemsByDeploymentNotFound() *GetCostsItemsByDeploymentNotFound { return &GetCostsItemsByDeploymentNotFound{} } -/* GetCostsItemsByDeploymentNotFound describes a response with status code 404, with default header values. +/* + GetCostsItemsByDeploymentNotFound describes a response with status code 404, with default header values. + + * The organization was not found. (code: `organization.not_found`) - * The organization was not found. (code: `organization.not_found`) * The Elasticsearch cluster was not found. (code: `billing_service.es_cluster_id_not_found`) */ type GetCostsItemsByDeploymentNotFound struct { @@ -214,9 +324,44 @@ type GetCostsItemsByDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items by deployment not found response has a 2xx status code +func (o *GetCostsItemsByDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items by deployment not found response has a 3xx status code +func (o *GetCostsItemsByDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items by deployment not found response has a 4xx status code +func (o *GetCostsItemsByDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items by deployment not found response has a 5xx status code +func (o *GetCostsItemsByDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items by deployment not found response a status code equal to that given +func (o *GetCostsItemsByDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs items by deployment not found response +func (o *GetCostsItemsByDeploymentNotFound) Code() int { + return 404 +} + func (o *GetCostsItemsByDeploymentNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentNotFound %+v", 404, o.Payload) } + +func (o *GetCostsItemsByDeploymentNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentNotFound %+v", 404, o.Payload) +} + func (o *GetCostsItemsByDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewGetCostsItemsByDeploymentInternalServerError() *GetCostsItemsByDeploymen return &GetCostsItemsByDeploymentInternalServerError{} } -/* GetCostsItemsByDeploymentInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsItemsByDeploymentInternalServerError describes a response with status code 500, with default header values. An error occurred when fetching the itemized costs for the given deployment of the organization. (code: `billing_service.failed_request`) */ @@ -258,9 +404,44 @@ type GetCostsItemsByDeploymentInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items by deployment internal server error response has a 2xx status code +func (o *GetCostsItemsByDeploymentInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items by deployment internal server error response has a 3xx status code +func (o *GetCostsItemsByDeploymentInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items by deployment internal server error response has a 4xx status code +func (o *GetCostsItemsByDeploymentInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs items by deployment internal server error response has a 5xx status code +func (o *GetCostsItemsByDeploymentInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs items by deployment internal server error response a status code equal to that given +func (o *GetCostsItemsByDeploymentInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs items by deployment internal server error response +func (o *GetCostsItemsByDeploymentInternalServerError) Code() int { + return 500 +} + func (o *GetCostsItemsByDeploymentInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsItemsByDeploymentInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/deployments/{deployment_id}/items][%d] getCostsItemsByDeploymentInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsItemsByDeploymentInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/get_costs_items_parameters.go b/pkg/client/billing_costs_analysis/get_costs_items_parameters.go index 8a510c1d..b560b408 100644 --- a/pkg/client/billing_costs_analysis/get_costs_items_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_items_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsItemsParamsWithHTTPClient(client *http.Client) *GetCostsItemsPar } } -/* GetCostsItemsParams contains all the parameters to send to the API endpoint - for the get costs items operation. +/* +GetCostsItemsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs items operation. + + Typically these are written to a http.Request. */ type GetCostsItemsParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_items_responses.go b/pkg/client/billing_costs_analysis/get_costs_items_responses.go index 4cbdd9fe..ca63b256 100644 --- a/pkg/client/billing_costs_analysis/get_costs_items_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_items_responses.go @@ -80,7 +80,8 @@ func NewGetCostsItemsOK() *GetCostsItemsOK { return &GetCostsItemsOK{} } -/* GetCostsItemsOK describes a response with status code 200, with default header values. +/* +GetCostsItemsOK describes a response with status code 200, with default header values. The costs associated to a set of items */ @@ -88,9 +89,44 @@ type GetCostsItemsOK struct { Payload *models.ItemsCosts } +// IsSuccess returns true when this get costs items o k response has a 2xx status code +func (o *GetCostsItemsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs items o k response has a 3xx status code +func (o *GetCostsItemsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items o k response has a 4xx status code +func (o *GetCostsItemsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs items o k response has a 5xx status code +func (o *GetCostsItemsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items o k response a status code equal to that given +func (o *GetCostsItemsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs items o k response +func (o *GetCostsItemsOK) Code() int { + return 200 +} + func (o *GetCostsItemsOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsOK %+v", 200, o.Payload) } + +func (o *GetCostsItemsOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsOK %+v", 200, o.Payload) +} + func (o *GetCostsItemsOK) GetPayload() *models.ItemsCosts { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsItemsBadRequest() *GetCostsItemsBadRequest { return &GetCostsItemsBadRequest{} } -/* GetCostsItemsBadRequest describes a response with status code 400, with default header values. +/* +GetCostsItemsBadRequest describes a response with status code 400, with default header values. The specified date range is invalid. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsItemsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items bad request response has a 2xx status code +func (o *GetCostsItemsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items bad request response has a 3xx status code +func (o *GetCostsItemsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items bad request response has a 4xx status code +func (o *GetCostsItemsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items bad request response has a 5xx status code +func (o *GetCostsItemsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items bad request response a status code equal to that given +func (o *GetCostsItemsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs items bad request response +func (o *GetCostsItemsBadRequest) Code() int { + return 400 +} + func (o *GetCostsItemsBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsItemsBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsItemsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsItemsForbidden() *GetCostsItemsForbidden { return &GetCostsItemsForbidden{} } -/* GetCostsItemsForbidden describes a response with status code 403, with default header values. +/* +GetCostsItemsForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsItemsForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items forbidden response has a 2xx status code +func (o *GetCostsItemsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items forbidden response has a 3xx status code +func (o *GetCostsItemsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items forbidden response has a 4xx status code +func (o *GetCostsItemsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items forbidden response has a 5xx status code +func (o *GetCostsItemsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items forbidden response a status code equal to that given +func (o *GetCostsItemsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs items forbidden response +func (o *GetCostsItemsForbidden) Code() int { + return 403 +} + func (o *GetCostsItemsForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsForbidden %+v", 403, o.Payload) } + +func (o *GetCostsItemsForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsForbidden %+v", 403, o.Payload) +} + func (o *GetCostsItemsForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewGetCostsItemsNotFound() *GetCostsItemsNotFound { return &GetCostsItemsNotFound{} } -/* GetCostsItemsNotFound describes a response with status code 404, with default header values. +/* +GetCostsItemsNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -213,9 +322,44 @@ type GetCostsItemsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items not found response has a 2xx status code +func (o *GetCostsItemsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items not found response has a 3xx status code +func (o *GetCostsItemsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items not found response has a 4xx status code +func (o *GetCostsItemsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs items not found response has a 5xx status code +func (o *GetCostsItemsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs items not found response a status code equal to that given +func (o *GetCostsItemsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs items not found response +func (o *GetCostsItemsNotFound) Code() int { + return 404 +} + func (o *GetCostsItemsNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsNotFound %+v", 404, o.Payload) } + +func (o *GetCostsItemsNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsNotFound %+v", 404, o.Payload) +} + func (o *GetCostsItemsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewGetCostsItemsInternalServerError() *GetCostsItemsInternalServerError { return &GetCostsItemsInternalServerError{} } -/* GetCostsItemsInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsItemsInternalServerError describes a response with status code 500, with default header values. Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`) */ @@ -257,9 +402,44 @@ type GetCostsItemsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs items internal server error response has a 2xx status code +func (o *GetCostsItemsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs items internal server error response has a 3xx status code +func (o *GetCostsItemsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs items internal server error response has a 4xx status code +func (o *GetCostsItemsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs items internal server error response has a 5xx status code +func (o *GetCostsItemsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs items internal server error response a status code equal to that given +func (o *GetCostsItemsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs items internal server error response +func (o *GetCostsItemsInternalServerError) Code() int { + return 500 +} + func (o *GetCostsItemsInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsItemsInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}/items][%d] getCostsItemsInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsItemsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/billing_costs_analysis/get_costs_overview_parameters.go b/pkg/client/billing_costs_analysis/get_costs_overview_parameters.go index 2baa6518..d24053d8 100644 --- a/pkg/client/billing_costs_analysis/get_costs_overview_parameters.go +++ b/pkg/client/billing_costs_analysis/get_costs_overview_parameters.go @@ -69,10 +69,12 @@ func NewGetCostsOverviewParamsWithHTTPClient(client *http.Client) *GetCostsOverv } } -/* GetCostsOverviewParams contains all the parameters to send to the API endpoint - for the get costs overview operation. +/* +GetCostsOverviewParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get costs overview operation. + + Typically these are written to a http.Request. */ type GetCostsOverviewParams struct { diff --git a/pkg/client/billing_costs_analysis/get_costs_overview_responses.go b/pkg/client/billing_costs_analysis/get_costs_overview_responses.go index 8acbfe9c..4ae1cbb6 100644 --- a/pkg/client/billing_costs_analysis/get_costs_overview_responses.go +++ b/pkg/client/billing_costs_analysis/get_costs_overview_responses.go @@ -80,7 +80,8 @@ func NewGetCostsOverviewOK() *GetCostsOverviewOK { return &GetCostsOverviewOK{} } -/* GetCostsOverviewOK describes a response with status code 200, with default header values. +/* +GetCostsOverviewOK describes a response with status code 200, with default header values. Top-level cost overview for the organization */ @@ -88,9 +89,44 @@ type GetCostsOverviewOK struct { Payload *models.CostsOverview } +// IsSuccess returns true when this get costs overview o k response has a 2xx status code +func (o *GetCostsOverviewOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get costs overview o k response has a 3xx status code +func (o *GetCostsOverviewOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs overview o k response has a 4xx status code +func (o *GetCostsOverviewOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs overview o k response has a 5xx status code +func (o *GetCostsOverviewOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs overview o k response a status code equal to that given +func (o *GetCostsOverviewOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get costs overview o k response +func (o *GetCostsOverviewOK) Code() int { + return 200 +} + func (o *GetCostsOverviewOK) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewOK %+v", 200, o.Payload) } + +func (o *GetCostsOverviewOK) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewOK %+v", 200, o.Payload) +} + func (o *GetCostsOverviewOK) GetPayload() *models.CostsOverview { return o.Payload } @@ -112,7 +148,8 @@ func NewGetCostsOverviewBadRequest() *GetCostsOverviewBadRequest { return &GetCostsOverviewBadRequest{} } -/* GetCostsOverviewBadRequest describes a response with status code 400, with default header values. +/* +GetCostsOverviewBadRequest describes a response with status code 400, with default header values. The specified date range is invalid. (code: `costs.invalid_date_range`) */ @@ -125,9 +162,44 @@ type GetCostsOverviewBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs overview bad request response has a 2xx status code +func (o *GetCostsOverviewBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs overview bad request response has a 3xx status code +func (o *GetCostsOverviewBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs overview bad request response has a 4xx status code +func (o *GetCostsOverviewBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs overview bad request response has a 5xx status code +func (o *GetCostsOverviewBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs overview bad request response a status code equal to that given +func (o *GetCostsOverviewBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get costs overview bad request response +func (o *GetCostsOverviewBadRequest) Code() int { + return 400 +} + func (o *GetCostsOverviewBadRequest) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewBadRequest %+v", 400, o.Payload) } + +func (o *GetCostsOverviewBadRequest) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewBadRequest %+v", 400, o.Payload) +} + func (o *GetCostsOverviewBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewGetCostsOverviewForbidden() *GetCostsOverviewForbidden { return &GetCostsOverviewForbidden{} } -/* GetCostsOverviewForbidden describes a response with status code 403, with default header values. +/* +GetCostsOverviewForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -169,9 +242,44 @@ type GetCostsOverviewForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs overview forbidden response has a 2xx status code +func (o *GetCostsOverviewForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs overview forbidden response has a 3xx status code +func (o *GetCostsOverviewForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs overview forbidden response has a 4xx status code +func (o *GetCostsOverviewForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs overview forbidden response has a 5xx status code +func (o *GetCostsOverviewForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs overview forbidden response a status code equal to that given +func (o *GetCostsOverviewForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get costs overview forbidden response +func (o *GetCostsOverviewForbidden) Code() int { + return 403 +} + func (o *GetCostsOverviewForbidden) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewForbidden %+v", 403, o.Payload) } + +func (o *GetCostsOverviewForbidden) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewForbidden %+v", 403, o.Payload) +} + func (o *GetCostsOverviewForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewGetCostsOverviewNotFound() *GetCostsOverviewNotFound { return &GetCostsOverviewNotFound{} } -/* GetCostsOverviewNotFound describes a response with status code 404, with default header values. +/* +GetCostsOverviewNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -213,9 +322,44 @@ type GetCostsOverviewNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs overview not found response has a 2xx status code +func (o *GetCostsOverviewNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs overview not found response has a 3xx status code +func (o *GetCostsOverviewNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs overview not found response has a 4xx status code +func (o *GetCostsOverviewNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get costs overview not found response has a 5xx status code +func (o *GetCostsOverviewNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get costs overview not found response a status code equal to that given +func (o *GetCostsOverviewNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get costs overview not found response +func (o *GetCostsOverviewNotFound) Code() int { + return 404 +} + func (o *GetCostsOverviewNotFound) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewNotFound %+v", 404, o.Payload) } + +func (o *GetCostsOverviewNotFound) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewNotFound %+v", 404, o.Payload) +} + func (o *GetCostsOverviewNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewGetCostsOverviewInternalServerError() *GetCostsOverviewInternalServerErr return &GetCostsOverviewInternalServerError{} } -/* GetCostsOverviewInternalServerError describes a response with status code 500, with default header values. +/* +GetCostsOverviewInternalServerError describes a response with status code 500, with default header values. An error occurred when fetching an overview of the costs for the organization. (code: `billing_service.failed_request`) */ @@ -257,9 +402,44 @@ type GetCostsOverviewInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get costs overview internal server error response has a 2xx status code +func (o *GetCostsOverviewInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get costs overview internal server error response has a 3xx status code +func (o *GetCostsOverviewInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get costs overview internal server error response has a 4xx status code +func (o *GetCostsOverviewInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get costs overview internal server error response has a 5xx status code +func (o *GetCostsOverviewInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get costs overview internal server error response a status code equal to that given +func (o *GetCostsOverviewInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get costs overview internal server error response +func (o *GetCostsOverviewInternalServerError) Code() int { + return 500 +} + func (o *GetCostsOverviewInternalServerError) Error() string { return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewInternalServerError %+v", 500, o.Payload) } + +func (o *GetCostsOverviewInternalServerError) String() string { + return fmt.Sprintf("[GET /billing/costs/{organization_id}][%d] getCostsOverviewInternalServerError %+v", 500, o.Payload) +} + func (o *GetCostsOverviewInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/comments/comments_client.go b/pkg/client/comments/comments_client.go index 7830bde1..8cc224f1 100644 --- a/pkg/client/comments/comments_client.go +++ b/pkg/client/comments/comments_client.go @@ -61,9 +61,9 @@ type ClientService interface { } /* - CreateComment creates a comment +CreateComment creates a comment - Creates a comment for the given Resource. +Creates a comment for the given Resource. */ func (a *Client) CreateComment(params *CreateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCommentCreated, error) { // TODO: Validate the params before sending @@ -102,9 +102,9 @@ func (a *Client) CreateComment(params *CreateCommentParams, authInfo runtime.Cli } /* - DeleteComment deletes comment +DeleteComment deletes comment - Deletes a Comment. +Deletes a Comment. */ func (a *Client) DeleteComment(params *DeleteCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCommentOK, error) { // TODO: Validate the params before sending @@ -143,9 +143,9 @@ func (a *Client) DeleteComment(params *DeleteCommentParams, authInfo runtime.Cli } /* - GetComment gets comment +GetComment gets comment - Retrieves a Comment. +Retrieves a Comment. */ func (a *Client) GetComment(params *GetCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommentOK, error) { // TODO: Validate the params before sending @@ -184,9 +184,9 @@ func (a *Client) GetComment(params *GetCommentParams, authInfo runtime.ClientAut } /* - ListComment lists comments +ListComment lists comments - Retrieves all the comments for a given Resource, in reverse modified time order. +Retrieves all the comments for a given Resource, in reverse modified time order. */ func (a *Client) ListComment(params *ListCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCommentOK, error) { // TODO: Validate the params before sending @@ -225,9 +225,9 @@ func (a *Client) ListComment(params *ListCommentParams, authInfo runtime.ClientA } /* - UpdateComment updates comment +UpdateComment updates comment - Updates a Comment. +Updates a Comment. */ func (a *Client) UpdateComment(params *UpdateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCommentOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/comments/create_comment_parameters.go b/pkg/client/comments/create_comment_parameters.go index 168342bd..65f457e0 100644 --- a/pkg/client/comments/create_comment_parameters.go +++ b/pkg/client/comments/create_comment_parameters.go @@ -71,10 +71,12 @@ func NewCreateCommentParamsWithHTTPClient(client *http.Client) *CreateCommentPar } } -/* CreateCommentParams contains all the parameters to send to the API endpoint - for the create comment operation. +/* +CreateCommentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create comment operation. + + Typically these are written to a http.Request. */ type CreateCommentParams struct { diff --git a/pkg/client/comments/create_comment_responses.go b/pkg/client/comments/create_comment_responses.go index 189fa468..1ed2b817 100644 --- a/pkg/client/comments/create_comment_responses.go +++ b/pkg/client/comments/create_comment_responses.go @@ -74,7 +74,8 @@ func NewCreateCommentCreated() *CreateCommentCreated { return &CreateCommentCreated{} } -/* CreateCommentCreated describes a response with status code 201, with default header values. +/* +CreateCommentCreated describes a response with status code 201, with default header values. The Comment that was just created. */ @@ -95,9 +96,44 @@ type CreateCommentCreated struct { Payload *models.Comment } +// IsSuccess returns true when this create comment created response has a 2xx status code +func (o *CreateCommentCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create comment created response has a 3xx status code +func (o *CreateCommentCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create comment created response has a 4xx status code +func (o *CreateCommentCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create comment created response has a 5xx status code +func (o *CreateCommentCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create comment created response a status code equal to that given +func (o *CreateCommentCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create comment created response +func (o *CreateCommentCreated) Code() int { + return 201 +} + func (o *CreateCommentCreated) Error() string { return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentCreated %+v", 201, o.Payload) } + +func (o *CreateCommentCreated) String() string { + return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentCreated %+v", 201, o.Payload) +} + func (o *CreateCommentCreated) GetPayload() *models.Comment { return o.Payload } @@ -140,7 +176,8 @@ func NewCreateCommentUnauthorized() *CreateCommentUnauthorized { return &CreateCommentUnauthorized{} } -/* CreateCommentUnauthorized describes a response with status code 401, with default header values. +/* +CreateCommentUnauthorized describes a response with status code 401, with default header values. Your current session does not have a user id associated with it. (code: `comments.no_user_id`) */ @@ -153,9 +190,44 @@ type CreateCommentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create comment unauthorized response has a 2xx status code +func (o *CreateCommentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create comment unauthorized response has a 3xx status code +func (o *CreateCommentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create comment unauthorized response has a 4xx status code +func (o *CreateCommentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this create comment unauthorized response has a 5xx status code +func (o *CreateCommentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this create comment unauthorized response a status code equal to that given +func (o *CreateCommentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the create comment unauthorized response +func (o *CreateCommentUnauthorized) Code() int { + return 401 +} + func (o *CreateCommentUnauthorized) Error() string { return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentUnauthorized %+v", 401, o.Payload) } + +func (o *CreateCommentUnauthorized) String() string { + return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentUnauthorized %+v", 401, o.Payload) +} + func (o *CreateCommentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,7 +256,8 @@ func NewCreateCommentNotFound() *CreateCommentNotFound { return &CreateCommentNotFound{} } -/* CreateCommentNotFound describes a response with status code 404, with default header values. +/* +CreateCommentNotFound describes a response with status code 404, with default header values. No Resource of the given type and id exist. (code: `comments.resource_does_not_exist`) */ @@ -197,9 +270,44 @@ type CreateCommentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create comment not found response has a 2xx status code +func (o *CreateCommentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create comment not found response has a 3xx status code +func (o *CreateCommentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create comment not found response has a 4xx status code +func (o *CreateCommentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this create comment not found response has a 5xx status code +func (o *CreateCommentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this create comment not found response a status code equal to that given +func (o *CreateCommentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the create comment not found response +func (o *CreateCommentNotFound) Code() int { + return 404 +} + func (o *CreateCommentNotFound) Error() string { return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentNotFound %+v", 404, o.Payload) } + +func (o *CreateCommentNotFound) String() string { + return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentNotFound %+v", 404, o.Payload) +} + func (o *CreateCommentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -228,7 +336,8 @@ func NewCreateCommentConflict() *CreateCommentConflict { return &CreateCommentConflict{} } -/* CreateCommentConflict describes a response with status code 409, with default header values. +/* +CreateCommentConflict describes a response with status code 409, with default header values. A Comment already exists with the generated id. Please try again. (code: `comments.id_already_exists`) */ @@ -241,9 +350,44 @@ type CreateCommentConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create comment conflict response has a 2xx status code +func (o *CreateCommentConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create comment conflict response has a 3xx status code +func (o *CreateCommentConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create comment conflict response has a 4xx status code +func (o *CreateCommentConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this create comment conflict response has a 5xx status code +func (o *CreateCommentConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this create comment conflict response a status code equal to that given +func (o *CreateCommentConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the create comment conflict response +func (o *CreateCommentConflict) Code() int { + return 409 +} + func (o *CreateCommentConflict) Error() string { return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentConflict %+v", 409, o.Payload) } + +func (o *CreateCommentConflict) String() string { + return fmt.Sprintf("[POST /comments/{resource_type}/{resource_id}][%d] createCommentConflict %+v", 409, o.Payload) +} + func (o *CreateCommentConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/comments/delete_comment_parameters.go b/pkg/client/comments/delete_comment_parameters.go index 679bf5ac..b4c50645 100644 --- a/pkg/client/comments/delete_comment_parameters.go +++ b/pkg/client/comments/delete_comment_parameters.go @@ -69,10 +69,12 @@ func NewDeleteCommentParamsWithHTTPClient(client *http.Client) *DeleteCommentPar } } -/* DeleteCommentParams contains all the parameters to send to the API endpoint - for the delete comment operation. +/* +DeleteCommentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete comment operation. + + Typically these are written to a http.Request. */ type DeleteCommentParams struct { diff --git a/pkg/client/comments/delete_comment_responses.go b/pkg/client/comments/delete_comment_responses.go index d0a2337f..efa2fa74 100644 --- a/pkg/client/comments/delete_comment_responses.go +++ b/pkg/client/comments/delete_comment_responses.go @@ -74,7 +74,8 @@ func NewDeleteCommentOK() *DeleteCommentOK { return &DeleteCommentOK{} } -/* DeleteCommentOK describes a response with status code 200, with default header values. +/* +DeleteCommentOK describes a response with status code 200, with default header values. Comment deleted successfully. */ @@ -95,9 +96,44 @@ type DeleteCommentOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete comment o k response has a 2xx status code +func (o *DeleteCommentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete comment o k response has a 3xx status code +func (o *DeleteCommentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete comment o k response has a 4xx status code +func (o *DeleteCommentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete comment o k response has a 5xx status code +func (o *DeleteCommentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete comment o k response a status code equal to that given +func (o *DeleteCommentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete comment o k response +func (o *DeleteCommentOK) Code() int { + return 200 +} + func (o *DeleteCommentOK) Error() string { return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentOK %+v", 200, o.Payload) } + +func (o *DeleteCommentOK) String() string { + return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentOK %+v", 200, o.Payload) +} + func (o *DeleteCommentOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -138,9 +174,11 @@ func NewDeleteCommentUnauthorized() *DeleteCommentUnauthorized { return &DeleteCommentUnauthorized{} } -/* DeleteCommentUnauthorized describes a response with status code 401, with default header values. +/* + DeleteCommentUnauthorized describes a response with status code 401, with default header values. + + * The Comment does not belong to you. (code: `comments.unauthorised`) - * The Comment does not belong to you. (code: `comments.unauthorised`) * Your current session does not have a user id associated with it. (code: `comments.no_user_id`) */ type DeleteCommentUnauthorized struct { @@ -152,9 +190,44 @@ type DeleteCommentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete comment unauthorized response has a 2xx status code +func (o *DeleteCommentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete comment unauthorized response has a 3xx status code +func (o *DeleteCommentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete comment unauthorized response has a 4xx status code +func (o *DeleteCommentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete comment unauthorized response has a 5xx status code +func (o *DeleteCommentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete comment unauthorized response a status code equal to that given +func (o *DeleteCommentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete comment unauthorized response +func (o *DeleteCommentUnauthorized) Code() int { + return 401 +} + func (o *DeleteCommentUnauthorized) Error() string { return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentUnauthorized %+v", 401, o.Payload) } + +func (o *DeleteCommentUnauthorized) String() string { + return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentUnauthorized %+v", 401, o.Payload) +} + func (o *DeleteCommentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -183,7 +256,8 @@ func NewDeleteCommentNotFound() *DeleteCommentNotFound { return &DeleteCommentNotFound{} } -/* DeleteCommentNotFound describes a response with status code 404, with default header values. +/* +DeleteCommentNotFound describes a response with status code 404, with default header values. The Comment you want does not exist. (code: `comments.comment_does_not_exist`) */ @@ -196,9 +270,44 @@ type DeleteCommentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete comment not found response has a 2xx status code +func (o *DeleteCommentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete comment not found response has a 3xx status code +func (o *DeleteCommentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete comment not found response has a 4xx status code +func (o *DeleteCommentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete comment not found response has a 5xx status code +func (o *DeleteCommentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete comment not found response a status code equal to that given +func (o *DeleteCommentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete comment not found response +func (o *DeleteCommentNotFound) Code() int { + return 404 +} + func (o *DeleteCommentNotFound) Error() string { return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentNotFound %+v", 404, o.Payload) } + +func (o *DeleteCommentNotFound) String() string { + return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentNotFound %+v", 404, o.Payload) +} + func (o *DeleteCommentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -227,7 +336,8 @@ func NewDeleteCommentConflict() *DeleteCommentConflict { return &DeleteCommentConflict{} } -/* DeleteCommentConflict describes a response with status code 409, with default header values. +/* +DeleteCommentConflict describes a response with status code 409, with default header values. The version you sent does not match the persisted version. (code: `comments.version_conflict`) */ @@ -240,9 +350,44 @@ type DeleteCommentConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete comment conflict response has a 2xx status code +func (o *DeleteCommentConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete comment conflict response has a 3xx status code +func (o *DeleteCommentConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete comment conflict response has a 4xx status code +func (o *DeleteCommentConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete comment conflict response has a 5xx status code +func (o *DeleteCommentConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete comment conflict response a status code equal to that given +func (o *DeleteCommentConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete comment conflict response +func (o *DeleteCommentConflict) Code() int { + return 409 +} + func (o *DeleteCommentConflict) Error() string { return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentConflict %+v", 409, o.Payload) } + +func (o *DeleteCommentConflict) String() string { + return fmt.Sprintf("[DELETE /comments/{resource_type}/{resource_id}/{comment_id}][%d] deleteCommentConflict %+v", 409, o.Payload) +} + func (o *DeleteCommentConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/comments/get_comment_parameters.go b/pkg/client/comments/get_comment_parameters.go index e79ab6a1..abde329d 100644 --- a/pkg/client/comments/get_comment_parameters.go +++ b/pkg/client/comments/get_comment_parameters.go @@ -69,10 +69,12 @@ func NewGetCommentParamsWithHTTPClient(client *http.Client) *GetCommentParams { } } -/* GetCommentParams contains all the parameters to send to the API endpoint - for the get comment operation. +/* +GetCommentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get comment operation. + + Typically these are written to a http.Request. */ type GetCommentParams struct { diff --git a/pkg/client/comments/get_comment_responses.go b/pkg/client/comments/get_comment_responses.go index 178fa827..792daf34 100644 --- a/pkg/client/comments/get_comment_responses.go +++ b/pkg/client/comments/get_comment_responses.go @@ -62,7 +62,8 @@ func NewGetCommentOK() *GetCommentOK { return &GetCommentOK{} } -/* GetCommentOK describes a response with status code 200, with default header values. +/* +GetCommentOK describes a response with status code 200, with default header values. The Comment */ @@ -83,9 +84,44 @@ type GetCommentOK struct { Payload *models.Comment } +// IsSuccess returns true when this get comment o k response has a 2xx status code +func (o *GetCommentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get comment o k response has a 3xx status code +func (o *GetCommentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get comment o k response has a 4xx status code +func (o *GetCommentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get comment o k response has a 5xx status code +func (o *GetCommentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get comment o k response a status code equal to that given +func (o *GetCommentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get comment o k response +func (o *GetCommentOK) Code() int { + return 200 +} + func (o *GetCommentOK) Error() string { return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}/{comment_id}][%d] getCommentOK %+v", 200, o.Payload) } + +func (o *GetCommentOK) String() string { + return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}/{comment_id}][%d] getCommentOK %+v", 200, o.Payload) +} + func (o *GetCommentOK) GetPayload() *models.Comment { return o.Payload } @@ -128,7 +164,8 @@ func NewGetCommentNotFound() *GetCommentNotFound { return &GetCommentNotFound{} } -/* GetCommentNotFound describes a response with status code 404, with default header values. +/* +GetCommentNotFound describes a response with status code 404, with default header values. The Comment you want does not exist. (code: `comments.comment_does_not_exist`) */ @@ -141,9 +178,44 @@ type GetCommentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get comment not found response has a 2xx status code +func (o *GetCommentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get comment not found response has a 3xx status code +func (o *GetCommentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get comment not found response has a 4xx status code +func (o *GetCommentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get comment not found response has a 5xx status code +func (o *GetCommentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get comment not found response a status code equal to that given +func (o *GetCommentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get comment not found response +func (o *GetCommentNotFound) Code() int { + return 404 +} + func (o *GetCommentNotFound) Error() string { return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}/{comment_id}][%d] getCommentNotFound %+v", 404, o.Payload) } + +func (o *GetCommentNotFound) String() string { + return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}/{comment_id}][%d] getCommentNotFound %+v", 404, o.Payload) +} + func (o *GetCommentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/comments/list_comment_parameters.go b/pkg/client/comments/list_comment_parameters.go index e218bee9..0f8fe262 100644 --- a/pkg/client/comments/list_comment_parameters.go +++ b/pkg/client/comments/list_comment_parameters.go @@ -69,10 +69,12 @@ func NewListCommentParamsWithHTTPClient(client *http.Client) *ListCommentParams } } -/* ListCommentParams contains all the parameters to send to the API endpoint - for the list comment operation. +/* +ListCommentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list comment operation. + + Typically these are written to a http.Request. */ type ListCommentParams struct { diff --git a/pkg/client/comments/list_comment_responses.go b/pkg/client/comments/list_comment_responses.go index 5ab15423..28daf4c8 100644 --- a/pkg/client/comments/list_comment_responses.go +++ b/pkg/client/comments/list_comment_responses.go @@ -56,7 +56,8 @@ func NewListCommentOK() *ListCommentOK { return &ListCommentOK{} } -/* ListCommentOK describes a response with status code 200, with default header values. +/* +ListCommentOK describes a response with status code 200, with default header values. The Comments */ @@ -64,9 +65,44 @@ type ListCommentOK struct { Payload *models.CommentsWithMetas } +// IsSuccess returns true when this list comment o k response has a 2xx status code +func (o *ListCommentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list comment o k response has a 3xx status code +func (o *ListCommentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list comment o k response has a 4xx status code +func (o *ListCommentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list comment o k response has a 5xx status code +func (o *ListCommentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list comment o k response a status code equal to that given +func (o *ListCommentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list comment o k response +func (o *ListCommentOK) Code() int { + return 200 +} + func (o *ListCommentOK) Error() string { return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}][%d] listCommentOK %+v", 200, o.Payload) } + +func (o *ListCommentOK) String() string { + return fmt.Sprintf("[GET /comments/{resource_type}/{resource_id}][%d] listCommentOK %+v", 200, o.Payload) +} + func (o *ListCommentOK) GetPayload() *models.CommentsWithMetas { return o.Payload } diff --git a/pkg/client/comments/update_comment_parameters.go b/pkg/client/comments/update_comment_parameters.go index b95e5014..8d8bde8e 100644 --- a/pkg/client/comments/update_comment_parameters.go +++ b/pkg/client/comments/update_comment_parameters.go @@ -71,10 +71,12 @@ func NewUpdateCommentParamsWithHTTPClient(client *http.Client) *UpdateCommentPar } } -/* UpdateCommentParams contains all the parameters to send to the API endpoint - for the update comment operation. +/* +UpdateCommentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update comment operation. + + Typically these are written to a http.Request. */ type UpdateCommentParams struct { diff --git a/pkg/client/comments/update_comment_responses.go b/pkg/client/comments/update_comment_responses.go index 2af9978f..ae269248 100644 --- a/pkg/client/comments/update_comment_responses.go +++ b/pkg/client/comments/update_comment_responses.go @@ -74,7 +74,8 @@ func NewUpdateCommentOK() *UpdateCommentOK { return &UpdateCommentOK{} } -/* UpdateCommentOK describes a response with status code 200, with default header values. +/* +UpdateCommentOK describes a response with status code 200, with default header values. Comment updated successfully. */ @@ -95,9 +96,44 @@ type UpdateCommentOK struct { Payload *models.Comment } +// IsSuccess returns true when this update comment o k response has a 2xx status code +func (o *UpdateCommentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update comment o k response has a 3xx status code +func (o *UpdateCommentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update comment o k response has a 4xx status code +func (o *UpdateCommentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update comment o k response has a 5xx status code +func (o *UpdateCommentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update comment o k response a status code equal to that given +func (o *UpdateCommentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update comment o k response +func (o *UpdateCommentOK) Code() int { + return 200 +} + func (o *UpdateCommentOK) Error() string { return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentOK %+v", 200, o.Payload) } + +func (o *UpdateCommentOK) String() string { + return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentOK %+v", 200, o.Payload) +} + func (o *UpdateCommentOK) GetPayload() *models.Comment { return o.Payload } @@ -140,9 +176,11 @@ func NewUpdateCommentUnauthorized() *UpdateCommentUnauthorized { return &UpdateCommentUnauthorized{} } -/* UpdateCommentUnauthorized describes a response with status code 401, with default header values. +/* + UpdateCommentUnauthorized describes a response with status code 401, with default header values. + + * The Comment does not belong to you. (code: `comments.unauthorised`) - * The Comment does not belong to you. (code: `comments.unauthorised`) * Your current session does not have a user id associated with it. (code: `comments.no_user_id`) */ type UpdateCommentUnauthorized struct { @@ -154,9 +192,44 @@ type UpdateCommentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update comment unauthorized response has a 2xx status code +func (o *UpdateCommentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update comment unauthorized response has a 3xx status code +func (o *UpdateCommentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update comment unauthorized response has a 4xx status code +func (o *UpdateCommentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this update comment unauthorized response has a 5xx status code +func (o *UpdateCommentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this update comment unauthorized response a status code equal to that given +func (o *UpdateCommentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the update comment unauthorized response +func (o *UpdateCommentUnauthorized) Code() int { + return 401 +} + func (o *UpdateCommentUnauthorized) Error() string { return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentUnauthorized %+v", 401, o.Payload) } + +func (o *UpdateCommentUnauthorized) String() string { + return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentUnauthorized %+v", 401, o.Payload) +} + func (o *UpdateCommentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -185,7 +258,8 @@ func NewUpdateCommentNotFound() *UpdateCommentNotFound { return &UpdateCommentNotFound{} } -/* UpdateCommentNotFound describes a response with status code 404, with default header values. +/* +UpdateCommentNotFound describes a response with status code 404, with default header values. The Comment you want does not exist. (code: `comments.comment_does_not_exist`) */ @@ -198,9 +272,44 @@ type UpdateCommentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update comment not found response has a 2xx status code +func (o *UpdateCommentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update comment not found response has a 3xx status code +func (o *UpdateCommentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update comment not found response has a 4xx status code +func (o *UpdateCommentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update comment not found response has a 5xx status code +func (o *UpdateCommentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update comment not found response a status code equal to that given +func (o *UpdateCommentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update comment not found response +func (o *UpdateCommentNotFound) Code() int { + return 404 +} + func (o *UpdateCommentNotFound) Error() string { return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentNotFound %+v", 404, o.Payload) } + +func (o *UpdateCommentNotFound) String() string { + return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentNotFound %+v", 404, o.Payload) +} + func (o *UpdateCommentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -229,7 +338,8 @@ func NewUpdateCommentConflict() *UpdateCommentConflict { return &UpdateCommentConflict{} } -/* UpdateCommentConflict describes a response with status code 409, with default header values. +/* +UpdateCommentConflict describes a response with status code 409, with default header values. The version you sent does not match the persisted version. (code: `comments.version_conflict`) */ @@ -242,9 +352,44 @@ type UpdateCommentConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update comment conflict response has a 2xx status code +func (o *UpdateCommentConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update comment conflict response has a 3xx status code +func (o *UpdateCommentConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update comment conflict response has a 4xx status code +func (o *UpdateCommentConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update comment conflict response has a 5xx status code +func (o *UpdateCommentConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update comment conflict response a status code equal to that given +func (o *UpdateCommentConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update comment conflict response +func (o *UpdateCommentConflict) Code() int { + return 409 +} + func (o *UpdateCommentConflict) Error() string { return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentConflict %+v", 409, o.Payload) } + +func (o *UpdateCommentConflict) String() string { + return fmt.Sprintf("[PUT /comments/{resource_type}/{resource_id}/{comment_id}][%d] updateCommentConflict %+v", 409, o.Payload) +} + func (o *UpdateCommentConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployment_templates/create_deployment_template_v2_parameters.go b/pkg/client/deployment_templates/create_deployment_template_v2_parameters.go index 144f5c99..203584b1 100644 --- a/pkg/client/deployment_templates/create_deployment_template_v2_parameters.go +++ b/pkg/client/deployment_templates/create_deployment_template_v2_parameters.go @@ -72,10 +72,12 @@ func NewCreateDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *Cre } } -/* CreateDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - for the create deployment template v2 operation. +/* +CreateDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create deployment template v2 operation. + + Typically these are written to a http.Request. */ type CreateDeploymentTemplateV2Params struct { diff --git a/pkg/client/deployment_templates/create_deployment_template_v2_responses.go b/pkg/client/deployment_templates/create_deployment_template_v2_responses.go index 75de5295..ff024e37 100644 --- a/pkg/client/deployment_templates/create_deployment_template_v2_responses.go +++ b/pkg/client/deployment_templates/create_deployment_template_v2_responses.go @@ -80,7 +80,8 @@ func NewCreateDeploymentTemplateV2OK() *CreateDeploymentTemplateV2OK { return &CreateDeploymentTemplateV2OK{} } -/* CreateDeploymentTemplateV2OK describes a response with status code 200, with default header values. +/* +CreateDeploymentTemplateV2OK describes a response with status code 200, with default header values. The request was valid (used when validate_only is true). */ @@ -88,9 +89,44 @@ type CreateDeploymentTemplateV2OK struct { Payload *models.IDResponse } +// IsSuccess returns true when this create deployment template v2 o k response has a 2xx status code +func (o *CreateDeploymentTemplateV2OK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment template v2 o k response has a 3xx status code +func (o *CreateDeploymentTemplateV2OK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment template v2 o k response has a 4xx status code +func (o *CreateDeploymentTemplateV2OK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment template v2 o k response has a 5xx status code +func (o *CreateDeploymentTemplateV2OK) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment template v2 o k response a status code equal to that given +func (o *CreateDeploymentTemplateV2OK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create deployment template v2 o k response +func (o *CreateDeploymentTemplateV2OK) Code() int { + return 200 +} + func (o *CreateDeploymentTemplateV2OK) Error() string { return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2OK %+v", 200, o.Payload) } + +func (o *CreateDeploymentTemplateV2OK) String() string { + return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2OK %+v", 200, o.Payload) +} + func (o *CreateDeploymentTemplateV2OK) GetPayload() *models.IDResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewCreateDeploymentTemplateV2Created() *CreateDeploymentTemplateV2Created { return &CreateDeploymentTemplateV2Created{} } -/* CreateDeploymentTemplateV2Created describes a response with status code 201, with default header values. +/* +CreateDeploymentTemplateV2Created describes a response with status code 201, with default header values. The deployment definition was valid and the template has been created. */ @@ -120,9 +157,44 @@ type CreateDeploymentTemplateV2Created struct { Payload *models.IDResponse } +// IsSuccess returns true when this create deployment template v2 created response has a 2xx status code +func (o *CreateDeploymentTemplateV2Created) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment template v2 created response has a 3xx status code +func (o *CreateDeploymentTemplateV2Created) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment template v2 created response has a 4xx status code +func (o *CreateDeploymentTemplateV2Created) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment template v2 created response has a 5xx status code +func (o *CreateDeploymentTemplateV2Created) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment template v2 created response a status code equal to that given +func (o *CreateDeploymentTemplateV2Created) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create deployment template v2 created response +func (o *CreateDeploymentTemplateV2Created) Code() int { + return 201 +} + func (o *CreateDeploymentTemplateV2Created) Error() string { return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2Created %+v", 201, o.Payload) } + +func (o *CreateDeploymentTemplateV2Created) String() string { + return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2Created %+v", 201, o.Payload) +} + func (o *CreateDeploymentTemplateV2Created) GetPayload() *models.IDResponse { return o.Payload } @@ -144,7 +216,8 @@ func NewCreateDeploymentTemplateV2BadRequest() *CreateDeploymentTemplateV2BadReq return &CreateDeploymentTemplateV2BadRequest{} } -/* CreateDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. +/* +CreateDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. The requested region is not supported. (code: `templates.region_not_found`) */ @@ -157,9 +230,44 @@ type CreateDeploymentTemplateV2BadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment template v2 bad request response has a 2xx status code +func (o *CreateDeploymentTemplateV2BadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment template v2 bad request response has a 3xx status code +func (o *CreateDeploymentTemplateV2BadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment template v2 bad request response has a 4xx status code +func (o *CreateDeploymentTemplateV2BadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment template v2 bad request response has a 5xx status code +func (o *CreateDeploymentTemplateV2BadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment template v2 bad request response a status code equal to that given +func (o *CreateDeploymentTemplateV2BadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create deployment template v2 bad request response +func (o *CreateDeploymentTemplateV2BadRequest) Code() int { + return 400 +} + func (o *CreateDeploymentTemplateV2BadRequest) Error() string { return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2BadRequest %+v", 400, o.Payload) } + +func (o *CreateDeploymentTemplateV2BadRequest) String() string { + return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2BadRequest %+v", 400, o.Payload) +} + func (o *CreateDeploymentTemplateV2BadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -188,7 +296,8 @@ func NewCreateDeploymentTemplateV2Unauthorized() *CreateDeploymentTemplateV2Unau return &CreateDeploymentTemplateV2Unauthorized{} } -/* CreateDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. +/* +CreateDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. The user is not authorized to access requested region. (code: `templates.region_not_allowed`) */ @@ -201,9 +310,44 @@ type CreateDeploymentTemplateV2Unauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment template v2 unauthorized response has a 2xx status code +func (o *CreateDeploymentTemplateV2Unauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment template v2 unauthorized response has a 3xx status code +func (o *CreateDeploymentTemplateV2Unauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment template v2 unauthorized response has a 4xx status code +func (o *CreateDeploymentTemplateV2Unauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment template v2 unauthorized response has a 5xx status code +func (o *CreateDeploymentTemplateV2Unauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment template v2 unauthorized response a status code equal to that given +func (o *CreateDeploymentTemplateV2Unauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the create deployment template v2 unauthorized response +func (o *CreateDeploymentTemplateV2Unauthorized) Code() int { + return 401 +} + func (o *CreateDeploymentTemplateV2Unauthorized) Error() string { return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) } + +func (o *CreateDeploymentTemplateV2Unauthorized) String() string { + return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) +} + func (o *CreateDeploymentTemplateV2Unauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -232,7 +376,8 @@ func NewCreateDeploymentTemplateV2RetryWith() *CreateDeploymentTemplateV2RetryWi return &CreateDeploymentTemplateV2RetryWith{} } -/* CreateDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. +/* +CreateDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -245,9 +390,44 @@ type CreateDeploymentTemplateV2RetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment template v2 retry with response has a 2xx status code +func (o *CreateDeploymentTemplateV2RetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment template v2 retry with response has a 3xx status code +func (o *CreateDeploymentTemplateV2RetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment template v2 retry with response has a 4xx status code +func (o *CreateDeploymentTemplateV2RetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment template v2 retry with response has a 5xx status code +func (o *CreateDeploymentTemplateV2RetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment template v2 retry with response a status code equal to that given +func (o *CreateDeploymentTemplateV2RetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create deployment template v2 retry with response +func (o *CreateDeploymentTemplateV2RetryWith) Code() int { + return 449 +} + func (o *CreateDeploymentTemplateV2RetryWith) Error() string { return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2RetryWith %+v", 449, o.Payload) } + +func (o *CreateDeploymentTemplateV2RetryWith) String() string { + return fmt.Sprintf("[POST /deployments/templates][%d] createDeploymentTemplateV2RetryWith %+v", 449, o.Payload) +} + func (o *CreateDeploymentTemplateV2RetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployment_templates/delete_deployment_template_v2_parameters.go b/pkg/client/deployment_templates/delete_deployment_template_v2_parameters.go index 8e463401..fdfb248d 100644 --- a/pkg/client/deployment_templates/delete_deployment_template_v2_parameters.go +++ b/pkg/client/deployment_templates/delete_deployment_template_v2_parameters.go @@ -69,10 +69,12 @@ func NewDeleteDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *Del } } -/* DeleteDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - for the delete deployment template v2 operation. +/* +DeleteDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete deployment template v2 operation. + + Typically these are written to a http.Request. */ type DeleteDeploymentTemplateV2Params struct { diff --git a/pkg/client/deployment_templates/delete_deployment_template_v2_responses.go b/pkg/client/deployment_templates/delete_deployment_template_v2_responses.go index 9fe251a5..ab36044d 100644 --- a/pkg/client/deployment_templates/delete_deployment_template_v2_responses.go +++ b/pkg/client/deployment_templates/delete_deployment_template_v2_responses.go @@ -80,7 +80,8 @@ func NewDeleteDeploymentTemplateV2OK() *DeleteDeploymentTemplateV2OK { return &DeleteDeploymentTemplateV2OK{} } -/* DeleteDeploymentTemplateV2OK describes a response with status code 200, with default header values. +/* +DeleteDeploymentTemplateV2OK describes a response with status code 200, with default header values. The deployment template was successfully deleted. */ @@ -88,9 +89,44 @@ type DeleteDeploymentTemplateV2OK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete deployment template v2 o k response has a 2xx status code +func (o *DeleteDeploymentTemplateV2OK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete deployment template v2 o k response has a 3xx status code +func (o *DeleteDeploymentTemplateV2OK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment template v2 o k response has a 4xx status code +func (o *DeleteDeploymentTemplateV2OK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment template v2 o k response has a 5xx status code +func (o *DeleteDeploymentTemplateV2OK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment template v2 o k response a status code equal to that given +func (o *DeleteDeploymentTemplateV2OK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete deployment template v2 o k response +func (o *DeleteDeploymentTemplateV2OK) Code() int { + return 200 +} + func (o *DeleteDeploymentTemplateV2OK) Error() string { return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2OK %+v", 200, o.Payload) } + +func (o *DeleteDeploymentTemplateV2OK) String() string { + return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2OK %+v", 200, o.Payload) +} + func (o *DeleteDeploymentTemplateV2OK) GetPayload() models.EmptyResponse { return o.Payload } @@ -110,7 +146,8 @@ func NewDeleteDeploymentTemplateV2BadRequest() *DeleteDeploymentTemplateV2BadReq return &DeleteDeploymentTemplateV2BadRequest{} } -/* DeleteDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. +/* +DeleteDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. The requested region is not supported. (code: `templates.region_not_found`) */ @@ -123,9 +160,44 @@ type DeleteDeploymentTemplateV2BadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment template v2 bad request response has a 2xx status code +func (o *DeleteDeploymentTemplateV2BadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment template v2 bad request response has a 3xx status code +func (o *DeleteDeploymentTemplateV2BadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment template v2 bad request response has a 4xx status code +func (o *DeleteDeploymentTemplateV2BadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment template v2 bad request response has a 5xx status code +func (o *DeleteDeploymentTemplateV2BadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment template v2 bad request response a status code equal to that given +func (o *DeleteDeploymentTemplateV2BadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete deployment template v2 bad request response +func (o *DeleteDeploymentTemplateV2BadRequest) Code() int { + return 400 +} + func (o *DeleteDeploymentTemplateV2BadRequest) Error() string { return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2BadRequest %+v", 400, o.Payload) } + +func (o *DeleteDeploymentTemplateV2BadRequest) String() string { + return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2BadRequest %+v", 400, o.Payload) +} + func (o *DeleteDeploymentTemplateV2BadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -154,7 +226,8 @@ func NewDeleteDeploymentTemplateV2Unauthorized() *DeleteDeploymentTemplateV2Unau return &DeleteDeploymentTemplateV2Unauthorized{} } -/* DeleteDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. +/* +DeleteDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. The user is not authorized to access requested region. (code: `templates.region_not_allowed`) */ @@ -167,9 +240,44 @@ type DeleteDeploymentTemplateV2Unauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment template v2 unauthorized response has a 2xx status code +func (o *DeleteDeploymentTemplateV2Unauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment template v2 unauthorized response has a 3xx status code +func (o *DeleteDeploymentTemplateV2Unauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment template v2 unauthorized response has a 4xx status code +func (o *DeleteDeploymentTemplateV2Unauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment template v2 unauthorized response has a 5xx status code +func (o *DeleteDeploymentTemplateV2Unauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment template v2 unauthorized response a status code equal to that given +func (o *DeleteDeploymentTemplateV2Unauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete deployment template v2 unauthorized response +func (o *DeleteDeploymentTemplateV2Unauthorized) Code() int { + return 401 +} + func (o *DeleteDeploymentTemplateV2Unauthorized) Error() string { return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) } + +func (o *DeleteDeploymentTemplateV2Unauthorized) String() string { + return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) +} + func (o *DeleteDeploymentTemplateV2Unauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -198,7 +306,8 @@ func NewDeleteDeploymentTemplateV2NotFound() *DeleteDeploymentTemplateV2NotFound return &DeleteDeploymentTemplateV2NotFound{} } -/* DeleteDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. +/* +DeleteDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`) */ @@ -211,9 +320,44 @@ type DeleteDeploymentTemplateV2NotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment template v2 not found response has a 2xx status code +func (o *DeleteDeploymentTemplateV2NotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment template v2 not found response has a 3xx status code +func (o *DeleteDeploymentTemplateV2NotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment template v2 not found response has a 4xx status code +func (o *DeleteDeploymentTemplateV2NotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment template v2 not found response has a 5xx status code +func (o *DeleteDeploymentTemplateV2NotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment template v2 not found response a status code equal to that given +func (o *DeleteDeploymentTemplateV2NotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete deployment template v2 not found response +func (o *DeleteDeploymentTemplateV2NotFound) Code() int { + return 404 +} + func (o *DeleteDeploymentTemplateV2NotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2NotFound %+v", 404, o.Payload) } + +func (o *DeleteDeploymentTemplateV2NotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2NotFound %+v", 404, o.Payload) +} + func (o *DeleteDeploymentTemplateV2NotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -242,7 +386,8 @@ func NewDeleteDeploymentTemplateV2RetryWith() *DeleteDeploymentTemplateV2RetryWi return &DeleteDeploymentTemplateV2RetryWith{} } -/* DeleteDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. +/* +DeleteDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -255,9 +400,44 @@ type DeleteDeploymentTemplateV2RetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment template v2 retry with response has a 2xx status code +func (o *DeleteDeploymentTemplateV2RetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment template v2 retry with response has a 3xx status code +func (o *DeleteDeploymentTemplateV2RetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment template v2 retry with response has a 4xx status code +func (o *DeleteDeploymentTemplateV2RetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment template v2 retry with response has a 5xx status code +func (o *DeleteDeploymentTemplateV2RetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment template v2 retry with response a status code equal to that given +func (o *DeleteDeploymentTemplateV2RetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete deployment template v2 retry with response +func (o *DeleteDeploymentTemplateV2RetryWith) Code() int { + return 449 +} + func (o *DeleteDeploymentTemplateV2RetryWith) Error() string { return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2RetryWith %+v", 449, o.Payload) } + +func (o *DeleteDeploymentTemplateV2RetryWith) String() string { + return fmt.Sprintf("[DELETE /deployments/templates/{template_id}][%d] deleteDeploymentTemplateV2RetryWith %+v", 449, o.Payload) +} + func (o *DeleteDeploymentTemplateV2RetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployment_templates/deployment_templates_client.go b/pkg/client/deployment_templates/deployment_templates_client.go index 5bf2098c..b0e0189d 100644 --- a/pkg/client/deployment_templates/deployment_templates_client.go +++ b/pkg/client/deployment_templates/deployment_templates_client.go @@ -61,9 +61,9 @@ type ClientService interface { } /* - CreateDeploymentTemplateV2 creates deployment template +CreateDeploymentTemplateV2 creates deployment template - Creates a deployment template. +Creates a deployment template. */ func (a *Client) CreateDeploymentTemplateV2(params *CreateDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentTemplateV2OK, *CreateDeploymentTemplateV2Created, error) { // TODO: Validate the params before sending @@ -103,9 +103,9 @@ func (a *Client) CreateDeploymentTemplateV2(params *CreateDeploymentTemplateV2Pa } /* - DeleteDeploymentTemplateV2 deletes deployment template +DeleteDeploymentTemplateV2 deletes deployment template - Deletes a deployment template by id. +Deletes a deployment template by id. */ func (a *Client) DeleteDeploymentTemplateV2(params *DeleteDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentTemplateV2OK, error) { // TODO: Validate the params before sending @@ -144,9 +144,9 @@ func (a *Client) DeleteDeploymentTemplateV2(params *DeleteDeploymentTemplateV2Pa } /* - GetDeploymentTemplateV2 gets deployment template +GetDeploymentTemplateV2 gets deployment template - Retrieves a deployment template by id. +Retrieves a deployment template by id. */ func (a *Client) GetDeploymentTemplateV2(params *GetDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplateV2OK, error) { // TODO: Validate the params before sending @@ -185,9 +185,9 @@ func (a *Client) GetDeploymentTemplateV2(params *GetDeploymentTemplateV2Params, } /* - GetDeploymentTemplatesV2 gets deployment templates +GetDeploymentTemplatesV2 gets deployment templates - Retrieves all deployment templates. +Retrieves all deployment templates. */ func (a *Client) GetDeploymentTemplatesV2(params *GetDeploymentTemplatesV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplatesV2OK, error) { // TODO: Validate the params before sending @@ -226,9 +226,9 @@ func (a *Client) GetDeploymentTemplatesV2(params *GetDeploymentTemplatesV2Params } /* - SetDeploymentTemplateV2 sets deployment template +SetDeploymentTemplateV2 sets deployment template - Creates or updates a deployment template. +Creates or updates a deployment template. */ func (a *Client) SetDeploymentTemplateV2(params *SetDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDeploymentTemplateV2OK, *SetDeploymentTemplateV2Created, error) { // TODO: Validate the params before sending diff --git a/pkg/client/deployment_templates/get_deployment_template_v2_parameters.go b/pkg/client/deployment_templates/get_deployment_template_v2_parameters.go index 70d4f6d7..f0b53ebd 100644 --- a/pkg/client/deployment_templates/get_deployment_template_v2_parameters.go +++ b/pkg/client/deployment_templates/get_deployment_template_v2_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *GetDep } } -/* GetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - for the get deployment template v2 operation. +/* +GetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment template v2 operation. + + Typically these are written to a http.Request. */ type GetDeploymentTemplateV2Params struct { diff --git a/pkg/client/deployment_templates/get_deployment_template_v2_responses.go b/pkg/client/deployment_templates/get_deployment_template_v2_responses.go index 9f4d9b6f..a9b6fe3e 100644 --- a/pkg/client/deployment_templates/get_deployment_template_v2_responses.go +++ b/pkg/client/deployment_templates/get_deployment_template_v2_responses.go @@ -74,7 +74,8 @@ func NewGetDeploymentTemplateV2OK() *GetDeploymentTemplateV2OK { return &GetDeploymentTemplateV2OK{} } -/* GetDeploymentTemplateV2OK describes a response with status code 200, with default header values. +/* +GetDeploymentTemplateV2OK describes a response with status code 200, with default header values. The deployment template was found and returned successfully. */ @@ -82,9 +83,44 @@ type GetDeploymentTemplateV2OK struct { Payload *models.DeploymentTemplateInfoV2 } +// IsSuccess returns true when this get deployment template v2 o k response has a 2xx status code +func (o *GetDeploymentTemplateV2OK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment template v2 o k response has a 3xx status code +func (o *GetDeploymentTemplateV2OK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment template v2 o k response has a 4xx status code +func (o *GetDeploymentTemplateV2OK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment template v2 o k response has a 5xx status code +func (o *GetDeploymentTemplateV2OK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment template v2 o k response a status code equal to that given +func (o *GetDeploymentTemplateV2OK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment template v2 o k response +func (o *GetDeploymentTemplateV2OK) Code() int { + return 200 +} + func (o *GetDeploymentTemplateV2OK) Error() string { return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2OK %+v", 200, o.Payload) } + +func (o *GetDeploymentTemplateV2OK) String() string { + return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2OK %+v", 200, o.Payload) +} + func (o *GetDeploymentTemplateV2OK) GetPayload() *models.DeploymentTemplateInfoV2 { return o.Payload } @@ -106,7 +142,8 @@ func NewGetDeploymentTemplateV2BadRequest() *GetDeploymentTemplateV2BadRequest { return &GetDeploymentTemplateV2BadRequest{} } -/* GetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. +/* +GetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. The requested region is not supported. (code: `templates.region_not_found`) */ @@ -119,9 +156,44 @@ type GetDeploymentTemplateV2BadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment template v2 bad request response has a 2xx status code +func (o *GetDeploymentTemplateV2BadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment template v2 bad request response has a 3xx status code +func (o *GetDeploymentTemplateV2BadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment template v2 bad request response has a 4xx status code +func (o *GetDeploymentTemplateV2BadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment template v2 bad request response has a 5xx status code +func (o *GetDeploymentTemplateV2BadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment template v2 bad request response a status code equal to that given +func (o *GetDeploymentTemplateV2BadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get deployment template v2 bad request response +func (o *GetDeploymentTemplateV2BadRequest) Code() int { + return 400 +} + func (o *GetDeploymentTemplateV2BadRequest) Error() string { return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2BadRequest %+v", 400, o.Payload) } + +func (o *GetDeploymentTemplateV2BadRequest) String() string { + return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2BadRequest %+v", 400, o.Payload) +} + func (o *GetDeploymentTemplateV2BadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewGetDeploymentTemplateV2Unauthorized() *GetDeploymentTemplateV2Unauthoriz return &GetDeploymentTemplateV2Unauthorized{} } -/* GetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. +/* +GetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. The user is not authorized to access requested region. (code: `templates.region_not_allowed`) */ @@ -163,9 +236,44 @@ type GetDeploymentTemplateV2Unauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment template v2 unauthorized response has a 2xx status code +func (o *GetDeploymentTemplateV2Unauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment template v2 unauthorized response has a 3xx status code +func (o *GetDeploymentTemplateV2Unauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment template v2 unauthorized response has a 4xx status code +func (o *GetDeploymentTemplateV2Unauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment template v2 unauthorized response has a 5xx status code +func (o *GetDeploymentTemplateV2Unauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment template v2 unauthorized response a status code equal to that given +func (o *GetDeploymentTemplateV2Unauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get deployment template v2 unauthorized response +func (o *GetDeploymentTemplateV2Unauthorized) Code() int { + return 401 +} + func (o *GetDeploymentTemplateV2Unauthorized) Error() string { return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) } + +func (o *GetDeploymentTemplateV2Unauthorized) String() string { + return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) +} + func (o *GetDeploymentTemplateV2Unauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewGetDeploymentTemplateV2NotFound() *GetDeploymentTemplateV2NotFound { return &GetDeploymentTemplateV2NotFound{} } -/* GetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. +/* +GetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`) */ @@ -207,9 +316,44 @@ type GetDeploymentTemplateV2NotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment template v2 not found response has a 2xx status code +func (o *GetDeploymentTemplateV2NotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment template v2 not found response has a 3xx status code +func (o *GetDeploymentTemplateV2NotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment template v2 not found response has a 4xx status code +func (o *GetDeploymentTemplateV2NotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment template v2 not found response has a 5xx status code +func (o *GetDeploymentTemplateV2NotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment template v2 not found response a status code equal to that given +func (o *GetDeploymentTemplateV2NotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment template v2 not found response +func (o *GetDeploymentTemplateV2NotFound) Code() int { + return 404 +} + func (o *GetDeploymentTemplateV2NotFound) Error() string { return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2NotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentTemplateV2NotFound) String() string { + return fmt.Sprintf("[GET /deployments/templates/{template_id}][%d] getDeploymentTemplateV2NotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentTemplateV2NotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployment_templates/get_deployment_templates_v2_parameters.go b/pkg/client/deployment_templates/get_deployment_templates_v2_parameters.go index 1cbd123f..b5517203 100644 --- a/pkg/client/deployment_templates/get_deployment_templates_v2_parameters.go +++ b/pkg/client/deployment_templates/get_deployment_templates_v2_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentTemplatesV2ParamsWithHTTPClient(client *http.Client) *GetDe } } -/* GetDeploymentTemplatesV2Params contains all the parameters to send to the API endpoint - for the get deployment templates v2 operation. +/* +GetDeploymentTemplatesV2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment templates v2 operation. + + Typically these are written to a http.Request. */ type GetDeploymentTemplatesV2Params struct { diff --git a/pkg/client/deployment_templates/get_deployment_templates_v2_responses.go b/pkg/client/deployment_templates/get_deployment_templates_v2_responses.go index 7988c905..7bee59a7 100644 --- a/pkg/client/deployment_templates/get_deployment_templates_v2_responses.go +++ b/pkg/client/deployment_templates/get_deployment_templates_v2_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentTemplatesV2OK() *GetDeploymentTemplatesV2OK { return &GetDeploymentTemplatesV2OK{} } -/* GetDeploymentTemplatesV2OK describes a response with status code 200, with default header values. +/* +GetDeploymentTemplatesV2OK describes a response with status code 200, with default header values. The deployment templates were returned successfully. */ @@ -76,9 +77,44 @@ type GetDeploymentTemplatesV2OK struct { Payload []*models.DeploymentTemplateInfoV2 } +// IsSuccess returns true when this get deployment templates v2 o k response has a 2xx status code +func (o *GetDeploymentTemplatesV2OK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment templates v2 o k response has a 3xx status code +func (o *GetDeploymentTemplatesV2OK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment templates v2 o k response has a 4xx status code +func (o *GetDeploymentTemplatesV2OK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment templates v2 o k response has a 5xx status code +func (o *GetDeploymentTemplatesV2OK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment templates v2 o k response a status code equal to that given +func (o *GetDeploymentTemplatesV2OK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment templates v2 o k response +func (o *GetDeploymentTemplatesV2OK) Code() int { + return 200 +} + func (o *GetDeploymentTemplatesV2OK) Error() string { return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2OK %+v", 200, o.Payload) } + +func (o *GetDeploymentTemplatesV2OK) String() string { + return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2OK %+v", 200, o.Payload) +} + func (o *GetDeploymentTemplatesV2OK) GetPayload() []*models.DeploymentTemplateInfoV2 { return o.Payload } @@ -98,7 +134,8 @@ func NewGetDeploymentTemplatesV2BadRequest() *GetDeploymentTemplatesV2BadRequest return &GetDeploymentTemplatesV2BadRequest{} } -/* GetDeploymentTemplatesV2BadRequest describes a response with status code 400, with default header values. +/* +GetDeploymentTemplatesV2BadRequest describes a response with status code 400, with default header values. The requested region was not found. (code: `templates.region_not_found`) */ @@ -111,9 +148,44 @@ type GetDeploymentTemplatesV2BadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment templates v2 bad request response has a 2xx status code +func (o *GetDeploymentTemplatesV2BadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment templates v2 bad request response has a 3xx status code +func (o *GetDeploymentTemplatesV2BadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment templates v2 bad request response has a 4xx status code +func (o *GetDeploymentTemplatesV2BadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment templates v2 bad request response has a 5xx status code +func (o *GetDeploymentTemplatesV2BadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment templates v2 bad request response a status code equal to that given +func (o *GetDeploymentTemplatesV2BadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get deployment templates v2 bad request response +func (o *GetDeploymentTemplatesV2BadRequest) Code() int { + return 400 +} + func (o *GetDeploymentTemplatesV2BadRequest) Error() string { return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2BadRequest %+v", 400, o.Payload) } + +func (o *GetDeploymentTemplatesV2BadRequest) String() string { + return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2BadRequest %+v", 400, o.Payload) +} + func (o *GetDeploymentTemplatesV2BadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewGetDeploymentTemplatesV2Unauthorized() *GetDeploymentTemplatesV2Unauthor return &GetDeploymentTemplatesV2Unauthorized{} } -/* GetDeploymentTemplatesV2Unauthorized describes a response with status code 401, with default header values. +/* +GetDeploymentTemplatesV2Unauthorized describes a response with status code 401, with default header values. The user is not authorized to access requested region. (code: `templates.region_not_allowed`) */ @@ -155,9 +228,44 @@ type GetDeploymentTemplatesV2Unauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment templates v2 unauthorized response has a 2xx status code +func (o *GetDeploymentTemplatesV2Unauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment templates v2 unauthorized response has a 3xx status code +func (o *GetDeploymentTemplatesV2Unauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment templates v2 unauthorized response has a 4xx status code +func (o *GetDeploymentTemplatesV2Unauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment templates v2 unauthorized response has a 5xx status code +func (o *GetDeploymentTemplatesV2Unauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment templates v2 unauthorized response a status code equal to that given +func (o *GetDeploymentTemplatesV2Unauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get deployment templates v2 unauthorized response +func (o *GetDeploymentTemplatesV2Unauthorized) Code() int { + return 401 +} + func (o *GetDeploymentTemplatesV2Unauthorized) Error() string { return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2Unauthorized %+v", 401, o.Payload) } + +func (o *GetDeploymentTemplatesV2Unauthorized) String() string { + return fmt.Sprintf("[GET /deployments/templates][%d] getDeploymentTemplatesV2Unauthorized %+v", 401, o.Payload) +} + func (o *GetDeploymentTemplatesV2Unauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployment_templates/set_deployment_template_v2_parameters.go b/pkg/client/deployment_templates/set_deployment_template_v2_parameters.go index f4c41353..c0e636ab 100644 --- a/pkg/client/deployment_templates/set_deployment_template_v2_parameters.go +++ b/pkg/client/deployment_templates/set_deployment_template_v2_parameters.go @@ -72,10 +72,12 @@ func NewSetDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *SetDep } } -/* SetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - for the set deployment template v2 operation. +/* +SetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set deployment template v2 operation. + + Typically these are written to a http.Request. */ type SetDeploymentTemplateV2Params struct { diff --git a/pkg/client/deployment_templates/set_deployment_template_v2_responses.go b/pkg/client/deployment_templates/set_deployment_template_v2_responses.go index f3a2729a..5771573c 100644 --- a/pkg/client/deployment_templates/set_deployment_template_v2_responses.go +++ b/pkg/client/deployment_templates/set_deployment_template_v2_responses.go @@ -92,7 +92,8 @@ func NewSetDeploymentTemplateV2OK() *SetDeploymentTemplateV2OK { return &SetDeploymentTemplateV2OK{} } -/* SetDeploymentTemplateV2OK describes a response with status code 200, with default header values. +/* +SetDeploymentTemplateV2OK describes a response with status code 200, with default header values. The deployment definition was valid and the template has been updated. */ @@ -100,9 +101,44 @@ type SetDeploymentTemplateV2OK struct { Payload *models.IDResponse } +// IsSuccess returns true when this set deployment template v2 o k response has a 2xx status code +func (o *SetDeploymentTemplateV2OK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set deployment template v2 o k response has a 3xx status code +func (o *SetDeploymentTemplateV2OK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 o k response has a 4xx status code +func (o *SetDeploymentTemplateV2OK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment template v2 o k response has a 5xx status code +func (o *SetDeploymentTemplateV2OK) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 o k response a status code equal to that given +func (o *SetDeploymentTemplateV2OK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set deployment template v2 o k response +func (o *SetDeploymentTemplateV2OK) Code() int { + return 200 +} + func (o *SetDeploymentTemplateV2OK) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2OK %+v", 200, o.Payload) } + +func (o *SetDeploymentTemplateV2OK) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2OK %+v", 200, o.Payload) +} + func (o *SetDeploymentTemplateV2OK) GetPayload() *models.IDResponse { return o.Payload } @@ -124,7 +160,8 @@ func NewSetDeploymentTemplateV2Created() *SetDeploymentTemplateV2Created { return &SetDeploymentTemplateV2Created{} } -/* SetDeploymentTemplateV2Created describes a response with status code 201, with default header values. +/* +SetDeploymentTemplateV2Created describes a response with status code 201, with default header values. The deployment definition was valid and the template was created. */ @@ -132,9 +169,44 @@ type SetDeploymentTemplateV2Created struct { Payload *models.IDResponse } +// IsSuccess returns true when this set deployment template v2 created response has a 2xx status code +func (o *SetDeploymentTemplateV2Created) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set deployment template v2 created response has a 3xx status code +func (o *SetDeploymentTemplateV2Created) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 created response has a 4xx status code +func (o *SetDeploymentTemplateV2Created) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment template v2 created response has a 5xx status code +func (o *SetDeploymentTemplateV2Created) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 created response a status code equal to that given +func (o *SetDeploymentTemplateV2Created) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the set deployment template v2 created response +func (o *SetDeploymentTemplateV2Created) Code() int { + return 201 +} + func (o *SetDeploymentTemplateV2Created) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Created %+v", 201, o.Payload) } + +func (o *SetDeploymentTemplateV2Created) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Created %+v", 201, o.Payload) +} + func (o *SetDeploymentTemplateV2Created) GetPayload() *models.IDResponse { return o.Payload } @@ -156,7 +228,8 @@ func NewSetDeploymentTemplateV2BadRequest() *SetDeploymentTemplateV2BadRequest { return &SetDeploymentTemplateV2BadRequest{} } -/* SetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. +/* +SetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values. The requested region is not supported. (code: `templates.region_not_found`) */ @@ -169,9 +242,44 @@ type SetDeploymentTemplateV2BadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment template v2 bad request response has a 2xx status code +func (o *SetDeploymentTemplateV2BadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment template v2 bad request response has a 3xx status code +func (o *SetDeploymentTemplateV2BadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 bad request response has a 4xx status code +func (o *SetDeploymentTemplateV2BadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment template v2 bad request response has a 5xx status code +func (o *SetDeploymentTemplateV2BadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 bad request response a status code equal to that given +func (o *SetDeploymentTemplateV2BadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set deployment template v2 bad request response +func (o *SetDeploymentTemplateV2BadRequest) Code() int { + return 400 +} + func (o *SetDeploymentTemplateV2BadRequest) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2BadRequest %+v", 400, o.Payload) } + +func (o *SetDeploymentTemplateV2BadRequest) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2BadRequest %+v", 400, o.Payload) +} + func (o *SetDeploymentTemplateV2BadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewSetDeploymentTemplateV2Unauthorized() *SetDeploymentTemplateV2Unauthoriz return &SetDeploymentTemplateV2Unauthorized{} } -/* SetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. +/* +SetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values. The user is not authorized to access requested region. (code: `templates.region_not_allowed`) */ @@ -213,9 +322,44 @@ type SetDeploymentTemplateV2Unauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment template v2 unauthorized response has a 2xx status code +func (o *SetDeploymentTemplateV2Unauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment template v2 unauthorized response has a 3xx status code +func (o *SetDeploymentTemplateV2Unauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 unauthorized response has a 4xx status code +func (o *SetDeploymentTemplateV2Unauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment template v2 unauthorized response has a 5xx status code +func (o *SetDeploymentTemplateV2Unauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 unauthorized response a status code equal to that given +func (o *SetDeploymentTemplateV2Unauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the set deployment template v2 unauthorized response +func (o *SetDeploymentTemplateV2Unauthorized) Code() int { + return 401 +} + func (o *SetDeploymentTemplateV2Unauthorized) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) } + +func (o *SetDeploymentTemplateV2Unauthorized) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Unauthorized %+v", 401, o.Payload) +} + func (o *SetDeploymentTemplateV2Unauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewSetDeploymentTemplateV2NotFound() *SetDeploymentTemplateV2NotFound { return &SetDeploymentTemplateV2NotFound{} } -/* SetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. +/* +SetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values. The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`) */ @@ -257,9 +402,44 @@ type SetDeploymentTemplateV2NotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment template v2 not found response has a 2xx status code +func (o *SetDeploymentTemplateV2NotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment template v2 not found response has a 3xx status code +func (o *SetDeploymentTemplateV2NotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 not found response has a 4xx status code +func (o *SetDeploymentTemplateV2NotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment template v2 not found response has a 5xx status code +func (o *SetDeploymentTemplateV2NotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 not found response a status code equal to that given +func (o *SetDeploymentTemplateV2NotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set deployment template v2 not found response +func (o *SetDeploymentTemplateV2NotFound) Code() int { + return 404 +} + func (o *SetDeploymentTemplateV2NotFound) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2NotFound %+v", 404, o.Payload) } + +func (o *SetDeploymentTemplateV2NotFound) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2NotFound %+v", 404, o.Payload) +} + func (o *SetDeploymentTemplateV2NotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -288,7 +468,8 @@ func NewSetDeploymentTemplateV2Conflict() *SetDeploymentTemplateV2Conflict { return &SetDeploymentTemplateV2Conflict{} } -/* SetDeploymentTemplateV2Conflict describes a response with status code 409, with default header values. +/* +SetDeploymentTemplateV2Conflict describes a response with status code 409, with default header values. The version supplied in the request conflicted with the version found on the server. (code: `templates.version_conflict`) */ @@ -301,9 +482,44 @@ type SetDeploymentTemplateV2Conflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment template v2 conflict response has a 2xx status code +func (o *SetDeploymentTemplateV2Conflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment template v2 conflict response has a 3xx status code +func (o *SetDeploymentTemplateV2Conflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 conflict response has a 4xx status code +func (o *SetDeploymentTemplateV2Conflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment template v2 conflict response has a 5xx status code +func (o *SetDeploymentTemplateV2Conflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 conflict response a status code equal to that given +func (o *SetDeploymentTemplateV2Conflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set deployment template v2 conflict response +func (o *SetDeploymentTemplateV2Conflict) Code() int { + return 409 +} + func (o *SetDeploymentTemplateV2Conflict) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Conflict %+v", 409, o.Payload) } + +func (o *SetDeploymentTemplateV2Conflict) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2Conflict %+v", 409, o.Payload) +} + func (o *SetDeploymentTemplateV2Conflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -332,7 +548,8 @@ func NewSetDeploymentTemplateV2RetryWith() *SetDeploymentTemplateV2RetryWith { return &SetDeploymentTemplateV2RetryWith{} } -/* SetDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. +/* +SetDeploymentTemplateV2RetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -345,9 +562,44 @@ type SetDeploymentTemplateV2RetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment template v2 retry with response has a 2xx status code +func (o *SetDeploymentTemplateV2RetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment template v2 retry with response has a 3xx status code +func (o *SetDeploymentTemplateV2RetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment template v2 retry with response has a 4xx status code +func (o *SetDeploymentTemplateV2RetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment template v2 retry with response has a 5xx status code +func (o *SetDeploymentTemplateV2RetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment template v2 retry with response a status code equal to that given +func (o *SetDeploymentTemplateV2RetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set deployment template v2 retry with response +func (o *SetDeploymentTemplateV2RetryWith) Code() int { + return 449 +} + func (o *SetDeploymentTemplateV2RetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2RetryWith %+v", 449, o.Payload) } + +func (o *SetDeploymentTemplateV2RetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/templates/{template_id}][%d] setDeploymentTemplateV2RetryWith %+v", 449, o.Payload) +} + func (o *SetDeploymentTemplateV2RetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/cancel_deployment_resource_pending_plan_parameters.go b/pkg/client/deployments/cancel_deployment_resource_pending_plan_parameters.go index eaf2bc68..18556c4a 100644 --- a/pkg/client/deployments/cancel_deployment_resource_pending_plan_parameters.go +++ b/pkg/client/deployments/cancel_deployment_resource_pending_plan_parameters.go @@ -70,10 +70,12 @@ func NewCancelDeploymentResourcePendingPlanParamsWithHTTPClient(client *http.Cli } } -/* CancelDeploymentResourcePendingPlanParams contains all the parameters to send to the API endpoint - for the cancel deployment resource pending plan operation. +/* +CancelDeploymentResourcePendingPlanParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the cancel deployment resource pending plan operation. + + Typically these are written to a http.Request. */ type CancelDeploymentResourcePendingPlanParams struct { diff --git a/pkg/client/deployments/cancel_deployment_resource_pending_plan_responses.go b/pkg/client/deployments/cancel_deployment_resource_pending_plan_responses.go index d0fc25bc..b9e23fe2 100644 --- a/pkg/client/deployments/cancel_deployment_resource_pending_plan_responses.go +++ b/pkg/client/deployments/cancel_deployment_resource_pending_plan_responses.go @@ -80,7 +80,8 @@ func NewCancelDeploymentResourcePendingPlanOK() *CancelDeploymentResourcePending return &CancelDeploymentResourcePendingPlanOK{} } -/* CancelDeploymentResourcePendingPlanOK describes a response with status code 200, with default header values. +/* +CancelDeploymentResourcePendingPlanOK describes a response with status code 200, with default header values. Standard Deployment Resource Crud Response */ @@ -88,9 +89,44 @@ type CancelDeploymentResourcePendingPlanOK struct { Payload *models.DeploymentResourceCrudResponse } +// IsSuccess returns true when this cancel deployment resource pending plan o k response has a 2xx status code +func (o *CancelDeploymentResourcePendingPlanOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cancel deployment resource pending plan o k response has a 3xx status code +func (o *CancelDeploymentResourcePendingPlanOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cancel deployment resource pending plan o k response has a 4xx status code +func (o *CancelDeploymentResourcePendingPlanOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cancel deployment resource pending plan o k response has a 5xx status code +func (o *CancelDeploymentResourcePendingPlanOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cancel deployment resource pending plan o k response a status code equal to that given +func (o *CancelDeploymentResourcePendingPlanOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the cancel deployment resource pending plan o k response +func (o *CancelDeploymentResourcePendingPlanOK) Code() int { + return 200 +} + func (o *CancelDeploymentResourcePendingPlanOK) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanOK %+v", 200, o.Payload) } + +func (o *CancelDeploymentResourcePendingPlanOK) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanOK %+v", 200, o.Payload) +} + func (o *CancelDeploymentResourcePendingPlanOK) GetPayload() *models.DeploymentResourceCrudResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewCancelDeploymentResourcePendingPlanBadRequest() *CancelDeploymentResourc return &CancelDeploymentResourcePendingPlanBadRequest{} } -/* CancelDeploymentResourcePendingPlanBadRequest describes a response with status code 400, with default header values. +/* +CancelDeploymentResourcePendingPlanBadRequest describes a response with status code 400, with default header values. The Resource does not have a pending plan. (code: `deployments.resource_does_not_have_a_pending_plan`) */ @@ -125,9 +162,44 @@ type CancelDeploymentResourcePendingPlanBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this cancel deployment resource pending plan bad request response has a 2xx status code +func (o *CancelDeploymentResourcePendingPlanBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cancel deployment resource pending plan bad request response has a 3xx status code +func (o *CancelDeploymentResourcePendingPlanBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cancel deployment resource pending plan bad request response has a 4xx status code +func (o *CancelDeploymentResourcePendingPlanBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this cancel deployment resource pending plan bad request response has a 5xx status code +func (o *CancelDeploymentResourcePendingPlanBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this cancel deployment resource pending plan bad request response a status code equal to that given +func (o *CancelDeploymentResourcePendingPlanBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the cancel deployment resource pending plan bad request response +func (o *CancelDeploymentResourcePendingPlanBadRequest) Code() int { + return 400 +} + func (o *CancelDeploymentResourcePendingPlanBadRequest) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanBadRequest %+v", 400, o.Payload) } + +func (o *CancelDeploymentResourcePendingPlanBadRequest) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanBadRequest %+v", 400, o.Payload) +} + func (o *CancelDeploymentResourcePendingPlanBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewCancelDeploymentResourcePendingPlanNotFound() *CancelDeploymentResourceP return &CancelDeploymentResourcePendingPlanNotFound{} } -/* CancelDeploymentResourcePendingPlanNotFound describes a response with status code 404, with default header values. +/* +CancelDeploymentResourcePendingPlanNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -169,9 +242,44 @@ type CancelDeploymentResourcePendingPlanNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this cancel deployment resource pending plan not found response has a 2xx status code +func (o *CancelDeploymentResourcePendingPlanNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cancel deployment resource pending plan not found response has a 3xx status code +func (o *CancelDeploymentResourcePendingPlanNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cancel deployment resource pending plan not found response has a 4xx status code +func (o *CancelDeploymentResourcePendingPlanNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this cancel deployment resource pending plan not found response has a 5xx status code +func (o *CancelDeploymentResourcePendingPlanNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this cancel deployment resource pending plan not found response a status code equal to that given +func (o *CancelDeploymentResourcePendingPlanNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the cancel deployment resource pending plan not found response +func (o *CancelDeploymentResourcePendingPlanNotFound) Code() int { + return 404 +} + func (o *CancelDeploymentResourcePendingPlanNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanNotFound %+v", 404, o.Payload) } + +func (o *CancelDeploymentResourcePendingPlanNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanNotFound %+v", 404, o.Payload) +} + func (o *CancelDeploymentResourcePendingPlanNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewCancelDeploymentResourcePendingPlanRetryWith() *CancelDeploymentResource return &CancelDeploymentResourcePendingPlanRetryWith{} } -/* CancelDeploymentResourcePendingPlanRetryWith describes a response with status code 449, with default header values. +/* +CancelDeploymentResourcePendingPlanRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -213,9 +322,44 @@ type CancelDeploymentResourcePendingPlanRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this cancel deployment resource pending plan retry with response has a 2xx status code +func (o *CancelDeploymentResourcePendingPlanRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cancel deployment resource pending plan retry with response has a 3xx status code +func (o *CancelDeploymentResourcePendingPlanRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cancel deployment resource pending plan retry with response has a 4xx status code +func (o *CancelDeploymentResourcePendingPlanRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this cancel deployment resource pending plan retry with response has a 5xx status code +func (o *CancelDeploymentResourcePendingPlanRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this cancel deployment resource pending plan retry with response a status code equal to that given +func (o *CancelDeploymentResourcePendingPlanRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the cancel deployment resource pending plan retry with response +func (o *CancelDeploymentResourcePendingPlanRetryWith) Code() int { + return 449 +} + func (o *CancelDeploymentResourcePendingPlanRetryWith) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanRetryWith %+v", 449, o.Payload) } + +func (o *CancelDeploymentResourcePendingPlanRetryWith) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanRetryWith %+v", 449, o.Payload) +} + func (o *CancelDeploymentResourcePendingPlanRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewCancelDeploymentResourcePendingPlanInternalServerError() *CancelDeployme return &CancelDeploymentResourcePendingPlanInternalServerError{} } -/* CancelDeploymentResourcePendingPlanInternalServerError describes a response with status code 500, with default header values. +/* +CancelDeploymentResourcePendingPlanInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -257,9 +402,44 @@ type CancelDeploymentResourcePendingPlanInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this cancel deployment resource pending plan internal server error response has a 2xx status code +func (o *CancelDeploymentResourcePendingPlanInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cancel deployment resource pending plan internal server error response has a 3xx status code +func (o *CancelDeploymentResourcePendingPlanInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cancel deployment resource pending plan internal server error response has a 4xx status code +func (o *CancelDeploymentResourcePendingPlanInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this cancel deployment resource pending plan internal server error response has a 5xx status code +func (o *CancelDeploymentResourcePendingPlanInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this cancel deployment resource pending plan internal server error response a status code equal to that given +func (o *CancelDeploymentResourcePendingPlanInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the cancel deployment resource pending plan internal server error response +func (o *CancelDeploymentResourcePendingPlanInternalServerError) Code() int { + return 500 +} + func (o *CancelDeploymentResourcePendingPlanInternalServerError) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanInternalServerError %+v", 500, o.Payload) } + +func (o *CancelDeploymentResourcePendingPlanInternalServerError) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending][%d] cancelDeploymentResourcePendingPlanInternalServerError %+v", 500, o.Payload) +} + func (o *CancelDeploymentResourcePendingPlanInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/capture_deployment_instance_heap_dump_parameters.go b/pkg/client/deployments/capture_deployment_instance_heap_dump_parameters.go index b9ea42ab..2389c042 100644 --- a/pkg/client/deployments/capture_deployment_instance_heap_dump_parameters.go +++ b/pkg/client/deployments/capture_deployment_instance_heap_dump_parameters.go @@ -69,10 +69,12 @@ func NewCaptureDeploymentInstanceHeapDumpParamsWithHTTPClient(client *http.Clien } } -/* CaptureDeploymentInstanceHeapDumpParams contains all the parameters to send to the API endpoint - for the capture deployment instance heap dump operation. +/* +CaptureDeploymentInstanceHeapDumpParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the capture deployment instance heap dump operation. + + Typically these are written to a http.Request. */ type CaptureDeploymentInstanceHeapDumpParams struct { diff --git a/pkg/client/deployments/capture_deployment_instance_heap_dump_responses.go b/pkg/client/deployments/capture_deployment_instance_heap_dump_responses.go index 92f0f2d7..7b914f13 100644 --- a/pkg/client/deployments/capture_deployment_instance_heap_dump_responses.go +++ b/pkg/client/deployments/capture_deployment_instance_heap_dump_responses.go @@ -68,7 +68,8 @@ func NewCaptureDeploymentInstanceHeapDumpAccepted() *CaptureDeploymentInstanceHe return &CaptureDeploymentInstanceHeapDumpAccepted{} } -/* CaptureDeploymentInstanceHeapDumpAccepted describes a response with status code 202, with default header values. +/* +CaptureDeploymentInstanceHeapDumpAccepted describes a response with status code 202, with default header values. Indicates that the capture has started */ @@ -76,9 +77,44 @@ type CaptureDeploymentInstanceHeapDumpAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this capture deployment instance heap dump accepted response has a 2xx status code +func (o *CaptureDeploymentInstanceHeapDumpAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this capture deployment instance heap dump accepted response has a 3xx status code +func (o *CaptureDeploymentInstanceHeapDumpAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment instance heap dump accepted response has a 4xx status code +func (o *CaptureDeploymentInstanceHeapDumpAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this capture deployment instance heap dump accepted response has a 5xx status code +func (o *CaptureDeploymentInstanceHeapDumpAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment instance heap dump accepted response a status code equal to that given +func (o *CaptureDeploymentInstanceHeapDumpAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the capture deployment instance heap dump accepted response +func (o *CaptureDeploymentInstanceHeapDumpAccepted) Code() int { + return 202 +} + func (o *CaptureDeploymentInstanceHeapDumpAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpAccepted %+v", 202, o.Payload) } + +func (o *CaptureDeploymentInstanceHeapDumpAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpAccepted %+v", 202, o.Payload) +} + func (o *CaptureDeploymentInstanceHeapDumpAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,9 +134,11 @@ func NewCaptureDeploymentInstanceHeapDumpNotFound() *CaptureDeploymentInstanceHe return &CaptureDeploymentInstanceHeapDumpNotFound{} } -/* CaptureDeploymentInstanceHeapDumpNotFound describes a response with status code 404, with default header values. +/* + CaptureDeploymentInstanceHeapDumpNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The specified instance cannot be found. (code: `deployments.instance_not_found_error`) */ @@ -113,9 +151,44 @@ type CaptureDeploymentInstanceHeapDumpNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment instance heap dump not found response has a 2xx status code +func (o *CaptureDeploymentInstanceHeapDumpNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment instance heap dump not found response has a 3xx status code +func (o *CaptureDeploymentInstanceHeapDumpNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment instance heap dump not found response has a 4xx status code +func (o *CaptureDeploymentInstanceHeapDumpNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment instance heap dump not found response has a 5xx status code +func (o *CaptureDeploymentInstanceHeapDumpNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment instance heap dump not found response a status code equal to that given +func (o *CaptureDeploymentInstanceHeapDumpNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the capture deployment instance heap dump not found response +func (o *CaptureDeploymentInstanceHeapDumpNotFound) Code() int { + return 404 +} + func (o *CaptureDeploymentInstanceHeapDumpNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpNotFound %+v", 404, o.Payload) } + +func (o *CaptureDeploymentInstanceHeapDumpNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpNotFound %+v", 404, o.Payload) +} + func (o *CaptureDeploymentInstanceHeapDumpNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +217,8 @@ func NewCaptureDeploymentInstanceHeapDumpRetryWith() *CaptureDeploymentInstanceH return &CaptureDeploymentInstanceHeapDumpRetryWith{} } -/* CaptureDeploymentInstanceHeapDumpRetryWith describes a response with status code 449, with default header values. +/* +CaptureDeploymentInstanceHeapDumpRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +231,44 @@ type CaptureDeploymentInstanceHeapDumpRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment instance heap dump retry with response has a 2xx status code +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment instance heap dump retry with response has a 3xx status code +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment instance heap dump retry with response has a 4xx status code +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment instance heap dump retry with response has a 5xx status code +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment instance heap dump retry with response a status code equal to that given +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the capture deployment instance heap dump retry with response +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) Code() int { + return 449 +} + func (o *CaptureDeploymentInstanceHeapDumpRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpRetryWith %+v", 449, o.Payload) } + +func (o *CaptureDeploymentInstanceHeapDumpRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture][%d] captureDeploymentInstanceHeapDumpRetryWith %+v", 449, o.Payload) +} + func (o *CaptureDeploymentInstanceHeapDumpRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/capture_deployment_instance_thread_dump_parameters.go b/pkg/client/deployments/capture_deployment_instance_thread_dump_parameters.go index e0b839f8..cd34c205 100644 --- a/pkg/client/deployments/capture_deployment_instance_thread_dump_parameters.go +++ b/pkg/client/deployments/capture_deployment_instance_thread_dump_parameters.go @@ -69,10 +69,12 @@ func NewCaptureDeploymentInstanceThreadDumpParamsWithHTTPClient(client *http.Cli } } -/* CaptureDeploymentInstanceThreadDumpParams contains all the parameters to send to the API endpoint - for the capture deployment instance thread dump operation. +/* +CaptureDeploymentInstanceThreadDumpParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the capture deployment instance thread dump operation. + + Typically these are written to a http.Request. */ type CaptureDeploymentInstanceThreadDumpParams struct { diff --git a/pkg/client/deployments/capture_deployment_instance_thread_dump_responses.go b/pkg/client/deployments/capture_deployment_instance_thread_dump_responses.go index 3b888bec..394ed4ed 100644 --- a/pkg/client/deployments/capture_deployment_instance_thread_dump_responses.go +++ b/pkg/client/deployments/capture_deployment_instance_thread_dump_responses.go @@ -62,7 +62,8 @@ func NewCaptureDeploymentInstanceThreadDumpOK() *CaptureDeploymentInstanceThread return &CaptureDeploymentInstanceThreadDumpOK{} } -/* CaptureDeploymentInstanceThreadDumpOK describes a response with status code 200, with default header values. +/* +CaptureDeploymentInstanceThreadDumpOK describes a response with status code 200, with default header values. The thread dump contents */ @@ -70,9 +71,44 @@ type CaptureDeploymentInstanceThreadDumpOK struct { Payload strfmt.Base64 } +// IsSuccess returns true when this capture deployment instance thread dump o k response has a 2xx status code +func (o *CaptureDeploymentInstanceThreadDumpOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this capture deployment instance thread dump o k response has a 3xx status code +func (o *CaptureDeploymentInstanceThreadDumpOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment instance thread dump o k response has a 4xx status code +func (o *CaptureDeploymentInstanceThreadDumpOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this capture deployment instance thread dump o k response has a 5xx status code +func (o *CaptureDeploymentInstanceThreadDumpOK) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment instance thread dump o k response a status code equal to that given +func (o *CaptureDeploymentInstanceThreadDumpOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the capture deployment instance thread dump o k response +func (o *CaptureDeploymentInstanceThreadDumpOK) Code() int { + return 200 +} + func (o *CaptureDeploymentInstanceThreadDumpOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/thread_dump/_capture][%d] captureDeploymentInstanceThreadDumpOK %+v", 200, o.Payload) } + +func (o *CaptureDeploymentInstanceThreadDumpOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/thread_dump/_capture][%d] captureDeploymentInstanceThreadDumpOK %+v", 200, o.Payload) +} + func (o *CaptureDeploymentInstanceThreadDumpOK) GetPayload() strfmt.Base64 { return o.Payload } @@ -92,9 +128,11 @@ func NewCaptureDeploymentInstanceThreadDumpNotFound() *CaptureDeploymentInstance return &CaptureDeploymentInstanceThreadDumpNotFound{} } -/* CaptureDeploymentInstanceThreadDumpNotFound describes a response with status code 404, with default header values. +/* + CaptureDeploymentInstanceThreadDumpNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The specified instance cannot be found. (code: `deployments.instance_not_found_error`) */ @@ -107,9 +145,44 @@ type CaptureDeploymentInstanceThreadDumpNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment instance thread dump not found response has a 2xx status code +func (o *CaptureDeploymentInstanceThreadDumpNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment instance thread dump not found response has a 3xx status code +func (o *CaptureDeploymentInstanceThreadDumpNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment instance thread dump not found response has a 4xx status code +func (o *CaptureDeploymentInstanceThreadDumpNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment instance thread dump not found response has a 5xx status code +func (o *CaptureDeploymentInstanceThreadDumpNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment instance thread dump not found response a status code equal to that given +func (o *CaptureDeploymentInstanceThreadDumpNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the capture deployment instance thread dump not found response +func (o *CaptureDeploymentInstanceThreadDumpNotFound) Code() int { + return 404 +} + func (o *CaptureDeploymentInstanceThreadDumpNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/thread_dump/_capture][%d] captureDeploymentInstanceThreadDumpNotFound %+v", 404, o.Payload) } + +func (o *CaptureDeploymentInstanceThreadDumpNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/thread_dump/_capture][%d] captureDeploymentInstanceThreadDumpNotFound %+v", 404, o.Payload) +} + func (o *CaptureDeploymentInstanceThreadDumpNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/capture_deployment_resource_diagnostics_parameters.go b/pkg/client/deployments/capture_deployment_resource_diagnostics_parameters.go index 6bd1427f..41fd6531 100644 --- a/pkg/client/deployments/capture_deployment_resource_diagnostics_parameters.go +++ b/pkg/client/deployments/capture_deployment_resource_diagnostics_parameters.go @@ -69,10 +69,12 @@ func NewCaptureDeploymentResourceDiagnosticsParamsWithHTTPClient(client *http.Cl } } -/* CaptureDeploymentResourceDiagnosticsParams contains all the parameters to send to the API endpoint - for the capture deployment resource diagnostics operation. +/* +CaptureDeploymentResourceDiagnosticsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the capture deployment resource diagnostics operation. + + Typically these are written to a http.Request. */ type CaptureDeploymentResourceDiagnosticsParams struct { diff --git a/pkg/client/deployments/capture_deployment_resource_diagnostics_responses.go b/pkg/client/deployments/capture_deployment_resource_diagnostics_responses.go index 86e1ebdf..4ffb3a42 100644 --- a/pkg/client/deployments/capture_deployment_resource_diagnostics_responses.go +++ b/pkg/client/deployments/capture_deployment_resource_diagnostics_responses.go @@ -74,7 +74,8 @@ func NewCaptureDeploymentResourceDiagnosticsOK() *CaptureDeploymentResourceDiagn return &CaptureDeploymentResourceDiagnosticsOK{} } -/* CaptureDeploymentResourceDiagnosticsOK describes a response with status code 200, with default header values. +/* +CaptureDeploymentResourceDiagnosticsOK describes a response with status code 200, with default header values. The diagnostic bundle as a zip file */ @@ -82,9 +83,44 @@ type CaptureDeploymentResourceDiagnosticsOK struct { Payload strfmt.Base64 } +// IsSuccess returns true when this capture deployment resource diagnostics o k response has a 2xx status code +func (o *CaptureDeploymentResourceDiagnosticsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this capture deployment resource diagnostics o k response has a 3xx status code +func (o *CaptureDeploymentResourceDiagnosticsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment resource diagnostics o k response has a 4xx status code +func (o *CaptureDeploymentResourceDiagnosticsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this capture deployment resource diagnostics o k response has a 5xx status code +func (o *CaptureDeploymentResourceDiagnosticsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment resource diagnostics o k response a status code equal to that given +func (o *CaptureDeploymentResourceDiagnosticsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the capture deployment resource diagnostics o k response +func (o *CaptureDeploymentResourceDiagnosticsOK) Code() int { + return 200 +} + func (o *CaptureDeploymentResourceDiagnosticsOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsOK %+v", 200, o.Payload) } + +func (o *CaptureDeploymentResourceDiagnosticsOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsOK %+v", 200, o.Payload) +} + func (o *CaptureDeploymentResourceDiagnosticsOK) GetPayload() strfmt.Base64 { return o.Payload } @@ -104,9 +140,11 @@ func NewCaptureDeploymentResourceDiagnosticsNotFound() *CaptureDeploymentResourc return &CaptureDeploymentResourceDiagnosticsNotFound{} } -/* CaptureDeploymentResourceDiagnosticsNotFound describes a response with status code 404, with default header values. +/* + CaptureDeploymentResourceDiagnosticsNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type CaptureDeploymentResourceDiagnosticsNotFound struct { @@ -118,9 +156,44 @@ type CaptureDeploymentResourceDiagnosticsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment resource diagnostics not found response has a 2xx status code +func (o *CaptureDeploymentResourceDiagnosticsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment resource diagnostics not found response has a 3xx status code +func (o *CaptureDeploymentResourceDiagnosticsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment resource diagnostics not found response has a 4xx status code +func (o *CaptureDeploymentResourceDiagnosticsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment resource diagnostics not found response has a 5xx status code +func (o *CaptureDeploymentResourceDiagnosticsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment resource diagnostics not found response a status code equal to that given +func (o *CaptureDeploymentResourceDiagnosticsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the capture deployment resource diagnostics not found response +func (o *CaptureDeploymentResourceDiagnosticsNotFound) Code() int { + return 404 +} + func (o *CaptureDeploymentResourceDiagnosticsNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsNotFound %+v", 404, o.Payload) } + +func (o *CaptureDeploymentResourceDiagnosticsNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsNotFound %+v", 404, o.Payload) +} + func (o *CaptureDeploymentResourceDiagnosticsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -149,7 +222,8 @@ func NewCaptureDeploymentResourceDiagnosticsPreconditionFailed() *CaptureDeploym return &CaptureDeploymentResourceDiagnosticsPreconditionFailed{} } -/* CaptureDeploymentResourceDiagnosticsPreconditionFailed describes a response with status code 412, with default header values. +/* +CaptureDeploymentResourceDiagnosticsPreconditionFailed describes a response with status code 412, with default header values. The diagnostics cannot be generated because the cluster is either stopped or initializing. (code: `clusters.cluster_plan_state_error`) */ @@ -162,9 +236,44 @@ type CaptureDeploymentResourceDiagnosticsPreconditionFailed struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment resource diagnostics precondition failed response has a 2xx status code +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment resource diagnostics precondition failed response has a 3xx status code +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment resource diagnostics precondition failed response has a 4xx status code +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment resource diagnostics precondition failed response has a 5xx status code +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment resource diagnostics precondition failed response a status code equal to that given +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) IsCode(code int) bool { + return code == 412 +} + +// Code gets the status code for the capture deployment resource diagnostics precondition failed response +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) Code() int { + return 412 +} + func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsPreconditionFailed %+v", 412, o.Payload) } + +func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsPreconditionFailed %+v", 412, o.Payload) +} + func (o *CaptureDeploymentResourceDiagnosticsPreconditionFailed) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -193,7 +302,8 @@ func NewCaptureDeploymentResourceDiagnosticsRetryWith() *CaptureDeploymentResour return &CaptureDeploymentResourceDiagnosticsRetryWith{} } -/* CaptureDeploymentResourceDiagnosticsRetryWith describes a response with status code 449, with default header values. +/* +CaptureDeploymentResourceDiagnosticsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -206,9 +316,44 @@ type CaptureDeploymentResourceDiagnosticsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this capture deployment resource diagnostics retry with response has a 2xx status code +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this capture deployment resource diagnostics retry with response has a 3xx status code +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this capture deployment resource diagnostics retry with response has a 4xx status code +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this capture deployment resource diagnostics retry with response has a 5xx status code +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this capture deployment resource diagnostics retry with response a status code equal to that given +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the capture deployment resource diagnostics retry with response +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) Code() int { + return 449 +} + func (o *CaptureDeploymentResourceDiagnosticsRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsRetryWith %+v", 449, o.Payload) } + +func (o *CaptureDeploymentResourceDiagnosticsRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture][%d] captureDeploymentResourceDiagnosticsRetryWith %+v", 449, o.Payload) +} + func (o *CaptureDeploymentResourceDiagnosticsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/create_deployment_parameters.go b/pkg/client/deployments/create_deployment_parameters.go index 5dd7492e..b5fca040 100644 --- a/pkg/client/deployments/create_deployment_parameters.go +++ b/pkg/client/deployments/create_deployment_parameters.go @@ -72,10 +72,12 @@ func NewCreateDeploymentParamsWithHTTPClient(client *http.Client) *CreateDeploym } } -/* CreateDeploymentParams contains all the parameters to send to the API endpoint - for the create deployment operation. +/* +CreateDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create deployment operation. + + Typically these are written to a http.Request. */ type CreateDeploymentParams struct { diff --git a/pkg/client/deployments/create_deployment_responses.go b/pkg/client/deployments/create_deployment_responses.go index 61cad772..f4fcfb4b 100644 --- a/pkg/client/deployments/create_deployment_responses.go +++ b/pkg/client/deployments/create_deployment_responses.go @@ -80,7 +80,8 @@ func NewCreateDeploymentOK() *CreateDeploymentOK { return &CreateDeploymentOK{} } -/* CreateDeploymentOK describes a response with status code 200, with default header values. +/* +CreateDeploymentOK describes a response with status code 200, with default header values. The request was valid (used when validate_only is true). */ @@ -88,9 +89,44 @@ type CreateDeploymentOK struct { Payload *models.DeploymentCreateResponse } +// IsSuccess returns true when this create deployment o k response has a 2xx status code +func (o *CreateDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment o k response has a 3xx status code +func (o *CreateDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment o k response has a 4xx status code +func (o *CreateDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment o k response has a 5xx status code +func (o *CreateDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment o k response a status code equal to that given +func (o *CreateDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create deployment o k response +func (o *CreateDeploymentOK) Code() int { + return 200 +} + func (o *CreateDeploymentOK) Error() string { return fmt.Sprintf("[POST /deployments][%d] createDeploymentOK %+v", 200, o.Payload) } + +func (o *CreateDeploymentOK) String() string { + return fmt.Sprintf("[POST /deployments][%d] createDeploymentOK %+v", 200, o.Payload) +} + func (o *CreateDeploymentOK) GetPayload() *models.DeploymentCreateResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewCreateDeploymentCreated() *CreateDeploymentCreated { return &CreateDeploymentCreated{} } -/* CreateDeploymentCreated describes a response with status code 201, with default header values. +/* +CreateDeploymentCreated describes a response with status code 201, with default header values. The request was valid and a new deployment was created */ @@ -133,9 +170,44 @@ type CreateDeploymentCreated struct { Payload *models.DeploymentCreateResponse } +// IsSuccess returns true when this create deployment created response has a 2xx status code +func (o *CreateDeploymentCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment created response has a 3xx status code +func (o *CreateDeploymentCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment created response has a 4xx status code +func (o *CreateDeploymentCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment created response has a 5xx status code +func (o *CreateDeploymentCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment created response a status code equal to that given +func (o *CreateDeploymentCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create deployment created response +func (o *CreateDeploymentCreated) Code() int { + return 201 +} + func (o *CreateDeploymentCreated) Error() string { return fmt.Sprintf("[POST /deployments][%d] createDeploymentCreated %+v", 201, o.Payload) } + +func (o *CreateDeploymentCreated) String() string { + return fmt.Sprintf("[POST /deployments][%d] createDeploymentCreated %+v", 201, o.Payload) +} + func (o *CreateDeploymentCreated) GetPayload() *models.DeploymentCreateResponse { return o.Payload } @@ -178,7 +250,8 @@ func NewCreateDeploymentAccepted() *CreateDeploymentAccepted { return &CreateDeploymentAccepted{} } -/* CreateDeploymentAccepted describes a response with status code 202, with default header values. +/* +CreateDeploymentAccepted describes a response with status code 202, with default header values. The request was valid and deployment creation had already been started. */ @@ -186,9 +259,44 @@ type CreateDeploymentAccepted struct { Payload *models.DeploymentCreateResponse } +// IsSuccess returns true when this create deployment accepted response has a 2xx status code +func (o *CreateDeploymentAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment accepted response has a 3xx status code +func (o *CreateDeploymentAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment accepted response has a 4xx status code +func (o *CreateDeploymentAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment accepted response has a 5xx status code +func (o *CreateDeploymentAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment accepted response a status code equal to that given +func (o *CreateDeploymentAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the create deployment accepted response +func (o *CreateDeploymentAccepted) Code() int { + return 202 +} + func (o *CreateDeploymentAccepted) Error() string { return fmt.Sprintf("[POST /deployments][%d] createDeploymentAccepted %+v", 202, o.Payload) } + +func (o *CreateDeploymentAccepted) String() string { + return fmt.Sprintf("[POST /deployments][%d] createDeploymentAccepted %+v", 202, o.Payload) +} + func (o *CreateDeploymentAccepted) GetPayload() *models.DeploymentCreateResponse { return o.Payload } @@ -210,7 +318,8 @@ func NewCreateDeploymentBadRequest() *CreateDeploymentBadRequest { return &CreateDeploymentBadRequest{} } -/* CreateDeploymentBadRequest describes a response with status code 400, with default header values. +/* +CreateDeploymentBadRequest describes a response with status code 400, with default header values. The deployment request had errors. */ @@ -218,9 +327,44 @@ type CreateDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment bad request response has a 2xx status code +func (o *CreateDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment bad request response has a 3xx status code +func (o *CreateDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment bad request response has a 4xx status code +func (o *CreateDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment bad request response has a 5xx status code +func (o *CreateDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment bad request response a status code equal to that given +func (o *CreateDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create deployment bad request response +func (o *CreateDeploymentBadRequest) Code() int { + return 400 +} + func (o *CreateDeploymentBadRequest) Error() string { return fmt.Sprintf("[POST /deployments][%d] createDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *CreateDeploymentBadRequest) String() string { + return fmt.Sprintf("[POST /deployments][%d] createDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *CreateDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -242,7 +386,8 @@ func NewCreateDeploymentUnauthorized() *CreateDeploymentUnauthorized { return &CreateDeploymentUnauthorized{} } -/* CreateDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +CreateDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -250,9 +395,44 @@ type CreateDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment unauthorized response has a 2xx status code +func (o *CreateDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment unauthorized response has a 3xx status code +func (o *CreateDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment unauthorized response has a 4xx status code +func (o *CreateDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment unauthorized response has a 5xx status code +func (o *CreateDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment unauthorized response a status code equal to that given +func (o *CreateDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the create deployment unauthorized response +func (o *CreateDeploymentUnauthorized) Code() int { + return 401 +} + func (o *CreateDeploymentUnauthorized) Error() string { return fmt.Sprintf("[POST /deployments][%d] createDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *CreateDeploymentUnauthorized) String() string { + return fmt.Sprintf("[POST /deployments][%d] createDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *CreateDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/delete_deployment_parameters.go b/pkg/client/deployments/delete_deployment_parameters.go index 8fff5435..5e3f0b87 100644 --- a/pkg/client/deployments/delete_deployment_parameters.go +++ b/pkg/client/deployments/delete_deployment_parameters.go @@ -69,10 +69,12 @@ func NewDeleteDeploymentParamsWithHTTPClient(client *http.Client) *DeleteDeploym } } -/* DeleteDeploymentParams contains all the parameters to send to the API endpoint - for the delete deployment operation. +/* +DeleteDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete deployment operation. + + Typically these are written to a http.Request. */ type DeleteDeploymentParams struct { diff --git a/pkg/client/deployments/delete_deployment_resource_proxy_requests_parameters.go b/pkg/client/deployments/delete_deployment_resource_proxy_requests_parameters.go index 18ff8b8d..24ff05df 100644 --- a/pkg/client/deployments/delete_deployment_resource_proxy_requests_parameters.go +++ b/pkg/client/deployments/delete_deployment_resource_proxy_requests_parameters.go @@ -69,10 +69,12 @@ func NewDeleteDeploymentResourceProxyRequestsParamsWithHTTPClient(client *http.C } } -/* DeleteDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - for the delete deployment resource proxy requests operation. +/* +DeleteDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete deployment resource proxy requests operation. + + Typically these are written to a http.Request. */ type DeleteDeploymentResourceProxyRequestsParams struct { diff --git a/pkg/client/deployments/delete_deployment_resource_proxy_requests_responses.go b/pkg/client/deployments/delete_deployment_resource_proxy_requests_responses.go index 47e7481d..fa1aebb8 100644 --- a/pkg/client/deployments/delete_deployment_resource_proxy_requests_responses.go +++ b/pkg/client/deployments/delete_deployment_resource_proxy_requests_responses.go @@ -68,7 +68,8 @@ func NewDeleteDeploymentResourceProxyRequestsOK() *DeleteDeploymentResourceProxy return &DeleteDeploymentResourceProxyRequestsOK{} } -/* DeleteDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. +/* +DeleteDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. The request has been processed successfully through the proxy. */ @@ -76,9 +77,44 @@ type DeleteDeploymentResourceProxyRequestsOK struct { Payload *models.GenericResponse } +// IsSuccess returns true when this delete deployment resource proxy requests o k response has a 2xx status code +func (o *DeleteDeploymentResourceProxyRequestsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete deployment resource proxy requests o k response has a 3xx status code +func (o *DeleteDeploymentResourceProxyRequestsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment resource proxy requests o k response has a 4xx status code +func (o *DeleteDeploymentResourceProxyRequestsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment resource proxy requests o k response has a 5xx status code +func (o *DeleteDeploymentResourceProxyRequestsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment resource proxy requests o k response a status code equal to that given +func (o *DeleteDeploymentResourceProxyRequestsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete deployment resource proxy requests o k response +func (o *DeleteDeploymentResourceProxyRequestsOK) Code() int { + return 200 +} + func (o *DeleteDeploymentResourceProxyRequestsOK) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) } + +func (o *DeleteDeploymentResourceProxyRequestsOK) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) +} + func (o *DeleteDeploymentResourceProxyRequestsOK) GetPayload() *models.GenericResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewDeleteDeploymentResourceProxyRequestsNotFound() *DeleteDeploymentResourc return &DeleteDeploymentResourceProxyRequestsNotFound{} } -/* DeleteDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. +/* + DeleteDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`) */ @@ -115,9 +153,44 @@ type DeleteDeploymentResourceProxyRequestsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment resource proxy requests not found response has a 2xx status code +func (o *DeleteDeploymentResourceProxyRequestsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment resource proxy requests not found response has a 3xx status code +func (o *DeleteDeploymentResourceProxyRequestsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment resource proxy requests not found response has a 4xx status code +func (o *DeleteDeploymentResourceProxyRequestsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment resource proxy requests not found response has a 5xx status code +func (o *DeleteDeploymentResourceProxyRequestsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment resource proxy requests not found response a status code equal to that given +func (o *DeleteDeploymentResourceProxyRequestsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete deployment resource proxy requests not found response +func (o *DeleteDeploymentResourceProxyRequestsNotFound) Code() int { + return 404 +} + func (o *DeleteDeploymentResourceProxyRequestsNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) } + +func (o *DeleteDeploymentResourceProxyRequestsNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) +} + func (o *DeleteDeploymentResourceProxyRequestsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -146,7 +219,8 @@ func NewDeleteDeploymentResourceProxyRequestsRetryWith() *DeleteDeploymentResour return &DeleteDeploymentResourceProxyRequestsRetryWith{} } -/* DeleteDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. +/* +DeleteDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -159,9 +233,44 @@ type DeleteDeploymentResourceProxyRequestsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment resource proxy requests retry with response has a 2xx status code +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment resource proxy requests retry with response has a 3xx status code +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment resource proxy requests retry with response has a 4xx status code +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment resource proxy requests retry with response has a 5xx status code +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment resource proxy requests retry with response a status code equal to that given +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete deployment resource proxy requests retry with response +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) Code() int { + return 449 +} + func (o *DeleteDeploymentResourceProxyRequestsRetryWith) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) } + +func (o *DeleteDeploymentResourceProxyRequestsRetryWith) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] deleteDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) +} + func (o *DeleteDeploymentResourceProxyRequestsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/delete_deployment_responses.go b/pkg/client/deployments/delete_deployment_responses.go index 38c2d118..2c64d08d 100644 --- a/pkg/client/deployments/delete_deployment_responses.go +++ b/pkg/client/deployments/delete_deployment_responses.go @@ -74,7 +74,8 @@ func NewDeleteDeploymentOK() *DeleteDeploymentOK { return &DeleteDeploymentOK{} } -/* DeleteDeploymentOK describes a response with status code 200, with default header values. +/* +DeleteDeploymentOK describes a response with status code 200, with default header values. The request was valid and the deployment was deleted. */ @@ -82,9 +83,44 @@ type DeleteDeploymentOK struct { Payload *models.DeploymentDeleteResponse } +// IsSuccess returns true when this delete deployment o k response has a 2xx status code +func (o *DeleteDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete deployment o k response has a 3xx status code +func (o *DeleteDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment o k response has a 4xx status code +func (o *DeleteDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment o k response has a 5xx status code +func (o *DeleteDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment o k response a status code equal to that given +func (o *DeleteDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete deployment o k response +func (o *DeleteDeploymentOK) Code() int { + return 200 +} + func (o *DeleteDeploymentOK) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentOK %+v", 200, o.Payload) } + +func (o *DeleteDeploymentOK) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentOK %+v", 200, o.Payload) +} + func (o *DeleteDeploymentOK) GetPayload() *models.DeploymentDeleteResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewDeleteDeploymentBadRequest() *DeleteDeploymentBadRequest { return &DeleteDeploymentBadRequest{} } -/* DeleteDeploymentBadRequest describes a response with status code 400, with default header values. +/* +DeleteDeploymentBadRequest describes a response with status code 400, with default header values. The Deployment resources have not been shutdown yet. */ @@ -114,9 +151,44 @@ type DeleteDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment bad request response has a 2xx status code +func (o *DeleteDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment bad request response has a 3xx status code +func (o *DeleteDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment bad request response has a 4xx status code +func (o *DeleteDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment bad request response has a 5xx status code +func (o *DeleteDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment bad request response a status code equal to that given +func (o *DeleteDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete deployment bad request response +func (o *DeleteDeploymentBadRequest) Code() int { + return 400 +} + func (o *DeleteDeploymentBadRequest) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *DeleteDeploymentBadRequest) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *DeleteDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -138,7 +210,8 @@ func NewDeleteDeploymentUnauthorized() *DeleteDeploymentUnauthorized { return &DeleteDeploymentUnauthorized{} } -/* DeleteDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +DeleteDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -146,9 +219,44 @@ type DeleteDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment unauthorized response has a 2xx status code +func (o *DeleteDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment unauthorized response has a 3xx status code +func (o *DeleteDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment unauthorized response has a 4xx status code +func (o *DeleteDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment unauthorized response has a 5xx status code +func (o *DeleteDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment unauthorized response a status code equal to that given +func (o *DeleteDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete deployment unauthorized response +func (o *DeleteDeploymentUnauthorized) Code() int { + return 401 +} + func (o *DeleteDeploymentUnauthorized) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *DeleteDeploymentUnauthorized) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *DeleteDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -170,7 +278,8 @@ func NewDeleteDeploymentNotFound() *DeleteDeploymentNotFound { return &DeleteDeploymentNotFound{} } -/* DeleteDeploymentNotFound describes a response with status code 404, with default header values. +/* +DeleteDeploymentNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -183,9 +292,44 @@ type DeleteDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment not found response has a 2xx status code +func (o *DeleteDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment not found response has a 3xx status code +func (o *DeleteDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment not found response has a 4xx status code +func (o *DeleteDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment not found response has a 5xx status code +func (o *DeleteDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment not found response a status code equal to that given +func (o *DeleteDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete deployment not found response +func (o *DeleteDeploymentNotFound) Code() int { + return 404 +} + func (o *DeleteDeploymentNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentNotFound %+v", 404, o.Payload) } + +func (o *DeleteDeploymentNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}][%d] deleteDeploymentNotFound %+v", 404, o.Payload) +} + func (o *DeleteDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/delete_deployment_stateless_resource_parameters.go b/pkg/client/deployments/delete_deployment_stateless_resource_parameters.go index 1ffc6486..ddd531fd 100644 --- a/pkg/client/deployments/delete_deployment_stateless_resource_parameters.go +++ b/pkg/client/deployments/delete_deployment_stateless_resource_parameters.go @@ -69,10 +69,12 @@ func NewDeleteDeploymentStatelessResourceParamsWithHTTPClient(client *http.Clien } } -/* DeleteDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - for the delete deployment stateless resource operation. +/* +DeleteDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete deployment stateless resource operation. + + Typically these are written to a http.Request. */ type DeleteDeploymentStatelessResourceParams struct { diff --git a/pkg/client/deployments/delete_deployment_stateless_resource_responses.go b/pkg/client/deployments/delete_deployment_stateless_resource_responses.go index 9563f091..f530c3a8 100644 --- a/pkg/client/deployments/delete_deployment_stateless_resource_responses.go +++ b/pkg/client/deployments/delete_deployment_stateless_resource_responses.go @@ -80,7 +80,8 @@ func NewDeleteDeploymentStatelessResourceOK() *DeleteDeploymentStatelessResource return &DeleteDeploymentStatelessResourceOK{} } -/* DeleteDeploymentStatelessResourceOK describes a response with status code 200, with default header values. +/* +DeleteDeploymentStatelessResourceOK describes a response with status code 200, with default header values. Standard Deployment Resource Crud Response */ @@ -88,9 +89,44 @@ type DeleteDeploymentStatelessResourceOK struct { Payload *models.DeploymentResourceCrudResponse } +// IsSuccess returns true when this delete deployment stateless resource o k response has a 2xx status code +func (o *DeleteDeploymentStatelessResourceOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete deployment stateless resource o k response has a 3xx status code +func (o *DeleteDeploymentStatelessResourceOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment stateless resource o k response has a 4xx status code +func (o *DeleteDeploymentStatelessResourceOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment stateless resource o k response has a 5xx status code +func (o *DeleteDeploymentStatelessResourceOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment stateless resource o k response a status code equal to that given +func (o *DeleteDeploymentStatelessResourceOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete deployment stateless resource o k response +func (o *DeleteDeploymentStatelessResourceOK) Code() int { + return 200 +} + func (o *DeleteDeploymentStatelessResourceOK) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceOK %+v", 200, o.Payload) } + +func (o *DeleteDeploymentStatelessResourceOK) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceOK %+v", 200, o.Payload) +} + func (o *DeleteDeploymentStatelessResourceOK) GetPayload() *models.DeploymentResourceCrudResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewDeleteDeploymentStatelessResourceBadRequest() *DeleteDeploymentStateless return &DeleteDeploymentStatelessResourceBadRequest{} } -/* DeleteDeploymentStatelessResourceBadRequest describes a response with status code 400, with default header values. +/* +DeleteDeploymentStatelessResourceBadRequest describes a response with status code 400, with default header values. Resource has still instances. (code: `deployments.resource_has_instances`) */ @@ -125,9 +162,44 @@ type DeleteDeploymentStatelessResourceBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment stateless resource bad request response has a 2xx status code +func (o *DeleteDeploymentStatelessResourceBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment stateless resource bad request response has a 3xx status code +func (o *DeleteDeploymentStatelessResourceBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment stateless resource bad request response has a 4xx status code +func (o *DeleteDeploymentStatelessResourceBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment stateless resource bad request response has a 5xx status code +func (o *DeleteDeploymentStatelessResourceBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment stateless resource bad request response a status code equal to that given +func (o *DeleteDeploymentStatelessResourceBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete deployment stateless resource bad request response +func (o *DeleteDeploymentStatelessResourceBadRequest) Code() int { + return 400 +} + func (o *DeleteDeploymentStatelessResourceBadRequest) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceBadRequest %+v", 400, o.Payload) } + +func (o *DeleteDeploymentStatelessResourceBadRequest) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceBadRequest %+v", 400, o.Payload) +} + func (o *DeleteDeploymentStatelessResourceBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewDeleteDeploymentStatelessResourceNotFound() *DeleteDeploymentStatelessRe return &DeleteDeploymentStatelessResourceNotFound{} } -/* DeleteDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. +/* + DeleteDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type DeleteDeploymentStatelessResourceNotFound struct { @@ -170,9 +244,44 @@ type DeleteDeploymentStatelessResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment stateless resource not found response has a 2xx status code +func (o *DeleteDeploymentStatelessResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment stateless resource not found response has a 3xx status code +func (o *DeleteDeploymentStatelessResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment stateless resource not found response has a 4xx status code +func (o *DeleteDeploymentStatelessResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment stateless resource not found response has a 5xx status code +func (o *DeleteDeploymentStatelessResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment stateless resource not found response a status code equal to that given +func (o *DeleteDeploymentStatelessResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete deployment stateless resource not found response +func (o *DeleteDeploymentStatelessResourceNotFound) Code() int { + return 404 +} + func (o *DeleteDeploymentStatelessResourceNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceNotFound %+v", 404, o.Payload) } + +func (o *DeleteDeploymentStatelessResourceNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceNotFound %+v", 404, o.Payload) +} + func (o *DeleteDeploymentStatelessResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -201,7 +310,8 @@ func NewDeleteDeploymentStatelessResourceRetryWith() *DeleteDeploymentStatelessR return &DeleteDeploymentStatelessResourceRetryWith{} } -/* DeleteDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. +/* +DeleteDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -214,9 +324,44 @@ type DeleteDeploymentStatelessResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment stateless resource retry with response has a 2xx status code +func (o *DeleteDeploymentStatelessResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment stateless resource retry with response has a 3xx status code +func (o *DeleteDeploymentStatelessResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment stateless resource retry with response has a 4xx status code +func (o *DeleteDeploymentStatelessResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment stateless resource retry with response has a 5xx status code +func (o *DeleteDeploymentStatelessResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment stateless resource retry with response a status code equal to that given +func (o *DeleteDeploymentStatelessResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete deployment stateless resource retry with response +func (o *DeleteDeploymentStatelessResourceRetryWith) Code() int { + return 449 +} + func (o *DeleteDeploymentStatelessResourceRetryWith) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) } + +func (o *DeleteDeploymentStatelessResourceRetryWith) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) +} + func (o *DeleteDeploymentStatelessResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewDeleteDeploymentStatelessResourceInternalServerError() *DeleteDeployment return &DeleteDeploymentStatelessResourceInternalServerError{} } -/* DeleteDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. +/* +DeleteDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -258,9 +404,44 @@ type DeleteDeploymentStatelessResourceInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment stateless resource internal server error response has a 2xx status code +func (o *DeleteDeploymentStatelessResourceInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment stateless resource internal server error response has a 3xx status code +func (o *DeleteDeploymentStatelessResourceInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment stateless resource internal server error response has a 4xx status code +func (o *DeleteDeploymentStatelessResourceInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment stateless resource internal server error response has a 5xx status code +func (o *DeleteDeploymentStatelessResourceInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this delete deployment stateless resource internal server error response a status code equal to that given +func (o *DeleteDeploymentStatelessResourceInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the delete deployment stateless resource internal server error response +func (o *DeleteDeploymentStatelessResourceInternalServerError) Code() int { + return 500 +} + func (o *DeleteDeploymentStatelessResourceInternalServerError) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) } + +func (o *DeleteDeploymentStatelessResourceInternalServerError) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}][%d] deleteDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) +} + func (o *DeleteDeploymentStatelessResourceInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/deployment_apm_reset_secret_token_parameters.go b/pkg/client/deployments/deployment_apm_reset_secret_token_parameters.go index d4176735..ff645fa5 100644 --- a/pkg/client/deployments/deployment_apm_reset_secret_token_parameters.go +++ b/pkg/client/deployments/deployment_apm_reset_secret_token_parameters.go @@ -69,10 +69,12 @@ func NewDeploymentApmResetSecretTokenParamsWithHTTPClient(client *http.Client) * } } -/* DeploymentApmResetSecretTokenParams contains all the parameters to send to the API endpoint - for the deployment apm reset secret token operation. +/* +DeploymentApmResetSecretTokenParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the deployment apm reset secret token operation. + + Typically these are written to a http.Request. */ type DeploymentApmResetSecretTokenParams struct { diff --git a/pkg/client/deployments/deployment_apm_reset_secret_token_responses.go b/pkg/client/deployments/deployment_apm_reset_secret_token_responses.go index cf593945..31a96805 100644 --- a/pkg/client/deployments/deployment_apm_reset_secret_token_responses.go +++ b/pkg/client/deployments/deployment_apm_reset_secret_token_responses.go @@ -80,7 +80,8 @@ func NewDeploymentApmResetSecretTokenAccepted() *DeploymentApmResetSecretTokenAc return &DeploymentApmResetSecretTokenAccepted{} } -/* DeploymentApmResetSecretTokenAccepted describes a response with status code 202, with default header values. +/* +DeploymentApmResetSecretTokenAccepted describes a response with status code 202, with default header values. Response containing the new secret token, plan to apply it starts */ @@ -88,9 +89,44 @@ type DeploymentApmResetSecretTokenAccepted struct { Payload *models.ApmCrudResponse } +// IsSuccess returns true when this deployment apm reset secret token accepted response has a 2xx status code +func (o *DeploymentApmResetSecretTokenAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this deployment apm reset secret token accepted response has a 3xx status code +func (o *DeploymentApmResetSecretTokenAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this deployment apm reset secret token accepted response has a 4xx status code +func (o *DeploymentApmResetSecretTokenAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this deployment apm reset secret token accepted response has a 5xx status code +func (o *DeploymentApmResetSecretTokenAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this deployment apm reset secret token accepted response a status code equal to that given +func (o *DeploymentApmResetSecretTokenAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the deployment apm reset secret token accepted response +func (o *DeploymentApmResetSecretTokenAccepted) Code() int { + return 202 +} + func (o *DeploymentApmResetSecretTokenAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenAccepted %+v", 202, o.Payload) } + +func (o *DeploymentApmResetSecretTokenAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenAccepted %+v", 202, o.Payload) +} + func (o *DeploymentApmResetSecretTokenAccepted) GetPayload() *models.ApmCrudResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewDeploymentApmResetSecretTokenBadRequest() *DeploymentApmResetSecretToken return &DeploymentApmResetSecretTokenBadRequest{} } -/* DeploymentApmResetSecretTokenBadRequest describes a response with status code 400, with default header values. +/* +DeploymentApmResetSecretTokenBadRequest describes a response with status code 400, with default header values. Reset token is not supported when APM is managed by Elastic Agent. (code: `clusters.cluster_plan_state_error`) */ @@ -125,9 +162,44 @@ type DeploymentApmResetSecretTokenBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this deployment apm reset secret token bad request response has a 2xx status code +func (o *DeploymentApmResetSecretTokenBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this deployment apm reset secret token bad request response has a 3xx status code +func (o *DeploymentApmResetSecretTokenBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this deployment apm reset secret token bad request response has a 4xx status code +func (o *DeploymentApmResetSecretTokenBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this deployment apm reset secret token bad request response has a 5xx status code +func (o *DeploymentApmResetSecretTokenBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this deployment apm reset secret token bad request response a status code equal to that given +func (o *DeploymentApmResetSecretTokenBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the deployment apm reset secret token bad request response +func (o *DeploymentApmResetSecretTokenBadRequest) Code() int { + return 400 +} + func (o *DeploymentApmResetSecretTokenBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenBadRequest %+v", 400, o.Payload) } + +func (o *DeploymentApmResetSecretTokenBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenBadRequest %+v", 400, o.Payload) +} + func (o *DeploymentApmResetSecretTokenBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewDeploymentApmResetSecretTokenNotFound() *DeploymentApmResetSecretTokenNo return &DeploymentApmResetSecretTokenNotFound{} } -/* DeploymentApmResetSecretTokenNotFound describes a response with status code 404, with default header values. +/* + DeploymentApmResetSecretTokenNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type DeploymentApmResetSecretTokenNotFound struct { @@ -170,9 +244,44 @@ type DeploymentApmResetSecretTokenNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this deployment apm reset secret token not found response has a 2xx status code +func (o *DeploymentApmResetSecretTokenNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this deployment apm reset secret token not found response has a 3xx status code +func (o *DeploymentApmResetSecretTokenNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this deployment apm reset secret token not found response has a 4xx status code +func (o *DeploymentApmResetSecretTokenNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this deployment apm reset secret token not found response has a 5xx status code +func (o *DeploymentApmResetSecretTokenNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this deployment apm reset secret token not found response a status code equal to that given +func (o *DeploymentApmResetSecretTokenNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the deployment apm reset secret token not found response +func (o *DeploymentApmResetSecretTokenNotFound) Code() int { + return 404 +} + func (o *DeploymentApmResetSecretTokenNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenNotFound %+v", 404, o.Payload) } + +func (o *DeploymentApmResetSecretTokenNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenNotFound %+v", 404, o.Payload) +} + func (o *DeploymentApmResetSecretTokenNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -201,7 +310,8 @@ func NewDeploymentApmResetSecretTokenRetryWith() *DeploymentApmResetSecretTokenR return &DeploymentApmResetSecretTokenRetryWith{} } -/* DeploymentApmResetSecretTokenRetryWith describes a response with status code 449, with default header values. +/* +DeploymentApmResetSecretTokenRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -214,9 +324,44 @@ type DeploymentApmResetSecretTokenRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this deployment apm reset secret token retry with response has a 2xx status code +func (o *DeploymentApmResetSecretTokenRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this deployment apm reset secret token retry with response has a 3xx status code +func (o *DeploymentApmResetSecretTokenRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this deployment apm reset secret token retry with response has a 4xx status code +func (o *DeploymentApmResetSecretTokenRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this deployment apm reset secret token retry with response has a 5xx status code +func (o *DeploymentApmResetSecretTokenRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this deployment apm reset secret token retry with response a status code equal to that given +func (o *DeploymentApmResetSecretTokenRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the deployment apm reset secret token retry with response +func (o *DeploymentApmResetSecretTokenRetryWith) Code() int { + return 449 +} + func (o *DeploymentApmResetSecretTokenRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenRetryWith %+v", 449, o.Payload) } + +func (o *DeploymentApmResetSecretTokenRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenRetryWith %+v", 449, o.Payload) +} + func (o *DeploymentApmResetSecretTokenRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewDeploymentApmResetSecretTokenInternalServerError() *DeploymentApmResetSe return &DeploymentApmResetSecretTokenInternalServerError{} } -/* DeploymentApmResetSecretTokenInternalServerError describes a response with status code 500, with default header values. +/* +DeploymentApmResetSecretTokenInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -258,9 +404,44 @@ type DeploymentApmResetSecretTokenInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this deployment apm reset secret token internal server error response has a 2xx status code +func (o *DeploymentApmResetSecretTokenInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this deployment apm reset secret token internal server error response has a 3xx status code +func (o *DeploymentApmResetSecretTokenInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this deployment apm reset secret token internal server error response has a 4xx status code +func (o *DeploymentApmResetSecretTokenInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this deployment apm reset secret token internal server error response has a 5xx status code +func (o *DeploymentApmResetSecretTokenInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this deployment apm reset secret token internal server error response a status code equal to that given +func (o *DeploymentApmResetSecretTokenInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the deployment apm reset secret token internal server error response +func (o *DeploymentApmResetSecretTokenInternalServerError) Code() int { + return 500 +} + func (o *DeploymentApmResetSecretTokenInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenInternalServerError %+v", 500, o.Payload) } + +func (o *DeploymentApmResetSecretTokenInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/apm/{ref_id}/_reset-token][%d] deploymentApmResetSecretTokenInternalServerError %+v", 500, o.Payload) +} + func (o *DeploymentApmResetSecretTokenInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/deployments_client.go b/pkg/client/deployments/deployments_client.go index 35b7e954..3ab830df 100644 --- a/pkg/client/deployments/deployments_client.go +++ b/pkg/client/deployments/deployments_client.go @@ -175,9 +175,9 @@ type ClientService interface { } /* - CancelDeploymentResourcePendingPlan cancels resource pending plan +CancelDeploymentResourcePendingPlan cancels resource pending plan - Cancels the pending plan of a Resource belonging to a given Deployment. +Cancels the pending plan of a Resource belonging to a given Deployment. */ func (a *Client) CancelDeploymentResourcePendingPlan(params *CancelDeploymentResourcePendingPlanParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelDeploymentResourcePendingPlanOK, error) { // TODO: Validate the params before sending @@ -216,9 +216,9 @@ func (a *Client) CancelDeploymentResourcePendingPlan(params *CancelDeploymentRes } /* - CaptureDeploymentInstanceHeapDump captures a new on demand heap dump for the given instance +CaptureDeploymentInstanceHeapDump captures a new on demand heap dump for the given instance - Captures a new on-demand heap dump for the given instance. The capture is completed asynchronously, and you can check its progress by getting heap dumps for the given resource. +Captures a new on-demand heap dump for the given instance. The capture is completed asynchronously, and you can check its progress by getting heap dumps for the given resource. */ func (a *Client) CaptureDeploymentInstanceHeapDump(params *CaptureDeploymentInstanceHeapDumpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CaptureDeploymentInstanceHeapDumpAccepted, error) { // TODO: Validate the params before sending @@ -257,9 +257,9 @@ func (a *Client) CaptureDeploymentInstanceHeapDump(params *CaptureDeploymentInst } /* - CaptureDeploymentInstanceThreadDump captures a new thread dump for the given instance +CaptureDeploymentInstanceThreadDump captures a new thread dump for the given instance - Captures a new thread dump for the given instance and returns the thread dump contents. +Captures a new thread dump for the given instance and returns the thread dump contents. */ func (a *Client) CaptureDeploymentInstanceThreadDump(params *CaptureDeploymentInstanceThreadDumpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CaptureDeploymentInstanceThreadDumpOK, error) { // TODO: Validate the params before sending @@ -298,9 +298,9 @@ func (a *Client) CaptureDeploymentInstanceThreadDump(params *CaptureDeploymentIn } /* - CaptureDeploymentResourceDiagnostics captures diagnostics for an elasticsearch or kibana resource +CaptureDeploymentResourceDiagnostics captures diagnostics for an elasticsearch or kibana resource - Retrieves a diagnostic bundle from an active cluster. To successfully retrieve a diagnostic bundle, the cluster must be responsive. +Retrieves a diagnostic bundle from an active cluster. To successfully retrieve a diagnostic bundle, the cluster must be responsive. */ func (a *Client) CaptureDeploymentResourceDiagnostics(params *CaptureDeploymentResourceDiagnosticsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CaptureDeploymentResourceDiagnosticsOK, error) { // TODO: Validate the params before sending @@ -339,9 +339,9 @@ func (a *Client) CaptureDeploymentResourceDiagnostics(params *CaptureDeploymentR } /* - CreateDeployment creates deployment +CreateDeployment creates deployment - Creates a Deployment. +Creates a Deployment. */ func (a *Client) CreateDeployment(params *CreateDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentOK, *CreateDeploymentCreated, *CreateDeploymentAccepted, error) { // TODO: Validate the params before sending @@ -383,9 +383,9 @@ func (a *Client) CreateDeployment(params *CreateDeploymentParams, authInfo runti } /* - DeleteDeployment deletes deployment +DeleteDeployment deletes deployment - Deletes a Deployment and all its resources. +Deletes a Deployment and all its resources. */ func (a *Client) DeleteDeployment(params *DeleteDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentOK, error) { // TODO: Validate the params before sending @@ -424,9 +424,9 @@ func (a *Client) DeleteDeployment(params *DeleteDeploymentParams, authInfo runti } /* - DeleteDeploymentResourceProxyRequests proxies HTTP d e l e t e request +DeleteDeploymentResourceProxyRequests proxies HTTP d e l e t e request - Proxies the HTTP DELETE request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. +Proxies the HTTP DELETE request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. */ func (a *Client) DeleteDeploymentResourceProxyRequests(params *DeleteDeploymentResourceProxyRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentResourceProxyRequestsOK, error) { // TODO: Validate the params before sending @@ -465,9 +465,9 @@ func (a *Client) DeleteDeploymentResourceProxyRequests(params *DeleteDeploymentR } /* - DeleteDeploymentStatelessResource deletes stateless resource from deployment +DeleteDeploymentStatelessResource deletes stateless resource from deployment - Delete Stateless Resource belonging to a given Deployment. Deployment must be shutdown already. +Delete Stateless Resource belonging to a given Deployment. Deployment must be shutdown already. */ func (a *Client) DeleteDeploymentStatelessResource(params *DeleteDeploymentStatelessResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentStatelessResourceOK, error) { // TODO: Validate the params before sending @@ -506,9 +506,9 @@ func (a *Client) DeleteDeploymentStatelessResource(params *DeleteDeploymentState } /* - DeploymentApmResetSecretToken resets the secret token for an a p m resource +DeploymentApmResetSecretToken resets the secret token for an a p m resource - Reset the token of an APM resource. +Reset the token of an APM resource. */ func (a *Client) DeploymentApmResetSecretToken(params *DeploymentApmResetSecretTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeploymentApmResetSecretTokenAccepted, error) { // TODO: Validate the params before sending @@ -547,9 +547,9 @@ func (a *Client) DeploymentApmResetSecretToken(params *DeploymentApmResetSecretT } /* - DownloadDeploymentInstanceHeapDump downloads the given instance s heap dump +DownloadDeploymentInstanceHeapDump downloads the given instance s heap dump - Returns the given instance's heap dump for download. +Returns the given instance's heap dump for download. */ func (a *Client) DownloadDeploymentInstanceHeapDump(params *DownloadDeploymentInstanceHeapDumpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DownloadDeploymentInstanceHeapDumpOK, error) { // TODO: Validate the params before sending @@ -588,9 +588,9 @@ func (a *Client) DownloadDeploymentInstanceHeapDump(params *DownloadDeploymentIn } /* - EnableDeploymentResourceCcr migrates elasticsearch and associated kibana resources to enable c c r +EnableDeploymentResourceCcr migrates elasticsearch and associated kibana resources to enable c c r - Migrates the specified Elasticsearch resource and its associated Kibana to enable CCR (if supported). +Migrates the specified Elasticsearch resource and its associated Kibana to enable CCR (if supported). */ func (a *Client) EnableDeploymentResourceCcr(params *EnableDeploymentResourceCcrParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableDeploymentResourceCcrOK, error) { // TODO: Validate the params before sending @@ -629,9 +629,9 @@ func (a *Client) EnableDeploymentResourceCcr(params *EnableDeploymentResourceCcr } /* - EnableDeploymentResourceIlm migrates elasticsearch resource to use i l m +EnableDeploymentResourceIlm migrates elasticsearch resource to use i l m - Migrates the specified Elasticsearch resource to use ILM. +Migrates the specified Elasticsearch resource to use ILM. */ func (a *Client) EnableDeploymentResourceIlm(params *EnableDeploymentResourceIlmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableDeploymentResourceIlmOK, error) { // TODO: Validate the params before sending @@ -670,9 +670,9 @@ func (a *Client) EnableDeploymentResourceIlm(params *EnableDeploymentResourceIlm } /* - EnableDeploymentResourceSlm migrates elasticsearch resource to use s l m +EnableDeploymentResourceSlm migrates elasticsearch resource to use s l m - Migrates the specified Elasticsearch resource to use SLM. +Migrates the specified Elasticsearch resource to use SLM. */ func (a *Client) EnableDeploymentResourceSlm(params *EnableDeploymentResourceSlmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableDeploymentResourceSlmOK, error) { // TODO: Validate the params before sending @@ -711,9 +711,9 @@ func (a *Client) EnableDeploymentResourceSlm(params *EnableDeploymentResourceSlm } /* - GetAppsearchReadOnlyMode sets app search read only status +GetAppsearchReadOnlyMode sets app search read only status - Enable/Disable read-only mode on the given App Search resource. +Enable/Disable read-only mode on the given App Search resource. */ func (a *Client) GetAppsearchReadOnlyMode(params *GetAppsearchReadOnlyModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppsearchReadOnlyModeOK, error) { // TODO: Validate the params before sending @@ -752,9 +752,9 @@ func (a *Client) GetAppsearchReadOnlyMode(params *GetAppsearchReadOnlyModeParams } /* - GetDeployment gets deployment +GetDeployment gets deployment - Retrieves information about a Deployment. +Retrieves information about a Deployment. */ func (a *Client) GetDeployment(params *GetDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentOK, error) { // TODO: Validate the params before sending @@ -793,9 +793,9 @@ func (a *Client) GetDeployment(params *GetDeploymentParams, authInfo runtime.Cli } /* - GetDeploymentApmResourceInfo gets deployment a p m resource info +GetDeploymentApmResourceInfo gets deployment a p m resource info - Get info about an APM Resource belonging to a given Deployment. +Get info about an APM Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentApmResourceInfo(params *GetDeploymentApmResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentApmResourceInfoOK, error) { // TODO: Validate the params before sending @@ -834,9 +834,9 @@ func (a *Client) GetDeploymentApmResourceInfo(params *GetDeploymentApmResourceIn } /* - GetDeploymentAppsearchResourceInfo gets deployment app search resource info +GetDeploymentAppsearchResourceInfo gets deployment app search resource info - Get info about an App Search Resource belonging to a given Deployment. +Get info about an App Search Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentAppsearchResourceInfo(params *GetDeploymentAppsearchResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentAppsearchResourceInfoOK, error) { // TODO: Validate the params before sending @@ -875,9 +875,9 @@ func (a *Client) GetDeploymentAppsearchResourceInfo(params *GetDeploymentAppsear } /* - GetDeploymentCertificateAuthority gets certificate authority +GetDeploymentCertificateAuthority gets certificate authority - Returns the certificate authority used to sign the certificates of this deployment. +Returns the certificate authority used to sign the certificates of this deployment. */ func (a *Client) GetDeploymentCertificateAuthority(params *GetDeploymentCertificateAuthorityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentCertificateAuthorityOK, error) { // TODO: Validate the params before sending @@ -916,9 +916,9 @@ func (a *Client) GetDeploymentCertificateAuthority(params *GetDeploymentCertific } /* - GetDeploymentEnterpriseSearchResourceInfo gets deployment enterprise search resource info +GetDeploymentEnterpriseSearchResourceInfo gets deployment enterprise search resource info - Get info about an Enterprise Search Resource belonging to a given Deployment. +Get info about an Enterprise Search Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentEnterpriseSearchResourceInfo(params *GetDeploymentEnterpriseSearchResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentEnterpriseSearchResourceInfoOK, error) { // TODO: Validate the params before sending @@ -957,9 +957,9 @@ func (a *Client) GetDeploymentEnterpriseSearchResourceInfo(params *GetDeployment } /* - GetDeploymentEsResourceEligibleRemoteClusters gets eligible remote clusters +GetDeploymentEsResourceEligibleRemoteClusters gets eligible remote clusters - Returns the list of deployments which contain eligible remote clusters for the elasticsearch resource. +Returns the list of deployments which contain eligible remote clusters for the elasticsearch resource. */ func (a *Client) GetDeploymentEsResourceEligibleRemoteClusters(params *GetDeploymentEsResourceEligibleRemoteClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentEsResourceEligibleRemoteClustersOK, error) { // TODO: Validate the params before sending @@ -998,9 +998,9 @@ func (a *Client) GetDeploymentEsResourceEligibleRemoteClusters(params *GetDeploy } /* - GetDeploymentEsResourceInfo gets deployment elasticsearch resource info +GetDeploymentEsResourceInfo gets deployment elasticsearch resource info - Get info about an Elasticsearch Resource belonging to a given Deployment. +Get info about an Elasticsearch Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentEsResourceInfo(params *GetDeploymentEsResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentEsResourceInfoOK, error) { // TODO: Validate the params before sending @@ -1039,9 +1039,9 @@ func (a *Client) GetDeploymentEsResourceInfo(params *GetDeploymentEsResourceInfo } /* - GetDeploymentEsResourceKeystore gets the items in the elasticsearch resource keystore +GetDeploymentEsResourceKeystore gets the items in the elasticsearch resource keystore - Fetches the current values of the keystore for the Elasticsearch resource. +Fetches the current values of the keystore for the Elasticsearch resource. */ func (a *Client) GetDeploymentEsResourceKeystore(params *GetDeploymentEsResourceKeystoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentEsResourceKeystoreOK, error) { // TODO: Validate the params before sending @@ -1080,9 +1080,9 @@ func (a *Client) GetDeploymentEsResourceKeystore(params *GetDeploymentEsResource } /* - GetDeploymentEsResourceRemoteClusters gets remote clusters +GetDeploymentEsResourceRemoteClusters gets remote clusters - Returns the list of remote clusters for the elasticsearch resource. +Returns the list of remote clusters for the elasticsearch resource. */ func (a *Client) GetDeploymentEsResourceRemoteClusters(params *GetDeploymentEsResourceRemoteClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentEsResourceRemoteClustersOK, error) { // TODO: Validate the params before sending @@ -1121,9 +1121,9 @@ func (a *Client) GetDeploymentEsResourceRemoteClusters(params *GetDeploymentEsRe } /* - GetDeploymentHeapDumps gets details about heap dumps for a deployment +GetDeploymentHeapDumps gets details about heap dumps for a deployment - Gets details about existing heap dumps and in progress heap dump captures across all instances belonging to the deployment. +Gets details about existing heap dumps and in progress heap dump captures across all instances belonging to the deployment. */ func (a *Client) GetDeploymentHeapDumps(params *GetDeploymentHeapDumpsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentHeapDumpsOK, error) { // TODO: Validate the params before sending @@ -1162,9 +1162,9 @@ func (a *Client) GetDeploymentHeapDumps(params *GetDeploymentHeapDumpsParams, au } /* - GetDeploymentIntegrationsServerResourceInfo gets deployment integrations server resource info +GetDeploymentIntegrationsServerResourceInfo gets deployment integrations server resource info - Get info about an Integrations Server Resource belonging to a given Deployment. +Get info about an Integrations Server Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentIntegrationsServerResourceInfo(params *GetDeploymentIntegrationsServerResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentIntegrationsServerResourceInfoOK, error) { // TODO: Validate the params before sending @@ -1203,9 +1203,9 @@ func (a *Client) GetDeploymentIntegrationsServerResourceInfo(params *GetDeployme } /* - GetDeploymentKibResourceInfo gets deployment kibana resource info +GetDeploymentKibResourceInfo gets deployment kibana resource info - Get info about a Kibana Resource belonging to a given Deployment. +Get info about a Kibana Resource belonging to a given Deployment. */ func (a *Client) GetDeploymentKibResourceInfo(params *GetDeploymentKibResourceInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentKibResourceInfoOK, error) { // TODO: Validate the params before sending @@ -1244,9 +1244,9 @@ func (a *Client) GetDeploymentKibResourceInfo(params *GetDeploymentKibResourceIn } /* - GetDeploymentResourcePlanActivity gets plan activity +GetDeploymentResourcePlanActivity gets plan activity - Retrieves details for a single plan activity for the given resource. +Retrieves details for a single plan activity for the given resource. */ func (a *Client) GetDeploymentResourcePlanActivity(params *GetDeploymentResourcePlanActivityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentResourcePlanActivityOK, error) { // TODO: Validate the params before sending @@ -1285,9 +1285,9 @@ func (a *Client) GetDeploymentResourcePlanActivity(params *GetDeploymentResource } /* - GetDeploymentResourceProxyRequests proxies HTTP g e t request +GetDeploymentResourceProxyRequests proxies HTTP g e t request - Proxies the HTTP GET request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. +Proxies the HTTP GET request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. */ func (a *Client) GetDeploymentResourceProxyRequests(params *GetDeploymentResourceProxyRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentResourceProxyRequestsOK, error) { // TODO: Validate the params before sending @@ -1326,9 +1326,9 @@ func (a *Client) GetDeploymentResourceProxyRequests(params *GetDeploymentResourc } /* - GetDeploymentUpgradeAssistantStatus gets deployment upgade assistant status +GetDeploymentUpgradeAssistantStatus gets deployment upgade assistant status - Get details about an Elasticsearch resource belonging to a given deployment. +Get details about an Elasticsearch resource belonging to a given deployment. */ func (a *Client) GetDeploymentUpgradeAssistantStatus(params *GetDeploymentUpgradeAssistantStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentUpgradeAssistantStatusOK, error) { // TODO: Validate the params before sending @@ -1367,9 +1367,9 @@ func (a *Client) GetDeploymentUpgradeAssistantStatus(params *GetDeploymentUpgrad } /* - ListDeployments lists deployments +ListDeployments lists deployments - List Deployments. +List Deployments. */ func (a *Client) ListDeployments(params *ListDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDeploymentsOK, error) { // TODO: Validate the params before sending @@ -1408,9 +1408,9 @@ func (a *Client) ListDeployments(params *ListDeploymentsParams, authInfo runtime } /* - MigrateDeploymentTemplate builds request to migrate deployment to a different template +MigrateDeploymentTemplate builds request to migrate deployment to a different template - Returns a deployment update request that would migrate this deployment to a different template. +Returns a deployment update request that would migrate this deployment to a different template. */ func (a *Client) MigrateDeploymentTemplate(params *MigrateDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MigrateDeploymentTemplateOK, error) { // TODO: Validate the params before sending @@ -1449,9 +1449,9 @@ func (a *Client) MigrateDeploymentTemplate(params *MigrateDeploymentTemplatePara } /* - MoveDeploymentElasticsearchResourceInstances moves elasticsearch resource instances +MoveDeploymentElasticsearchResourceInstances moves elasticsearch resource instances - Moves one or more instances belonging to the given Elasticsearch resource to a different allocator. +Moves one or more instances belonging to the given Elasticsearch resource to a different allocator. */ func (a *Client) MoveDeploymentElasticsearchResourceInstances(params *MoveDeploymentElasticsearchResourceInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveDeploymentElasticsearchResourceInstancesOK, *MoveDeploymentElasticsearchResourceInstancesAccepted, error) { // TODO: Validate the params before sending @@ -1491,9 +1491,9 @@ func (a *Client) MoveDeploymentElasticsearchResourceInstances(params *MoveDeploy } /* - PostDeploymentResourceProxyRequests proxies HTTP p o s t request +PostDeploymentResourceProxyRequests proxies HTTP p o s t request - Proxies the HTTP POST request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. +Proxies the HTTP POST request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. */ func (a *Client) PostDeploymentResourceProxyRequests(params *PostDeploymentResourceProxyRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDeploymentResourceProxyRequestsOK, error) { // TODO: Validate the params before sending @@ -1532,9 +1532,9 @@ func (a *Client) PostDeploymentResourceProxyRequests(params *PostDeploymentResou } /* - PutDeploymentResourceProxyRequests proxies HTTP p u t request +PutDeploymentResourceProxyRequests proxies HTTP p u t request - Proxies the HTTP PUT request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. +Proxies the HTTP PUT request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance. */ func (a *Client) PutDeploymentResourceProxyRequests(params *PutDeploymentResourceProxyRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDeploymentResourceProxyRequestsOK, error) { // TODO: Validate the params before sending @@ -1573,9 +1573,9 @@ func (a *Client) PutDeploymentResourceProxyRequests(params *PutDeploymentResourc } /* - ResetElasticsearchUserPassword resets elastic user password +ResetElasticsearchUserPassword resets elastic user password - Resets the password of the 'elastic' user. +Resets the password of the 'elastic' user. */ func (a *Client) ResetElasticsearchUserPassword(params *ResetElasticsearchUserPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResetElasticsearchUserPasswordOK, error) { // TODO: Validate the params before sending @@ -1614,9 +1614,9 @@ func (a *Client) ResetElasticsearchUserPassword(params *ResetElasticsearchUserPa } /* - RestartDeploymentEsResource restarts deployment elasticsearch resource +RestartDeploymentEsResource restarts deployment elasticsearch resource - Restarts an Elasticsearch Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan. +Restarts an Elasticsearch Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan. */ func (a *Client) RestartDeploymentEsResource(params *RestartDeploymentEsResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartDeploymentEsResourceAccepted, error) { // TODO: Validate the params before sending @@ -1655,9 +1655,9 @@ func (a *Client) RestartDeploymentEsResource(params *RestartDeploymentEsResource } /* - RestartDeploymentStatelessResource restarts deployment stateless resource +RestartDeploymentStatelessResource restarts deployment stateless resource - Restarts a Stateless Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan. +Restarts a Stateless Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan. */ func (a *Client) RestartDeploymentStatelessResource(params *RestartDeploymentStatelessResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartDeploymentStatelessResourceAccepted, error) { // TODO: Validate the params before sending @@ -1696,9 +1696,9 @@ func (a *Client) RestartDeploymentStatelessResource(params *RestartDeploymentSta } /* - RestoreDeployment restores a shutdown deployment +RestoreDeployment restores a shutdown deployment - Restores all resources in a Deployment. +Restores all resources in a Deployment. */ func (a *Client) RestoreDeployment(params *RestoreDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreDeploymentOK, error) { // TODO: Validate the params before sending @@ -1737,9 +1737,9 @@ func (a *Client) RestoreDeployment(params *RestoreDeploymentParams, authInfo run } /* - RestoreDeploymentResource restores a shutdown resource +RestoreDeploymentResource restores a shutdown resource - Restores a shutdown resource belonging to a given Deployment. +Restores a shutdown resource belonging to a given Deployment. */ func (a *Client) RestoreDeploymentResource(params *RestoreDeploymentResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreDeploymentResourceOK, error) { // TODO: Validate the params before sending @@ -1778,9 +1778,9 @@ func (a *Client) RestoreDeploymentResource(params *RestoreDeploymentResourcePara } /* - ResyncDeployment resynchronizes deployment +ResyncDeployment resynchronizes deployment - Immediately resynchronizes the search index for the selected deployment. +Immediately resynchronizes the search index for the selected deployment. */ func (a *Client) ResyncDeployment(params *ResyncDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncDeploymentOK, error) { // TODO: Validate the params before sending @@ -1819,9 +1819,9 @@ func (a *Client) ResyncDeployment(params *ResyncDeploymentParams, authInfo runti } /* - ResyncDeployments resynchronizes deployments +ResyncDeployments resynchronizes deployments - Resynchronizes the search index for all the deployments. +Resynchronizes the search index for all the deployments. */ func (a *Client) ResyncDeployments(params *ResyncDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncDeploymentsOK, error) { // TODO: Validate the params before sending @@ -1860,9 +1860,9 @@ func (a *Client) ResyncDeployments(params *ResyncDeploymentsParams, authInfo run } /* - SearchDeployments searches deployments +SearchDeployments searches deployments - Retrieves the information for all of the deployments that match the specified query. +Retrieves the information for all of the deployments that match the specified query. */ func (a *Client) SearchDeployments(params *SearchDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchDeploymentsOK, error) { // TODO: Validate the params before sending @@ -1901,9 +1901,9 @@ func (a *Client) SearchDeployments(params *SearchDeploymentsParams, authInfo run } /* - SearchEligibleRemoteClusters gets eligible remote clusters +SearchEligibleRemoteClusters gets eligible remote clusters - Returns the list of deployments which contain eligible remote clusters for a specific version. +Returns the list of deployments which contain eligible remote clusters for a specific version. */ func (a *Client) SearchEligibleRemoteClusters(params *SearchEligibleRemoteClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchEligibleRemoteClustersOK, error) { // TODO: Validate the params before sending @@ -1942,9 +1942,9 @@ func (a *Client) SearchEligibleRemoteClusters(params *SearchEligibleRemoteCluste } /* - SetAllInstancesSettingsOverrides sets size overrides +SetAllInstancesSettingsOverrides sets size overrides - Applies size overrides for all of the instances belonging to the given resource. +Applies size overrides for all of the instances belonging to the given resource. */ func (a *Client) SetAllInstancesSettingsOverrides(params *SetAllInstancesSettingsOverridesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAllInstancesSettingsOverridesOK, error) { // TODO: Validate the params before sending @@ -1983,9 +1983,9 @@ func (a *Client) SetAllInstancesSettingsOverrides(params *SetAllInstancesSetting } /* - SetAppsearchReadOnlyMode sets app search read only status +SetAppsearchReadOnlyMode sets app search read only status - Enable/Disable read-only mode on the given App Search resource. +Enable/Disable read-only mode on the given App Search resource. */ func (a *Client) SetAppsearchReadOnlyMode(params *SetAppsearchReadOnlyModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAppsearchReadOnlyModeOK, error) { // TODO: Validate the params before sending @@ -2024,9 +2024,9 @@ func (a *Client) SetAppsearchReadOnlyMode(params *SetAppsearchReadOnlyModeParams } /* - SetDeploymentEsResourceKeystore adds or remove items from the elasticsearch resource keystore +SetDeploymentEsResourceKeystore adds or remove items from the elasticsearch resource keystore - Adds the specified values to the Elasticsearch keystore, or removes the keys for the unspecified values. +Adds the specified values to the Elasticsearch keystore, or removes the keys for the unspecified values. */ func (a *Client) SetDeploymentEsResourceKeystore(params *SetDeploymentEsResourceKeystoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDeploymentEsResourceKeystoreOK, error) { // TODO: Validate the params before sending @@ -2065,9 +2065,9 @@ func (a *Client) SetDeploymentEsResourceKeystore(params *SetDeploymentEsResource } /* - SetDeploymentEsResourceRemoteClusters sets remote clusters +SetDeploymentEsResourceRemoteClusters sets remote clusters - Overwrites or creates the remote clusters for the elasticsearch resource. +Overwrites or creates the remote clusters for the elasticsearch resource. */ func (a *Client) SetDeploymentEsResourceRemoteClusters(params *SetDeploymentEsResourceRemoteClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDeploymentEsResourceRemoteClustersAccepted, error) { // TODO: Validate the params before sending @@ -2106,9 +2106,10 @@ func (a *Client) SetDeploymentEsResourceRemoteClusters(params *SetDeploymentEsRe } /* - SetDeploymentResourceRawMetadata sets a deployment s resource metadata + SetDeploymentResourceRawMetadata sets a deployment s resource metadata + + Advanced use only. Sets the internal metadata, in free-form JSON, for the resource. - Advanced use only. Sets the internal metadata, in free-form JSON, for the resource. Only use the parameter to set the modified JSON that is returned from the get version of the metadata. */ func (a *Client) SetDeploymentResourceRawMetadata(params *SetDeploymentResourceRawMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDeploymentResourceRawMetadataOK, error) { @@ -2148,9 +2149,9 @@ func (a *Client) SetDeploymentResourceRawMetadata(params *SetDeploymentResourceR } /* - SetInstanceSettingsOverrides sets size overrides +SetInstanceSettingsOverrides sets size overrides - Applies size overrides for the given instances belonging to the given resource. +Applies size overrides for the given instances belonging to the given resource. */ func (a *Client) SetInstanceSettingsOverrides(params *SetInstanceSettingsOverridesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetInstanceSettingsOverridesOK, error) { // TODO: Validate the params before sending @@ -2189,9 +2190,9 @@ func (a *Client) SetInstanceSettingsOverrides(params *SetInstanceSettingsOverrid } /* - ShutdownDeployment shuts down deployment +ShutdownDeployment shuts down deployment - Shuts down all resources in a Deployment. +Shuts down all resources in a Deployment. */ func (a *Client) ShutdownDeployment(params *ShutdownDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShutdownDeploymentOK, error) { // TODO: Validate the params before sending @@ -2230,9 +2231,9 @@ func (a *Client) ShutdownDeployment(params *ShutdownDeploymentParams, authInfo r } /* - ShutdownDeploymentEsResource shutdowns deployment elasticsearch resource +ShutdownDeploymentEsResource shutdowns deployment elasticsearch resource - Shutdown Elasticsearch Resource belonging to a given Deployment. +Shutdown Elasticsearch Resource belonging to a given Deployment. */ func (a *Client) ShutdownDeploymentEsResource(params *ShutdownDeploymentEsResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShutdownDeploymentEsResourceOK, error) { // TODO: Validate the params before sending @@ -2271,9 +2272,10 @@ func (a *Client) ShutdownDeploymentEsResource(params *ShutdownDeploymentEsResour } /* - ShutdownDeploymentStatelessResource shutdowns deployment stateless resource + ShutdownDeploymentStatelessResource shutdowns deployment stateless resource + + Shut down Stateless Resource belonging to a given Deployment. - Shut down Stateless Resource belonging to a given Deployment. Kibana cannot be shut down on Elasticsearch Service as it is required for Elasticsearch administrative functions, such as Snapshot Lifecycle Management and version upgrades. */ func (a *Client) ShutdownDeploymentStatelessResource(params *ShutdownDeploymentStatelessResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShutdownDeploymentStatelessResourceOK, error) { @@ -2313,9 +2315,9 @@ func (a *Client) ShutdownDeploymentStatelessResource(params *ShutdownDeploymentS } /* - StartDeploymentResourceInstances starts instances +StartDeploymentResourceInstances starts instances - Starts instances belonging to a Deployment Resource. +Starts instances belonging to a Deployment Resource. */ func (a *Client) StartDeploymentResourceInstances(params *StartDeploymentResourceInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartDeploymentResourceInstancesAccepted, error) { // TODO: Validate the params before sending @@ -2354,9 +2356,9 @@ func (a *Client) StartDeploymentResourceInstances(params *StartDeploymentResourc } /* - StartDeploymentResourceInstancesAll starts all instances +StartDeploymentResourceInstancesAll starts all instances - Starts all instances belonging to a Deployment Resource. +Starts all instances belonging to a Deployment Resource. */ func (a *Client) StartDeploymentResourceInstancesAll(params *StartDeploymentResourceInstancesAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartDeploymentResourceInstancesAllAccepted, error) { // TODO: Validate the params before sending @@ -2395,9 +2397,9 @@ func (a *Client) StartDeploymentResourceInstancesAll(params *StartDeploymentReso } /* - StartDeploymentResourceInstancesAllMaintenanceMode starts maintenance mode all instances +StartDeploymentResourceInstancesAllMaintenanceMode starts maintenance mode all instances - Starts maintenance mode of all instances belonging to a Deployment Resource. +Starts maintenance mode of all instances belonging to a Deployment Resource. */ func (a *Client) StartDeploymentResourceInstancesAllMaintenanceMode(params *StartDeploymentResourceInstancesAllMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartDeploymentResourceInstancesAllMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -2436,9 +2438,9 @@ func (a *Client) StartDeploymentResourceInstancesAllMaintenanceMode(params *Star } /* - StartDeploymentResourceMaintenanceMode starts maintenance mode +StartDeploymentResourceMaintenanceMode starts maintenance mode - Starts maintenance mode of instances belonging to a Deployment Resource. +Starts maintenance mode of instances belonging to a Deployment Resource. */ func (a *Client) StartDeploymentResourceMaintenanceMode(params *StartDeploymentResourceMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartDeploymentResourceMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -2477,9 +2479,9 @@ func (a *Client) StartDeploymentResourceMaintenanceMode(params *StartDeploymentR } /* - StopDeploymentResourceInstances stops instances +StopDeploymentResourceInstances stops instances - Stops instances belonging to a Deployment Resource. +Stops instances belonging to a Deployment Resource. */ func (a *Client) StopDeploymentResourceInstances(params *StopDeploymentResourceInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopDeploymentResourceInstancesAccepted, error) { // TODO: Validate the params before sending @@ -2518,9 +2520,9 @@ func (a *Client) StopDeploymentResourceInstances(params *StopDeploymentResourceI } /* - StopDeploymentResourceInstancesAll stops all instances +StopDeploymentResourceInstancesAll stops all instances - Stops all instances belonging to a Deployment Resource. +Stops all instances belonging to a Deployment Resource. */ func (a *Client) StopDeploymentResourceInstancesAll(params *StopDeploymentResourceInstancesAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopDeploymentResourceInstancesAllAccepted, error) { // TODO: Validate the params before sending @@ -2559,9 +2561,9 @@ func (a *Client) StopDeploymentResourceInstancesAll(params *StopDeploymentResour } /* - StopDeploymentResourceInstancesAllMaintenanceMode stops maintenance mode all instances +StopDeploymentResourceInstancesAllMaintenanceMode stops maintenance mode all instances - Stops maintenance mode of all instances belonging to a Deployment Resource. +Stops maintenance mode of all instances belonging to a Deployment Resource. */ func (a *Client) StopDeploymentResourceInstancesAllMaintenanceMode(params *StopDeploymentResourceInstancesAllMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopDeploymentResourceInstancesAllMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -2600,9 +2602,9 @@ func (a *Client) StopDeploymentResourceInstancesAllMaintenanceMode(params *StopD } /* - StopDeploymentResourceMaintenanceMode stops maintenance mode +StopDeploymentResourceMaintenanceMode stops maintenance mode - Stops maintenance mode of instances belonging to a Resource. +Stops maintenance mode of instances belonging to a Resource. */ func (a *Client) StopDeploymentResourceMaintenanceMode(params *StopDeploymentResourceMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopDeploymentResourceMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -2641,9 +2643,9 @@ func (a *Client) StopDeploymentResourceMaintenanceMode(params *StopDeploymentRes } /* - UpdateDeployment updates deployment +UpdateDeployment updates deployment - Updates a Deployment. +Updates a Deployment. */ func (a *Client) UpdateDeployment(params *UpdateDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateDeploymentOK, error) { // TODO: Validate the params before sending @@ -2682,9 +2684,9 @@ func (a *Client) UpdateDeployment(params *UpdateDeploymentParams, authInfo runti } /* - UpgradeDeploymentStatelessResource upgrades kibana a p m integrations server app search enterprise search inside deployment +UpgradeDeploymentStatelessResource upgrades kibana a p m integrations server app search enterprise search inside deployment - Upgrades a running cluster. +Upgrades a running cluster. */ func (a *Client) UpgradeDeploymentStatelessResource(params *UpgradeDeploymentStatelessResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpgradeDeploymentStatelessResourceAccepted, error) { // TODO: Validate the params before sending diff --git a/pkg/client/deployments/download_deployment_instance_heap_dump_parameters.go b/pkg/client/deployments/download_deployment_instance_heap_dump_parameters.go index e2889c13..954f0df2 100644 --- a/pkg/client/deployments/download_deployment_instance_heap_dump_parameters.go +++ b/pkg/client/deployments/download_deployment_instance_heap_dump_parameters.go @@ -69,10 +69,12 @@ func NewDownloadDeploymentInstanceHeapDumpParamsWithHTTPClient(client *http.Clie } } -/* DownloadDeploymentInstanceHeapDumpParams contains all the parameters to send to the API endpoint - for the download deployment instance heap dump operation. +/* +DownloadDeploymentInstanceHeapDumpParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the download deployment instance heap dump operation. + + Typically these are written to a http.Request. */ type DownloadDeploymentInstanceHeapDumpParams struct { diff --git a/pkg/client/deployments/download_deployment_instance_heap_dump_responses.go b/pkg/client/deployments/download_deployment_instance_heap_dump_responses.go index 4909d396..7cb671c1 100644 --- a/pkg/client/deployments/download_deployment_instance_heap_dump_responses.go +++ b/pkg/client/deployments/download_deployment_instance_heap_dump_responses.go @@ -68,7 +68,8 @@ func NewDownloadDeploymentInstanceHeapDumpOK() *DownloadDeploymentInstanceHeapDu return &DownloadDeploymentInstanceHeapDumpOK{} } -/* DownloadDeploymentInstanceHeapDumpOK describes a response with status code 200, with default header values. +/* +DownloadDeploymentInstanceHeapDumpOK describes a response with status code 200, with default header values. The given instance's heap dump */ @@ -76,9 +77,44 @@ type DownloadDeploymentInstanceHeapDumpOK struct { Payload strfmt.Base64 } +// IsSuccess returns true when this download deployment instance heap dump o k response has a 2xx status code +func (o *DownloadDeploymentInstanceHeapDumpOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this download deployment instance heap dump o k response has a 3xx status code +func (o *DownloadDeploymentInstanceHeapDumpOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this download deployment instance heap dump o k response has a 4xx status code +func (o *DownloadDeploymentInstanceHeapDumpOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this download deployment instance heap dump o k response has a 5xx status code +func (o *DownloadDeploymentInstanceHeapDumpOK) IsServerError() bool { + return false +} + +// IsCode returns true when this download deployment instance heap dump o k response a status code equal to that given +func (o *DownloadDeploymentInstanceHeapDumpOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the download deployment instance heap dump o k response +func (o *DownloadDeploymentInstanceHeapDumpOK) Code() int { + return 200 +} + func (o *DownloadDeploymentInstanceHeapDumpOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpOK %+v", 200, o.Payload) } + +func (o *DownloadDeploymentInstanceHeapDumpOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpOK %+v", 200, o.Payload) +} + func (o *DownloadDeploymentInstanceHeapDumpOK) GetPayload() strfmt.Base64 { return o.Payload } @@ -98,9 +134,11 @@ func NewDownloadDeploymentInstanceHeapDumpNotFound() *DownloadDeploymentInstance return &DownloadDeploymentInstanceHeapDumpNotFound{} } -/* DownloadDeploymentInstanceHeapDumpNotFound describes a response with status code 404, with default header values. +/* + DownloadDeploymentInstanceHeapDumpNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The specified instance cannot be found. (code: `deployments.instance_not_found_error`) * The specified instance does not have a heap dump available to download. (code: `heap_dumps.heap_dump_not_found`) @@ -114,9 +152,44 @@ type DownloadDeploymentInstanceHeapDumpNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this download deployment instance heap dump not found response has a 2xx status code +func (o *DownloadDeploymentInstanceHeapDumpNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this download deployment instance heap dump not found response has a 3xx status code +func (o *DownloadDeploymentInstanceHeapDumpNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this download deployment instance heap dump not found response has a 4xx status code +func (o *DownloadDeploymentInstanceHeapDumpNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this download deployment instance heap dump not found response has a 5xx status code +func (o *DownloadDeploymentInstanceHeapDumpNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this download deployment instance heap dump not found response a status code equal to that given +func (o *DownloadDeploymentInstanceHeapDumpNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the download deployment instance heap dump not found response +func (o *DownloadDeploymentInstanceHeapDumpNotFound) Code() int { + return 404 +} + func (o *DownloadDeploymentInstanceHeapDumpNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpNotFound %+v", 404, o.Payload) } + +func (o *DownloadDeploymentInstanceHeapDumpNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpNotFound %+v", 404, o.Payload) +} + func (o *DownloadDeploymentInstanceHeapDumpNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -145,7 +218,8 @@ func NewDownloadDeploymentInstanceHeapDumpRetryWith() *DownloadDeploymentInstanc return &DownloadDeploymentInstanceHeapDumpRetryWith{} } -/* DownloadDeploymentInstanceHeapDumpRetryWith describes a response with status code 449, with default header values. +/* +DownloadDeploymentInstanceHeapDumpRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -158,9 +232,44 @@ type DownloadDeploymentInstanceHeapDumpRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this download deployment instance heap dump retry with response has a 2xx status code +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this download deployment instance heap dump retry with response has a 3xx status code +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this download deployment instance heap dump retry with response has a 4xx status code +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this download deployment instance heap dump retry with response has a 5xx status code +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this download deployment instance heap dump retry with response a status code equal to that given +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the download deployment instance heap dump retry with response +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) Code() int { + return 449 +} + func (o *DownloadDeploymentInstanceHeapDumpRetryWith) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpRetryWith %+v", 449, o.Payload) } + +func (o *DownloadDeploymentInstanceHeapDumpRetryWith) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download][%d] downloadDeploymentInstanceHeapDumpRetryWith %+v", 449, o.Payload) +} + func (o *DownloadDeploymentInstanceHeapDumpRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/enable_deployment_resource_ccr_parameters.go b/pkg/client/deployments/enable_deployment_resource_ccr_parameters.go index 0543809d..b29fe37a 100644 --- a/pkg/client/deployments/enable_deployment_resource_ccr_parameters.go +++ b/pkg/client/deployments/enable_deployment_resource_ccr_parameters.go @@ -70,10 +70,12 @@ func NewEnableDeploymentResourceCcrParamsWithHTTPClient(client *http.Client) *En } } -/* EnableDeploymentResourceCcrParams contains all the parameters to send to the API endpoint - for the enable deployment resource ccr operation. +/* +EnableDeploymentResourceCcrParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the enable deployment resource ccr operation. + + Typically these are written to a http.Request. */ type EnableDeploymentResourceCcrParams struct { diff --git a/pkg/client/deployments/enable_deployment_resource_ccr_responses.go b/pkg/client/deployments/enable_deployment_resource_ccr_responses.go index e5bbace9..11e68a3b 100644 --- a/pkg/client/deployments/enable_deployment_resource_ccr_responses.go +++ b/pkg/client/deployments/enable_deployment_resource_ccr_responses.go @@ -68,7 +68,8 @@ func NewEnableDeploymentResourceCcrOK() *EnableDeploymentResourceCcrOK { return &EnableDeploymentResourceCcrOK{} } -/* EnableDeploymentResourceCcrOK describes a response with status code 200, with default header values. +/* +EnableDeploymentResourceCcrOK describes a response with status code 200, with default header values. Standard response */ @@ -76,9 +77,44 @@ type EnableDeploymentResourceCcrOK struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this enable deployment resource ccr o k response has a 2xx status code +func (o *EnableDeploymentResourceCcrOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this enable deployment resource ccr o k response has a 3xx status code +func (o *EnableDeploymentResourceCcrOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ccr o k response has a 4xx status code +func (o *EnableDeploymentResourceCcrOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable deployment resource ccr o k response has a 5xx status code +func (o *EnableDeploymentResourceCcrOK) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ccr o k response a status code equal to that given +func (o *EnableDeploymentResourceCcrOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the enable deployment resource ccr o k response +func (o *EnableDeploymentResourceCcrOK) Code() int { + return 200 +} + func (o *EnableDeploymentResourceCcrOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrOK %+v", 200, o.Payload) } + +func (o *EnableDeploymentResourceCcrOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrOK %+v", 200, o.Payload) +} + func (o *EnableDeploymentResourceCcrOK) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewEnableDeploymentResourceCcrNotFound() *EnableDeploymentResourceCcrNotFou return &EnableDeploymentResourceCcrNotFound{} } -/* EnableDeploymentResourceCcrNotFound describes a response with status code 404, with default header values. +/* + EnableDeploymentResourceCcrNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type EnableDeploymentResourceCcrNotFound struct { @@ -114,9 +152,44 @@ type EnableDeploymentResourceCcrNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource ccr not found response has a 2xx status code +func (o *EnableDeploymentResourceCcrNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource ccr not found response has a 3xx status code +func (o *EnableDeploymentResourceCcrNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ccr not found response has a 4xx status code +func (o *EnableDeploymentResourceCcrNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource ccr not found response has a 5xx status code +func (o *EnableDeploymentResourceCcrNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ccr not found response a status code equal to that given +func (o *EnableDeploymentResourceCcrNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the enable deployment resource ccr not found response +func (o *EnableDeploymentResourceCcrNotFound) Code() int { + return 404 +} + func (o *EnableDeploymentResourceCcrNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrNotFound %+v", 404, o.Payload) } + +func (o *EnableDeploymentResourceCcrNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrNotFound %+v", 404, o.Payload) +} + func (o *EnableDeploymentResourceCcrNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -145,7 +218,8 @@ func NewEnableDeploymentResourceCcrRetryWith() *EnableDeploymentResourceCcrRetry return &EnableDeploymentResourceCcrRetryWith{} } -/* EnableDeploymentResourceCcrRetryWith describes a response with status code 449, with default header values. +/* +EnableDeploymentResourceCcrRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -158,9 +232,44 @@ type EnableDeploymentResourceCcrRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource ccr retry with response has a 2xx status code +func (o *EnableDeploymentResourceCcrRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource ccr retry with response has a 3xx status code +func (o *EnableDeploymentResourceCcrRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ccr retry with response has a 4xx status code +func (o *EnableDeploymentResourceCcrRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource ccr retry with response has a 5xx status code +func (o *EnableDeploymentResourceCcrRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ccr retry with response a status code equal to that given +func (o *EnableDeploymentResourceCcrRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the enable deployment resource ccr retry with response +func (o *EnableDeploymentResourceCcrRetryWith) Code() int { + return 449 +} + func (o *EnableDeploymentResourceCcrRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrRetryWith %+v", 449, o.Payload) } + +func (o *EnableDeploymentResourceCcrRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr][%d] enableDeploymentResourceCcrRetryWith %+v", 449, o.Payload) +} + func (o *EnableDeploymentResourceCcrRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/enable_deployment_resource_ilm_parameters.go b/pkg/client/deployments/enable_deployment_resource_ilm_parameters.go index c5f5abdf..43bf4edc 100644 --- a/pkg/client/deployments/enable_deployment_resource_ilm_parameters.go +++ b/pkg/client/deployments/enable_deployment_resource_ilm_parameters.go @@ -72,10 +72,12 @@ func NewEnableDeploymentResourceIlmParamsWithHTTPClient(client *http.Client) *En } } -/* EnableDeploymentResourceIlmParams contains all the parameters to send to the API endpoint - for the enable deployment resource ilm operation. +/* +EnableDeploymentResourceIlmParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the enable deployment resource ilm operation. + + Typically these are written to a http.Request. */ type EnableDeploymentResourceIlmParams struct { diff --git a/pkg/client/deployments/enable_deployment_resource_ilm_responses.go b/pkg/client/deployments/enable_deployment_resource_ilm_responses.go index efd1d647..04c7d1c1 100644 --- a/pkg/client/deployments/enable_deployment_resource_ilm_responses.go +++ b/pkg/client/deployments/enable_deployment_resource_ilm_responses.go @@ -74,7 +74,8 @@ func NewEnableDeploymentResourceIlmOK() *EnableDeploymentResourceIlmOK { return &EnableDeploymentResourceIlmOK{} } -/* EnableDeploymentResourceIlmOK describes a response with status code 200, with default header values. +/* +EnableDeploymentResourceIlmOK describes a response with status code 200, with default header values. Standard response */ @@ -82,9 +83,44 @@ type EnableDeploymentResourceIlmOK struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this enable deployment resource ilm o k response has a 2xx status code +func (o *EnableDeploymentResourceIlmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this enable deployment resource ilm o k response has a 3xx status code +func (o *EnableDeploymentResourceIlmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ilm o k response has a 4xx status code +func (o *EnableDeploymentResourceIlmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable deployment resource ilm o k response has a 5xx status code +func (o *EnableDeploymentResourceIlmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ilm o k response a status code equal to that given +func (o *EnableDeploymentResourceIlmOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the enable deployment resource ilm o k response +func (o *EnableDeploymentResourceIlmOK) Code() int { + return 200 +} + func (o *EnableDeploymentResourceIlmOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmOK %+v", 200, o.Payload) } + +func (o *EnableDeploymentResourceIlmOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmOK %+v", 200, o.Payload) +} + func (o *EnableDeploymentResourceIlmOK) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewEnableDeploymentResourceIlmNotFound() *EnableDeploymentResourceIlmNotFou return &EnableDeploymentResourceIlmNotFound{} } -/* EnableDeploymentResourceIlmNotFound describes a response with status code 404, with default header values. +/* + EnableDeploymentResourceIlmNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type EnableDeploymentResourceIlmNotFound struct { @@ -120,9 +158,44 @@ type EnableDeploymentResourceIlmNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource ilm not found response has a 2xx status code +func (o *EnableDeploymentResourceIlmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource ilm not found response has a 3xx status code +func (o *EnableDeploymentResourceIlmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ilm not found response has a 4xx status code +func (o *EnableDeploymentResourceIlmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource ilm not found response has a 5xx status code +func (o *EnableDeploymentResourceIlmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ilm not found response a status code equal to that given +func (o *EnableDeploymentResourceIlmNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the enable deployment resource ilm not found response +func (o *EnableDeploymentResourceIlmNotFound) Code() int { + return 404 +} + func (o *EnableDeploymentResourceIlmNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmNotFound %+v", 404, o.Payload) } + +func (o *EnableDeploymentResourceIlmNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmNotFound %+v", 404, o.Payload) +} + func (o *EnableDeploymentResourceIlmNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewEnableDeploymentResourceIlmRetryWith() *EnableDeploymentResourceIlmRetry return &EnableDeploymentResourceIlmRetryWith{} } -/* EnableDeploymentResourceIlmRetryWith describes a response with status code 449, with default header values. +/* +EnableDeploymentResourceIlmRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -164,9 +238,44 @@ type EnableDeploymentResourceIlmRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource ilm retry with response has a 2xx status code +func (o *EnableDeploymentResourceIlmRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource ilm retry with response has a 3xx status code +func (o *EnableDeploymentResourceIlmRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ilm retry with response has a 4xx status code +func (o *EnableDeploymentResourceIlmRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource ilm retry with response has a 5xx status code +func (o *EnableDeploymentResourceIlmRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource ilm retry with response a status code equal to that given +func (o *EnableDeploymentResourceIlmRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the enable deployment resource ilm retry with response +func (o *EnableDeploymentResourceIlmRetryWith) Code() int { + return 449 +} + func (o *EnableDeploymentResourceIlmRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmRetryWith %+v", 449, o.Payload) } + +func (o *EnableDeploymentResourceIlmRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmRetryWith %+v", 449, o.Payload) +} + func (o *EnableDeploymentResourceIlmRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewEnableDeploymentResourceIlmInternalServerError() *EnableDeploymentResour return &EnableDeploymentResourceIlmInternalServerError{} } -/* EnableDeploymentResourceIlmInternalServerError describes a response with status code 500, with default header values. +/* +EnableDeploymentResourceIlmInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -208,9 +318,44 @@ type EnableDeploymentResourceIlmInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource ilm internal server error response has a 2xx status code +func (o *EnableDeploymentResourceIlmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource ilm internal server error response has a 3xx status code +func (o *EnableDeploymentResourceIlmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource ilm internal server error response has a 4xx status code +func (o *EnableDeploymentResourceIlmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable deployment resource ilm internal server error response has a 5xx status code +func (o *EnableDeploymentResourceIlmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this enable deployment resource ilm internal server error response a status code equal to that given +func (o *EnableDeploymentResourceIlmInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the enable deployment resource ilm internal server error response +func (o *EnableDeploymentResourceIlmInternalServerError) Code() int { + return 500 +} + func (o *EnableDeploymentResourceIlmInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmInternalServerError %+v", 500, o.Payload) } + +func (o *EnableDeploymentResourceIlmInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm][%d] enableDeploymentResourceIlmInternalServerError %+v", 500, o.Payload) +} + func (o *EnableDeploymentResourceIlmInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/enable_deployment_resource_slm_parameters.go b/pkg/client/deployments/enable_deployment_resource_slm_parameters.go index 049da8bc..7c009a88 100644 --- a/pkg/client/deployments/enable_deployment_resource_slm_parameters.go +++ b/pkg/client/deployments/enable_deployment_resource_slm_parameters.go @@ -70,10 +70,12 @@ func NewEnableDeploymentResourceSlmParamsWithHTTPClient(client *http.Client) *En } } -/* EnableDeploymentResourceSlmParams contains all the parameters to send to the API endpoint - for the enable deployment resource slm operation. +/* +EnableDeploymentResourceSlmParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the enable deployment resource slm operation. + + Typically these are written to a http.Request. */ type EnableDeploymentResourceSlmParams struct { diff --git a/pkg/client/deployments/enable_deployment_resource_slm_responses.go b/pkg/client/deployments/enable_deployment_resource_slm_responses.go index 39bdfff8..41bd9b59 100644 --- a/pkg/client/deployments/enable_deployment_resource_slm_responses.go +++ b/pkg/client/deployments/enable_deployment_resource_slm_responses.go @@ -74,7 +74,8 @@ func NewEnableDeploymentResourceSlmOK() *EnableDeploymentResourceSlmOK { return &EnableDeploymentResourceSlmOK{} } -/* EnableDeploymentResourceSlmOK describes a response with status code 200, with default header values. +/* +EnableDeploymentResourceSlmOK describes a response with status code 200, with default header values. Standard response */ @@ -82,9 +83,44 @@ type EnableDeploymentResourceSlmOK struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this enable deployment resource slm o k response has a 2xx status code +func (o *EnableDeploymentResourceSlmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this enable deployment resource slm o k response has a 3xx status code +func (o *EnableDeploymentResourceSlmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource slm o k response has a 4xx status code +func (o *EnableDeploymentResourceSlmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable deployment resource slm o k response has a 5xx status code +func (o *EnableDeploymentResourceSlmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource slm o k response a status code equal to that given +func (o *EnableDeploymentResourceSlmOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the enable deployment resource slm o k response +func (o *EnableDeploymentResourceSlmOK) Code() int { + return 200 +} + func (o *EnableDeploymentResourceSlmOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmOK %+v", 200, o.Payload) } + +func (o *EnableDeploymentResourceSlmOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmOK %+v", 200, o.Payload) +} + func (o *EnableDeploymentResourceSlmOK) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewEnableDeploymentResourceSlmNotFound() *EnableDeploymentResourceSlmNotFou return &EnableDeploymentResourceSlmNotFound{} } -/* EnableDeploymentResourceSlmNotFound describes a response with status code 404, with default header values. +/* + EnableDeploymentResourceSlmNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type EnableDeploymentResourceSlmNotFound struct { @@ -120,9 +158,44 @@ type EnableDeploymentResourceSlmNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource slm not found response has a 2xx status code +func (o *EnableDeploymentResourceSlmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource slm not found response has a 3xx status code +func (o *EnableDeploymentResourceSlmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource slm not found response has a 4xx status code +func (o *EnableDeploymentResourceSlmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource slm not found response has a 5xx status code +func (o *EnableDeploymentResourceSlmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource slm not found response a status code equal to that given +func (o *EnableDeploymentResourceSlmNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the enable deployment resource slm not found response +func (o *EnableDeploymentResourceSlmNotFound) Code() int { + return 404 +} + func (o *EnableDeploymentResourceSlmNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmNotFound %+v", 404, o.Payload) } + +func (o *EnableDeploymentResourceSlmNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmNotFound %+v", 404, o.Payload) +} + func (o *EnableDeploymentResourceSlmNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewEnableDeploymentResourceSlmRetryWith() *EnableDeploymentResourceSlmRetry return &EnableDeploymentResourceSlmRetryWith{} } -/* EnableDeploymentResourceSlmRetryWith describes a response with status code 449, with default header values. +/* +EnableDeploymentResourceSlmRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -164,9 +238,44 @@ type EnableDeploymentResourceSlmRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource slm retry with response has a 2xx status code +func (o *EnableDeploymentResourceSlmRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource slm retry with response has a 3xx status code +func (o *EnableDeploymentResourceSlmRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource slm retry with response has a 4xx status code +func (o *EnableDeploymentResourceSlmRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this enable deployment resource slm retry with response has a 5xx status code +func (o *EnableDeploymentResourceSlmRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this enable deployment resource slm retry with response a status code equal to that given +func (o *EnableDeploymentResourceSlmRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the enable deployment resource slm retry with response +func (o *EnableDeploymentResourceSlmRetryWith) Code() int { + return 449 +} + func (o *EnableDeploymentResourceSlmRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmRetryWith %+v", 449, o.Payload) } + +func (o *EnableDeploymentResourceSlmRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmRetryWith %+v", 449, o.Payload) +} + func (o *EnableDeploymentResourceSlmRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewEnableDeploymentResourceSlmInternalServerError() *EnableDeploymentResour return &EnableDeploymentResourceSlmInternalServerError{} } -/* EnableDeploymentResourceSlmInternalServerError describes a response with status code 500, with default header values. +/* +EnableDeploymentResourceSlmInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -208,9 +318,44 @@ type EnableDeploymentResourceSlmInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this enable deployment resource slm internal server error response has a 2xx status code +func (o *EnableDeploymentResourceSlmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this enable deployment resource slm internal server error response has a 3xx status code +func (o *EnableDeploymentResourceSlmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this enable deployment resource slm internal server error response has a 4xx status code +func (o *EnableDeploymentResourceSlmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this enable deployment resource slm internal server error response has a 5xx status code +func (o *EnableDeploymentResourceSlmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this enable deployment resource slm internal server error response a status code equal to that given +func (o *EnableDeploymentResourceSlmInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the enable deployment resource slm internal server error response +func (o *EnableDeploymentResourceSlmInternalServerError) Code() int { + return 500 +} + func (o *EnableDeploymentResourceSlmInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmInternalServerError %+v", 500, o.Payload) } + +func (o *EnableDeploymentResourceSlmInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm][%d] enableDeploymentResourceSlmInternalServerError %+v", 500, o.Payload) +} + func (o *EnableDeploymentResourceSlmInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_appsearch_read_only_mode_parameters.go b/pkg/client/deployments/get_appsearch_read_only_mode_parameters.go index 4c984a35..ddd9bcc7 100644 --- a/pkg/client/deployments/get_appsearch_read_only_mode_parameters.go +++ b/pkg/client/deployments/get_appsearch_read_only_mode_parameters.go @@ -69,10 +69,12 @@ func NewGetAppsearchReadOnlyModeParamsWithHTTPClient(client *http.Client) *GetAp } } -/* GetAppsearchReadOnlyModeParams contains all the parameters to send to the API endpoint - for the get appsearch read only mode operation. +/* +GetAppsearchReadOnlyModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get appsearch read only mode operation. + + Typically these are written to a http.Request. */ type GetAppsearchReadOnlyModeParams struct { diff --git a/pkg/client/deployments/get_appsearch_read_only_mode_responses.go b/pkg/client/deployments/get_appsearch_read_only_mode_responses.go index c854674a..895c3eff 100644 --- a/pkg/client/deployments/get_appsearch_read_only_mode_responses.go +++ b/pkg/client/deployments/get_appsearch_read_only_mode_responses.go @@ -68,7 +68,8 @@ func NewGetAppsearchReadOnlyModeOK() *GetAppsearchReadOnlyModeOK { return &GetAppsearchReadOnlyModeOK{} } -/* GetAppsearchReadOnlyModeOK describes a response with status code 200, with default header values. +/* +GetAppsearchReadOnlyModeOK describes a response with status code 200, with default header values. Standard response */ @@ -76,9 +77,44 @@ type GetAppsearchReadOnlyModeOK struct { Payload *models.ReadOnlyResponse } +// IsSuccess returns true when this get appsearch read only mode o k response has a 2xx status code +func (o *GetAppsearchReadOnlyModeOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get appsearch read only mode o k response has a 3xx status code +func (o *GetAppsearchReadOnlyModeOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get appsearch read only mode o k response has a 4xx status code +func (o *GetAppsearchReadOnlyModeOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get appsearch read only mode o k response has a 5xx status code +func (o *GetAppsearchReadOnlyModeOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get appsearch read only mode o k response a status code equal to that given +func (o *GetAppsearchReadOnlyModeOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get appsearch read only mode o k response +func (o *GetAppsearchReadOnlyModeOK) Code() int { + return 200 +} + func (o *GetAppsearchReadOnlyModeOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeOK %+v", 200, o.Payload) } + +func (o *GetAppsearchReadOnlyModeOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeOK %+v", 200, o.Payload) +} + func (o *GetAppsearchReadOnlyModeOK) GetPayload() *models.ReadOnlyResponse { return o.Payload } @@ -100,7 +136,8 @@ func NewGetAppsearchReadOnlyModeNotFound() *GetAppsearchReadOnlyModeNotFound { return &GetAppsearchReadOnlyModeNotFound{} } -/* GetAppsearchReadOnlyModeNotFound describes a response with status code 404, with default header values. +/* +GetAppsearchReadOnlyModeNotFound describes a response with status code 404, with default header values. The Resource specified by ref_id cannot be found. (code: `deployments.deployment_resource_not_found`) */ @@ -113,9 +150,44 @@ type GetAppsearchReadOnlyModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get appsearch read only mode not found response has a 2xx status code +func (o *GetAppsearchReadOnlyModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get appsearch read only mode not found response has a 3xx status code +func (o *GetAppsearchReadOnlyModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get appsearch read only mode not found response has a 4xx status code +func (o *GetAppsearchReadOnlyModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get appsearch read only mode not found response has a 5xx status code +func (o *GetAppsearchReadOnlyModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get appsearch read only mode not found response a status code equal to that given +func (o *GetAppsearchReadOnlyModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get appsearch read only mode not found response +func (o *GetAppsearchReadOnlyModeNotFound) Code() int { + return 404 +} + func (o *GetAppsearchReadOnlyModeNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeNotFound %+v", 404, o.Payload) } + +func (o *GetAppsearchReadOnlyModeNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeNotFound %+v", 404, o.Payload) +} + func (o *GetAppsearchReadOnlyModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetAppsearchReadOnlyModeInternalServerError() *GetAppsearchReadOnlyModeI return &GetAppsearchReadOnlyModeInternalServerError{} } -/* GetAppsearchReadOnlyModeInternalServerError describes a response with status code 500, with default header values. +/* +GetAppsearchReadOnlyModeInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetAppsearchReadOnlyModeInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get appsearch read only mode internal server error response has a 2xx status code +func (o *GetAppsearchReadOnlyModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get appsearch read only mode internal server error response has a 3xx status code +func (o *GetAppsearchReadOnlyModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get appsearch read only mode internal server error response has a 4xx status code +func (o *GetAppsearchReadOnlyModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get appsearch read only mode internal server error response has a 5xx status code +func (o *GetAppsearchReadOnlyModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get appsearch read only mode internal server error response a status code equal to that given +func (o *GetAppsearchReadOnlyModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get appsearch read only mode internal server error response +func (o *GetAppsearchReadOnlyModeInternalServerError) Code() int { + return 500 +} + func (o *GetAppsearchReadOnlyModeInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeInternalServerError %+v", 500, o.Payload) } + +func (o *GetAppsearchReadOnlyModeInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] getAppsearchReadOnlyModeInternalServerError %+v", 500, o.Payload) +} + func (o *GetAppsearchReadOnlyModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_apm_resource_info_parameters.go b/pkg/client/deployments/get_deployment_apm_resource_info_parameters.go index 005369cc..3d643ce5 100644 --- a/pkg/client/deployments/get_deployment_apm_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_apm_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentApmResourceInfoParamsWithHTTPClient(client *http.Client) *G } } -/* GetDeploymentApmResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment apm resource info operation. +/* +GetDeploymentApmResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment apm resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentApmResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_apm_resource_info_responses.go b/pkg/client/deployments/get_deployment_apm_resource_info_responses.go index c3b8fe0e..2cfb9506 100644 --- a/pkg/client/deployments/get_deployment_apm_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_apm_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentApmResourceInfoOK() *GetDeploymentApmResourceInfoOK { return &GetDeploymentApmResourceInfoOK{} } -/* GetDeploymentApmResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentApmResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentApmResourceInfoOK struct { Payload *models.ApmResourceInfo } +// IsSuccess returns true when this get deployment apm resource info o k response has a 2xx status code +func (o *GetDeploymentApmResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment apm resource info o k response has a 3xx status code +func (o *GetDeploymentApmResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment apm resource info o k response has a 4xx status code +func (o *GetDeploymentApmResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment apm resource info o k response has a 5xx status code +func (o *GetDeploymentApmResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment apm resource info o k response a status code equal to that given +func (o *GetDeploymentApmResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment apm resource info o k response +func (o *GetDeploymentApmResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentApmResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentApmResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentApmResourceInfoOK) GetPayload() *models.ApmResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentApmResourceInfoNotFound() *GetDeploymentApmResourceInfoNotF return &GetDeploymentApmResourceInfoNotFound{} } -/* GetDeploymentApmResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentApmResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentApmResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment apm resource info not found response has a 2xx status code +func (o *GetDeploymentApmResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment apm resource info not found response has a 3xx status code +func (o *GetDeploymentApmResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment apm resource info not found response has a 4xx status code +func (o *GetDeploymentApmResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment apm resource info not found response has a 5xx status code +func (o *GetDeploymentApmResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment apm resource info not found response a status code equal to that given +func (o *GetDeploymentApmResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment apm resource info not found response +func (o *GetDeploymentApmResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentApmResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentApmResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentApmResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentApmResourceInfoInternalServerError() *GetDeploymentApmResou return &GetDeploymentApmResourceInfoInternalServerError{} } -/* GetDeploymentApmResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentApmResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentApmResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment apm resource info internal server error response has a 2xx status code +func (o *GetDeploymentApmResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment apm resource info internal server error response has a 3xx status code +func (o *GetDeploymentApmResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment apm resource info internal server error response has a 4xx status code +func (o *GetDeploymentApmResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment apm resource info internal server error response has a 5xx status code +func (o *GetDeploymentApmResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment apm resource info internal server error response a status code equal to that given +func (o *GetDeploymentApmResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment apm resource info internal server error response +func (o *GetDeploymentApmResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentApmResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentApmResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/apm/{ref_id}][%d] getDeploymentApmResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentApmResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_appsearch_resource_info_parameters.go b/pkg/client/deployments/get_deployment_appsearch_resource_info_parameters.go index da4fc032..4e432f76 100644 --- a/pkg/client/deployments/get_deployment_appsearch_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_appsearch_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentAppsearchResourceInfoParamsWithHTTPClient(client *http.Clie } } -/* GetDeploymentAppsearchResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment appsearch resource info operation. +/* +GetDeploymentAppsearchResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment appsearch resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentAppsearchResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_appsearch_resource_info_responses.go b/pkg/client/deployments/get_deployment_appsearch_resource_info_responses.go index a00b8b49..0334bafa 100644 --- a/pkg/client/deployments/get_deployment_appsearch_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_appsearch_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentAppsearchResourceInfoOK() *GetDeploymentAppsearchResourceIn return &GetDeploymentAppsearchResourceInfoOK{} } -/* GetDeploymentAppsearchResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentAppsearchResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentAppsearchResourceInfoOK struct { Payload *models.AppSearchResourceInfo } +// IsSuccess returns true when this get deployment appsearch resource info o k response has a 2xx status code +func (o *GetDeploymentAppsearchResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment appsearch resource info o k response has a 3xx status code +func (o *GetDeploymentAppsearchResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment appsearch resource info o k response has a 4xx status code +func (o *GetDeploymentAppsearchResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment appsearch resource info o k response has a 5xx status code +func (o *GetDeploymentAppsearchResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment appsearch resource info o k response a status code equal to that given +func (o *GetDeploymentAppsearchResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment appsearch resource info o k response +func (o *GetDeploymentAppsearchResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentAppsearchResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentAppsearchResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentAppsearchResourceInfoOK) GetPayload() *models.AppSearchResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentAppsearchResourceInfoNotFound() *GetDeploymentAppsearchReso return &GetDeploymentAppsearchResourceInfoNotFound{} } -/* GetDeploymentAppsearchResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentAppsearchResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentAppsearchResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment appsearch resource info not found response has a 2xx status code +func (o *GetDeploymentAppsearchResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment appsearch resource info not found response has a 3xx status code +func (o *GetDeploymentAppsearchResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment appsearch resource info not found response has a 4xx status code +func (o *GetDeploymentAppsearchResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment appsearch resource info not found response has a 5xx status code +func (o *GetDeploymentAppsearchResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment appsearch resource info not found response a status code equal to that given +func (o *GetDeploymentAppsearchResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment appsearch resource info not found response +func (o *GetDeploymentAppsearchResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentAppsearchResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentAppsearchResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentAppsearchResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentAppsearchResourceInfoInternalServerError() *GetDeploymentAp return &GetDeploymentAppsearchResourceInfoInternalServerError{} } -/* GetDeploymentAppsearchResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentAppsearchResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentAppsearchResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment appsearch resource info internal server error response has a 2xx status code +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment appsearch resource info internal server error response has a 3xx status code +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment appsearch resource info internal server error response has a 4xx status code +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment appsearch resource info internal server error response has a 5xx status code +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment appsearch resource info internal server error response a status code equal to that given +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment appsearch resource info internal server error response +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentAppsearchResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentAppsearchResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/appsearch/{ref_id}][%d] getDeploymentAppsearchResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentAppsearchResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_certificate_authority_parameters.go b/pkg/client/deployments/get_deployment_certificate_authority_parameters.go index 999feac7..513dc100 100644 --- a/pkg/client/deployments/get_deployment_certificate_authority_parameters.go +++ b/pkg/client/deployments/get_deployment_certificate_authority_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentCertificateAuthorityParamsWithHTTPClient(client *http.Clien } } -/* GetDeploymentCertificateAuthorityParams contains all the parameters to send to the API endpoint - for the get deployment certificate authority operation. +/* +GetDeploymentCertificateAuthorityParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment certificate authority operation. + + Typically these are written to a http.Request. */ type GetDeploymentCertificateAuthorityParams struct { diff --git a/pkg/client/deployments/get_deployment_certificate_authority_responses.go b/pkg/client/deployments/get_deployment_certificate_authority_responses.go index d704497d..d854bbf4 100644 --- a/pkg/client/deployments/get_deployment_certificate_authority_responses.go +++ b/pkg/client/deployments/get_deployment_certificate_authority_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentCertificateAuthorityOK() *GetDeploymentCertificateAuthority return &GetDeploymentCertificateAuthorityOK{} } -/* GetDeploymentCertificateAuthorityOK describes a response with status code 200, with default header values. +/* +GetDeploymentCertificateAuthorityOK describes a response with status code 200, with default header values. The certificate authority used to sign the certificates of this deployment */ @@ -70,9 +71,44 @@ type GetDeploymentCertificateAuthorityOK struct { Payload *models.CertificateAuthority } +// IsSuccess returns true when this get deployment certificate authority o k response has a 2xx status code +func (o *GetDeploymentCertificateAuthorityOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment certificate authority o k response has a 3xx status code +func (o *GetDeploymentCertificateAuthorityOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment certificate authority o k response has a 4xx status code +func (o *GetDeploymentCertificateAuthorityOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment certificate authority o k response has a 5xx status code +func (o *GetDeploymentCertificateAuthorityOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment certificate authority o k response a status code equal to that given +func (o *GetDeploymentCertificateAuthorityOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment certificate authority o k response +func (o *GetDeploymentCertificateAuthorityOK) Code() int { + return 200 +} + func (o *GetDeploymentCertificateAuthorityOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/certificate-authority][%d] getDeploymentCertificateAuthorityOK %+v", 200, o.Payload) } + +func (o *GetDeploymentCertificateAuthorityOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/certificate-authority][%d] getDeploymentCertificateAuthorityOK %+v", 200, o.Payload) +} + func (o *GetDeploymentCertificateAuthorityOK) GetPayload() *models.CertificateAuthority { return o.Payload } @@ -94,9 +130,11 @@ func NewGetDeploymentCertificateAuthorityNotFound() *GetDeploymentCertificateAut return &GetDeploymentCertificateAuthorityNotFound{} } -/* GetDeploymentCertificateAuthorityNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentCertificateAuthorityNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Elasticsearch Resource cannot be found. (code: `deployments.deployment_resource_not_found`) */ type GetDeploymentCertificateAuthorityNotFound struct { @@ -108,9 +146,44 @@ type GetDeploymentCertificateAuthorityNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment certificate authority not found response has a 2xx status code +func (o *GetDeploymentCertificateAuthorityNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment certificate authority not found response has a 3xx status code +func (o *GetDeploymentCertificateAuthorityNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment certificate authority not found response has a 4xx status code +func (o *GetDeploymentCertificateAuthorityNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment certificate authority not found response has a 5xx status code +func (o *GetDeploymentCertificateAuthorityNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment certificate authority not found response a status code equal to that given +func (o *GetDeploymentCertificateAuthorityNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment certificate authority not found response +func (o *GetDeploymentCertificateAuthorityNotFound) Code() int { + return 404 +} + func (o *GetDeploymentCertificateAuthorityNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/certificate-authority][%d] getDeploymentCertificateAuthorityNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentCertificateAuthorityNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/certificate-authority][%d] getDeploymentCertificateAuthorityNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentCertificateAuthorityNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_enterprise_search_resource_info_parameters.go b/pkg/client/deployments/get_deployment_enterprise_search_resource_info_parameters.go index acf50414..91ad13bd 100644 --- a/pkg/client/deployments/get_deployment_enterprise_search_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_enterprise_search_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentEnterpriseSearchResourceInfoParamsWithHTTPClient(client *ht } } -/* GetDeploymentEnterpriseSearchResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment enterprise search resource info operation. +/* +GetDeploymentEnterpriseSearchResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment enterprise search resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentEnterpriseSearchResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_enterprise_search_resource_info_responses.go b/pkg/client/deployments/get_deployment_enterprise_search_resource_info_responses.go index 91cf650b..cd9eda1b 100644 --- a/pkg/client/deployments/get_deployment_enterprise_search_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_enterprise_search_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentEnterpriseSearchResourceInfoOK() *GetDeploymentEnterpriseSe return &GetDeploymentEnterpriseSearchResourceInfoOK{} } -/* GetDeploymentEnterpriseSearchResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentEnterpriseSearchResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentEnterpriseSearchResourceInfoOK struct { Payload *models.EnterpriseSearchResourceInfo } +// IsSuccess returns true when this get deployment enterprise search resource info o k response has a 2xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment enterprise search resource info o k response has a 3xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment enterprise search resource info o k response has a 4xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment enterprise search resource info o k response has a 5xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment enterprise search resource info o k response a status code equal to that given +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment enterprise search resource info o k response +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentEnterpriseSearchResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentEnterpriseSearchResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentEnterpriseSearchResourceInfoOK) GetPayload() *models.EnterpriseSearchResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentEnterpriseSearchResourceInfoNotFound() *GetDeploymentEnterp return &GetDeploymentEnterpriseSearchResourceInfoNotFound{} } -/* GetDeploymentEnterpriseSearchResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentEnterpriseSearchResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentEnterpriseSearchResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment enterprise search resource info not found response has a 2xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment enterprise search resource info not found response has a 3xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment enterprise search resource info not found response has a 4xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment enterprise search resource info not found response has a 5xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment enterprise search resource info not found response a status code equal to that given +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment enterprise search resource info not found response +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentEnterpriseSearchResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentEnterpriseSearchResourceInfoInternalServerError() *GetDeplo return &GetDeploymentEnterpriseSearchResourceInfoInternalServerError{} } -/* GetDeploymentEnterpriseSearchResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentEnterpriseSearchResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentEnterpriseSearchResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment enterprise search resource info internal server error response has a 2xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment enterprise search resource info internal server error response has a 3xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment enterprise search resource info internal server error response has a 4xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment enterprise search resource info internal server error response has a 5xx status code +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment enterprise search resource info internal server error response a status code equal to that given +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment enterprise search resource info internal server error response +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/enterprise_search/{ref_id}][%d] getDeploymentEnterpriseSearchResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentEnterpriseSearchResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_parameters.go b/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_parameters.go index 4139f8fb..0950feae 100644 --- a/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_parameters.go +++ b/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_parameters.go @@ -71,10 +71,12 @@ func NewGetDeploymentEsResourceEligibleRemoteClustersParamsWithHTTPClient(client } } -/* GetDeploymentEsResourceEligibleRemoteClustersParams contains all the parameters to send to the API endpoint - for the get deployment es resource eligible remote clusters operation. +/* +GetDeploymentEsResourceEligibleRemoteClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment es resource eligible remote clusters operation. + + Typically these are written to a http.Request. */ type GetDeploymentEsResourceEligibleRemoteClustersParams struct { diff --git a/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_responses.go b/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_responses.go index 9b728444..9751c330 100644 --- a/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_responses.go +++ b/pkg/client/deployments/get_deployment_es_resource_eligible_remote_clusters_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentEsResourceEligibleRemoteClustersOK() *GetDeploymentEsResour return &GetDeploymentEsResourceEligibleRemoteClustersOK{} } -/* GetDeploymentEsResourceEligibleRemoteClustersOK describes a response with status code 200, with default header values. +/* +GetDeploymentEsResourceEligibleRemoteClustersOK describes a response with status code 200, with default header values. List of deployments which contains eligible remote clusters for the resource */ @@ -76,9 +77,44 @@ type GetDeploymentEsResourceEligibleRemoteClustersOK struct { Payload *models.DeploymentsSearchResponse } +// IsSuccess returns true when this get deployment es resource eligible remote clusters o k response has a 2xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment es resource eligible remote clusters o k response has a 3xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource eligible remote clusters o k response has a 4xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource eligible remote clusters o k response has a 5xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource eligible remote clusters o k response a status code equal to that given +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment es resource eligible remote clusters o k response +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) Code() int { + return 200 +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersOK %+v", 200, o.Payload) } + +func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersOK %+v", 200, o.Payload) +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersOK) GetPayload() *models.DeploymentsSearchResponse { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentEsResourceEligibleRemoteClustersBadRequest() *GetDeployment return &GetDeploymentEsResourceEligibleRemoteClustersBadRequest{} } -/* GetDeploymentEsResourceEligibleRemoteClustersBadRequest describes a response with status code 400, with default header values. +/* +GetDeploymentEsResourceEligibleRemoteClustersBadRequest describes a response with status code 400, with default header values. The resource specified doesn't yet have a valid version for the current plan or the pending plan. (code: `deployments.resource_does_not_have_a_valid_version`) */ @@ -113,9 +150,44 @@ type GetDeploymentEsResourceEligibleRemoteClustersBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource eligible remote clusters bad request response has a 2xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource eligible remote clusters bad request response has a 3xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource eligible remote clusters bad request response has a 4xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource eligible remote clusters bad request response has a 5xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource eligible remote clusters bad request response a status code equal to that given +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get deployment es resource eligible remote clusters bad request response +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) Code() int { + return 400 +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersBadRequest %+v", 400, o.Payload) } + +func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersBadRequest %+v", 400, o.Payload) +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,9 +216,11 @@ func NewGetDeploymentEsResourceEligibleRemoteClustersNotFound() *GetDeploymentEs return &GetDeploymentEsResourceEligibleRemoteClustersNotFound{} } -/* GetDeploymentEsResourceEligibleRemoteClustersNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentEsResourceEligibleRemoteClustersNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type GetDeploymentEsResourceEligibleRemoteClustersNotFound struct { @@ -158,9 +232,44 @@ type GetDeploymentEsResourceEligibleRemoteClustersNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource eligible remote clusters not found response has a 2xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource eligible remote clusters not found response has a 3xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource eligible remote clusters not found response has a 4xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource eligible remote clusters not found response has a 5xx status code +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource eligible remote clusters not found response a status code equal to that given +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment es resource eligible remote clusters not found response +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) Code() int { + return 404 +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters][%d] getDeploymentEsResourceEligibleRemoteClustersNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentEsResourceEligibleRemoteClustersNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_es_resource_info_parameters.go b/pkg/client/deployments/get_deployment_es_resource_info_parameters.go index 0b5e410e..3f5a4e19 100644 --- a/pkg/client/deployments/get_deployment_es_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_es_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentEsResourceInfoParamsWithHTTPClient(client *http.Client) *Ge } } -/* GetDeploymentEsResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment es resource info operation. +/* +GetDeploymentEsResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment es resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentEsResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_es_resource_info_responses.go b/pkg/client/deployments/get_deployment_es_resource_info_responses.go index 88c77373..3ef74386 100644 --- a/pkg/client/deployments/get_deployment_es_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_es_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentEsResourceInfoOK() *GetDeploymentEsResourceInfoOK { return &GetDeploymentEsResourceInfoOK{} } -/* GetDeploymentEsResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentEsResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentEsResourceInfoOK struct { Payload *models.ElasticsearchResourceInfo } +// IsSuccess returns true when this get deployment es resource info o k response has a 2xx status code +func (o *GetDeploymentEsResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment es resource info o k response has a 3xx status code +func (o *GetDeploymentEsResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource info o k response has a 4xx status code +func (o *GetDeploymentEsResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource info o k response has a 5xx status code +func (o *GetDeploymentEsResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource info o k response a status code equal to that given +func (o *GetDeploymentEsResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment es resource info o k response +func (o *GetDeploymentEsResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentEsResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentEsResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentEsResourceInfoOK) GetPayload() *models.ElasticsearchResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentEsResourceInfoNotFound() *GetDeploymentEsResourceInfoNotFou return &GetDeploymentEsResourceInfoNotFound{} } -/* GetDeploymentEsResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentEsResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentEsResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource info not found response has a 2xx status code +func (o *GetDeploymentEsResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource info not found response has a 3xx status code +func (o *GetDeploymentEsResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource info not found response has a 4xx status code +func (o *GetDeploymentEsResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource info not found response has a 5xx status code +func (o *GetDeploymentEsResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource info not found response a status code equal to that given +func (o *GetDeploymentEsResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment es resource info not found response +func (o *GetDeploymentEsResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentEsResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentEsResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentEsResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentEsResourceInfoInternalServerError() *GetDeploymentEsResourc return &GetDeploymentEsResourceInfoInternalServerError{} } -/* GetDeploymentEsResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentEsResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentEsResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource info internal server error response has a 2xx status code +func (o *GetDeploymentEsResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource info internal server error response has a 3xx status code +func (o *GetDeploymentEsResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource info internal server error response has a 4xx status code +func (o *GetDeploymentEsResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource info internal server error response has a 5xx status code +func (o *GetDeploymentEsResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment es resource info internal server error response a status code equal to that given +func (o *GetDeploymentEsResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment es resource info internal server error response +func (o *GetDeploymentEsResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentEsResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentEsResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}][%d] getDeploymentEsResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentEsResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_es_resource_keystore_parameters.go b/pkg/client/deployments/get_deployment_es_resource_keystore_parameters.go index d96df1c8..0d85099e 100644 --- a/pkg/client/deployments/get_deployment_es_resource_keystore_parameters.go +++ b/pkg/client/deployments/get_deployment_es_resource_keystore_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentEsResourceKeystoreParamsWithHTTPClient(client *http.Client) } } -/* GetDeploymentEsResourceKeystoreParams contains all the parameters to send to the API endpoint - for the get deployment es resource keystore operation. +/* +GetDeploymentEsResourceKeystoreParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment es resource keystore operation. + + Typically these are written to a http.Request. */ type GetDeploymentEsResourceKeystoreParams struct { diff --git a/pkg/client/deployments/get_deployment_es_resource_keystore_responses.go b/pkg/client/deployments/get_deployment_es_resource_keystore_responses.go index 30a8086d..5b4f4eb8 100644 --- a/pkg/client/deployments/get_deployment_es_resource_keystore_responses.go +++ b/pkg/client/deployments/get_deployment_es_resource_keystore_responses.go @@ -74,7 +74,8 @@ func NewGetDeploymentEsResourceKeystoreOK() *GetDeploymentEsResourceKeystoreOK { return &GetDeploymentEsResourceKeystoreOK{} } -/* GetDeploymentEsResourceKeystoreOK describes a response with status code 200, with default header values. +/* +GetDeploymentEsResourceKeystoreOK describes a response with status code 200, with default header values. The contents of the Elasticsearch keystore */ @@ -82,9 +83,44 @@ type GetDeploymentEsResourceKeystoreOK struct { Payload *models.KeystoreContents } +// IsSuccess returns true when this get deployment es resource keystore o k response has a 2xx status code +func (o *GetDeploymentEsResourceKeystoreOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment es resource keystore o k response has a 3xx status code +func (o *GetDeploymentEsResourceKeystoreOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource keystore o k response has a 4xx status code +func (o *GetDeploymentEsResourceKeystoreOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource keystore o k response has a 5xx status code +func (o *GetDeploymentEsResourceKeystoreOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource keystore o k response a status code equal to that given +func (o *GetDeploymentEsResourceKeystoreOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment es resource keystore o k response +func (o *GetDeploymentEsResourceKeystoreOK) Code() int { + return 200 +} + func (o *GetDeploymentEsResourceKeystoreOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreOK %+v", 200, o.Payload) } + +func (o *GetDeploymentEsResourceKeystoreOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreOK %+v", 200, o.Payload) +} + func (o *GetDeploymentEsResourceKeystoreOK) GetPayload() *models.KeystoreContents { return o.Payload } @@ -106,9 +142,11 @@ func NewGetDeploymentEsResourceKeystoreNotFound() *GetDeploymentEsResourceKeysto return &GetDeploymentEsResourceKeystoreNotFound{} } -/* GetDeploymentEsResourceKeystoreNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentEsResourceKeystoreNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type GetDeploymentEsResourceKeystoreNotFound struct { @@ -120,9 +158,44 @@ type GetDeploymentEsResourceKeystoreNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource keystore not found response has a 2xx status code +func (o *GetDeploymentEsResourceKeystoreNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource keystore not found response has a 3xx status code +func (o *GetDeploymentEsResourceKeystoreNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource keystore not found response has a 4xx status code +func (o *GetDeploymentEsResourceKeystoreNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource keystore not found response has a 5xx status code +func (o *GetDeploymentEsResourceKeystoreNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource keystore not found response a status code equal to that given +func (o *GetDeploymentEsResourceKeystoreNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment es resource keystore not found response +func (o *GetDeploymentEsResourceKeystoreNotFound) Code() int { + return 404 +} + func (o *GetDeploymentEsResourceKeystoreNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentEsResourceKeystoreNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentEsResourceKeystoreNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewGetDeploymentEsResourceKeystoreRetryWith() *GetDeploymentEsResourceKeyst return &GetDeploymentEsResourceKeystoreRetryWith{} } -/* GetDeploymentEsResourceKeystoreRetryWith describes a response with status code 449, with default header values. +/* +GetDeploymentEsResourceKeystoreRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -164,9 +238,44 @@ type GetDeploymentEsResourceKeystoreRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource keystore retry with response has a 2xx status code +func (o *GetDeploymentEsResourceKeystoreRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource keystore retry with response has a 3xx status code +func (o *GetDeploymentEsResourceKeystoreRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource keystore retry with response has a 4xx status code +func (o *GetDeploymentEsResourceKeystoreRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource keystore retry with response has a 5xx status code +func (o *GetDeploymentEsResourceKeystoreRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource keystore retry with response a status code equal to that given +func (o *GetDeploymentEsResourceKeystoreRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the get deployment es resource keystore retry with response +func (o *GetDeploymentEsResourceKeystoreRetryWith) Code() int { + return 449 +} + func (o *GetDeploymentEsResourceKeystoreRetryWith) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreRetryWith %+v", 449, o.Payload) } + +func (o *GetDeploymentEsResourceKeystoreRetryWith) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreRetryWith %+v", 449, o.Payload) +} + func (o *GetDeploymentEsResourceKeystoreRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewGetDeploymentEsResourceKeystoreInternalServerError() *GetDeploymentEsRes return &GetDeploymentEsResourceKeystoreInternalServerError{} } -/* GetDeploymentEsResourceKeystoreInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentEsResourceKeystoreInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.metadata_internal_error`) */ @@ -208,9 +318,44 @@ type GetDeploymentEsResourceKeystoreInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource keystore internal server error response has a 2xx status code +func (o *GetDeploymentEsResourceKeystoreInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource keystore internal server error response has a 3xx status code +func (o *GetDeploymentEsResourceKeystoreInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource keystore internal server error response has a 4xx status code +func (o *GetDeploymentEsResourceKeystoreInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource keystore internal server error response has a 5xx status code +func (o *GetDeploymentEsResourceKeystoreInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment es resource keystore internal server error response a status code equal to that given +func (o *GetDeploymentEsResourceKeystoreInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment es resource keystore internal server error response +func (o *GetDeploymentEsResourceKeystoreInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentEsResourceKeystoreInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentEsResourceKeystoreInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] getDeploymentEsResourceKeystoreInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentEsResourceKeystoreInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_es_resource_remote_clusters_parameters.go b/pkg/client/deployments/get_deployment_es_resource_remote_clusters_parameters.go index c3bb4e3a..dc40cf1b 100644 --- a/pkg/client/deployments/get_deployment_es_resource_remote_clusters_parameters.go +++ b/pkg/client/deployments/get_deployment_es_resource_remote_clusters_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentEsResourceRemoteClustersParamsWithHTTPClient(client *http.C } } -/* GetDeploymentEsResourceRemoteClustersParams contains all the parameters to send to the API endpoint - for the get deployment es resource remote clusters operation. +/* +GetDeploymentEsResourceRemoteClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment es resource remote clusters operation. + + Typically these are written to a http.Request. */ type GetDeploymentEsResourceRemoteClustersParams struct { diff --git a/pkg/client/deployments/get_deployment_es_resource_remote_clusters_responses.go b/pkg/client/deployments/get_deployment_es_resource_remote_clusters_responses.go index 733b621f..2fb30b2e 100644 --- a/pkg/client/deployments/get_deployment_es_resource_remote_clusters_responses.go +++ b/pkg/client/deployments/get_deployment_es_resource_remote_clusters_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentEsResourceRemoteClustersOK() *GetDeploymentEsResourceRemote return &GetDeploymentEsResourceRemoteClustersOK{} } -/* GetDeploymentEsResourceRemoteClustersOK describes a response with status code 200, with default header values. +/* +GetDeploymentEsResourceRemoteClustersOK describes a response with status code 200, with default header values. List of remote clusters for the resource */ @@ -70,9 +71,44 @@ type GetDeploymentEsResourceRemoteClustersOK struct { Payload *models.RemoteResources } +// IsSuccess returns true when this get deployment es resource remote clusters o k response has a 2xx status code +func (o *GetDeploymentEsResourceRemoteClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment es resource remote clusters o k response has a 3xx status code +func (o *GetDeploymentEsResourceRemoteClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource remote clusters o k response has a 4xx status code +func (o *GetDeploymentEsResourceRemoteClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment es resource remote clusters o k response has a 5xx status code +func (o *GetDeploymentEsResourceRemoteClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource remote clusters o k response a status code equal to that given +func (o *GetDeploymentEsResourceRemoteClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment es resource remote clusters o k response +func (o *GetDeploymentEsResourceRemoteClustersOK) Code() int { + return 200 +} + func (o *GetDeploymentEsResourceRemoteClustersOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] getDeploymentEsResourceRemoteClustersOK %+v", 200, o.Payload) } + +func (o *GetDeploymentEsResourceRemoteClustersOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] getDeploymentEsResourceRemoteClustersOK %+v", 200, o.Payload) +} + func (o *GetDeploymentEsResourceRemoteClustersOK) GetPayload() *models.RemoteResources { return o.Payload } @@ -94,9 +130,11 @@ func NewGetDeploymentEsResourceRemoteClustersNotFound() *GetDeploymentEsResource return &GetDeploymentEsResourceRemoteClustersNotFound{} } -/* GetDeploymentEsResourceRemoteClustersNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentEsResourceRemoteClustersNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type GetDeploymentEsResourceRemoteClustersNotFound struct { @@ -108,9 +146,44 @@ type GetDeploymentEsResourceRemoteClustersNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment es resource remote clusters not found response has a 2xx status code +func (o *GetDeploymentEsResourceRemoteClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment es resource remote clusters not found response has a 3xx status code +func (o *GetDeploymentEsResourceRemoteClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment es resource remote clusters not found response has a 4xx status code +func (o *GetDeploymentEsResourceRemoteClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment es resource remote clusters not found response has a 5xx status code +func (o *GetDeploymentEsResourceRemoteClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment es resource remote clusters not found response a status code equal to that given +func (o *GetDeploymentEsResourceRemoteClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment es resource remote clusters not found response +func (o *GetDeploymentEsResourceRemoteClustersNotFound) Code() int { + return 404 +} + func (o *GetDeploymentEsResourceRemoteClustersNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] getDeploymentEsResourceRemoteClustersNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentEsResourceRemoteClustersNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] getDeploymentEsResourceRemoteClustersNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentEsResourceRemoteClustersNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_heap_dumps_parameters.go b/pkg/client/deployments/get_deployment_heap_dumps_parameters.go index 0daf4555..6b0ba330 100644 --- a/pkg/client/deployments/get_deployment_heap_dumps_parameters.go +++ b/pkg/client/deployments/get_deployment_heap_dumps_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentHeapDumpsParamsWithHTTPClient(client *http.Client) *GetDepl } } -/* GetDeploymentHeapDumpsParams contains all the parameters to send to the API endpoint - for the get deployment heap dumps operation. +/* +GetDeploymentHeapDumpsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment heap dumps operation. + + Typically these are written to a http.Request. */ type GetDeploymentHeapDumpsParams struct { diff --git a/pkg/client/deployments/get_deployment_heap_dumps_responses.go b/pkg/client/deployments/get_deployment_heap_dumps_responses.go index 94264f4a..162c396e 100644 --- a/pkg/client/deployments/get_deployment_heap_dumps_responses.go +++ b/pkg/client/deployments/get_deployment_heap_dumps_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentHeapDumpsOK() *GetDeploymentHeapDumpsOK { return &GetDeploymentHeapDumpsOK{} } -/* GetDeploymentHeapDumpsOK describes a response with status code 200, with default header values. +/* +GetDeploymentHeapDumpsOK describes a response with status code 200, with default header values. The heap dump details for all instances belonging to the deployment */ @@ -70,9 +71,44 @@ type GetDeploymentHeapDumpsOK struct { Payload *models.DeploymentHeapDumps } +// IsSuccess returns true when this get deployment heap dumps o k response has a 2xx status code +func (o *GetDeploymentHeapDumpsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment heap dumps o k response has a 3xx status code +func (o *GetDeploymentHeapDumpsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment heap dumps o k response has a 4xx status code +func (o *GetDeploymentHeapDumpsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment heap dumps o k response has a 5xx status code +func (o *GetDeploymentHeapDumpsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment heap dumps o k response a status code equal to that given +func (o *GetDeploymentHeapDumpsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment heap dumps o k response +func (o *GetDeploymentHeapDumpsOK) Code() int { + return 200 +} + func (o *GetDeploymentHeapDumpsOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/heap_dumps][%d] getDeploymentHeapDumpsOK %+v", 200, o.Payload) } + +func (o *GetDeploymentHeapDumpsOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/heap_dumps][%d] getDeploymentHeapDumpsOK %+v", 200, o.Payload) +} + func (o *GetDeploymentHeapDumpsOK) GetPayload() *models.DeploymentHeapDumps { return o.Payload } @@ -94,7 +130,8 @@ func NewGetDeploymentHeapDumpsNotFound() *GetDeploymentHeapDumpsNotFound { return &GetDeploymentHeapDumpsNotFound{} } -/* GetDeploymentHeapDumpsNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentHeapDumpsNotFound describes a response with status code 404, with default header values. The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -107,9 +144,44 @@ type GetDeploymentHeapDumpsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment heap dumps not found response has a 2xx status code +func (o *GetDeploymentHeapDumpsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment heap dumps not found response has a 3xx status code +func (o *GetDeploymentHeapDumpsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment heap dumps not found response has a 4xx status code +func (o *GetDeploymentHeapDumpsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment heap dumps not found response has a 5xx status code +func (o *GetDeploymentHeapDumpsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment heap dumps not found response a status code equal to that given +func (o *GetDeploymentHeapDumpsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment heap dumps not found response +func (o *GetDeploymentHeapDumpsNotFound) Code() int { + return 404 +} + func (o *GetDeploymentHeapDumpsNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/heap_dumps][%d] getDeploymentHeapDumpsNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentHeapDumpsNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/heap_dumps][%d] getDeploymentHeapDumpsNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentHeapDumpsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_integrations_server_resource_info_parameters.go b/pkg/client/deployments/get_deployment_integrations_server_resource_info_parameters.go index f549c6bc..9591c206 100644 --- a/pkg/client/deployments/get_deployment_integrations_server_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_integrations_server_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentIntegrationsServerResourceInfoParamsWithHTTPClient(client * } } -/* GetDeploymentIntegrationsServerResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment integrations server resource info operation. +/* +GetDeploymentIntegrationsServerResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment integrations server resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentIntegrationsServerResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_integrations_server_resource_info_responses.go b/pkg/client/deployments/get_deployment_integrations_server_resource_info_responses.go index d094687f..a0c9bfe1 100644 --- a/pkg/client/deployments/get_deployment_integrations_server_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_integrations_server_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentIntegrationsServerResourceInfoOK() *GetDeploymentIntegratio return &GetDeploymentIntegrationsServerResourceInfoOK{} } -/* GetDeploymentIntegrationsServerResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentIntegrationsServerResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentIntegrationsServerResourceInfoOK struct { Payload *models.IntegrationsServerResourceInfo } +// IsSuccess returns true when this get deployment integrations server resource info o k response has a 2xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment integrations server resource info o k response has a 3xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment integrations server resource info o k response has a 4xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment integrations server resource info o k response has a 5xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment integrations server resource info o k response a status code equal to that given +func (o *GetDeploymentIntegrationsServerResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment integrations server resource info o k response +func (o *GetDeploymentIntegrationsServerResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentIntegrationsServerResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentIntegrationsServerResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentIntegrationsServerResourceInfoOK) GetPayload() *models.IntegrationsServerResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentIntegrationsServerResourceInfoNotFound() *GetDeploymentInte return &GetDeploymentIntegrationsServerResourceInfoNotFound{} } -/* GetDeploymentIntegrationsServerResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentIntegrationsServerResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentIntegrationsServerResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment integrations server resource info not found response has a 2xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment integrations server resource info not found response has a 3xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment integrations server resource info not found response has a 4xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment integrations server resource info not found response has a 5xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment integrations server resource info not found response a status code equal to that given +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment integrations server resource info not found response +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentIntegrationsServerResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentIntegrationsServerResourceInfoInternalServerError() *GetDep return &GetDeploymentIntegrationsServerResourceInfoInternalServerError{} } -/* GetDeploymentIntegrationsServerResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentIntegrationsServerResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentIntegrationsServerResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment integrations server resource info internal server error response has a 2xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment integrations server resource info internal server error response has a 3xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment integrations server resource info internal server error response has a 4xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment integrations server resource info internal server error response has a 5xx status code +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment integrations server resource info internal server error response a status code equal to that given +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment integrations server resource info internal server error response +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/integrations_server/{ref_id}][%d] getDeploymentIntegrationsServerResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentIntegrationsServerResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_kib_resource_info_parameters.go b/pkg/client/deployments/get_deployment_kib_resource_info_parameters.go index 12b72c63..0a48aefc 100644 --- a/pkg/client/deployments/get_deployment_kib_resource_info_parameters.go +++ b/pkg/client/deployments/get_deployment_kib_resource_info_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentKibResourceInfoParamsWithHTTPClient(client *http.Client) *G } } -/* GetDeploymentKibResourceInfoParams contains all the parameters to send to the API endpoint - for the get deployment kib resource info operation. +/* +GetDeploymentKibResourceInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment kib resource info operation. + + Typically these are written to a http.Request. */ type GetDeploymentKibResourceInfoParams struct { diff --git a/pkg/client/deployments/get_deployment_kib_resource_info_responses.go b/pkg/client/deployments/get_deployment_kib_resource_info_responses.go index 2da59db6..37bc1149 100644 --- a/pkg/client/deployments/get_deployment_kib_resource_info_responses.go +++ b/pkg/client/deployments/get_deployment_kib_resource_info_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentKibResourceInfoOK() *GetDeploymentKibResourceInfoOK { return &GetDeploymentKibResourceInfoOK{} } -/* GetDeploymentKibResourceInfoOK describes a response with status code 200, with default header values. +/* +GetDeploymentKibResourceInfoOK describes a response with status code 200, with default header values. Standard response. */ @@ -76,9 +77,44 @@ type GetDeploymentKibResourceInfoOK struct { Payload *models.KibanaResourceInfo } +// IsSuccess returns true when this get deployment kib resource info o k response has a 2xx status code +func (o *GetDeploymentKibResourceInfoOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment kib resource info o k response has a 3xx status code +func (o *GetDeploymentKibResourceInfoOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment kib resource info o k response has a 4xx status code +func (o *GetDeploymentKibResourceInfoOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment kib resource info o k response has a 5xx status code +func (o *GetDeploymentKibResourceInfoOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment kib resource info o k response a status code equal to that given +func (o *GetDeploymentKibResourceInfoOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment kib resource info o k response +func (o *GetDeploymentKibResourceInfoOK) Code() int { + return 200 +} + func (o *GetDeploymentKibResourceInfoOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoOK %+v", 200, o.Payload) } + +func (o *GetDeploymentKibResourceInfoOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoOK %+v", 200, o.Payload) +} + func (o *GetDeploymentKibResourceInfoOK) GetPayload() *models.KibanaResourceInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetDeploymentKibResourceInfoNotFound() *GetDeploymentKibResourceInfoNotF return &GetDeploymentKibResourceInfoNotFound{} } -/* GetDeploymentKibResourceInfoNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentKibResourceInfoNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type GetDeploymentKibResourceInfoNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment kib resource info not found response has a 2xx status code +func (o *GetDeploymentKibResourceInfoNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment kib resource info not found response has a 3xx status code +func (o *GetDeploymentKibResourceInfoNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment kib resource info not found response has a 4xx status code +func (o *GetDeploymentKibResourceInfoNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment kib resource info not found response has a 5xx status code +func (o *GetDeploymentKibResourceInfoNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment kib resource info not found response a status code equal to that given +func (o *GetDeploymentKibResourceInfoNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment kib resource info not found response +func (o *GetDeploymentKibResourceInfoNotFound) Code() int { + return 404 +} + func (o *GetDeploymentKibResourceInfoNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentKibResourceInfoNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentKibResourceInfoNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetDeploymentKibResourceInfoInternalServerError() *GetDeploymentKibResou return &GetDeploymentKibResourceInfoInternalServerError{} } -/* GetDeploymentKibResourceInfoInternalServerError describes a response with status code 500, with default header values. +/* +GetDeploymentKibResourceInfoInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -157,9 +230,44 @@ type GetDeploymentKibResourceInfoInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment kib resource info internal server error response has a 2xx status code +func (o *GetDeploymentKibResourceInfoInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment kib resource info internal server error response has a 3xx status code +func (o *GetDeploymentKibResourceInfoInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment kib resource info internal server error response has a 4xx status code +func (o *GetDeploymentKibResourceInfoInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment kib resource info internal server error response has a 5xx status code +func (o *GetDeploymentKibResourceInfoInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get deployment kib resource info internal server error response a status code equal to that given +func (o *GetDeploymentKibResourceInfoInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get deployment kib resource info internal server error response +func (o *GetDeploymentKibResourceInfoInternalServerError) Code() int { + return 500 +} + func (o *GetDeploymentKibResourceInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoInternalServerError %+v", 500, o.Payload) } + +func (o *GetDeploymentKibResourceInfoInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/kibana/{ref_id}][%d] getDeploymentKibResourceInfoInternalServerError %+v", 500, o.Payload) +} + func (o *GetDeploymentKibResourceInfoInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_parameters.go b/pkg/client/deployments/get_deployment_parameters.go index e81d344c..5c9b31d5 100644 --- a/pkg/client/deployments/get_deployment_parameters.go +++ b/pkg/client/deployments/get_deployment_parameters.go @@ -70,10 +70,12 @@ func NewGetDeploymentParamsWithHTTPClient(client *http.Client) *GetDeploymentPar } } -/* GetDeploymentParams contains all the parameters to send to the API endpoint - for the get deployment operation. +/* +GetDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment operation. + + Typically these are written to a http.Request. */ type GetDeploymentParams struct { diff --git a/pkg/client/deployments/get_deployment_resource_plan_activity_parameters.go b/pkg/client/deployments/get_deployment_resource_plan_activity_parameters.go index 2535ce69..3f241e96 100644 --- a/pkg/client/deployments/get_deployment_resource_plan_activity_parameters.go +++ b/pkg/client/deployments/get_deployment_resource_plan_activity_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentResourcePlanActivityParamsWithHTTPClient(client *http.Clien } } -/* GetDeploymentResourcePlanActivityParams contains all the parameters to send to the API endpoint - for the get deployment resource plan activity operation. +/* +GetDeploymentResourcePlanActivityParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment resource plan activity operation. + + Typically these are written to a http.Request. */ type GetDeploymentResourcePlanActivityParams struct { diff --git a/pkg/client/deployments/get_deployment_resource_plan_activity_responses.go b/pkg/client/deployments/get_deployment_resource_plan_activity_responses.go index 1e71fbad..1da94be9 100644 --- a/pkg/client/deployments/get_deployment_resource_plan_activity_responses.go +++ b/pkg/client/deployments/get_deployment_resource_plan_activity_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentResourcePlanActivityOK() *GetDeploymentResourcePlanActivity return &GetDeploymentResourcePlanActivityOK{} } -/* GetDeploymentResourcePlanActivityOK describes a response with status code 200, with default header values. +/* +GetDeploymentResourcePlanActivityOK describes a response with status code 200, with default header values. Returning the single plan activity for the specified resource */ @@ -70,9 +71,44 @@ type GetDeploymentResourcePlanActivityOK struct { Payload *models.CommonClusterPlanInfo } +// IsSuccess returns true when this get deployment resource plan activity o k response has a 2xx status code +func (o *GetDeploymentResourcePlanActivityOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment resource plan activity o k response has a 3xx status code +func (o *GetDeploymentResourcePlanActivityOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment resource plan activity o k response has a 4xx status code +func (o *GetDeploymentResourcePlanActivityOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment resource plan activity o k response has a 5xx status code +func (o *GetDeploymentResourcePlanActivityOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment resource plan activity o k response a status code equal to that given +func (o *GetDeploymentResourcePlanActivityOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment resource plan activity o k response +func (o *GetDeploymentResourcePlanActivityOK) Code() int { + return 200 +} + func (o *GetDeploymentResourcePlanActivityOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/activity/{attempt_id}][%d] getDeploymentResourcePlanActivityOK %+v", 200, o.Payload) } + +func (o *GetDeploymentResourcePlanActivityOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/activity/{attempt_id}][%d] getDeploymentResourcePlanActivityOK %+v", 200, o.Payload) +} + func (o *GetDeploymentResourcePlanActivityOK) GetPayload() *models.CommonClusterPlanInfo { return o.Payload } @@ -94,9 +130,11 @@ func NewGetDeploymentResourcePlanActivityNotFound() *GetDeploymentResourcePlanAc return &GetDeploymentResourcePlanActivityNotFound{} } -/* GetDeploymentResourcePlanActivityNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentResourcePlanActivityNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type GetDeploymentResourcePlanActivityNotFound struct { @@ -108,9 +146,44 @@ type GetDeploymentResourcePlanActivityNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment resource plan activity not found response has a 2xx status code +func (o *GetDeploymentResourcePlanActivityNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment resource plan activity not found response has a 3xx status code +func (o *GetDeploymentResourcePlanActivityNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment resource plan activity not found response has a 4xx status code +func (o *GetDeploymentResourcePlanActivityNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment resource plan activity not found response has a 5xx status code +func (o *GetDeploymentResourcePlanActivityNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment resource plan activity not found response a status code equal to that given +func (o *GetDeploymentResourcePlanActivityNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment resource plan activity not found response +func (o *GetDeploymentResourcePlanActivityNotFound) Code() int { + return 404 +} + func (o *GetDeploymentResourcePlanActivityNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/activity/{attempt_id}][%d] getDeploymentResourcePlanActivityNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentResourcePlanActivityNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/activity/{attempt_id}][%d] getDeploymentResourcePlanActivityNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentResourcePlanActivityNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_resource_proxy_requests_parameters.go b/pkg/client/deployments/get_deployment_resource_proxy_requests_parameters.go index d63dac92..478138e0 100644 --- a/pkg/client/deployments/get_deployment_resource_proxy_requests_parameters.go +++ b/pkg/client/deployments/get_deployment_resource_proxy_requests_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentResourceProxyRequestsParamsWithHTTPClient(client *http.Clie } } -/* GetDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - for the get deployment resource proxy requests operation. +/* +GetDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment resource proxy requests operation. + + Typically these are written to a http.Request. */ type GetDeploymentResourceProxyRequestsParams struct { diff --git a/pkg/client/deployments/get_deployment_resource_proxy_requests_responses.go b/pkg/client/deployments/get_deployment_resource_proxy_requests_responses.go index e200468e..0716cfe3 100644 --- a/pkg/client/deployments/get_deployment_resource_proxy_requests_responses.go +++ b/pkg/client/deployments/get_deployment_resource_proxy_requests_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentResourceProxyRequestsOK() *GetDeploymentResourceProxyReques return &GetDeploymentResourceProxyRequestsOK{} } -/* GetDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. +/* +GetDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. The request has been processed successfully through the proxy. */ @@ -76,9 +77,44 @@ type GetDeploymentResourceProxyRequestsOK struct { Payload *models.GenericResponse } +// IsSuccess returns true when this get deployment resource proxy requests o k response has a 2xx status code +func (o *GetDeploymentResourceProxyRequestsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment resource proxy requests o k response has a 3xx status code +func (o *GetDeploymentResourceProxyRequestsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment resource proxy requests o k response has a 4xx status code +func (o *GetDeploymentResourceProxyRequestsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment resource proxy requests o k response has a 5xx status code +func (o *GetDeploymentResourceProxyRequestsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment resource proxy requests o k response a status code equal to that given +func (o *GetDeploymentResourceProxyRequestsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment resource proxy requests o k response +func (o *GetDeploymentResourceProxyRequestsOK) Code() int { + return 200 +} + func (o *GetDeploymentResourceProxyRequestsOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) } + +func (o *GetDeploymentResourceProxyRequestsOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) +} + func (o *GetDeploymentResourceProxyRequestsOK) GetPayload() *models.GenericResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewGetDeploymentResourceProxyRequestsNotFound() *GetDeploymentResourceProxy return &GetDeploymentResourceProxyRequestsNotFound{} } -/* GetDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`) */ @@ -115,9 +153,44 @@ type GetDeploymentResourceProxyRequestsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment resource proxy requests not found response has a 2xx status code +func (o *GetDeploymentResourceProxyRequestsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment resource proxy requests not found response has a 3xx status code +func (o *GetDeploymentResourceProxyRequestsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment resource proxy requests not found response has a 4xx status code +func (o *GetDeploymentResourceProxyRequestsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment resource proxy requests not found response has a 5xx status code +func (o *GetDeploymentResourceProxyRequestsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment resource proxy requests not found response a status code equal to that given +func (o *GetDeploymentResourceProxyRequestsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment resource proxy requests not found response +func (o *GetDeploymentResourceProxyRequestsNotFound) Code() int { + return 404 +} + func (o *GetDeploymentResourceProxyRequestsNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentResourceProxyRequestsNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentResourceProxyRequestsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -146,7 +219,8 @@ func NewGetDeploymentResourceProxyRequestsRetryWith() *GetDeploymentResourceProx return &GetDeploymentResourceProxyRequestsRetryWith{} } -/* GetDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. +/* +GetDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -159,9 +233,44 @@ type GetDeploymentResourceProxyRequestsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment resource proxy requests retry with response has a 2xx status code +func (o *GetDeploymentResourceProxyRequestsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment resource proxy requests retry with response has a 3xx status code +func (o *GetDeploymentResourceProxyRequestsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment resource proxy requests retry with response has a 4xx status code +func (o *GetDeploymentResourceProxyRequestsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment resource proxy requests retry with response has a 5xx status code +func (o *GetDeploymentResourceProxyRequestsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment resource proxy requests retry with response a status code equal to that given +func (o *GetDeploymentResourceProxyRequestsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the get deployment resource proxy requests retry with response +func (o *GetDeploymentResourceProxyRequestsRetryWith) Code() int { + return 449 +} + func (o *GetDeploymentResourceProxyRequestsRetryWith) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) } + +func (o *GetDeploymentResourceProxyRequestsRetryWith) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] getDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) +} + func (o *GetDeploymentResourceProxyRequestsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_responses.go b/pkg/client/deployments/get_deployment_responses.go index 6011efd6..c696d487 100644 --- a/pkg/client/deployments/get_deployment_responses.go +++ b/pkg/client/deployments/get_deployment_responses.go @@ -68,7 +68,8 @@ func NewGetDeploymentOK() *GetDeploymentOK { return &GetDeploymentOK{} } -/* GetDeploymentOK describes a response with status code 200, with default header values. +/* +GetDeploymentOK describes a response with status code 200, with default header values. The Deployment info response */ @@ -89,9 +90,44 @@ type GetDeploymentOK struct { Payload *models.DeploymentGetResponse } +// IsSuccess returns true when this get deployment o k response has a 2xx status code +func (o *GetDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment o k response has a 3xx status code +func (o *GetDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment o k response has a 4xx status code +func (o *GetDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment o k response has a 5xx status code +func (o *GetDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment o k response a status code equal to that given +func (o *GetDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment o k response +func (o *GetDeploymentOK) Code() int { + return 200 +} + func (o *GetDeploymentOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentOK %+v", 200, o.Payload) } + +func (o *GetDeploymentOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentOK %+v", 200, o.Payload) +} + func (o *GetDeploymentOK) GetPayload() *models.DeploymentGetResponse { return o.Payload } @@ -134,7 +170,8 @@ func NewGetDeploymentUnauthorized() *GetDeploymentUnauthorized { return &GetDeploymentUnauthorized{} } -/* GetDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +GetDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -142,9 +179,44 @@ type GetDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment unauthorized response has a 2xx status code +func (o *GetDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment unauthorized response has a 3xx status code +func (o *GetDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment unauthorized response has a 4xx status code +func (o *GetDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment unauthorized response has a 5xx status code +func (o *GetDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment unauthorized response a status code equal to that given +func (o *GetDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get deployment unauthorized response +func (o *GetDeploymentUnauthorized) Code() int { + return 401 +} + func (o *GetDeploymentUnauthorized) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *GetDeploymentUnauthorized) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *GetDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -166,7 +238,8 @@ func NewGetDeploymentNotFound() *GetDeploymentNotFound { return &GetDeploymentNotFound{} } -/* GetDeploymentNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -179,9 +252,44 @@ type GetDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment not found response has a 2xx status code +func (o *GetDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment not found response has a 3xx status code +func (o *GetDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment not found response has a 4xx status code +func (o *GetDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment not found response has a 5xx status code +func (o *GetDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment not found response a status code equal to that given +func (o *GetDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment not found response +func (o *GetDeploymentNotFound) Code() int { + return 404 +} + func (o *GetDeploymentNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}][%d] getDeploymentNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/get_deployment_upgrade_assistant_status_parameters.go b/pkg/client/deployments/get_deployment_upgrade_assistant_status_parameters.go index 4346f8bc..d6efb574 100644 --- a/pkg/client/deployments/get_deployment_upgrade_assistant_status_parameters.go +++ b/pkg/client/deployments/get_deployment_upgrade_assistant_status_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentUpgradeAssistantStatusParamsWithHTTPClient(client *http.Cli } } -/* GetDeploymentUpgradeAssistantStatusParams contains all the parameters to send to the API endpoint - for the get deployment upgrade assistant status operation. +/* +GetDeploymentUpgradeAssistantStatusParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment upgrade assistant status operation. + + Typically these are written to a http.Request. */ type GetDeploymentUpgradeAssistantStatusParams struct { diff --git a/pkg/client/deployments/get_deployment_upgrade_assistant_status_responses.go b/pkg/client/deployments/get_deployment_upgrade_assistant_status_responses.go index fdf0bbbb..376c5ce9 100644 --- a/pkg/client/deployments/get_deployment_upgrade_assistant_status_responses.go +++ b/pkg/client/deployments/get_deployment_upgrade_assistant_status_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentUpgradeAssistantStatusOK() *GetDeploymentUpgradeAssistantSt return &GetDeploymentUpgradeAssistantStatusOK{} } -/* GetDeploymentUpgradeAssistantStatusOK describes a response with status code 200, with default header values. +/* +GetDeploymentUpgradeAssistantStatusOK describes a response with status code 200, with default header values. The Upgrade Assistant returned the status successfully */ @@ -70,9 +71,44 @@ type GetDeploymentUpgradeAssistantStatusOK struct { Payload *models.DeploymentUpgradeAssistantStatusResponse } +// IsSuccess returns true when this get deployment upgrade assistant status o k response has a 2xx status code +func (o *GetDeploymentUpgradeAssistantStatusOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment upgrade assistant status o k response has a 3xx status code +func (o *GetDeploymentUpgradeAssistantStatusOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment upgrade assistant status o k response has a 4xx status code +func (o *GetDeploymentUpgradeAssistantStatusOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment upgrade assistant status o k response has a 5xx status code +func (o *GetDeploymentUpgradeAssistantStatusOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment upgrade assistant status o k response a status code equal to that given +func (o *GetDeploymentUpgradeAssistantStatusOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment upgrade assistant status o k response +func (o *GetDeploymentUpgradeAssistantStatusOK) Code() int { + return 200 +} + func (o *GetDeploymentUpgradeAssistantStatusOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/upgrade_assistant/status][%d] getDeploymentUpgradeAssistantStatusOK %+v", 200, o.Payload) } + +func (o *GetDeploymentUpgradeAssistantStatusOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/upgrade_assistant/status][%d] getDeploymentUpgradeAssistantStatusOK %+v", 200, o.Payload) +} + func (o *GetDeploymentUpgradeAssistantStatusOK) GetPayload() *models.DeploymentUpgradeAssistantStatusResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetDeploymentUpgradeAssistantStatusNotFound() *GetDeploymentUpgradeAssis return &GetDeploymentUpgradeAssistantStatusNotFound{} } -/* GetDeploymentUpgradeAssistantStatusNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentUpgradeAssistantStatusNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -107,9 +144,44 @@ type GetDeploymentUpgradeAssistantStatusNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment upgrade assistant status not found response has a 2xx status code +func (o *GetDeploymentUpgradeAssistantStatusNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment upgrade assistant status not found response has a 3xx status code +func (o *GetDeploymentUpgradeAssistantStatusNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment upgrade assistant status not found response has a 4xx status code +func (o *GetDeploymentUpgradeAssistantStatusNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment upgrade assistant status not found response has a 5xx status code +func (o *GetDeploymentUpgradeAssistantStatusNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment upgrade assistant status not found response a status code equal to that given +func (o *GetDeploymentUpgradeAssistantStatusNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment upgrade assistant status not found response +func (o *GetDeploymentUpgradeAssistantStatusNotFound) Code() int { + return 404 +} + func (o *GetDeploymentUpgradeAssistantStatusNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/upgrade_assistant/status][%d] getDeploymentUpgradeAssistantStatusNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentUpgradeAssistantStatusNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/upgrade_assistant/status][%d] getDeploymentUpgradeAssistantStatusNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentUpgradeAssistantStatusNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/list_deployments_parameters.go b/pkg/client/deployments/list_deployments_parameters.go index d2df53b9..3d56cc16 100644 --- a/pkg/client/deployments/list_deployments_parameters.go +++ b/pkg/client/deployments/list_deployments_parameters.go @@ -69,10 +69,12 @@ func NewListDeploymentsParamsWithHTTPClient(client *http.Client) *ListDeployment } } -/* ListDeploymentsParams contains all the parameters to send to the API endpoint - for the list deployments operation. +/* +ListDeploymentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list deployments operation. + + Typically these are written to a http.Request. */ type ListDeploymentsParams struct { timeout time.Duration diff --git a/pkg/client/deployments/list_deployments_responses.go b/pkg/client/deployments/list_deployments_responses.go index a6b8ee33..e9a5e77d 100644 --- a/pkg/client/deployments/list_deployments_responses.go +++ b/pkg/client/deployments/list_deployments_responses.go @@ -62,7 +62,8 @@ func NewListDeploymentsOK() *ListDeploymentsOK { return &ListDeploymentsOK{} } -/* ListDeploymentsOK describes a response with status code 200, with default header values. +/* +ListDeploymentsOK describes a response with status code 200, with default header values. The list of deployments that belong to the authenticated user. */ @@ -70,9 +71,44 @@ type ListDeploymentsOK struct { Payload *models.DeploymentsListResponse } +// IsSuccess returns true when this list deployments o k response has a 2xx status code +func (o *ListDeploymentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list deployments o k response has a 3xx status code +func (o *ListDeploymentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list deployments o k response has a 4xx status code +func (o *ListDeploymentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list deployments o k response has a 5xx status code +func (o *ListDeploymentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list deployments o k response a status code equal to that given +func (o *ListDeploymentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list deployments o k response +func (o *ListDeploymentsOK) Code() int { + return 200 +} + func (o *ListDeploymentsOK) Error() string { return fmt.Sprintf("[GET /deployments][%d] listDeploymentsOK %+v", 200, o.Payload) } + +func (o *ListDeploymentsOK) String() string { + return fmt.Sprintf("[GET /deployments][%d] listDeploymentsOK %+v", 200, o.Payload) +} + func (o *ListDeploymentsOK) GetPayload() *models.DeploymentsListResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewListDeploymentsUnauthorized() *ListDeploymentsUnauthorized { return &ListDeploymentsUnauthorized{} } -/* ListDeploymentsUnauthorized describes a response with status code 401, with default header values. +/* +ListDeploymentsUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -102,9 +139,44 @@ type ListDeploymentsUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this list deployments unauthorized response has a 2xx status code +func (o *ListDeploymentsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this list deployments unauthorized response has a 3xx status code +func (o *ListDeploymentsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list deployments unauthorized response has a 4xx status code +func (o *ListDeploymentsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this list deployments unauthorized response has a 5xx status code +func (o *ListDeploymentsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this list deployments unauthorized response a status code equal to that given +func (o *ListDeploymentsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the list deployments unauthorized response +func (o *ListDeploymentsUnauthorized) Code() int { + return 401 +} + func (o *ListDeploymentsUnauthorized) Error() string { return fmt.Sprintf("[GET /deployments][%d] listDeploymentsUnauthorized %+v", 401, o.Payload) } + +func (o *ListDeploymentsUnauthorized) String() string { + return fmt.Sprintf("[GET /deployments][%d] listDeploymentsUnauthorized %+v", 401, o.Payload) +} + func (o *ListDeploymentsUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/migrate_deployment_template_parameters.go b/pkg/client/deployments/migrate_deployment_template_parameters.go index eca61384..8a45a0ef 100644 --- a/pkg/client/deployments/migrate_deployment_template_parameters.go +++ b/pkg/client/deployments/migrate_deployment_template_parameters.go @@ -69,10 +69,12 @@ func NewMigrateDeploymentTemplateParamsWithHTTPClient(client *http.Client) *Migr } } -/* MigrateDeploymentTemplateParams contains all the parameters to send to the API endpoint - for the migrate deployment template operation. +/* +MigrateDeploymentTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the migrate deployment template operation. + + Typically these are written to a http.Request. */ type MigrateDeploymentTemplateParams struct { diff --git a/pkg/client/deployments/migrate_deployment_template_responses.go b/pkg/client/deployments/migrate_deployment_template_responses.go index b9f7b414..d0e9bbd3 100644 --- a/pkg/client/deployments/migrate_deployment_template_responses.go +++ b/pkg/client/deployments/migrate_deployment_template_responses.go @@ -74,7 +74,8 @@ func NewMigrateDeploymentTemplateOK() *MigrateDeploymentTemplateOK { return &MigrateDeploymentTemplateOK{} } -/* MigrateDeploymentTemplateOK describes a response with status code 200, with default header values. +/* +MigrateDeploymentTemplateOK describes a response with status code 200, with default header values. The request was valid and the deployment can be migrated to the template with the provided ID. */ @@ -82,9 +83,44 @@ type MigrateDeploymentTemplateOK struct { Payload *models.DeploymentUpdateRequest } +// IsSuccess returns true when this migrate deployment template o k response has a 2xx status code +func (o *MigrateDeploymentTemplateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this migrate deployment template o k response has a 3xx status code +func (o *MigrateDeploymentTemplateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this migrate deployment template o k response has a 4xx status code +func (o *MigrateDeploymentTemplateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this migrate deployment template o k response has a 5xx status code +func (o *MigrateDeploymentTemplateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this migrate deployment template o k response a status code equal to that given +func (o *MigrateDeploymentTemplateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the migrate deployment template o k response +func (o *MigrateDeploymentTemplateOK) Code() int { + return 200 +} + func (o *MigrateDeploymentTemplateOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateOK %+v", 200, o.Payload) } + +func (o *MigrateDeploymentTemplateOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateOK %+v", 200, o.Payload) +} + func (o *MigrateDeploymentTemplateOK) GetPayload() *models.DeploymentUpdateRequest { return o.Payload } @@ -106,7 +142,8 @@ func NewMigrateDeploymentTemplateBadRequest() *MigrateDeploymentTemplateBadReque return &MigrateDeploymentTemplateBadRequest{} } -/* MigrateDeploymentTemplateBadRequest describes a response with status code 400, with default header values. +/* +MigrateDeploymentTemplateBadRequest describes a response with status code 400, with default header values. The deployment cannot be successfully migrated to the template with the provided ID. */ @@ -114,9 +151,44 @@ type MigrateDeploymentTemplateBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this migrate deployment template bad request response has a 2xx status code +func (o *MigrateDeploymentTemplateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this migrate deployment template bad request response has a 3xx status code +func (o *MigrateDeploymentTemplateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this migrate deployment template bad request response has a 4xx status code +func (o *MigrateDeploymentTemplateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this migrate deployment template bad request response has a 5xx status code +func (o *MigrateDeploymentTemplateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this migrate deployment template bad request response a status code equal to that given +func (o *MigrateDeploymentTemplateBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the migrate deployment template bad request response +func (o *MigrateDeploymentTemplateBadRequest) Code() int { + return 400 +} + func (o *MigrateDeploymentTemplateBadRequest) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateBadRequest %+v", 400, o.Payload) } + +func (o *MigrateDeploymentTemplateBadRequest) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateBadRequest %+v", 400, o.Payload) +} + func (o *MigrateDeploymentTemplateBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -138,7 +210,8 @@ func NewMigrateDeploymentTemplateUnauthorized() *MigrateDeploymentTemplateUnauth return &MigrateDeploymentTemplateUnauthorized{} } -/* MigrateDeploymentTemplateUnauthorized describes a response with status code 401, with default header values. +/* +MigrateDeploymentTemplateUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -146,9 +219,44 @@ type MigrateDeploymentTemplateUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this migrate deployment template unauthorized response has a 2xx status code +func (o *MigrateDeploymentTemplateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this migrate deployment template unauthorized response has a 3xx status code +func (o *MigrateDeploymentTemplateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this migrate deployment template unauthorized response has a 4xx status code +func (o *MigrateDeploymentTemplateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this migrate deployment template unauthorized response has a 5xx status code +func (o *MigrateDeploymentTemplateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this migrate deployment template unauthorized response a status code equal to that given +func (o *MigrateDeploymentTemplateUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the migrate deployment template unauthorized response +func (o *MigrateDeploymentTemplateUnauthorized) Code() int { + return 401 +} + func (o *MigrateDeploymentTemplateUnauthorized) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateUnauthorized %+v", 401, o.Payload) } + +func (o *MigrateDeploymentTemplateUnauthorized) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateUnauthorized %+v", 401, o.Payload) +} + func (o *MigrateDeploymentTemplateUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -170,7 +278,8 @@ func NewMigrateDeploymentTemplateNotFound() *MigrateDeploymentTemplateNotFound { return &MigrateDeploymentTemplateNotFound{} } -/* MigrateDeploymentTemplateNotFound describes a response with status code 404, with default header values. +/* +MigrateDeploymentTemplateNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -183,9 +292,44 @@ type MigrateDeploymentTemplateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this migrate deployment template not found response has a 2xx status code +func (o *MigrateDeploymentTemplateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this migrate deployment template not found response has a 3xx status code +func (o *MigrateDeploymentTemplateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this migrate deployment template not found response has a 4xx status code +func (o *MigrateDeploymentTemplateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this migrate deployment template not found response has a 5xx status code +func (o *MigrateDeploymentTemplateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this migrate deployment template not found response a status code equal to that given +func (o *MigrateDeploymentTemplateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the migrate deployment template not found response +func (o *MigrateDeploymentTemplateNotFound) Code() int { + return 404 +} + func (o *MigrateDeploymentTemplateNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateNotFound %+v", 404, o.Payload) } + +func (o *MigrateDeploymentTemplateNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/migrate_template][%d] migrateDeploymentTemplateNotFound %+v", 404, o.Payload) +} + func (o *MigrateDeploymentTemplateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_parameters.go b/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_parameters.go index ef7bc158..8c65f569 100644 --- a/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_parameters.go +++ b/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_parameters.go @@ -72,10 +72,12 @@ func NewMoveDeploymentElasticsearchResourceInstancesParamsWithHTTPClient(client } } -/* MoveDeploymentElasticsearchResourceInstancesParams contains all the parameters to send to the API endpoint - for the move deployment elasticsearch resource instances operation. +/* +MoveDeploymentElasticsearchResourceInstancesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the move deployment elasticsearch resource instances operation. + + Typically these are written to a http.Request. */ type MoveDeploymentElasticsearchResourceInstancesParams struct { diff --git a/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_responses.go b/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_responses.go index 748a4f92..68a74d70 100644 --- a/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_responses.go +++ b/pkg/client/deployments/move_deployment_elasticsearch_resource_instances_responses.go @@ -74,7 +74,8 @@ func NewMoveDeploymentElasticsearchResourceInstancesOK() *MoveDeploymentElastics return &MoveDeploymentElasticsearchResourceInstancesOK{} } -/* MoveDeploymentElasticsearchResourceInstancesOK describes a response with status code 200, with default header values. +/* +MoveDeploymentElasticsearchResourceInstancesOK describes a response with status code 200, with default header values. If `validate_only` is `true`, the calculated plan is returned */ @@ -82,9 +83,44 @@ type MoveDeploymentElasticsearchResourceInstancesOK struct { Payload *models.TransientElasticsearchPlanConfiguration } +// IsSuccess returns true when this move deployment elasticsearch resource instances o k response has a 2xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this move deployment elasticsearch resource instances o k response has a 3xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move deployment elasticsearch resource instances o k response has a 4xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this move deployment elasticsearch resource instances o k response has a 5xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this move deployment elasticsearch resource instances o k response a status code equal to that given +func (o *MoveDeploymentElasticsearchResourceInstancesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the move deployment elasticsearch resource instances o k response +func (o *MoveDeploymentElasticsearchResourceInstancesOK) Code() int { + return 200 +} + func (o *MoveDeploymentElasticsearchResourceInstancesOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesOK %+v", 200, o.Payload) } + +func (o *MoveDeploymentElasticsearchResourceInstancesOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesOK %+v", 200, o.Payload) +} + func (o *MoveDeploymentElasticsearchResourceInstancesOK) GetPayload() *models.TransientElasticsearchPlanConfiguration { return o.Payload } @@ -106,7 +142,8 @@ func NewMoveDeploymentElasticsearchResourceInstancesAccepted() *MoveDeploymentEl return &MoveDeploymentElasticsearchResourceInstancesAccepted{} } -/* MoveDeploymentElasticsearchResourceInstancesAccepted describes a response with status code 202, with default header values. +/* +MoveDeploymentElasticsearchResourceInstancesAccepted describes a response with status code 202, with default header values. The move command was issued successfully. Use the "GET" command on the /{deployment_id} resource to monitor progress */ @@ -114,9 +151,44 @@ type MoveDeploymentElasticsearchResourceInstancesAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this move deployment elasticsearch resource instances accepted response has a 2xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this move deployment elasticsearch resource instances accepted response has a 3xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move deployment elasticsearch resource instances accepted response has a 4xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this move deployment elasticsearch resource instances accepted response has a 5xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this move deployment elasticsearch resource instances accepted response a status code equal to that given +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the move deployment elasticsearch resource instances accepted response +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) Code() int { + return 202 +} + func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesAccepted %+v", 202, o.Payload) } + +func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesAccepted %+v", 202, o.Payload) +} + func (o *MoveDeploymentElasticsearchResourceInstancesAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -136,9 +208,11 @@ func NewMoveDeploymentElasticsearchResourceInstancesNotFound() *MoveDeploymentEl return &MoveDeploymentElasticsearchResourceInstancesNotFound{} } -/* MoveDeploymentElasticsearchResourceInstancesNotFound describes a response with status code 404, with default header values. +/* + MoveDeploymentElasticsearchResourceInstancesNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Elasticsearch Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -151,9 +225,44 @@ type MoveDeploymentElasticsearchResourceInstancesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move deployment elasticsearch resource instances not found response has a 2xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move deployment elasticsearch resource instances not found response has a 3xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move deployment elasticsearch resource instances not found response has a 4xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this move deployment elasticsearch resource instances not found response has a 5xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this move deployment elasticsearch resource instances not found response a status code equal to that given +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the move deployment elasticsearch resource instances not found response +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) Code() int { + return 404 +} + func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesNotFound %+v", 404, o.Payload) } + +func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesNotFound %+v", 404, o.Payload) +} + func (o *MoveDeploymentElasticsearchResourceInstancesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -182,7 +291,8 @@ func NewMoveDeploymentElasticsearchResourceInstancesRetryWith() *MoveDeploymentE return &MoveDeploymentElasticsearchResourceInstancesRetryWith{} } -/* MoveDeploymentElasticsearchResourceInstancesRetryWith describes a response with status code 449, with default header values. +/* +MoveDeploymentElasticsearchResourceInstancesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -195,9 +305,44 @@ type MoveDeploymentElasticsearchResourceInstancesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move deployment elasticsearch resource instances retry with response has a 2xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move deployment elasticsearch resource instances retry with response has a 3xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move deployment elasticsearch resource instances retry with response has a 4xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this move deployment elasticsearch resource instances retry with response has a 5xx status code +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this move deployment elasticsearch resource instances retry with response a status code equal to that given +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the move deployment elasticsearch resource instances retry with response +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) Code() int { + return 449 +} + func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesRetryWith %+v", 449, o.Payload) } + +func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move][%d] moveDeploymentElasticsearchResourceInstancesRetryWith %+v", 449, o.Payload) +} + func (o *MoveDeploymentElasticsearchResourceInstancesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/post_deployment_resource_proxy_requests_parameters.go b/pkg/client/deployments/post_deployment_resource_proxy_requests_parameters.go index b28b9951..4524e8f1 100644 --- a/pkg/client/deployments/post_deployment_resource_proxy_requests_parameters.go +++ b/pkg/client/deployments/post_deployment_resource_proxy_requests_parameters.go @@ -69,10 +69,12 @@ func NewPostDeploymentResourceProxyRequestsParamsWithHTTPClient(client *http.Cli } } -/* PostDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - for the post deployment resource proxy requests operation. +/* +PostDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post deployment resource proxy requests operation. + + Typically these are written to a http.Request. */ type PostDeploymentResourceProxyRequestsParams struct { diff --git a/pkg/client/deployments/post_deployment_resource_proxy_requests_responses.go b/pkg/client/deployments/post_deployment_resource_proxy_requests_responses.go index 0fdfcaec..8181f8f9 100644 --- a/pkg/client/deployments/post_deployment_resource_proxy_requests_responses.go +++ b/pkg/client/deployments/post_deployment_resource_proxy_requests_responses.go @@ -68,7 +68,8 @@ func NewPostDeploymentResourceProxyRequestsOK() *PostDeploymentResourceProxyRequ return &PostDeploymentResourceProxyRequestsOK{} } -/* PostDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. +/* +PostDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. The request has been processed successfully through the proxy. */ @@ -76,9 +77,44 @@ type PostDeploymentResourceProxyRequestsOK struct { Payload *models.GenericResponse } +// IsSuccess returns true when this post deployment resource proxy requests o k response has a 2xx status code +func (o *PostDeploymentResourceProxyRequestsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post deployment resource proxy requests o k response has a 3xx status code +func (o *PostDeploymentResourceProxyRequestsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post deployment resource proxy requests o k response has a 4xx status code +func (o *PostDeploymentResourceProxyRequestsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post deployment resource proxy requests o k response has a 5xx status code +func (o *PostDeploymentResourceProxyRequestsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post deployment resource proxy requests o k response a status code equal to that given +func (o *PostDeploymentResourceProxyRequestsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post deployment resource proxy requests o k response +func (o *PostDeploymentResourceProxyRequestsOK) Code() int { + return 200 +} + func (o *PostDeploymentResourceProxyRequestsOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) } + +func (o *PostDeploymentResourceProxyRequestsOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) +} + func (o *PostDeploymentResourceProxyRequestsOK) GetPayload() *models.GenericResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewPostDeploymentResourceProxyRequestsNotFound() *PostDeploymentResourcePro return &PostDeploymentResourceProxyRequestsNotFound{} } -/* PostDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. +/* + PostDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`) */ @@ -115,9 +153,44 @@ type PostDeploymentResourceProxyRequestsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this post deployment resource proxy requests not found response has a 2xx status code +func (o *PostDeploymentResourceProxyRequestsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post deployment resource proxy requests not found response has a 3xx status code +func (o *PostDeploymentResourceProxyRequestsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post deployment resource proxy requests not found response has a 4xx status code +func (o *PostDeploymentResourceProxyRequestsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post deployment resource proxy requests not found response has a 5xx status code +func (o *PostDeploymentResourceProxyRequestsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post deployment resource proxy requests not found response a status code equal to that given +func (o *PostDeploymentResourceProxyRequestsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post deployment resource proxy requests not found response +func (o *PostDeploymentResourceProxyRequestsNotFound) Code() int { + return 404 +} + func (o *PostDeploymentResourceProxyRequestsNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) } + +func (o *PostDeploymentResourceProxyRequestsNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) +} + func (o *PostDeploymentResourceProxyRequestsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -146,7 +219,8 @@ func NewPostDeploymentResourceProxyRequestsRetryWith() *PostDeploymentResourcePr return &PostDeploymentResourceProxyRequestsRetryWith{} } -/* PostDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. +/* +PostDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -159,9 +233,44 @@ type PostDeploymentResourceProxyRequestsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this post deployment resource proxy requests retry with response has a 2xx status code +func (o *PostDeploymentResourceProxyRequestsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post deployment resource proxy requests retry with response has a 3xx status code +func (o *PostDeploymentResourceProxyRequestsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post deployment resource proxy requests retry with response has a 4xx status code +func (o *PostDeploymentResourceProxyRequestsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this post deployment resource proxy requests retry with response has a 5xx status code +func (o *PostDeploymentResourceProxyRequestsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this post deployment resource proxy requests retry with response a status code equal to that given +func (o *PostDeploymentResourceProxyRequestsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the post deployment resource proxy requests retry with response +func (o *PostDeploymentResourceProxyRequestsRetryWith) Code() int { + return 449 +} + func (o *PostDeploymentResourceProxyRequestsRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) } + +func (o *PostDeploymentResourceProxyRequestsRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] postDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) +} + func (o *PostDeploymentResourceProxyRequestsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/put_deployment_resource_proxy_requests_parameters.go b/pkg/client/deployments/put_deployment_resource_proxy_requests_parameters.go index 2d052470..1482f927 100644 --- a/pkg/client/deployments/put_deployment_resource_proxy_requests_parameters.go +++ b/pkg/client/deployments/put_deployment_resource_proxy_requests_parameters.go @@ -69,10 +69,12 @@ func NewPutDeploymentResourceProxyRequestsParamsWithHTTPClient(client *http.Clie } } -/* PutDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - for the put deployment resource proxy requests operation. +/* +PutDeploymentResourceProxyRequestsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put deployment resource proxy requests operation. + + Typically these are written to a http.Request. */ type PutDeploymentResourceProxyRequestsParams struct { diff --git a/pkg/client/deployments/put_deployment_resource_proxy_requests_responses.go b/pkg/client/deployments/put_deployment_resource_proxy_requests_responses.go index bc445946..3f45278a 100644 --- a/pkg/client/deployments/put_deployment_resource_proxy_requests_responses.go +++ b/pkg/client/deployments/put_deployment_resource_proxy_requests_responses.go @@ -68,7 +68,8 @@ func NewPutDeploymentResourceProxyRequestsOK() *PutDeploymentResourceProxyReques return &PutDeploymentResourceProxyRequestsOK{} } -/* PutDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. +/* +PutDeploymentResourceProxyRequestsOK describes a response with status code 200, with default header values. The request has been processed successfully through the proxy. */ @@ -76,9 +77,44 @@ type PutDeploymentResourceProxyRequestsOK struct { Payload *models.GenericResponse } +// IsSuccess returns true when this put deployment resource proxy requests o k response has a 2xx status code +func (o *PutDeploymentResourceProxyRequestsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put deployment resource proxy requests o k response has a 3xx status code +func (o *PutDeploymentResourceProxyRequestsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put deployment resource proxy requests o k response has a 4xx status code +func (o *PutDeploymentResourceProxyRequestsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put deployment resource proxy requests o k response has a 5xx status code +func (o *PutDeploymentResourceProxyRequestsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put deployment resource proxy requests o k response a status code equal to that given +func (o *PutDeploymentResourceProxyRequestsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put deployment resource proxy requests o k response +func (o *PutDeploymentResourceProxyRequestsOK) Code() int { + return 200 +} + func (o *PutDeploymentResourceProxyRequestsOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) } + +func (o *PutDeploymentResourceProxyRequestsOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsOK %+v", 200, o.Payload) +} + func (o *PutDeploymentResourceProxyRequestsOK) GetPayload() *models.GenericResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewPutDeploymentResourceProxyRequestsNotFound() *PutDeploymentResourceProxy return &PutDeploymentResourceProxyRequestsNotFound{} } -/* PutDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. +/* + PutDeploymentResourceProxyRequestsNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`) */ @@ -115,9 +153,44 @@ type PutDeploymentResourceProxyRequestsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this put deployment resource proxy requests not found response has a 2xx status code +func (o *PutDeploymentResourceProxyRequestsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put deployment resource proxy requests not found response has a 3xx status code +func (o *PutDeploymentResourceProxyRequestsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put deployment resource proxy requests not found response has a 4xx status code +func (o *PutDeploymentResourceProxyRequestsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put deployment resource proxy requests not found response has a 5xx status code +func (o *PutDeploymentResourceProxyRequestsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put deployment resource proxy requests not found response a status code equal to that given +func (o *PutDeploymentResourceProxyRequestsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put deployment resource proxy requests not found response +func (o *PutDeploymentResourceProxyRequestsNotFound) Code() int { + return 404 +} + func (o *PutDeploymentResourceProxyRequestsNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) } + +func (o *PutDeploymentResourceProxyRequestsNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsNotFound %+v", 404, o.Payload) +} + func (o *PutDeploymentResourceProxyRequestsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -146,7 +219,8 @@ func NewPutDeploymentResourceProxyRequestsRetryWith() *PutDeploymentResourceProx return &PutDeploymentResourceProxyRequestsRetryWith{} } -/* PutDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. +/* +PutDeploymentResourceProxyRequestsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -159,9 +233,44 @@ type PutDeploymentResourceProxyRequestsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this put deployment resource proxy requests retry with response has a 2xx status code +func (o *PutDeploymentResourceProxyRequestsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put deployment resource proxy requests retry with response has a 3xx status code +func (o *PutDeploymentResourceProxyRequestsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put deployment resource proxy requests retry with response has a 4xx status code +func (o *PutDeploymentResourceProxyRequestsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this put deployment resource proxy requests retry with response has a 5xx status code +func (o *PutDeploymentResourceProxyRequestsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this put deployment resource proxy requests retry with response a status code equal to that given +func (o *PutDeploymentResourceProxyRequestsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the put deployment resource proxy requests retry with response +func (o *PutDeploymentResourceProxyRequestsRetryWith) Code() int { + return 449 +} + func (o *PutDeploymentResourceProxyRequestsRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) } + +func (o *PutDeploymentResourceProxyRequestsRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}][%d] putDeploymentResourceProxyRequestsRetryWith %+v", 449, o.Payload) +} + func (o *PutDeploymentResourceProxyRequestsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/reset_elasticsearch_user_password_parameters.go b/pkg/client/deployments/reset_elasticsearch_user_password_parameters.go index e9428e73..12743c67 100644 --- a/pkg/client/deployments/reset_elasticsearch_user_password_parameters.go +++ b/pkg/client/deployments/reset_elasticsearch_user_password_parameters.go @@ -69,10 +69,12 @@ func NewResetElasticsearchUserPasswordParamsWithHTTPClient(client *http.Client) } } -/* ResetElasticsearchUserPasswordParams contains all the parameters to send to the API endpoint - for the reset elasticsearch user password operation. +/* +ResetElasticsearchUserPasswordParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the reset elasticsearch user password operation. + + Typically these are written to a http.Request. */ type ResetElasticsearchUserPasswordParams struct { diff --git a/pkg/client/deployments/reset_elasticsearch_user_password_responses.go b/pkg/client/deployments/reset_elasticsearch_user_password_responses.go index ea444e8e..87acff2d 100644 --- a/pkg/client/deployments/reset_elasticsearch_user_password_responses.go +++ b/pkg/client/deployments/reset_elasticsearch_user_password_responses.go @@ -74,7 +74,8 @@ func NewResetElasticsearchUserPasswordOK() *ResetElasticsearchUserPasswordOK { return &ResetElasticsearchUserPasswordOK{} } -/* ResetElasticsearchUserPasswordOK describes a response with status code 200, with default header values. +/* +ResetElasticsearchUserPasswordOK describes a response with status code 200, with default header values. The password reset was out carried successfully */ @@ -82,9 +83,44 @@ type ResetElasticsearchUserPasswordOK struct { Payload *models.ElasticsearchElasticUserPasswordResetResponse } +// IsSuccess returns true when this reset elasticsearch user password o k response has a 2xx status code +func (o *ResetElasticsearchUserPasswordOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this reset elasticsearch user password o k response has a 3xx status code +func (o *ResetElasticsearchUserPasswordOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reset elasticsearch user password o k response has a 4xx status code +func (o *ResetElasticsearchUserPasswordOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this reset elasticsearch user password o k response has a 5xx status code +func (o *ResetElasticsearchUserPasswordOK) IsServerError() bool { + return false +} + +// IsCode returns true when this reset elasticsearch user password o k response a status code equal to that given +func (o *ResetElasticsearchUserPasswordOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the reset elasticsearch user password o k response +func (o *ResetElasticsearchUserPasswordOK) Code() int { + return 200 +} + func (o *ResetElasticsearchUserPasswordOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordOK %+v", 200, o.Payload) } + +func (o *ResetElasticsearchUserPasswordOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordOK %+v", 200, o.Payload) +} + func (o *ResetElasticsearchUserPasswordOK) GetPayload() *models.ElasticsearchElasticUserPasswordResetResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewResetElasticsearchUserPasswordNotFound() *ResetElasticsearchUserPassword return &ResetElasticsearchUserPasswordNotFound{} } -/* ResetElasticsearchUserPasswordNotFound describes a response with status code 404, with default header values. +/* + ResetElasticsearchUserPasswordNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type ResetElasticsearchUserPasswordNotFound struct { @@ -120,9 +158,44 @@ type ResetElasticsearchUserPasswordNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this reset elasticsearch user password not found response has a 2xx status code +func (o *ResetElasticsearchUserPasswordNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this reset elasticsearch user password not found response has a 3xx status code +func (o *ResetElasticsearchUserPasswordNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reset elasticsearch user password not found response has a 4xx status code +func (o *ResetElasticsearchUserPasswordNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this reset elasticsearch user password not found response has a 5xx status code +func (o *ResetElasticsearchUserPasswordNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this reset elasticsearch user password not found response a status code equal to that given +func (o *ResetElasticsearchUserPasswordNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the reset elasticsearch user password not found response +func (o *ResetElasticsearchUserPasswordNotFound) Code() int { + return 404 +} + func (o *ResetElasticsearchUserPasswordNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordNotFound %+v", 404, o.Payload) } + +func (o *ResetElasticsearchUserPasswordNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordNotFound %+v", 404, o.Payload) +} + func (o *ResetElasticsearchUserPasswordNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewResetElasticsearchUserPasswordRetryWith() *ResetElasticsearchUserPasswor return &ResetElasticsearchUserPasswordRetryWith{} } -/* ResetElasticsearchUserPasswordRetryWith describes a response with status code 449, with default header values. +/* +ResetElasticsearchUserPasswordRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -164,9 +238,44 @@ type ResetElasticsearchUserPasswordRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this reset elasticsearch user password retry with response has a 2xx status code +func (o *ResetElasticsearchUserPasswordRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this reset elasticsearch user password retry with response has a 3xx status code +func (o *ResetElasticsearchUserPasswordRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reset elasticsearch user password retry with response has a 4xx status code +func (o *ResetElasticsearchUserPasswordRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this reset elasticsearch user password retry with response has a 5xx status code +func (o *ResetElasticsearchUserPasswordRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this reset elasticsearch user password retry with response a status code equal to that given +func (o *ResetElasticsearchUserPasswordRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the reset elasticsearch user password retry with response +func (o *ResetElasticsearchUserPasswordRetryWith) Code() int { + return 449 +} + func (o *ResetElasticsearchUserPasswordRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordRetryWith %+v", 449, o.Payload) } + +func (o *ResetElasticsearchUserPasswordRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordRetryWith %+v", 449, o.Payload) +} + func (o *ResetElasticsearchUserPasswordRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewResetElasticsearchUserPasswordInternalServerError() *ResetElasticsearchU return &ResetElasticsearchUserPasswordInternalServerError{} } -/* ResetElasticsearchUserPasswordInternalServerError describes a response with status code 500, with default header values. +/* +ResetElasticsearchUserPasswordInternalServerError describes a response with status code 500, with default header values. Failed to reset the 'elastic' user's password. (code: `deployments.elasticsearch.password_reset_error`) */ @@ -208,9 +318,44 @@ type ResetElasticsearchUserPasswordInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this reset elasticsearch user password internal server error response has a 2xx status code +func (o *ResetElasticsearchUserPasswordInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this reset elasticsearch user password internal server error response has a 3xx status code +func (o *ResetElasticsearchUserPasswordInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reset elasticsearch user password internal server error response has a 4xx status code +func (o *ResetElasticsearchUserPasswordInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this reset elasticsearch user password internal server error response has a 5xx status code +func (o *ResetElasticsearchUserPasswordInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this reset elasticsearch user password internal server error response a status code equal to that given +func (o *ResetElasticsearchUserPasswordInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the reset elasticsearch user password internal server error response +func (o *ResetElasticsearchUserPasswordInternalServerError) Code() int { + return 500 +} + func (o *ResetElasticsearchUserPasswordInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordInternalServerError %+v", 500, o.Payload) } + +func (o *ResetElasticsearchUserPasswordInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password][%d] resetElasticsearchUserPasswordInternalServerError %+v", 500, o.Payload) +} + func (o *ResetElasticsearchUserPasswordInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/restart_deployment_es_resource_parameters.go b/pkg/client/deployments/restart_deployment_es_resource_parameters.go index 3a5b5b80..db633ee8 100644 --- a/pkg/client/deployments/restart_deployment_es_resource_parameters.go +++ b/pkg/client/deployments/restart_deployment_es_resource_parameters.go @@ -70,10 +70,12 @@ func NewRestartDeploymentEsResourceParamsWithHTTPClient(client *http.Client) *Re } } -/* RestartDeploymentEsResourceParams contains all the parameters to send to the API endpoint - for the restart deployment es resource operation. +/* +RestartDeploymentEsResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restart deployment es resource operation. + + Typically these are written to a http.Request. */ type RestartDeploymentEsResourceParams struct { diff --git a/pkg/client/deployments/restart_deployment_es_resource_responses.go b/pkg/client/deployments/restart_deployment_es_resource_responses.go index 60b2ba07..e904097f 100644 --- a/pkg/client/deployments/restart_deployment_es_resource_responses.go +++ b/pkg/client/deployments/restart_deployment_es_resource_responses.go @@ -80,7 +80,8 @@ func NewRestartDeploymentEsResourceAccepted() *RestartDeploymentEsResourceAccept return &RestartDeploymentEsResourceAccepted{} } -/* RestartDeploymentEsResourceAccepted describes a response with status code 202, with default header values. +/* +RestartDeploymentEsResourceAccepted describes a response with status code 202, with default header values. The restart command was issued successfully. */ @@ -88,9 +89,44 @@ type RestartDeploymentEsResourceAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this restart deployment es resource accepted response has a 2xx status code +func (o *RestartDeploymentEsResourceAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this restart deployment es resource accepted response has a 3xx status code +func (o *RestartDeploymentEsResourceAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment es resource accepted response has a 4xx status code +func (o *RestartDeploymentEsResourceAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this restart deployment es resource accepted response has a 5xx status code +func (o *RestartDeploymentEsResourceAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment es resource accepted response a status code equal to that given +func (o *RestartDeploymentEsResourceAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the restart deployment es resource accepted response +func (o *RestartDeploymentEsResourceAccepted) Code() int { + return 202 +} + func (o *RestartDeploymentEsResourceAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceAccepted %+v", 202, o.Payload) } + +func (o *RestartDeploymentEsResourceAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceAccepted %+v", 202, o.Payload) +} + func (o *RestartDeploymentEsResourceAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,9 +148,11 @@ func NewRestartDeploymentEsResourceNotFound() *RestartDeploymentEsResourceNotFou return &RestartDeploymentEsResourceNotFound{} } -/* RestartDeploymentEsResourceNotFound describes a response with status code 404, with default header values. +/* + RestartDeploymentEsResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type RestartDeploymentEsResourceNotFound struct { @@ -126,9 +164,44 @@ type RestartDeploymentEsResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment es resource not found response has a 2xx status code +func (o *RestartDeploymentEsResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment es resource not found response has a 3xx status code +func (o *RestartDeploymentEsResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment es resource not found response has a 4xx status code +func (o *RestartDeploymentEsResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment es resource not found response has a 5xx status code +func (o *RestartDeploymentEsResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment es resource not found response a status code equal to that given +func (o *RestartDeploymentEsResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the restart deployment es resource not found response +func (o *RestartDeploymentEsResourceNotFound) Code() int { + return 404 +} + func (o *RestartDeploymentEsResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceNotFound %+v", 404, o.Payload) } + +func (o *RestartDeploymentEsResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceNotFound %+v", 404, o.Payload) +} + func (o *RestartDeploymentEsResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -157,7 +230,8 @@ func NewRestartDeploymentEsResourceUnprocessableEntity() *RestartDeploymentEsRes return &RestartDeploymentEsResourceUnprocessableEntity{} } -/* RestartDeploymentEsResourceUnprocessableEntity describes a response with status code 422, with default header values. +/* +RestartDeploymentEsResourceUnprocessableEntity describes a response with status code 422, with default header values. The command sent to a Resource found the Resource in an illegal state, the error message gives more details. (code: `deployments.deployment_resource_plan_change_error`) */ @@ -170,9 +244,44 @@ type RestartDeploymentEsResourceUnprocessableEntity struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment es resource unprocessable entity response has a 2xx status code +func (o *RestartDeploymentEsResourceUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment es resource unprocessable entity response has a 3xx status code +func (o *RestartDeploymentEsResourceUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment es resource unprocessable entity response has a 4xx status code +func (o *RestartDeploymentEsResourceUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment es resource unprocessable entity response has a 5xx status code +func (o *RestartDeploymentEsResourceUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment es resource unprocessable entity response a status code equal to that given +func (o *RestartDeploymentEsResourceUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the restart deployment es resource unprocessable entity response +func (o *RestartDeploymentEsResourceUnprocessableEntity) Code() int { + return 422 +} + func (o *RestartDeploymentEsResourceUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceUnprocessableEntity %+v", 422, o.Payload) } + +func (o *RestartDeploymentEsResourceUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceUnprocessableEntity %+v", 422, o.Payload) +} + func (o *RestartDeploymentEsResourceUnprocessableEntity) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -201,7 +310,8 @@ func NewRestartDeploymentEsResourceRetryWith() *RestartDeploymentEsResourceRetry return &RestartDeploymentEsResourceRetryWith{} } -/* RestartDeploymentEsResourceRetryWith describes a response with status code 449, with default header values. +/* +RestartDeploymentEsResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -214,9 +324,44 @@ type RestartDeploymentEsResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment es resource retry with response has a 2xx status code +func (o *RestartDeploymentEsResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment es resource retry with response has a 3xx status code +func (o *RestartDeploymentEsResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment es resource retry with response has a 4xx status code +func (o *RestartDeploymentEsResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment es resource retry with response has a 5xx status code +func (o *RestartDeploymentEsResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment es resource retry with response a status code equal to that given +func (o *RestartDeploymentEsResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the restart deployment es resource retry with response +func (o *RestartDeploymentEsResourceRetryWith) Code() int { + return 449 +} + func (o *RestartDeploymentEsResourceRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceRetryWith %+v", 449, o.Payload) } + +func (o *RestartDeploymentEsResourceRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceRetryWith %+v", 449, o.Payload) +} + func (o *RestartDeploymentEsResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewRestartDeploymentEsResourceInternalServerError() *RestartDeploymentEsRes return &RestartDeploymentEsResourceInternalServerError{} } -/* RestartDeploymentEsResourceInternalServerError describes a response with status code 500, with default header values. +/* +RestartDeploymentEsResourceInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -258,9 +404,44 @@ type RestartDeploymentEsResourceInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment es resource internal server error response has a 2xx status code +func (o *RestartDeploymentEsResourceInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment es resource internal server error response has a 3xx status code +func (o *RestartDeploymentEsResourceInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment es resource internal server error response has a 4xx status code +func (o *RestartDeploymentEsResourceInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this restart deployment es resource internal server error response has a 5xx status code +func (o *RestartDeploymentEsResourceInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this restart deployment es resource internal server error response a status code equal to that given +func (o *RestartDeploymentEsResourceInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the restart deployment es resource internal server error response +func (o *RestartDeploymentEsResourceInternalServerError) Code() int { + return 500 +} + func (o *RestartDeploymentEsResourceInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceInternalServerError %+v", 500, o.Payload) } + +func (o *RestartDeploymentEsResourceInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_restart][%d] restartDeploymentEsResourceInternalServerError %+v", 500, o.Payload) +} + func (o *RestartDeploymentEsResourceInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/restart_deployment_stateless_resource_parameters.go b/pkg/client/deployments/restart_deployment_stateless_resource_parameters.go index b1ad781d..874f02fd 100644 --- a/pkg/client/deployments/restart_deployment_stateless_resource_parameters.go +++ b/pkg/client/deployments/restart_deployment_stateless_resource_parameters.go @@ -70,10 +70,12 @@ func NewRestartDeploymentStatelessResourceParamsWithHTTPClient(client *http.Clie } } -/* RestartDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - for the restart deployment stateless resource operation. +/* +RestartDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restart deployment stateless resource operation. + + Typically these are written to a http.Request. */ type RestartDeploymentStatelessResourceParams struct { diff --git a/pkg/client/deployments/restart_deployment_stateless_resource_responses.go b/pkg/client/deployments/restart_deployment_stateless_resource_responses.go index 14a23bde..2bb38db8 100644 --- a/pkg/client/deployments/restart_deployment_stateless_resource_responses.go +++ b/pkg/client/deployments/restart_deployment_stateless_resource_responses.go @@ -80,7 +80,8 @@ func NewRestartDeploymentStatelessResourceAccepted() *RestartDeploymentStateless return &RestartDeploymentStatelessResourceAccepted{} } -/* RestartDeploymentStatelessResourceAccepted describes a response with status code 202, with default header values. +/* +RestartDeploymentStatelessResourceAccepted describes a response with status code 202, with default header values. The restart command was issued successfully */ @@ -88,9 +89,44 @@ type RestartDeploymentStatelessResourceAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this restart deployment stateless resource accepted response has a 2xx status code +func (o *RestartDeploymentStatelessResourceAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this restart deployment stateless resource accepted response has a 3xx status code +func (o *RestartDeploymentStatelessResourceAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment stateless resource accepted response has a 4xx status code +func (o *RestartDeploymentStatelessResourceAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this restart deployment stateless resource accepted response has a 5xx status code +func (o *RestartDeploymentStatelessResourceAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment stateless resource accepted response a status code equal to that given +func (o *RestartDeploymentStatelessResourceAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the restart deployment stateless resource accepted response +func (o *RestartDeploymentStatelessResourceAccepted) Code() int { + return 202 +} + func (o *RestartDeploymentStatelessResourceAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceAccepted %+v", 202, o.Payload) } + +func (o *RestartDeploymentStatelessResourceAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceAccepted %+v", 202, o.Payload) +} + func (o *RestartDeploymentStatelessResourceAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,9 +148,11 @@ func NewRestartDeploymentStatelessResourceNotFound() *RestartDeploymentStateless return &RestartDeploymentStatelessResourceNotFound{} } -/* RestartDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. +/* + RestartDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type RestartDeploymentStatelessResourceNotFound struct { @@ -126,9 +164,44 @@ type RestartDeploymentStatelessResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment stateless resource not found response has a 2xx status code +func (o *RestartDeploymentStatelessResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment stateless resource not found response has a 3xx status code +func (o *RestartDeploymentStatelessResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment stateless resource not found response has a 4xx status code +func (o *RestartDeploymentStatelessResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment stateless resource not found response has a 5xx status code +func (o *RestartDeploymentStatelessResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment stateless resource not found response a status code equal to that given +func (o *RestartDeploymentStatelessResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the restart deployment stateless resource not found response +func (o *RestartDeploymentStatelessResourceNotFound) Code() int { + return 404 +} + func (o *RestartDeploymentStatelessResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceNotFound %+v", 404, o.Payload) } + +func (o *RestartDeploymentStatelessResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceNotFound %+v", 404, o.Payload) +} + func (o *RestartDeploymentStatelessResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -157,7 +230,8 @@ func NewRestartDeploymentStatelessResourceUnprocessableEntity() *RestartDeployme return &RestartDeploymentStatelessResourceUnprocessableEntity{} } -/* RestartDeploymentStatelessResourceUnprocessableEntity describes a response with status code 422, with default header values. +/* +RestartDeploymentStatelessResourceUnprocessableEntity describes a response with status code 422, with default header values. The command sent to a Resource found the Resource in an illegal state, the error message gives more details. (code: `deployments.deployment_resource_plan_change_error`) */ @@ -170,9 +244,44 @@ type RestartDeploymentStatelessResourceUnprocessableEntity struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment stateless resource unprocessable entity response has a 2xx status code +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment stateless resource unprocessable entity response has a 3xx status code +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment stateless resource unprocessable entity response has a 4xx status code +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment stateless resource unprocessable entity response has a 5xx status code +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment stateless resource unprocessable entity response a status code equal to that given +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the restart deployment stateless resource unprocessable entity response +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) Code() int { + return 422 +} + func (o *RestartDeploymentStatelessResourceUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceUnprocessableEntity %+v", 422, o.Payload) } + +func (o *RestartDeploymentStatelessResourceUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceUnprocessableEntity %+v", 422, o.Payload) +} + func (o *RestartDeploymentStatelessResourceUnprocessableEntity) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -201,7 +310,8 @@ func NewRestartDeploymentStatelessResourceRetryWith() *RestartDeploymentStateles return &RestartDeploymentStatelessResourceRetryWith{} } -/* RestartDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. +/* +RestartDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -214,9 +324,44 @@ type RestartDeploymentStatelessResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment stateless resource retry with response has a 2xx status code +func (o *RestartDeploymentStatelessResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment stateless resource retry with response has a 3xx status code +func (o *RestartDeploymentStatelessResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment stateless resource retry with response has a 4xx status code +func (o *RestartDeploymentStatelessResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this restart deployment stateless resource retry with response has a 5xx status code +func (o *RestartDeploymentStatelessResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this restart deployment stateless resource retry with response a status code equal to that given +func (o *RestartDeploymentStatelessResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the restart deployment stateless resource retry with response +func (o *RestartDeploymentStatelessResourceRetryWith) Code() int { + return 449 +} + func (o *RestartDeploymentStatelessResourceRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) } + +func (o *RestartDeploymentStatelessResourceRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) +} + func (o *RestartDeploymentStatelessResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewRestartDeploymentStatelessResourceInternalServerError() *RestartDeployme return &RestartDeploymentStatelessResourceInternalServerError{} } -/* RestartDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. +/* +RestartDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -258,9 +404,44 @@ type RestartDeploymentStatelessResourceInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restart deployment stateless resource internal server error response has a 2xx status code +func (o *RestartDeploymentStatelessResourceInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restart deployment stateless resource internal server error response has a 3xx status code +func (o *RestartDeploymentStatelessResourceInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restart deployment stateless resource internal server error response has a 4xx status code +func (o *RestartDeploymentStatelessResourceInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this restart deployment stateless resource internal server error response has a 5xx status code +func (o *RestartDeploymentStatelessResourceInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this restart deployment stateless resource internal server error response a status code equal to that given +func (o *RestartDeploymentStatelessResourceInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the restart deployment stateless resource internal server error response +func (o *RestartDeploymentStatelessResourceInternalServerError) Code() int { + return 500 +} + func (o *RestartDeploymentStatelessResourceInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) } + +func (o *RestartDeploymentStatelessResourceInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart][%d] restartDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) +} + func (o *RestartDeploymentStatelessResourceInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/restore_deployment_parameters.go b/pkg/client/deployments/restore_deployment_parameters.go index 71924f30..e45e944d 100644 --- a/pkg/client/deployments/restore_deployment_parameters.go +++ b/pkg/client/deployments/restore_deployment_parameters.go @@ -70,10 +70,12 @@ func NewRestoreDeploymentParamsWithHTTPClient(client *http.Client) *RestoreDeplo } } -/* RestoreDeploymentParams contains all the parameters to send to the API endpoint - for the restore deployment operation. +/* +RestoreDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restore deployment operation. + + Typically these are written to a http.Request. */ type RestoreDeploymentParams struct { diff --git a/pkg/client/deployments/restore_deployment_resource_parameters.go b/pkg/client/deployments/restore_deployment_resource_parameters.go index d065ebcd..8e6b03fe 100644 --- a/pkg/client/deployments/restore_deployment_resource_parameters.go +++ b/pkg/client/deployments/restore_deployment_resource_parameters.go @@ -70,10 +70,12 @@ func NewRestoreDeploymentResourceParamsWithHTTPClient(client *http.Client) *Rest } } -/* RestoreDeploymentResourceParams contains all the parameters to send to the API endpoint - for the restore deployment resource operation. +/* +RestoreDeploymentResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restore deployment resource operation. + + Typically these are written to a http.Request. */ type RestoreDeploymentResourceParams struct { diff --git a/pkg/client/deployments/restore_deployment_resource_responses.go b/pkg/client/deployments/restore_deployment_resource_responses.go index 0116a773..65285223 100644 --- a/pkg/client/deployments/restore_deployment_resource_responses.go +++ b/pkg/client/deployments/restore_deployment_resource_responses.go @@ -74,7 +74,8 @@ func NewRestoreDeploymentResourceOK() *RestoreDeploymentResourceOK { return &RestoreDeploymentResourceOK{} } -/* RestoreDeploymentResourceOK describes a response with status code 200, with default header values. +/* +RestoreDeploymentResourceOK describes a response with status code 200, with default header values. Standard Deployment Resource Crud Response */ @@ -82,9 +83,44 @@ type RestoreDeploymentResourceOK struct { Payload *models.DeploymentResourceCrudResponse } +// IsSuccess returns true when this restore deployment resource o k response has a 2xx status code +func (o *RestoreDeploymentResourceOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this restore deployment resource o k response has a 3xx status code +func (o *RestoreDeploymentResourceOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment resource o k response has a 4xx status code +func (o *RestoreDeploymentResourceOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this restore deployment resource o k response has a 5xx status code +func (o *RestoreDeploymentResourceOK) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment resource o k response a status code equal to that given +func (o *RestoreDeploymentResourceOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the restore deployment resource o k response +func (o *RestoreDeploymentResourceOK) Code() int { + return 200 +} + func (o *RestoreDeploymentResourceOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceOK %+v", 200, o.Payload) } + +func (o *RestoreDeploymentResourceOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceOK %+v", 200, o.Payload) +} + func (o *RestoreDeploymentResourceOK) GetPayload() *models.DeploymentResourceCrudResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewRestoreDeploymentResourceBadRequest() *RestoreDeploymentResourceBadReque return &RestoreDeploymentResourceBadRequest{} } -/* RestoreDeploymentResourceBadRequest describes a response with status code 400, with default header values. +/* + RestoreDeploymentResourceBadRequest describes a response with status code 400, with default header values. + + * The Resource does not have a pending plan. (code: `deployments.resource_does_not_have_a_pending_plan`) - * The Resource does not have a pending plan. (code: `deployments.resource_does_not_have_a_pending_plan`) * The resource is not shut down. (code: `deployments.resource_not_shutdown`) */ type RestoreDeploymentResourceBadRequest struct { @@ -120,9 +158,44 @@ type RestoreDeploymentResourceBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment resource bad request response has a 2xx status code +func (o *RestoreDeploymentResourceBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment resource bad request response has a 3xx status code +func (o *RestoreDeploymentResourceBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment resource bad request response has a 4xx status code +func (o *RestoreDeploymentResourceBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment resource bad request response has a 5xx status code +func (o *RestoreDeploymentResourceBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment resource bad request response a status code equal to that given +func (o *RestoreDeploymentResourceBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the restore deployment resource bad request response +func (o *RestoreDeploymentResourceBadRequest) Code() int { + return 400 +} + func (o *RestoreDeploymentResourceBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceBadRequest %+v", 400, o.Payload) } + +func (o *RestoreDeploymentResourceBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceBadRequest %+v", 400, o.Payload) +} + func (o *RestoreDeploymentResourceBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewRestoreDeploymentResourceNotFound() *RestoreDeploymentResourceNotFound { return &RestoreDeploymentResourceNotFound{} } -/* RestoreDeploymentResourceNotFound describes a response with status code 404, with default header values. +/* +RestoreDeploymentResourceNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -164,9 +238,44 @@ type RestoreDeploymentResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment resource not found response has a 2xx status code +func (o *RestoreDeploymentResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment resource not found response has a 3xx status code +func (o *RestoreDeploymentResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment resource not found response has a 4xx status code +func (o *RestoreDeploymentResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment resource not found response has a 5xx status code +func (o *RestoreDeploymentResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment resource not found response a status code equal to that given +func (o *RestoreDeploymentResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the restore deployment resource not found response +func (o *RestoreDeploymentResourceNotFound) Code() int { + return 404 +} + func (o *RestoreDeploymentResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceNotFound %+v", 404, o.Payload) } + +func (o *RestoreDeploymentResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceNotFound %+v", 404, o.Payload) +} + func (o *RestoreDeploymentResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewRestoreDeploymentResourceRetryWith() *RestoreDeploymentResourceRetryWith return &RestoreDeploymentResourceRetryWith{} } -/* RestoreDeploymentResourceRetryWith describes a response with status code 449, with default header values. +/* +RestoreDeploymentResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -208,9 +318,44 @@ type RestoreDeploymentResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment resource retry with response has a 2xx status code +func (o *RestoreDeploymentResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment resource retry with response has a 3xx status code +func (o *RestoreDeploymentResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment resource retry with response has a 4xx status code +func (o *RestoreDeploymentResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment resource retry with response has a 5xx status code +func (o *RestoreDeploymentResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment resource retry with response a status code equal to that given +func (o *RestoreDeploymentResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the restore deployment resource retry with response +func (o *RestoreDeploymentResourceRetryWith) Code() int { + return 449 +} + func (o *RestoreDeploymentResourceRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceRetryWith %+v", 449, o.Payload) } + +func (o *RestoreDeploymentResourceRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore][%d] restoreDeploymentResourceRetryWith %+v", 449, o.Payload) +} + func (o *RestoreDeploymentResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/restore_deployment_responses.go b/pkg/client/deployments/restore_deployment_responses.go index da809a7d..0bf7d7cb 100644 --- a/pkg/client/deployments/restore_deployment_responses.go +++ b/pkg/client/deployments/restore_deployment_responses.go @@ -74,7 +74,8 @@ func NewRestoreDeploymentOK() *RestoreDeploymentOK { return &RestoreDeploymentOK{} } -/* RestoreDeploymentOK describes a response with status code 200, with default header values. +/* +RestoreDeploymentOK describes a response with status code 200, with default header values. The request was valid and the resources of the deployment were restored. */ @@ -82,9 +83,44 @@ type RestoreDeploymentOK struct { Payload *models.DeploymentRestoreResponse } +// IsSuccess returns true when this restore deployment o k response has a 2xx status code +func (o *RestoreDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this restore deployment o k response has a 3xx status code +func (o *RestoreDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment o k response has a 4xx status code +func (o *RestoreDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this restore deployment o k response has a 5xx status code +func (o *RestoreDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment o k response a status code equal to that given +func (o *RestoreDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the restore deployment o k response +func (o *RestoreDeploymentOK) Code() int { + return 200 +} + func (o *RestoreDeploymentOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentOK %+v", 200, o.Payload) } + +func (o *RestoreDeploymentOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentOK %+v", 200, o.Payload) +} + func (o *RestoreDeploymentOK) GetPayload() *models.DeploymentRestoreResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewRestoreDeploymentBadRequest() *RestoreDeploymentBadRequest { return &RestoreDeploymentBadRequest{} } -/* RestoreDeploymentBadRequest describes a response with status code 400, with default header values. +/* +RestoreDeploymentBadRequest describes a response with status code 400, with default header values. There are Elasticsearch resources in the deployment which are not shut down. */ @@ -114,9 +151,44 @@ type RestoreDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment bad request response has a 2xx status code +func (o *RestoreDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment bad request response has a 3xx status code +func (o *RestoreDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment bad request response has a 4xx status code +func (o *RestoreDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment bad request response has a 5xx status code +func (o *RestoreDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment bad request response a status code equal to that given +func (o *RestoreDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the restore deployment bad request response +func (o *RestoreDeploymentBadRequest) Code() int { + return 400 +} + func (o *RestoreDeploymentBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *RestoreDeploymentBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *RestoreDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -138,7 +210,8 @@ func NewRestoreDeploymentUnauthorized() *RestoreDeploymentUnauthorized { return &RestoreDeploymentUnauthorized{} } -/* RestoreDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +RestoreDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -146,9 +219,44 @@ type RestoreDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment unauthorized response has a 2xx status code +func (o *RestoreDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment unauthorized response has a 3xx status code +func (o *RestoreDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment unauthorized response has a 4xx status code +func (o *RestoreDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment unauthorized response has a 5xx status code +func (o *RestoreDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment unauthorized response a status code equal to that given +func (o *RestoreDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the restore deployment unauthorized response +func (o *RestoreDeploymentUnauthorized) Code() int { + return 401 +} + func (o *RestoreDeploymentUnauthorized) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *RestoreDeploymentUnauthorized) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *RestoreDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -170,7 +278,8 @@ func NewRestoreDeploymentNotFound() *RestoreDeploymentNotFound { return &RestoreDeploymentNotFound{} } -/* RestoreDeploymentNotFound describes a response with status code 404, with default header values. +/* +RestoreDeploymentNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -183,9 +292,44 @@ type RestoreDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this restore deployment not found response has a 2xx status code +func (o *RestoreDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this restore deployment not found response has a 3xx status code +func (o *RestoreDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this restore deployment not found response has a 4xx status code +func (o *RestoreDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this restore deployment not found response has a 5xx status code +func (o *RestoreDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this restore deployment not found response a status code equal to that given +func (o *RestoreDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the restore deployment not found response +func (o *RestoreDeploymentNotFound) Code() int { + return 404 +} + func (o *RestoreDeploymentNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentNotFound %+v", 404, o.Payload) } + +func (o *RestoreDeploymentNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_restore][%d] restoreDeploymentNotFound %+v", 404, o.Payload) +} + func (o *RestoreDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/resync_deployment_parameters.go b/pkg/client/deployments/resync_deployment_parameters.go index 77e6f377..9bdac40b 100644 --- a/pkg/client/deployments/resync_deployment_parameters.go +++ b/pkg/client/deployments/resync_deployment_parameters.go @@ -69,10 +69,12 @@ func NewResyncDeploymentParamsWithHTTPClient(client *http.Client) *ResyncDeploym } } -/* ResyncDeploymentParams contains all the parameters to send to the API endpoint - for the resync deployment operation. +/* +ResyncDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync deployment operation. + + Typically these are written to a http.Request. */ type ResyncDeploymentParams struct { diff --git a/pkg/client/deployments/resync_deployment_responses.go b/pkg/client/deployments/resync_deployment_responses.go index b7042b32..6dd97996 100644 --- a/pkg/client/deployments/resync_deployment_responses.go +++ b/pkg/client/deployments/resync_deployment_responses.go @@ -68,7 +68,8 @@ func NewResyncDeploymentOK() *ResyncDeploymentOK { return &ResyncDeploymentOK{} } -/* ResyncDeploymentOK describes a response with status code 200, with default header values. +/* +ResyncDeploymentOK describes a response with status code 200, with default header values. The deployment resync operation executed successfully. */ @@ -76,9 +77,44 @@ type ResyncDeploymentOK struct { Payload *models.IndexSynchronizationResults } +// IsSuccess returns true when this resync deployment o k response has a 2xx status code +func (o *ResyncDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync deployment o k response has a 3xx status code +func (o *ResyncDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployment o k response has a 4xx status code +func (o *ResyncDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync deployment o k response has a 5xx status code +func (o *ResyncDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this resync deployment o k response a status code equal to that given +func (o *ResyncDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the resync deployment o k response +func (o *ResyncDeploymentOK) Code() int { + return 200 +} + func (o *ResyncDeploymentOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentOK %+v", 200, o.Payload) } + +func (o *ResyncDeploymentOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentOK %+v", 200, o.Payload) +} + func (o *ResyncDeploymentOK) GetPayload() *models.IndexSynchronizationResults { return o.Payload } @@ -100,7 +136,8 @@ func NewResyncDeploymentRetryWith() *ResyncDeploymentRetryWith { return &ResyncDeploymentRetryWith{} } -/* ResyncDeploymentRetryWith describes a response with status code 449, with default header values. +/* +ResyncDeploymentRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -113,9 +150,44 @@ type ResyncDeploymentRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync deployment retry with response has a 2xx status code +func (o *ResyncDeploymentRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync deployment retry with response has a 3xx status code +func (o *ResyncDeploymentRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployment retry with response has a 4xx status code +func (o *ResyncDeploymentRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync deployment retry with response has a 5xx status code +func (o *ResyncDeploymentRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync deployment retry with response a status code equal to that given +func (o *ResyncDeploymentRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync deployment retry with response +func (o *ResyncDeploymentRetryWith) Code() int { + return 449 +} + func (o *ResyncDeploymentRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentRetryWith %+v", 449, o.Payload) } + +func (o *ResyncDeploymentRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentRetryWith %+v", 449, o.Payload) +} + func (o *ResyncDeploymentRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewResyncDeploymentInternalServerError() *ResyncDeploymentInternalServerErr return &ResyncDeploymentInternalServerError{} } -/* ResyncDeploymentInternalServerError describes a response with status code 500, with default header values. +/* +ResyncDeploymentInternalServerError describes a response with status code 500, with default header values. The deployment resync operation failed for deployment {deployment_id}. (code: `deployments.resync_failed`) */ @@ -157,9 +230,44 @@ type ResyncDeploymentInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync deployment internal server error response has a 2xx status code +func (o *ResyncDeploymentInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync deployment internal server error response has a 3xx status code +func (o *ResyncDeploymentInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployment internal server error response has a 4xx status code +func (o *ResyncDeploymentInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync deployment internal server error response has a 5xx status code +func (o *ResyncDeploymentInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this resync deployment internal server error response a status code equal to that given +func (o *ResyncDeploymentInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the resync deployment internal server error response +func (o *ResyncDeploymentInternalServerError) Code() int { + return 500 +} + func (o *ResyncDeploymentInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentInternalServerError %+v", 500, o.Payload) } + +func (o *ResyncDeploymentInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_resync][%d] resyncDeploymentInternalServerError %+v", 500, o.Payload) +} + func (o *ResyncDeploymentInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/resync_deployments_parameters.go b/pkg/client/deployments/resync_deployments_parameters.go index 5811e1fa..e8993df5 100644 --- a/pkg/client/deployments/resync_deployments_parameters.go +++ b/pkg/client/deployments/resync_deployments_parameters.go @@ -70,10 +70,12 @@ func NewResyncDeploymentsParamsWithHTTPClient(client *http.Client) *ResyncDeploy } } -/* ResyncDeploymentsParams contains all the parameters to send to the API endpoint - for the resync deployments operation. +/* +ResyncDeploymentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync deployments operation. + + Typically these are written to a http.Request. */ type ResyncDeploymentsParams struct { diff --git a/pkg/client/deployments/resync_deployments_responses.go b/pkg/client/deployments/resync_deployments_responses.go index dbfb52a6..b55d74a9 100644 --- a/pkg/client/deployments/resync_deployments_responses.go +++ b/pkg/client/deployments/resync_deployments_responses.go @@ -68,7 +68,8 @@ func NewResyncDeploymentsOK() *ResyncDeploymentsOK { return &ResyncDeploymentsOK{} } -/* ResyncDeploymentsOK describes a response with status code 200, with default header values. +/* +ResyncDeploymentsOK describes a response with status code 200, with default header values. The deployments resync operation executed successfully. */ @@ -76,9 +77,44 @@ type ResyncDeploymentsOK struct { Payload *models.IndexSynchronizationResults } +// IsSuccess returns true when this resync deployments o k response has a 2xx status code +func (o *ResyncDeploymentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync deployments o k response has a 3xx status code +func (o *ResyncDeploymentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployments o k response has a 4xx status code +func (o *ResyncDeploymentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync deployments o k response has a 5xx status code +func (o *ResyncDeploymentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this resync deployments o k response a status code equal to that given +func (o *ResyncDeploymentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the resync deployments o k response +func (o *ResyncDeploymentsOK) Code() int { + return 200 +} + func (o *ResyncDeploymentsOK) Error() string { return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsOK %+v", 200, o.Payload) } + +func (o *ResyncDeploymentsOK) String() string { + return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsOK %+v", 200, o.Payload) +} + func (o *ResyncDeploymentsOK) GetPayload() *models.IndexSynchronizationResults { return o.Payload } @@ -100,7 +136,8 @@ func NewResyncDeploymentsRetryWith() *ResyncDeploymentsRetryWith { return &ResyncDeploymentsRetryWith{} } -/* ResyncDeploymentsRetryWith describes a response with status code 449, with default header values. +/* +ResyncDeploymentsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -113,9 +150,44 @@ type ResyncDeploymentsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync deployments retry with response has a 2xx status code +func (o *ResyncDeploymentsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync deployments retry with response has a 3xx status code +func (o *ResyncDeploymentsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployments retry with response has a 4xx status code +func (o *ResyncDeploymentsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync deployments retry with response has a 5xx status code +func (o *ResyncDeploymentsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync deployments retry with response a status code equal to that given +func (o *ResyncDeploymentsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync deployments retry with response +func (o *ResyncDeploymentsRetryWith) Code() int { + return 449 +} + func (o *ResyncDeploymentsRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsRetryWith %+v", 449, o.Payload) } + +func (o *ResyncDeploymentsRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsRetryWith %+v", 449, o.Payload) +} + func (o *ResyncDeploymentsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewResyncDeploymentsInternalServerError() *ResyncDeploymentsInternalServerE return &ResyncDeploymentsInternalServerError{} } -/* ResyncDeploymentsInternalServerError describes a response with status code 500, with default header values. +/* +ResyncDeploymentsInternalServerError describes a response with status code 500, with default header values. The deployments resync operation failed. (code: `deployments.resync_failed`) */ @@ -157,9 +230,44 @@ type ResyncDeploymentsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync deployments internal server error response has a 2xx status code +func (o *ResyncDeploymentsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync deployments internal server error response has a 3xx status code +func (o *ResyncDeploymentsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync deployments internal server error response has a 4xx status code +func (o *ResyncDeploymentsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync deployments internal server error response has a 5xx status code +func (o *ResyncDeploymentsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this resync deployments internal server error response a status code equal to that given +func (o *ResyncDeploymentsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the resync deployments internal server error response +func (o *ResyncDeploymentsInternalServerError) Code() int { + return 500 +} + func (o *ResyncDeploymentsInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsInternalServerError %+v", 500, o.Payload) } + +func (o *ResyncDeploymentsInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/_resync][%d] resyncDeploymentsInternalServerError %+v", 500, o.Payload) +} + func (o *ResyncDeploymentsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/search_deployments_parameters.go b/pkg/client/deployments/search_deployments_parameters.go index 1bf7b90d..bd098228 100644 --- a/pkg/client/deployments/search_deployments_parameters.go +++ b/pkg/client/deployments/search_deployments_parameters.go @@ -71,10 +71,12 @@ func NewSearchDeploymentsParamsWithHTTPClient(client *http.Client) *SearchDeploy } } -/* SearchDeploymentsParams contains all the parameters to send to the API endpoint - for the search deployments operation. +/* +SearchDeploymentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search deployments operation. + + Typically these are written to a http.Request. */ type SearchDeploymentsParams struct { diff --git a/pkg/client/deployments/search_deployments_responses.go b/pkg/client/deployments/search_deployments_responses.go index 7086f2d1..694acf10 100644 --- a/pkg/client/deployments/search_deployments_responses.go +++ b/pkg/client/deployments/search_deployments_responses.go @@ -56,7 +56,8 @@ func NewSearchDeploymentsOK() *SearchDeploymentsOK { return &SearchDeploymentsOK{} } -/* SearchDeploymentsOK describes a response with status code 200, with default header values. +/* +SearchDeploymentsOK describes a response with status code 200, with default header values. The list of deployments that match the specified query and belong to the authenticated user. */ @@ -77,9 +78,44 @@ type SearchDeploymentsOK struct { Payload *models.DeploymentsSearchResponse } +// IsSuccess returns true when this search deployments o k response has a 2xx status code +func (o *SearchDeploymentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this search deployments o k response has a 3xx status code +func (o *SearchDeploymentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search deployments o k response has a 4xx status code +func (o *SearchDeploymentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this search deployments o k response has a 5xx status code +func (o *SearchDeploymentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this search deployments o k response a status code equal to that given +func (o *SearchDeploymentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the search deployments o k response +func (o *SearchDeploymentsOK) Code() int { + return 200 +} + func (o *SearchDeploymentsOK) Error() string { return fmt.Sprintf("[POST /deployments/_search][%d] searchDeploymentsOK %+v", 200, o.Payload) } + +func (o *SearchDeploymentsOK) String() string { + return fmt.Sprintf("[POST /deployments/_search][%d] searchDeploymentsOK %+v", 200, o.Payload) +} + func (o *SearchDeploymentsOK) GetPayload() *models.DeploymentsSearchResponse { return o.Payload } diff --git a/pkg/client/deployments/search_eligible_remote_clusters_parameters.go b/pkg/client/deployments/search_eligible_remote_clusters_parameters.go index 95279755..0e915d8f 100644 --- a/pkg/client/deployments/search_eligible_remote_clusters_parameters.go +++ b/pkg/client/deployments/search_eligible_remote_clusters_parameters.go @@ -71,10 +71,12 @@ func NewSearchEligibleRemoteClustersParamsWithHTTPClient(client *http.Client) *S } } -/* SearchEligibleRemoteClustersParams contains all the parameters to send to the API endpoint - for the search eligible remote clusters operation. +/* +SearchEligibleRemoteClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search eligible remote clusters operation. + + Typically these are written to a http.Request. */ type SearchEligibleRemoteClustersParams struct { diff --git a/pkg/client/deployments/search_eligible_remote_clusters_responses.go b/pkg/client/deployments/search_eligible_remote_clusters_responses.go index 2d475cb9..a70f38d8 100644 --- a/pkg/client/deployments/search_eligible_remote_clusters_responses.go +++ b/pkg/client/deployments/search_eligible_remote_clusters_responses.go @@ -62,7 +62,8 @@ func NewSearchEligibleRemoteClustersOK() *SearchEligibleRemoteClustersOK { return &SearchEligibleRemoteClustersOK{} } -/* SearchEligibleRemoteClustersOK describes a response with status code 200, with default header values. +/* +SearchEligibleRemoteClustersOK describes a response with status code 200, with default header values. List of deployments which contains eligible remote clusters for a specific version */ @@ -70,9 +71,44 @@ type SearchEligibleRemoteClustersOK struct { Payload *models.DeploymentsSearchResponse } +// IsSuccess returns true when this search eligible remote clusters o k response has a 2xx status code +func (o *SearchEligibleRemoteClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this search eligible remote clusters o k response has a 3xx status code +func (o *SearchEligibleRemoteClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search eligible remote clusters o k response has a 4xx status code +func (o *SearchEligibleRemoteClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this search eligible remote clusters o k response has a 5xx status code +func (o *SearchEligibleRemoteClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this search eligible remote clusters o k response a status code equal to that given +func (o *SearchEligibleRemoteClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the search eligible remote clusters o k response +func (o *SearchEligibleRemoteClustersOK) Code() int { + return 200 +} + func (o *SearchEligibleRemoteClustersOK) Error() string { return fmt.Sprintf("[POST /deployments/eligible-remote-clusters][%d] searchEligibleRemoteClustersOK %+v", 200, o.Payload) } + +func (o *SearchEligibleRemoteClustersOK) String() string { + return fmt.Sprintf("[POST /deployments/eligible-remote-clusters][%d] searchEligibleRemoteClustersOK %+v", 200, o.Payload) +} + func (o *SearchEligibleRemoteClustersOK) GetPayload() *models.DeploymentsSearchResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewSearchEligibleRemoteClustersBadRequest() *SearchEligibleRemoteClustersBa return &SearchEligibleRemoteClustersBadRequest{} } -/* SearchEligibleRemoteClustersBadRequest describes a response with status code 400, with default header values. +/* +SearchEligibleRemoteClustersBadRequest describes a response with status code 400, with default header values. The provided version is invalid. (code: `stackpack.invalid_version`) */ @@ -107,9 +144,44 @@ type SearchEligibleRemoteClustersBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this search eligible remote clusters bad request response has a 2xx status code +func (o *SearchEligibleRemoteClustersBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this search eligible remote clusters bad request response has a 3xx status code +func (o *SearchEligibleRemoteClustersBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search eligible remote clusters bad request response has a 4xx status code +func (o *SearchEligibleRemoteClustersBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this search eligible remote clusters bad request response has a 5xx status code +func (o *SearchEligibleRemoteClustersBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this search eligible remote clusters bad request response a status code equal to that given +func (o *SearchEligibleRemoteClustersBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the search eligible remote clusters bad request response +func (o *SearchEligibleRemoteClustersBadRequest) Code() int { + return 400 +} + func (o *SearchEligibleRemoteClustersBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/eligible-remote-clusters][%d] searchEligibleRemoteClustersBadRequest %+v", 400, o.Payload) } + +func (o *SearchEligibleRemoteClustersBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/eligible-remote-clusters][%d] searchEligibleRemoteClustersBadRequest %+v", 400, o.Payload) +} + func (o *SearchEligibleRemoteClustersBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_all_instances_settings_overrides_parameters.go b/pkg/client/deployments/set_all_instances_settings_overrides_parameters.go index 7dfe50e4..a1b89329 100644 --- a/pkg/client/deployments/set_all_instances_settings_overrides_parameters.go +++ b/pkg/client/deployments/set_all_instances_settings_overrides_parameters.go @@ -72,10 +72,12 @@ func NewSetAllInstancesSettingsOverridesParamsWithHTTPClient(client *http.Client } } -/* SetAllInstancesSettingsOverridesParams contains all the parameters to send to the API endpoint - for the set all instances settings overrides operation. +/* +SetAllInstancesSettingsOverridesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set all instances settings overrides operation. + + Typically these are written to a http.Request. */ type SetAllInstancesSettingsOverridesParams struct { diff --git a/pkg/client/deployments/set_all_instances_settings_overrides_responses.go b/pkg/client/deployments/set_all_instances_settings_overrides_responses.go index b861e6d6..b643fbb7 100644 --- a/pkg/client/deployments/set_all_instances_settings_overrides_responses.go +++ b/pkg/client/deployments/set_all_instances_settings_overrides_responses.go @@ -68,7 +68,8 @@ func NewSetAllInstancesSettingsOverridesOK() *SetAllInstancesSettingsOverridesOK return &SetAllInstancesSettingsOverridesOK{} } -/* SetAllInstancesSettingsOverridesOK describes a response with status code 200, with default header values. +/* +SetAllInstancesSettingsOverridesOK describes a response with status code 200, with default header values. The updated overrides */ @@ -76,9 +77,44 @@ type SetAllInstancesSettingsOverridesOK struct { Payload *models.InstanceOverrides } +// IsSuccess returns true when this set all instances settings overrides o k response has a 2xx status code +func (o *SetAllInstancesSettingsOverridesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set all instances settings overrides o k response has a 3xx status code +func (o *SetAllInstancesSettingsOverridesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set all instances settings overrides o k response has a 4xx status code +func (o *SetAllInstancesSettingsOverridesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set all instances settings overrides o k response has a 5xx status code +func (o *SetAllInstancesSettingsOverridesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set all instances settings overrides o k response a status code equal to that given +func (o *SetAllInstancesSettingsOverridesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set all instances settings overrides o k response +func (o *SetAllInstancesSettingsOverridesOK) Code() int { + return 200 +} + func (o *SetAllInstancesSettingsOverridesOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesOK %+v", 200, o.Payload) } + +func (o *SetAllInstancesSettingsOverridesOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesOK %+v", 200, o.Payload) +} + func (o *SetAllInstancesSettingsOverridesOK) GetPayload() *models.InstanceOverrides { return o.Payload } @@ -100,9 +136,11 @@ func NewSetAllInstancesSettingsOverridesNotFound() *SetAllInstancesSettingsOverr return &SetAllInstancesSettingsOverridesNotFound{} } -/* SetAllInstancesSettingsOverridesNotFound describes a response with status code 404, with default header values. +/* + SetAllInstancesSettingsOverridesNotFound describes a response with status code 404, with default header values. + + * The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot by found. (code: `deployments.deployment_resource_not_found`) * The specified override was out of range. Capacity must be in the range [1024, 65536] and storage multiplier must be in the range [1.0, 1000.0]. (code: `instance_overrides.out_of_range`) */ @@ -115,9 +153,44 @@ type SetAllInstancesSettingsOverridesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set all instances settings overrides not found response has a 2xx status code +func (o *SetAllInstancesSettingsOverridesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set all instances settings overrides not found response has a 3xx status code +func (o *SetAllInstancesSettingsOverridesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set all instances settings overrides not found response has a 4xx status code +func (o *SetAllInstancesSettingsOverridesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set all instances settings overrides not found response has a 5xx status code +func (o *SetAllInstancesSettingsOverridesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set all instances settings overrides not found response a status code equal to that given +func (o *SetAllInstancesSettingsOverridesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set all instances settings overrides not found response +func (o *SetAllInstancesSettingsOverridesNotFound) Code() int { + return 404 +} + func (o *SetAllInstancesSettingsOverridesNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesNotFound %+v", 404, o.Payload) } + +func (o *SetAllInstancesSettingsOverridesNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesNotFound %+v", 404, o.Payload) +} + func (o *SetAllInstancesSettingsOverridesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -146,7 +219,8 @@ func NewSetAllInstancesSettingsOverridesRetryWith() *SetAllInstancesSettingsOver return &SetAllInstancesSettingsOverridesRetryWith{} } -/* SetAllInstancesSettingsOverridesRetryWith describes a response with status code 449, with default header values. +/* +SetAllInstancesSettingsOverridesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -159,9 +233,44 @@ type SetAllInstancesSettingsOverridesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set all instances settings overrides retry with response has a 2xx status code +func (o *SetAllInstancesSettingsOverridesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set all instances settings overrides retry with response has a 3xx status code +func (o *SetAllInstancesSettingsOverridesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set all instances settings overrides retry with response has a 4xx status code +func (o *SetAllInstancesSettingsOverridesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set all instances settings overrides retry with response has a 5xx status code +func (o *SetAllInstancesSettingsOverridesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set all instances settings overrides retry with response a status code equal to that given +func (o *SetAllInstancesSettingsOverridesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set all instances settings overrides retry with response +func (o *SetAllInstancesSettingsOverridesRetryWith) Code() int { + return 449 +} + func (o *SetAllInstancesSettingsOverridesRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesRetryWith %+v", 449, o.Payload) } + +func (o *SetAllInstancesSettingsOverridesRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides][%d] setAllInstancesSettingsOverridesRetryWith %+v", 449, o.Payload) +} + func (o *SetAllInstancesSettingsOverridesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_appsearch_read_only_mode_parameters.go b/pkg/client/deployments/set_appsearch_read_only_mode_parameters.go index 39c2381c..0f22ec20 100644 --- a/pkg/client/deployments/set_appsearch_read_only_mode_parameters.go +++ b/pkg/client/deployments/set_appsearch_read_only_mode_parameters.go @@ -71,10 +71,12 @@ func NewSetAppsearchReadOnlyModeParamsWithHTTPClient(client *http.Client) *SetAp } } -/* SetAppsearchReadOnlyModeParams contains all the parameters to send to the API endpoint - for the set appsearch read only mode operation. +/* +SetAppsearchReadOnlyModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set appsearch read only mode operation. + + Typically these are written to a http.Request. */ type SetAppsearchReadOnlyModeParams struct { diff --git a/pkg/client/deployments/set_appsearch_read_only_mode_responses.go b/pkg/client/deployments/set_appsearch_read_only_mode_responses.go index ba2abd8e..5397e526 100644 --- a/pkg/client/deployments/set_appsearch_read_only_mode_responses.go +++ b/pkg/client/deployments/set_appsearch_read_only_mode_responses.go @@ -74,7 +74,8 @@ func NewSetAppsearchReadOnlyModeOK() *SetAppsearchReadOnlyModeOK { return &SetAppsearchReadOnlyModeOK{} } -/* SetAppsearchReadOnlyModeOK describes a response with status code 200, with default header values. +/* +SetAppsearchReadOnlyModeOK describes a response with status code 200, with default header values. Standard response */ @@ -82,9 +83,44 @@ type SetAppsearchReadOnlyModeOK struct { Payload *models.ReadOnlyResponse } +// IsSuccess returns true when this set appsearch read only mode o k response has a 2xx status code +func (o *SetAppsearchReadOnlyModeOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set appsearch read only mode o k response has a 3xx status code +func (o *SetAppsearchReadOnlyModeOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set appsearch read only mode o k response has a 4xx status code +func (o *SetAppsearchReadOnlyModeOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set appsearch read only mode o k response has a 5xx status code +func (o *SetAppsearchReadOnlyModeOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set appsearch read only mode o k response a status code equal to that given +func (o *SetAppsearchReadOnlyModeOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set appsearch read only mode o k response +func (o *SetAppsearchReadOnlyModeOK) Code() int { + return 200 +} + func (o *SetAppsearchReadOnlyModeOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeOK %+v", 200, o.Payload) } + +func (o *SetAppsearchReadOnlyModeOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeOK %+v", 200, o.Payload) +} + func (o *SetAppsearchReadOnlyModeOK) GetPayload() *models.ReadOnlyResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewSetAppsearchReadOnlyModeNotFound() *SetAppsearchReadOnlyModeNotFound { return &SetAppsearchReadOnlyModeNotFound{} } -/* SetAppsearchReadOnlyModeNotFound describes a response with status code 404, with default header values. +/* +SetAppsearchReadOnlyModeNotFound describes a response with status code 404, with default header values. The Resource specified by ref_id cannot be found. (code: `deployments.deployment_resource_not_found`) */ @@ -119,9 +156,44 @@ type SetAppsearchReadOnlyModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set appsearch read only mode not found response has a 2xx status code +func (o *SetAppsearchReadOnlyModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set appsearch read only mode not found response has a 3xx status code +func (o *SetAppsearchReadOnlyModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set appsearch read only mode not found response has a 4xx status code +func (o *SetAppsearchReadOnlyModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set appsearch read only mode not found response has a 5xx status code +func (o *SetAppsearchReadOnlyModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set appsearch read only mode not found response a status code equal to that given +func (o *SetAppsearchReadOnlyModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set appsearch read only mode not found response +func (o *SetAppsearchReadOnlyModeNotFound) Code() int { + return 404 +} + func (o *SetAppsearchReadOnlyModeNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeNotFound %+v", 404, o.Payload) } + +func (o *SetAppsearchReadOnlyModeNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeNotFound %+v", 404, o.Payload) +} + func (o *SetAppsearchReadOnlyModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewSetAppsearchReadOnlyModeRetryWith() *SetAppsearchReadOnlyModeRetryWith { return &SetAppsearchReadOnlyModeRetryWith{} } -/* SetAppsearchReadOnlyModeRetryWith describes a response with status code 449, with default header values. +/* +SetAppsearchReadOnlyModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -163,9 +236,44 @@ type SetAppsearchReadOnlyModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set appsearch read only mode retry with response has a 2xx status code +func (o *SetAppsearchReadOnlyModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set appsearch read only mode retry with response has a 3xx status code +func (o *SetAppsearchReadOnlyModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set appsearch read only mode retry with response has a 4xx status code +func (o *SetAppsearchReadOnlyModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set appsearch read only mode retry with response has a 5xx status code +func (o *SetAppsearchReadOnlyModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set appsearch read only mode retry with response a status code equal to that given +func (o *SetAppsearchReadOnlyModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set appsearch read only mode retry with response +func (o *SetAppsearchReadOnlyModeRetryWith) Code() int { + return 449 +} + func (o *SetAppsearchReadOnlyModeRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeRetryWith %+v", 449, o.Payload) } + +func (o *SetAppsearchReadOnlyModeRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeRetryWith %+v", 449, o.Payload) +} + func (o *SetAppsearchReadOnlyModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewSetAppsearchReadOnlyModeInternalServerError() *SetAppsearchReadOnlyModeI return &SetAppsearchReadOnlyModeInternalServerError{} } -/* SetAppsearchReadOnlyModeInternalServerError describes a response with status code 500, with default header values. +/* +SetAppsearchReadOnlyModeInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -207,9 +316,44 @@ type SetAppsearchReadOnlyModeInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set appsearch read only mode internal server error response has a 2xx status code +func (o *SetAppsearchReadOnlyModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set appsearch read only mode internal server error response has a 3xx status code +func (o *SetAppsearchReadOnlyModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set appsearch read only mode internal server error response has a 4xx status code +func (o *SetAppsearchReadOnlyModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this set appsearch read only mode internal server error response has a 5xx status code +func (o *SetAppsearchReadOnlyModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this set appsearch read only mode internal server error response a status code equal to that given +func (o *SetAppsearchReadOnlyModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the set appsearch read only mode internal server error response +func (o *SetAppsearchReadOnlyModeInternalServerError) Code() int { + return 500 +} + func (o *SetAppsearchReadOnlyModeInternalServerError) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeInternalServerError %+v", 500, o.Payload) } + +func (o *SetAppsearchReadOnlyModeInternalServerError) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode][%d] setAppsearchReadOnlyModeInternalServerError %+v", 500, o.Payload) +} + func (o *SetAppsearchReadOnlyModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_deployment_es_resource_keystore_parameters.go b/pkg/client/deployments/set_deployment_es_resource_keystore_parameters.go index 26f63ad4..95263613 100644 --- a/pkg/client/deployments/set_deployment_es_resource_keystore_parameters.go +++ b/pkg/client/deployments/set_deployment_es_resource_keystore_parameters.go @@ -71,10 +71,12 @@ func NewSetDeploymentEsResourceKeystoreParamsWithHTTPClient(client *http.Client) } } -/* SetDeploymentEsResourceKeystoreParams contains all the parameters to send to the API endpoint - for the set deployment es resource keystore operation. +/* +SetDeploymentEsResourceKeystoreParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set deployment es resource keystore operation. + + Typically these are written to a http.Request. */ type SetDeploymentEsResourceKeystoreParams struct { diff --git a/pkg/client/deployments/set_deployment_es_resource_keystore_responses.go b/pkg/client/deployments/set_deployment_es_resource_keystore_responses.go index 1d507aea..a4009652 100644 --- a/pkg/client/deployments/set_deployment_es_resource_keystore_responses.go +++ b/pkg/client/deployments/set_deployment_es_resource_keystore_responses.go @@ -74,7 +74,8 @@ func NewSetDeploymentEsResourceKeystoreOK() *SetDeploymentEsResourceKeystoreOK { return &SetDeploymentEsResourceKeystoreOK{} } -/* SetDeploymentEsResourceKeystoreOK describes a response with status code 200, with default header values. +/* +SetDeploymentEsResourceKeystoreOK describes a response with status code 200, with default header values. The new contents of the Elasticsearch keystore */ @@ -82,9 +83,44 @@ type SetDeploymentEsResourceKeystoreOK struct { Payload *models.KeystoreContents } +// IsSuccess returns true when this set deployment es resource keystore o k response has a 2xx status code +func (o *SetDeploymentEsResourceKeystoreOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set deployment es resource keystore o k response has a 3xx status code +func (o *SetDeploymentEsResourceKeystoreOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource keystore o k response has a 4xx status code +func (o *SetDeploymentEsResourceKeystoreOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment es resource keystore o k response has a 5xx status code +func (o *SetDeploymentEsResourceKeystoreOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource keystore o k response a status code equal to that given +func (o *SetDeploymentEsResourceKeystoreOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set deployment es resource keystore o k response +func (o *SetDeploymentEsResourceKeystoreOK) Code() int { + return 200 +} + func (o *SetDeploymentEsResourceKeystoreOK) Error() string { return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreOK %+v", 200, o.Payload) } + +func (o *SetDeploymentEsResourceKeystoreOK) String() string { + return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreOK %+v", 200, o.Payload) +} + func (o *SetDeploymentEsResourceKeystoreOK) GetPayload() *models.KeystoreContents { return o.Payload } @@ -106,9 +142,11 @@ func NewSetDeploymentEsResourceKeystoreNotFound() *SetDeploymentEsResourceKeysto return &SetDeploymentEsResourceKeystoreNotFound{} } -/* SetDeploymentEsResourceKeystoreNotFound describes a response with status code 404, with default header values. +/* + SetDeploymentEsResourceKeystoreNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type SetDeploymentEsResourceKeystoreNotFound struct { @@ -120,9 +158,44 @@ type SetDeploymentEsResourceKeystoreNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment es resource keystore not found response has a 2xx status code +func (o *SetDeploymentEsResourceKeystoreNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment es resource keystore not found response has a 3xx status code +func (o *SetDeploymentEsResourceKeystoreNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource keystore not found response has a 4xx status code +func (o *SetDeploymentEsResourceKeystoreNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment es resource keystore not found response has a 5xx status code +func (o *SetDeploymentEsResourceKeystoreNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource keystore not found response a status code equal to that given +func (o *SetDeploymentEsResourceKeystoreNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set deployment es resource keystore not found response +func (o *SetDeploymentEsResourceKeystoreNotFound) Code() int { + return 404 +} + func (o *SetDeploymentEsResourceKeystoreNotFound) Error() string { return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreNotFound %+v", 404, o.Payload) } + +func (o *SetDeploymentEsResourceKeystoreNotFound) String() string { + return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreNotFound %+v", 404, o.Payload) +} + func (o *SetDeploymentEsResourceKeystoreNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewSetDeploymentEsResourceKeystoreRetryWith() *SetDeploymentEsResourceKeyst return &SetDeploymentEsResourceKeystoreRetryWith{} } -/* SetDeploymentEsResourceKeystoreRetryWith describes a response with status code 449, with default header values. +/* +SetDeploymentEsResourceKeystoreRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -164,9 +238,44 @@ type SetDeploymentEsResourceKeystoreRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment es resource keystore retry with response has a 2xx status code +func (o *SetDeploymentEsResourceKeystoreRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment es resource keystore retry with response has a 3xx status code +func (o *SetDeploymentEsResourceKeystoreRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource keystore retry with response has a 4xx status code +func (o *SetDeploymentEsResourceKeystoreRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment es resource keystore retry with response has a 5xx status code +func (o *SetDeploymentEsResourceKeystoreRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource keystore retry with response a status code equal to that given +func (o *SetDeploymentEsResourceKeystoreRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set deployment es resource keystore retry with response +func (o *SetDeploymentEsResourceKeystoreRetryWith) Code() int { + return 449 +} + func (o *SetDeploymentEsResourceKeystoreRetryWith) Error() string { return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreRetryWith %+v", 449, o.Payload) } + +func (o *SetDeploymentEsResourceKeystoreRetryWith) String() string { + return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreRetryWith %+v", 449, o.Payload) +} + func (o *SetDeploymentEsResourceKeystoreRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewSetDeploymentEsResourceKeystoreInternalServerError() *SetDeploymentEsRes return &SetDeploymentEsResourceKeystoreInternalServerError{} } -/* SetDeploymentEsResourceKeystoreInternalServerError describes a response with status code 500, with default header values. +/* +SetDeploymentEsResourceKeystoreInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.metadata_internal_error`) */ @@ -208,9 +318,44 @@ type SetDeploymentEsResourceKeystoreInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment es resource keystore internal server error response has a 2xx status code +func (o *SetDeploymentEsResourceKeystoreInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment es resource keystore internal server error response has a 3xx status code +func (o *SetDeploymentEsResourceKeystoreInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource keystore internal server error response has a 4xx status code +func (o *SetDeploymentEsResourceKeystoreInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment es resource keystore internal server error response has a 5xx status code +func (o *SetDeploymentEsResourceKeystoreInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this set deployment es resource keystore internal server error response a status code equal to that given +func (o *SetDeploymentEsResourceKeystoreInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the set deployment es resource keystore internal server error response +func (o *SetDeploymentEsResourceKeystoreInternalServerError) Code() int { + return 500 +} + func (o *SetDeploymentEsResourceKeystoreInternalServerError) Error() string { return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreInternalServerError %+v", 500, o.Payload) } + +func (o *SetDeploymentEsResourceKeystoreInternalServerError) String() string { + return fmt.Sprintf("[PATCH /deployments/{deployment_id}/elasticsearch/{ref_id}/keystore][%d] setDeploymentEsResourceKeystoreInternalServerError %+v", 500, o.Payload) +} + func (o *SetDeploymentEsResourceKeystoreInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_deployment_es_resource_remote_clusters_parameters.go b/pkg/client/deployments/set_deployment_es_resource_remote_clusters_parameters.go index 2cd1e5f8..e6f83093 100644 --- a/pkg/client/deployments/set_deployment_es_resource_remote_clusters_parameters.go +++ b/pkg/client/deployments/set_deployment_es_resource_remote_clusters_parameters.go @@ -71,10 +71,12 @@ func NewSetDeploymentEsResourceRemoteClustersParamsWithHTTPClient(client *http.C } } -/* SetDeploymentEsResourceRemoteClustersParams contains all the parameters to send to the API endpoint - for the set deployment es resource remote clusters operation. +/* +SetDeploymentEsResourceRemoteClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set deployment es resource remote clusters operation. + + Typically these are written to a http.Request. */ type SetDeploymentEsResourceRemoteClustersParams struct { diff --git a/pkg/client/deployments/set_deployment_es_resource_remote_clusters_responses.go b/pkg/client/deployments/set_deployment_es_resource_remote_clusters_responses.go index 178d47e2..1e9dee6b 100644 --- a/pkg/client/deployments/set_deployment_es_resource_remote_clusters_responses.go +++ b/pkg/client/deployments/set_deployment_es_resource_remote_clusters_responses.go @@ -68,7 +68,8 @@ func NewSetDeploymentEsResourceRemoteClustersAccepted() *SetDeploymentEsResource return &SetDeploymentEsResourceRemoteClustersAccepted{} } -/* SetDeploymentEsResourceRemoteClustersAccepted describes a response with status code 202, with default header values. +/* +SetDeploymentEsResourceRemoteClustersAccepted describes a response with status code 202, with default header values. The Remote Clusters were updated */ @@ -76,9 +77,44 @@ type SetDeploymentEsResourceRemoteClustersAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this set deployment es resource remote clusters accepted response has a 2xx status code +func (o *SetDeploymentEsResourceRemoteClustersAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set deployment es resource remote clusters accepted response has a 3xx status code +func (o *SetDeploymentEsResourceRemoteClustersAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource remote clusters accepted response has a 4xx status code +func (o *SetDeploymentEsResourceRemoteClustersAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment es resource remote clusters accepted response has a 5xx status code +func (o *SetDeploymentEsResourceRemoteClustersAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource remote clusters accepted response a status code equal to that given +func (o *SetDeploymentEsResourceRemoteClustersAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the set deployment es resource remote clusters accepted response +func (o *SetDeploymentEsResourceRemoteClustersAccepted) Code() int { + return 202 +} + func (o *SetDeploymentEsResourceRemoteClustersAccepted) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersAccepted %+v", 202, o.Payload) } + +func (o *SetDeploymentEsResourceRemoteClustersAccepted) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersAccepted %+v", 202, o.Payload) +} + func (o *SetDeploymentEsResourceRemoteClustersAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,9 +134,11 @@ func NewSetDeploymentEsResourceRemoteClustersNotFound() *SetDeploymentEsResource return &SetDeploymentEsResourceRemoteClustersNotFound{} } -/* SetDeploymentEsResourceRemoteClustersNotFound describes a response with status code 404, with default header values. +/* + SetDeploymentEsResourceRemoteClustersNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type SetDeploymentEsResourceRemoteClustersNotFound struct { @@ -112,9 +150,44 @@ type SetDeploymentEsResourceRemoteClustersNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment es resource remote clusters not found response has a 2xx status code +func (o *SetDeploymentEsResourceRemoteClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment es resource remote clusters not found response has a 3xx status code +func (o *SetDeploymentEsResourceRemoteClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource remote clusters not found response has a 4xx status code +func (o *SetDeploymentEsResourceRemoteClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment es resource remote clusters not found response has a 5xx status code +func (o *SetDeploymentEsResourceRemoteClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource remote clusters not found response a status code equal to that given +func (o *SetDeploymentEsResourceRemoteClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set deployment es resource remote clusters not found response +func (o *SetDeploymentEsResourceRemoteClustersNotFound) Code() int { + return 404 +} + func (o *SetDeploymentEsResourceRemoteClustersNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersNotFound %+v", 404, o.Payload) } + +func (o *SetDeploymentEsResourceRemoteClustersNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersNotFound %+v", 404, o.Payload) +} + func (o *SetDeploymentEsResourceRemoteClustersNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -143,7 +216,8 @@ func NewSetDeploymentEsResourceRemoteClustersRetryWith() *SetDeploymentEsResourc return &SetDeploymentEsResourceRemoteClustersRetryWith{} } -/* SetDeploymentEsResourceRemoteClustersRetryWith describes a response with status code 449, with default header values. +/* +SetDeploymentEsResourceRemoteClustersRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -156,9 +230,44 @@ type SetDeploymentEsResourceRemoteClustersRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment es resource remote clusters retry with response has a 2xx status code +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment es resource remote clusters retry with response has a 3xx status code +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment es resource remote clusters retry with response has a 4xx status code +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment es resource remote clusters retry with response has a 5xx status code +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment es resource remote clusters retry with response a status code equal to that given +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set deployment es resource remote clusters retry with response +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) Code() int { + return 449 +} + func (o *SetDeploymentEsResourceRemoteClustersRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersRetryWith %+v", 449, o.Payload) } + +func (o *SetDeploymentEsResourceRemoteClustersRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters][%d] setDeploymentEsResourceRemoteClustersRetryWith %+v", 449, o.Payload) +} + func (o *SetDeploymentEsResourceRemoteClustersRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_deployment_resource_raw_metadata_parameters.go b/pkg/client/deployments/set_deployment_resource_raw_metadata_parameters.go index 8d0a9cd4..7b9c4b22 100644 --- a/pkg/client/deployments/set_deployment_resource_raw_metadata_parameters.go +++ b/pkg/client/deployments/set_deployment_resource_raw_metadata_parameters.go @@ -69,10 +69,12 @@ func NewSetDeploymentResourceRawMetadataParamsWithHTTPClient(client *http.Client } } -/* SetDeploymentResourceRawMetadataParams contains all the parameters to send to the API endpoint - for the set deployment resource raw metadata operation. +/* +SetDeploymentResourceRawMetadataParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set deployment resource raw metadata operation. + + Typically these are written to a http.Request. */ type SetDeploymentResourceRawMetadataParams struct { diff --git a/pkg/client/deployments/set_deployment_resource_raw_metadata_responses.go b/pkg/client/deployments/set_deployment_resource_raw_metadata_responses.go index b3660b5a..967212fe 100644 --- a/pkg/client/deployments/set_deployment_resource_raw_metadata_responses.go +++ b/pkg/client/deployments/set_deployment_resource_raw_metadata_responses.go @@ -80,7 +80,8 @@ func NewSetDeploymentResourceRawMetadataOK() *SetDeploymentResourceRawMetadataOK return &SetDeploymentResourceRawMetadataOK{} } -/* SetDeploymentResourceRawMetadataOK describes a response with status code 200, with default header values. +/* +SetDeploymentResourceRawMetadataOK describes a response with status code 200, with default header values. The resource metadata was successfully changed (the updated JSON is returned) */ @@ -101,9 +102,44 @@ type SetDeploymentResourceRawMetadataOK struct { Payload string } +// IsSuccess returns true when this set deployment resource raw metadata o k response has a 2xx status code +func (o *SetDeploymentResourceRawMetadataOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set deployment resource raw metadata o k response has a 3xx status code +func (o *SetDeploymentResourceRawMetadataOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment resource raw metadata o k response has a 4xx status code +func (o *SetDeploymentResourceRawMetadataOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment resource raw metadata o k response has a 5xx status code +func (o *SetDeploymentResourceRawMetadataOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment resource raw metadata o k response a status code equal to that given +func (o *SetDeploymentResourceRawMetadataOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set deployment resource raw metadata o k response +func (o *SetDeploymentResourceRawMetadataOK) Code() int { + return 200 +} + func (o *SetDeploymentResourceRawMetadataOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataOK %+v", 200, o.Payload) } + +func (o *SetDeploymentResourceRawMetadataOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataOK %+v", 200, o.Payload) +} + func (o *SetDeploymentResourceRawMetadataOK) GetPayload() string { return o.Payload } @@ -144,7 +180,8 @@ func NewSetDeploymentResourceRawMetadataBadRequest() *SetDeploymentResourceRawMe return &SetDeploymentResourceRawMetadataBadRequest{} } -/* SetDeploymentResourceRawMetadataBadRequest describes a response with status code 400, with default header values. +/* +SetDeploymentResourceRawMetadataBadRequest describes a response with status code 400, with default header values. The metadata is invalid. (code: `deployments.invalid_metadata`) */ @@ -157,9 +194,44 @@ type SetDeploymentResourceRawMetadataBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment resource raw metadata bad request response has a 2xx status code +func (o *SetDeploymentResourceRawMetadataBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment resource raw metadata bad request response has a 3xx status code +func (o *SetDeploymentResourceRawMetadataBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment resource raw metadata bad request response has a 4xx status code +func (o *SetDeploymentResourceRawMetadataBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment resource raw metadata bad request response has a 5xx status code +func (o *SetDeploymentResourceRawMetadataBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment resource raw metadata bad request response a status code equal to that given +func (o *SetDeploymentResourceRawMetadataBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set deployment resource raw metadata bad request response +func (o *SetDeploymentResourceRawMetadataBadRequest) Code() int { + return 400 +} + func (o *SetDeploymentResourceRawMetadataBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataBadRequest %+v", 400, o.Payload) } + +func (o *SetDeploymentResourceRawMetadataBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataBadRequest %+v", 400, o.Payload) +} + func (o *SetDeploymentResourceRawMetadataBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -188,9 +260,11 @@ func NewSetDeploymentResourceRawMetadataNotFound() *SetDeploymentResourceRawMeta return &SetDeploymentResourceRawMetadataNotFound{} } -/* SetDeploymentResourceRawMetadataNotFound describes a response with status code 404, with default header values. +/* + SetDeploymentResourceRawMetadataNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type SetDeploymentResourceRawMetadataNotFound struct { @@ -202,9 +276,44 @@ type SetDeploymentResourceRawMetadataNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment resource raw metadata not found response has a 2xx status code +func (o *SetDeploymentResourceRawMetadataNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment resource raw metadata not found response has a 3xx status code +func (o *SetDeploymentResourceRawMetadataNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment resource raw metadata not found response has a 4xx status code +func (o *SetDeploymentResourceRawMetadataNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment resource raw metadata not found response has a 5xx status code +func (o *SetDeploymentResourceRawMetadataNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment resource raw metadata not found response a status code equal to that given +func (o *SetDeploymentResourceRawMetadataNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set deployment resource raw metadata not found response +func (o *SetDeploymentResourceRawMetadataNotFound) Code() int { + return 404 +} + func (o *SetDeploymentResourceRawMetadataNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataNotFound %+v", 404, o.Payload) } + +func (o *SetDeploymentResourceRawMetadataNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataNotFound %+v", 404, o.Payload) +} + func (o *SetDeploymentResourceRawMetadataNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -233,7 +342,8 @@ func NewSetDeploymentResourceRawMetadataRetryWith() *SetDeploymentResourceRawMet return &SetDeploymentResourceRawMetadataRetryWith{} } -/* SetDeploymentResourceRawMetadataRetryWith describes a response with status code 449, with default header values. +/* +SetDeploymentResourceRawMetadataRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -246,9 +356,44 @@ type SetDeploymentResourceRawMetadataRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment resource raw metadata retry with response has a 2xx status code +func (o *SetDeploymentResourceRawMetadataRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment resource raw metadata retry with response has a 3xx status code +func (o *SetDeploymentResourceRawMetadataRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment resource raw metadata retry with response has a 4xx status code +func (o *SetDeploymentResourceRawMetadataRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set deployment resource raw metadata retry with response has a 5xx status code +func (o *SetDeploymentResourceRawMetadataRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set deployment resource raw metadata retry with response a status code equal to that given +func (o *SetDeploymentResourceRawMetadataRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set deployment resource raw metadata retry with response +func (o *SetDeploymentResourceRawMetadataRetryWith) Code() int { + return 449 +} + func (o *SetDeploymentResourceRawMetadataRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataRetryWith %+v", 449, o.Payload) } + +func (o *SetDeploymentResourceRawMetadataRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataRetryWith %+v", 449, o.Payload) +} + func (o *SetDeploymentResourceRawMetadataRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -277,7 +422,8 @@ func NewSetDeploymentResourceRawMetadataInternalServerError() *SetDeploymentReso return &SetDeploymentResourceRawMetadataInternalServerError{} } -/* SetDeploymentResourceRawMetadataInternalServerError describes a response with status code 500, with default header values. +/* +SetDeploymentResourceRawMetadataInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.metadata_internal_error`) */ @@ -290,9 +436,44 @@ type SetDeploymentResourceRawMetadataInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set deployment resource raw metadata internal server error response has a 2xx status code +func (o *SetDeploymentResourceRawMetadataInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set deployment resource raw metadata internal server error response has a 3xx status code +func (o *SetDeploymentResourceRawMetadataInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set deployment resource raw metadata internal server error response has a 4xx status code +func (o *SetDeploymentResourceRawMetadataInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this set deployment resource raw metadata internal server error response has a 5xx status code +func (o *SetDeploymentResourceRawMetadataInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this set deployment resource raw metadata internal server error response a status code equal to that given +func (o *SetDeploymentResourceRawMetadataInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the set deployment resource raw metadata internal server error response +func (o *SetDeploymentResourceRawMetadataInternalServerError) Code() int { + return 500 +} + func (o *SetDeploymentResourceRawMetadataInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataInternalServerError %+v", 500, o.Payload) } + +func (o *SetDeploymentResourceRawMetadataInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw][%d] setDeploymentResourceRawMetadataInternalServerError %+v", 500, o.Payload) +} + func (o *SetDeploymentResourceRawMetadataInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/set_instance_settings_overrides_parameters.go b/pkg/client/deployments/set_instance_settings_overrides_parameters.go index 07b1db41..7777e556 100644 --- a/pkg/client/deployments/set_instance_settings_overrides_parameters.go +++ b/pkg/client/deployments/set_instance_settings_overrides_parameters.go @@ -72,10 +72,12 @@ func NewSetInstanceSettingsOverridesParamsWithHTTPClient(client *http.Client) *S } } -/* SetInstanceSettingsOverridesParams contains all the parameters to send to the API endpoint - for the set instance settings overrides operation. +/* +SetInstanceSettingsOverridesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set instance settings overrides operation. + + Typically these are written to a http.Request. */ type SetInstanceSettingsOverridesParams struct { diff --git a/pkg/client/deployments/set_instance_settings_overrides_responses.go b/pkg/client/deployments/set_instance_settings_overrides_responses.go index 539d13f9..a60d559b 100644 --- a/pkg/client/deployments/set_instance_settings_overrides_responses.go +++ b/pkg/client/deployments/set_instance_settings_overrides_responses.go @@ -68,7 +68,8 @@ func NewSetInstanceSettingsOverridesOK() *SetInstanceSettingsOverridesOK { return &SetInstanceSettingsOverridesOK{} } -/* SetInstanceSettingsOverridesOK describes a response with status code 200, with default header values. +/* +SetInstanceSettingsOverridesOK describes a response with status code 200, with default header values. The updated overrides */ @@ -76,9 +77,44 @@ type SetInstanceSettingsOverridesOK struct { Payload *models.InstanceOverrides } +// IsSuccess returns true when this set instance settings overrides o k response has a 2xx status code +func (o *SetInstanceSettingsOverridesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set instance settings overrides o k response has a 3xx status code +func (o *SetInstanceSettingsOverridesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance settings overrides o k response has a 4xx status code +func (o *SetInstanceSettingsOverridesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set instance settings overrides o k response has a 5xx status code +func (o *SetInstanceSettingsOverridesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance settings overrides o k response a status code equal to that given +func (o *SetInstanceSettingsOverridesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set instance settings overrides o k response +func (o *SetInstanceSettingsOverridesOK) Code() int { + return 200 +} + func (o *SetInstanceSettingsOverridesOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesOK %+v", 200, o.Payload) } + +func (o *SetInstanceSettingsOverridesOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesOK %+v", 200, o.Payload) +} + func (o *SetInstanceSettingsOverridesOK) GetPayload() *models.InstanceOverrides { return o.Payload } @@ -100,9 +136,11 @@ func NewSetInstanceSettingsOverridesNotFound() *SetInstanceSettingsOverridesNotF return &SetInstanceSettingsOverridesNotFound{} } -/* SetInstanceSettingsOverridesNotFound describes a response with status code 404, with default header values. +/* + SetInstanceSettingsOverridesNotFound describes a response with status code 404, with default header values. + + * The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot by found. (code: `deployments.deployment_resource_not_found`) * One or more instances weren't found, and `ignore_missing` is false or unspecified. (code: `deployments.instances_missing_on_update_error`) * The specified override was out of range. Capacity must be in the range [1024, 65536] and storage multiplier must be in the range [1.0, 1000.0]. (code: `instance_overrides.out_of_range`) @@ -116,9 +154,44 @@ type SetInstanceSettingsOverridesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance settings overrides not found response has a 2xx status code +func (o *SetInstanceSettingsOverridesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance settings overrides not found response has a 3xx status code +func (o *SetInstanceSettingsOverridesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance settings overrides not found response has a 4xx status code +func (o *SetInstanceSettingsOverridesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance settings overrides not found response has a 5xx status code +func (o *SetInstanceSettingsOverridesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance settings overrides not found response a status code equal to that given +func (o *SetInstanceSettingsOverridesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set instance settings overrides not found response +func (o *SetInstanceSettingsOverridesNotFound) Code() int { + return 404 +} + func (o *SetInstanceSettingsOverridesNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesNotFound %+v", 404, o.Payload) } + +func (o *SetInstanceSettingsOverridesNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesNotFound %+v", 404, o.Payload) +} + func (o *SetInstanceSettingsOverridesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -147,7 +220,8 @@ func NewSetInstanceSettingsOverridesRetryWith() *SetInstanceSettingsOverridesRet return &SetInstanceSettingsOverridesRetryWith{} } -/* SetInstanceSettingsOverridesRetryWith describes a response with status code 449, with default header values. +/* +SetInstanceSettingsOverridesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -160,9 +234,44 @@ type SetInstanceSettingsOverridesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance settings overrides retry with response has a 2xx status code +func (o *SetInstanceSettingsOverridesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance settings overrides retry with response has a 3xx status code +func (o *SetInstanceSettingsOverridesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance settings overrides retry with response has a 4xx status code +func (o *SetInstanceSettingsOverridesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance settings overrides retry with response has a 5xx status code +func (o *SetInstanceSettingsOverridesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance settings overrides retry with response a status code equal to that given +func (o *SetInstanceSettingsOverridesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set instance settings overrides retry with response +func (o *SetInstanceSettingsOverridesRetryWith) Code() int { + return 449 +} + func (o *SetInstanceSettingsOverridesRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesRetryWith %+v", 449, o.Payload) } + +func (o *SetInstanceSettingsOverridesRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides][%d] setInstanceSettingsOverridesRetryWith %+v", 449, o.Payload) +} + func (o *SetInstanceSettingsOverridesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/shutdown_deployment_es_resource_parameters.go b/pkg/client/deployments/shutdown_deployment_es_resource_parameters.go index 5d13c079..c388d5f3 100644 --- a/pkg/client/deployments/shutdown_deployment_es_resource_parameters.go +++ b/pkg/client/deployments/shutdown_deployment_es_resource_parameters.go @@ -70,10 +70,12 @@ func NewShutdownDeploymentEsResourceParamsWithHTTPClient(client *http.Client) *S } } -/* ShutdownDeploymentEsResourceParams contains all the parameters to send to the API endpoint - for the shutdown deployment es resource operation. +/* +ShutdownDeploymentEsResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the shutdown deployment es resource operation. + + Typically these are written to a http.Request. */ type ShutdownDeploymentEsResourceParams struct { diff --git a/pkg/client/deployments/shutdown_deployment_es_resource_responses.go b/pkg/client/deployments/shutdown_deployment_es_resource_responses.go index 3057367b..c9492019 100644 --- a/pkg/client/deployments/shutdown_deployment_es_resource_responses.go +++ b/pkg/client/deployments/shutdown_deployment_es_resource_responses.go @@ -74,7 +74,8 @@ func NewShutdownDeploymentEsResourceOK() *ShutdownDeploymentEsResourceOK { return &ShutdownDeploymentEsResourceOK{} } -/* ShutdownDeploymentEsResourceOK describes a response with status code 200, with default header values. +/* +ShutdownDeploymentEsResourceOK describes a response with status code 200, with default header values. Standard response. */ @@ -82,9 +83,44 @@ type ShutdownDeploymentEsResourceOK struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this shutdown deployment es resource o k response has a 2xx status code +func (o *ShutdownDeploymentEsResourceOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this shutdown deployment es resource o k response has a 3xx status code +func (o *ShutdownDeploymentEsResourceOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment es resource o k response has a 4xx status code +func (o *ShutdownDeploymentEsResourceOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this shutdown deployment es resource o k response has a 5xx status code +func (o *ShutdownDeploymentEsResourceOK) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment es resource o k response a status code equal to that given +func (o *ShutdownDeploymentEsResourceOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the shutdown deployment es resource o k response +func (o *ShutdownDeploymentEsResourceOK) Code() int { + return 200 +} + func (o *ShutdownDeploymentEsResourceOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceOK %+v", 200, o.Payload) } + +func (o *ShutdownDeploymentEsResourceOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceOK %+v", 200, o.Payload) +} + func (o *ShutdownDeploymentEsResourceOK) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewShutdownDeploymentEsResourceBadRequest() *ShutdownDeploymentEsResourceBa return &ShutdownDeploymentEsResourceBadRequest{} } -/* ShutdownDeploymentEsResourceBadRequest describes a response with status code 400, with default header values. +/* +ShutdownDeploymentEsResourceBadRequest describes a response with status code 400, with default header values. Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`) */ @@ -119,9 +156,44 @@ type ShutdownDeploymentEsResourceBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment es resource bad request response has a 2xx status code +func (o *ShutdownDeploymentEsResourceBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment es resource bad request response has a 3xx status code +func (o *ShutdownDeploymentEsResourceBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment es resource bad request response has a 4xx status code +func (o *ShutdownDeploymentEsResourceBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment es resource bad request response has a 5xx status code +func (o *ShutdownDeploymentEsResourceBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment es resource bad request response a status code equal to that given +func (o *ShutdownDeploymentEsResourceBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the shutdown deployment es resource bad request response +func (o *ShutdownDeploymentEsResourceBadRequest) Code() int { + return 400 +} + func (o *ShutdownDeploymentEsResourceBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceBadRequest %+v", 400, o.Payload) } + +func (o *ShutdownDeploymentEsResourceBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceBadRequest %+v", 400, o.Payload) +} + func (o *ShutdownDeploymentEsResourceBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,9 +222,11 @@ func NewShutdownDeploymentEsResourceNotFound() *ShutdownDeploymentEsResourceNotF return &ShutdownDeploymentEsResourceNotFound{} } -/* ShutdownDeploymentEsResourceNotFound describes a response with status code 404, with default header values. +/* + ShutdownDeploymentEsResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type ShutdownDeploymentEsResourceNotFound struct { @@ -164,9 +238,44 @@ type ShutdownDeploymentEsResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment es resource not found response has a 2xx status code +func (o *ShutdownDeploymentEsResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment es resource not found response has a 3xx status code +func (o *ShutdownDeploymentEsResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment es resource not found response has a 4xx status code +func (o *ShutdownDeploymentEsResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment es resource not found response has a 5xx status code +func (o *ShutdownDeploymentEsResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment es resource not found response a status code equal to that given +func (o *ShutdownDeploymentEsResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the shutdown deployment es resource not found response +func (o *ShutdownDeploymentEsResourceNotFound) Code() int { + return 404 +} + func (o *ShutdownDeploymentEsResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceNotFound %+v", 404, o.Payload) } + +func (o *ShutdownDeploymentEsResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceNotFound %+v", 404, o.Payload) +} + func (o *ShutdownDeploymentEsResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewShutdownDeploymentEsResourceInternalServerError() *ShutdownDeploymentEsR return &ShutdownDeploymentEsResourceInternalServerError{} } -/* ShutdownDeploymentEsResourceInternalServerError describes a response with status code 500, with default header values. +/* +ShutdownDeploymentEsResourceInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -208,9 +318,44 @@ type ShutdownDeploymentEsResourceInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment es resource internal server error response has a 2xx status code +func (o *ShutdownDeploymentEsResourceInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment es resource internal server error response has a 3xx status code +func (o *ShutdownDeploymentEsResourceInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment es resource internal server error response has a 4xx status code +func (o *ShutdownDeploymentEsResourceInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this shutdown deployment es resource internal server error response has a 5xx status code +func (o *ShutdownDeploymentEsResourceInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this shutdown deployment es resource internal server error response a status code equal to that given +func (o *ShutdownDeploymentEsResourceInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the shutdown deployment es resource internal server error response +func (o *ShutdownDeploymentEsResourceInternalServerError) Code() int { + return 500 +} + func (o *ShutdownDeploymentEsResourceInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceInternalServerError %+v", 500, o.Payload) } + +func (o *ShutdownDeploymentEsResourceInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown][%d] shutdownDeploymentEsResourceInternalServerError %+v", 500, o.Payload) +} + func (o *ShutdownDeploymentEsResourceInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/shutdown_deployment_parameters.go b/pkg/client/deployments/shutdown_deployment_parameters.go index f476aa23..dc57ecea 100644 --- a/pkg/client/deployments/shutdown_deployment_parameters.go +++ b/pkg/client/deployments/shutdown_deployment_parameters.go @@ -70,10 +70,12 @@ func NewShutdownDeploymentParamsWithHTTPClient(client *http.Client) *ShutdownDep } } -/* ShutdownDeploymentParams contains all the parameters to send to the API endpoint - for the shutdown deployment operation. +/* +ShutdownDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the shutdown deployment operation. + + Typically these are written to a http.Request. */ type ShutdownDeploymentParams struct { diff --git a/pkg/client/deployments/shutdown_deployment_responses.go b/pkg/client/deployments/shutdown_deployment_responses.go index 73820087..faf050cd 100644 --- a/pkg/client/deployments/shutdown_deployment_responses.go +++ b/pkg/client/deployments/shutdown_deployment_responses.go @@ -74,7 +74,8 @@ func NewShutdownDeploymentOK() *ShutdownDeploymentOK { return &ShutdownDeploymentOK{} } -/* ShutdownDeploymentOK describes a response with status code 200, with default header values. +/* +ShutdownDeploymentOK describes a response with status code 200, with default header values. The request was valid and the resources of the deployment were shutdown. */ @@ -82,9 +83,44 @@ type ShutdownDeploymentOK struct { Payload *models.DeploymentShutdownResponse } +// IsSuccess returns true when this shutdown deployment o k response has a 2xx status code +func (o *ShutdownDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this shutdown deployment o k response has a 3xx status code +func (o *ShutdownDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment o k response has a 4xx status code +func (o *ShutdownDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this shutdown deployment o k response has a 5xx status code +func (o *ShutdownDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment o k response a status code equal to that given +func (o *ShutdownDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the shutdown deployment o k response +func (o *ShutdownDeploymentOK) Code() int { + return 200 +} + func (o *ShutdownDeploymentOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentOK %+v", 200, o.Payload) } + +func (o *ShutdownDeploymentOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentOK %+v", 200, o.Payload) +} + func (o *ShutdownDeploymentOK) GetPayload() *models.DeploymentShutdownResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewShutdownDeploymentBadRequest() *ShutdownDeploymentBadRequest { return &ShutdownDeploymentBadRequest{} } -/* ShutdownDeploymentBadRequest describes a response with status code 400, with default header values. +/* +ShutdownDeploymentBadRequest describes a response with status code 400, with default header values. Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`) */ @@ -119,9 +156,44 @@ type ShutdownDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment bad request response has a 2xx status code +func (o *ShutdownDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment bad request response has a 3xx status code +func (o *ShutdownDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment bad request response has a 4xx status code +func (o *ShutdownDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment bad request response has a 5xx status code +func (o *ShutdownDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment bad request response a status code equal to that given +func (o *ShutdownDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the shutdown deployment bad request response +func (o *ShutdownDeploymentBadRequest) Code() int { + return 400 +} + func (o *ShutdownDeploymentBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *ShutdownDeploymentBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *ShutdownDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewShutdownDeploymentUnauthorized() *ShutdownDeploymentUnauthorized { return &ShutdownDeploymentUnauthorized{} } -/* ShutdownDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +ShutdownDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -158,9 +231,44 @@ type ShutdownDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment unauthorized response has a 2xx status code +func (o *ShutdownDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment unauthorized response has a 3xx status code +func (o *ShutdownDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment unauthorized response has a 4xx status code +func (o *ShutdownDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment unauthorized response has a 5xx status code +func (o *ShutdownDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment unauthorized response a status code equal to that given +func (o *ShutdownDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the shutdown deployment unauthorized response +func (o *ShutdownDeploymentUnauthorized) Code() int { + return 401 +} + func (o *ShutdownDeploymentUnauthorized) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *ShutdownDeploymentUnauthorized) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *ShutdownDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -182,7 +290,8 @@ func NewShutdownDeploymentNotFound() *ShutdownDeploymentNotFound { return &ShutdownDeploymentNotFound{} } -/* ShutdownDeploymentNotFound describes a response with status code 404, with default header values. +/* +ShutdownDeploymentNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -195,9 +304,44 @@ type ShutdownDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment not found response has a 2xx status code +func (o *ShutdownDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment not found response has a 3xx status code +func (o *ShutdownDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment not found response has a 4xx status code +func (o *ShutdownDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment not found response has a 5xx status code +func (o *ShutdownDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment not found response a status code equal to that given +func (o *ShutdownDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the shutdown deployment not found response +func (o *ShutdownDeploymentNotFound) Code() int { + return 404 +} + func (o *ShutdownDeploymentNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentNotFound %+v", 404, o.Payload) } + +func (o *ShutdownDeploymentNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/_shutdown][%d] shutdownDeploymentNotFound %+v", 404, o.Payload) +} + func (o *ShutdownDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/shutdown_deployment_stateless_resource_parameters.go b/pkg/client/deployments/shutdown_deployment_stateless_resource_parameters.go index 9bb1fa7a..c86b4a90 100644 --- a/pkg/client/deployments/shutdown_deployment_stateless_resource_parameters.go +++ b/pkg/client/deployments/shutdown_deployment_stateless_resource_parameters.go @@ -70,10 +70,12 @@ func NewShutdownDeploymentStatelessResourceParamsWithHTTPClient(client *http.Cli } } -/* ShutdownDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - for the shutdown deployment stateless resource operation. +/* +ShutdownDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the shutdown deployment stateless resource operation. + + Typically these are written to a http.Request. */ type ShutdownDeploymentStatelessResourceParams struct { diff --git a/pkg/client/deployments/shutdown_deployment_stateless_resource_responses.go b/pkg/client/deployments/shutdown_deployment_stateless_resource_responses.go index 7f316b37..ecc79ad3 100644 --- a/pkg/client/deployments/shutdown_deployment_stateless_resource_responses.go +++ b/pkg/client/deployments/shutdown_deployment_stateless_resource_responses.go @@ -80,7 +80,8 @@ func NewShutdownDeploymentStatelessResourceOK() *ShutdownDeploymentStatelessReso return &ShutdownDeploymentStatelessResourceOK{} } -/* ShutdownDeploymentStatelessResourceOK describes a response with status code 200, with default header values. +/* +ShutdownDeploymentStatelessResourceOK describes a response with status code 200, with default header values. Standard response */ @@ -88,9 +89,44 @@ type ShutdownDeploymentStatelessResourceOK struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this shutdown deployment stateless resource o k response has a 2xx status code +func (o *ShutdownDeploymentStatelessResourceOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this shutdown deployment stateless resource o k response has a 3xx status code +func (o *ShutdownDeploymentStatelessResourceOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment stateless resource o k response has a 4xx status code +func (o *ShutdownDeploymentStatelessResourceOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this shutdown deployment stateless resource o k response has a 5xx status code +func (o *ShutdownDeploymentStatelessResourceOK) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment stateless resource o k response a status code equal to that given +func (o *ShutdownDeploymentStatelessResourceOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the shutdown deployment stateless resource o k response +func (o *ShutdownDeploymentStatelessResourceOK) Code() int { + return 200 +} + func (o *ShutdownDeploymentStatelessResourceOK) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceOK %+v", 200, o.Payload) } + +func (o *ShutdownDeploymentStatelessResourceOK) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceOK %+v", 200, o.Payload) +} + func (o *ShutdownDeploymentStatelessResourceOK) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewShutdownDeploymentStatelessResourceBadRequest() *ShutdownDeploymentState return &ShutdownDeploymentStatelessResourceBadRequest{} } -/* ShutdownDeploymentStatelessResourceBadRequest describes a response with status code 400, with default header values. +/* +ShutdownDeploymentStatelessResourceBadRequest describes a response with status code 400, with default header values. Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`) */ @@ -125,9 +162,44 @@ type ShutdownDeploymentStatelessResourceBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment stateless resource bad request response has a 2xx status code +func (o *ShutdownDeploymentStatelessResourceBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment stateless resource bad request response has a 3xx status code +func (o *ShutdownDeploymentStatelessResourceBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment stateless resource bad request response has a 4xx status code +func (o *ShutdownDeploymentStatelessResourceBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment stateless resource bad request response has a 5xx status code +func (o *ShutdownDeploymentStatelessResourceBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment stateless resource bad request response a status code equal to that given +func (o *ShutdownDeploymentStatelessResourceBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the shutdown deployment stateless resource bad request response +func (o *ShutdownDeploymentStatelessResourceBadRequest) Code() int { + return 400 +} + func (o *ShutdownDeploymentStatelessResourceBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceBadRequest %+v", 400, o.Payload) } + +func (o *ShutdownDeploymentStatelessResourceBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceBadRequest %+v", 400, o.Payload) +} + func (o *ShutdownDeploymentStatelessResourceBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewShutdownDeploymentStatelessResourceNotFound() *ShutdownDeploymentStatele return &ShutdownDeploymentStatelessResourceNotFound{} } -/* ShutdownDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. +/* + ShutdownDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type ShutdownDeploymentStatelessResourceNotFound struct { @@ -170,9 +244,44 @@ type ShutdownDeploymentStatelessResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment stateless resource not found response has a 2xx status code +func (o *ShutdownDeploymentStatelessResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment stateless resource not found response has a 3xx status code +func (o *ShutdownDeploymentStatelessResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment stateless resource not found response has a 4xx status code +func (o *ShutdownDeploymentStatelessResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment stateless resource not found response has a 5xx status code +func (o *ShutdownDeploymentStatelessResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment stateless resource not found response a status code equal to that given +func (o *ShutdownDeploymentStatelessResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the shutdown deployment stateless resource not found response +func (o *ShutdownDeploymentStatelessResourceNotFound) Code() int { + return 404 +} + func (o *ShutdownDeploymentStatelessResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceNotFound %+v", 404, o.Payload) } + +func (o *ShutdownDeploymentStatelessResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceNotFound %+v", 404, o.Payload) +} + func (o *ShutdownDeploymentStatelessResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -201,7 +310,8 @@ func NewShutdownDeploymentStatelessResourceRetryWith() *ShutdownDeploymentStatel return &ShutdownDeploymentStatelessResourceRetryWith{} } -/* ShutdownDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. +/* +ShutdownDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -214,9 +324,44 @@ type ShutdownDeploymentStatelessResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment stateless resource retry with response has a 2xx status code +func (o *ShutdownDeploymentStatelessResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment stateless resource retry with response has a 3xx status code +func (o *ShutdownDeploymentStatelessResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment stateless resource retry with response has a 4xx status code +func (o *ShutdownDeploymentStatelessResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this shutdown deployment stateless resource retry with response has a 5xx status code +func (o *ShutdownDeploymentStatelessResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this shutdown deployment stateless resource retry with response a status code equal to that given +func (o *ShutdownDeploymentStatelessResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the shutdown deployment stateless resource retry with response +func (o *ShutdownDeploymentStatelessResourceRetryWith) Code() int { + return 449 +} + func (o *ShutdownDeploymentStatelessResourceRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) } + +func (o *ShutdownDeploymentStatelessResourceRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) +} + func (o *ShutdownDeploymentStatelessResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -245,7 +390,8 @@ func NewShutdownDeploymentStatelessResourceInternalServerError() *ShutdownDeploy return &ShutdownDeploymentStatelessResourceInternalServerError{} } -/* ShutdownDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. +/* +ShutdownDeploymentStatelessResourceInternalServerError describes a response with status code 500, with default header values. We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -258,9 +404,44 @@ type ShutdownDeploymentStatelessResourceInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this shutdown deployment stateless resource internal server error response has a 2xx status code +func (o *ShutdownDeploymentStatelessResourceInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this shutdown deployment stateless resource internal server error response has a 3xx status code +func (o *ShutdownDeploymentStatelessResourceInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this shutdown deployment stateless resource internal server error response has a 4xx status code +func (o *ShutdownDeploymentStatelessResourceInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this shutdown deployment stateless resource internal server error response has a 5xx status code +func (o *ShutdownDeploymentStatelessResourceInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this shutdown deployment stateless resource internal server error response a status code equal to that given +func (o *ShutdownDeploymentStatelessResourceInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the shutdown deployment stateless resource internal server error response +func (o *ShutdownDeploymentStatelessResourceInternalServerError) Code() int { + return 500 +} + func (o *ShutdownDeploymentStatelessResourceInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) } + +func (o *ShutdownDeploymentStatelessResourceInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown][%d] shutdownDeploymentStatelessResourceInternalServerError %+v", 500, o.Payload) +} + func (o *ShutdownDeploymentStatelessResourceInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_parameters.go b/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_parameters.go index bdc55d71..60e8daf0 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_parameters.go +++ b/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeParamsWithHTTPClient(c } } -/* StartDeploymentResourceInstancesAllMaintenanceModeParams contains all the parameters to send to the API endpoint - for the start deployment resource instances all maintenance mode operation. +/* +StartDeploymentResourceInstancesAllMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start deployment resource instances all maintenance mode operation. + + Typically these are written to a http.Request. */ type StartDeploymentResourceInstancesAllMaintenanceModeParams struct { diff --git a/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_responses.go b/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_responses.go index 6eaaa454..f77f38e9 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_responses.go +++ b/pkg/client/deployments/start_deployment_resource_instances_all_maintenance_mode_responses.go @@ -80,7 +80,8 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeAccepted() *StartDeplo return &StartDeploymentResourceInstancesAllMaintenanceModeAccepted{} } -/* StartDeploymentResourceInstancesAllMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StartDeploymentResourceInstancesAllMaintenanceModeAccepted describes a response with status code 202, with default header values. The start maintenance command was issued successfully. */ @@ -88,9 +89,44 @@ type StartDeploymentResourceInstancesAllMaintenanceModeAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this start deployment resource instances all maintenance mode accepted response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start deployment resource instances all maintenance mode accepted response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all maintenance mode accepted response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances all maintenance mode accepted response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all maintenance mode accepted response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start deployment resource instances all maintenance mode accepted response +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeForbidden() *StartDepl return &StartDeploymentResourceInstancesAllMaintenanceModeForbidden{} } -/* StartDeploymentResourceInstancesAllMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StartDeploymentResourceInstancesAllMaintenanceModeForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StartDeploymentResourceInstancesAllMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all maintenance mode forbidden response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all maintenance mode forbidden response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all maintenance mode forbidden response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all maintenance mode forbidden response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all maintenance mode forbidden response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start deployment resource instances all maintenance mode forbidden response +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeNotFound() *StartDeplo return &StartDeploymentResourceInstancesAllMaintenanceModeNotFound{} } -/* StartDeploymentResourceInstancesAllMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* + StartDeploymentResourceInstancesAllMaintenanceModeNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StartDeploymentResourceInstancesAllMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all maintenance mode not found response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all maintenance mode not found response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all maintenance mode not found response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all maintenance mode not found response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all maintenance mode not found response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start deployment resource instances all maintenance mode not found response +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeRetryWith() *StartDepl return &StartDeploymentResourceInstancesAllMaintenanceModeRetryWith{} } -/* StartDeploymentResourceInstancesAllMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StartDeploymentResourceInstancesAllMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StartDeploymentResourceInstancesAllMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all maintenance mode retry with response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all maintenance mode retry with response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all maintenance mode retry with response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all maintenance mode retry with response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all maintenance mode retry with response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start deployment resource instances all maintenance mode retry with response +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStartDeploymentResourceInstancesAllMaintenanceModeInternalServerError() return &StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError{} } -/* StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError describes a response with status code 500, with default header values. +/* +StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError struc Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all maintenance mode internal server error response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all maintenance mode internal server error response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all maintenance mode internal server error response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances all maintenance mode internal server error response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this start deployment resource instances all maintenance mode internal server error response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the start deployment resource instances all maintenance mode internal server error response +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) Code() int { + return 500 +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeInternalServerError %+v", 500, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start][%d] startDeploymentResourceInstancesAllMaintenanceModeInternalServerError %+v", 500, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllMaintenanceModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/start_deployment_resource_instances_all_parameters.go b/pkg/client/deployments/start_deployment_resource_instances_all_parameters.go index 473775b6..1724e2ae 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_all_parameters.go +++ b/pkg/client/deployments/start_deployment_resource_instances_all_parameters.go @@ -69,10 +69,12 @@ func NewStartDeploymentResourceInstancesAllParamsWithHTTPClient(client *http.Cli } } -/* StartDeploymentResourceInstancesAllParams contains all the parameters to send to the API endpoint - for the start deployment resource instances all operation. +/* +StartDeploymentResourceInstancesAllParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start deployment resource instances all operation. + + Typically these are written to a http.Request. */ type StartDeploymentResourceInstancesAllParams struct { diff --git a/pkg/client/deployments/start_deployment_resource_instances_all_responses.go b/pkg/client/deployments/start_deployment_resource_instances_all_responses.go index f68062f3..de62688d 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_all_responses.go +++ b/pkg/client/deployments/start_deployment_resource_instances_all_responses.go @@ -80,7 +80,8 @@ func NewStartDeploymentResourceInstancesAllAccepted() *StartDeploymentResourceIn return &StartDeploymentResourceInstancesAllAccepted{} } -/* StartDeploymentResourceInstancesAllAccepted describes a response with status code 202, with default header values. +/* +StartDeploymentResourceInstancesAllAccepted describes a response with status code 202, with default header values. The start command was issued successfully. */ @@ -88,9 +89,44 @@ type StartDeploymentResourceInstancesAllAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this start deployment resource instances all accepted response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start deployment resource instances all accepted response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all accepted response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances all accepted response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all accepted response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start deployment resource instances all accepted response +func (o *StartDeploymentResourceInstancesAllAccepted) Code() int { + return 202 +} + func (o *StartDeploymentResourceInstancesAllAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllAccepted %+v", 202, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllAccepted %+v", 202, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStartDeploymentResourceInstancesAllForbidden() *StartDeploymentResourceI return &StartDeploymentResourceInstancesAllForbidden{} } -/* StartDeploymentResourceInstancesAllForbidden describes a response with status code 403, with default header values. +/* +StartDeploymentResourceInstancesAllForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StartDeploymentResourceInstancesAllForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all forbidden response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all forbidden response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all forbidden response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all forbidden response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all forbidden response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start deployment resource instances all forbidden response +func (o *StartDeploymentResourceInstancesAllForbidden) Code() int { + return 403 +} + func (o *StartDeploymentResourceInstancesAllForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllForbidden %+v", 403, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllForbidden %+v", 403, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStartDeploymentResourceInstancesAllNotFound() *StartDeploymentResourceIn return &StartDeploymentResourceInstancesAllNotFound{} } -/* StartDeploymentResourceInstancesAllNotFound describes a response with status code 404, with default header values. +/* + StartDeploymentResourceInstancesAllNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StartDeploymentResourceInstancesAllNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all not found response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all not found response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all not found response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all not found response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all not found response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start deployment resource instances all not found response +func (o *StartDeploymentResourceInstancesAllNotFound) Code() int { + return 404 +} + func (o *StartDeploymentResourceInstancesAllNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllNotFound %+v", 404, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllNotFound %+v", 404, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStartDeploymentResourceInstancesAllRetryWith() *StartDeploymentResourceI return &StartDeploymentResourceInstancesAllRetryWith{} } -/* StartDeploymentResourceInstancesAllRetryWith describes a response with status code 449, with default header values. +/* +StartDeploymentResourceInstancesAllRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StartDeploymentResourceInstancesAllRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all retry with response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all retry with response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all retry with response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances all retry with response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances all retry with response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start deployment resource instances all retry with response +func (o *StartDeploymentResourceInstancesAllRetryWith) Code() int { + return 449 +} + func (o *StartDeploymentResourceInstancesAllRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllRetryWith %+v", 449, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllRetryWith %+v", 449, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStartDeploymentResourceInstancesAllInternalServerError() *StartDeploymen return &StartDeploymentResourceInstancesAllInternalServerError{} } -/* StartDeploymentResourceInstancesAllInternalServerError describes a response with status code 500, with default header values. +/* +StartDeploymentResourceInstancesAllInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StartDeploymentResourceInstancesAllInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances all internal server error response has a 2xx status code +func (o *StartDeploymentResourceInstancesAllInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances all internal server error response has a 3xx status code +func (o *StartDeploymentResourceInstancesAllInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances all internal server error response has a 4xx status code +func (o *StartDeploymentResourceInstancesAllInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances all internal server error response has a 5xx status code +func (o *StartDeploymentResourceInstancesAllInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this start deployment resource instances all internal server error response a status code equal to that given +func (o *StartDeploymentResourceInstancesAllInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the start deployment resource instances all internal server error response +func (o *StartDeploymentResourceInstancesAllInternalServerError) Code() int { + return 500 +} + func (o *StartDeploymentResourceInstancesAllInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllInternalServerError %+v", 500, o.Payload) } + +func (o *StartDeploymentResourceInstancesAllInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start][%d] startDeploymentResourceInstancesAllInternalServerError %+v", 500, o.Payload) +} + func (o *StartDeploymentResourceInstancesAllInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/start_deployment_resource_instances_parameters.go b/pkg/client/deployments/start_deployment_resource_instances_parameters.go index 06b522be..cc66b76a 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_parameters.go +++ b/pkg/client/deployments/start_deployment_resource_instances_parameters.go @@ -70,10 +70,12 @@ func NewStartDeploymentResourceInstancesParamsWithHTTPClient(client *http.Client } } -/* StartDeploymentResourceInstancesParams contains all the parameters to send to the API endpoint - for the start deployment resource instances operation. +/* +StartDeploymentResourceInstancesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start deployment resource instances operation. + + Typically these are written to a http.Request. */ type StartDeploymentResourceInstancesParams struct { diff --git a/pkg/client/deployments/start_deployment_resource_instances_responses.go b/pkg/client/deployments/start_deployment_resource_instances_responses.go index 305d1181..f5141bb4 100644 --- a/pkg/client/deployments/start_deployment_resource_instances_responses.go +++ b/pkg/client/deployments/start_deployment_resource_instances_responses.go @@ -80,7 +80,8 @@ func NewStartDeploymentResourceInstancesAccepted() *StartDeploymentResourceInsta return &StartDeploymentResourceInstancesAccepted{} } -/* StartDeploymentResourceInstancesAccepted describes a response with status code 202, with default header values. +/* +StartDeploymentResourceInstancesAccepted describes a response with status code 202, with default header values. The start command was issued successfully. */ @@ -88,9 +89,44 @@ type StartDeploymentResourceInstancesAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this start deployment resource instances accepted response has a 2xx status code +func (o *StartDeploymentResourceInstancesAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start deployment resource instances accepted response has a 3xx status code +func (o *StartDeploymentResourceInstancesAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances accepted response has a 4xx status code +func (o *StartDeploymentResourceInstancesAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances accepted response has a 5xx status code +func (o *StartDeploymentResourceInstancesAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances accepted response a status code equal to that given +func (o *StartDeploymentResourceInstancesAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start deployment resource instances accepted response +func (o *StartDeploymentResourceInstancesAccepted) Code() int { + return 202 +} + func (o *StartDeploymentResourceInstancesAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesAccepted %+v", 202, o.Payload) } + +func (o *StartDeploymentResourceInstancesAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesAccepted %+v", 202, o.Payload) +} + func (o *StartDeploymentResourceInstancesAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStartDeploymentResourceInstancesForbidden() *StartDeploymentResourceInst return &StartDeploymentResourceInstancesForbidden{} } -/* StartDeploymentResourceInstancesForbidden describes a response with status code 403, with default header values. +/* +StartDeploymentResourceInstancesForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StartDeploymentResourceInstancesForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances forbidden response has a 2xx status code +func (o *StartDeploymentResourceInstancesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances forbidden response has a 3xx status code +func (o *StartDeploymentResourceInstancesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances forbidden response has a 4xx status code +func (o *StartDeploymentResourceInstancesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances forbidden response has a 5xx status code +func (o *StartDeploymentResourceInstancesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances forbidden response a status code equal to that given +func (o *StartDeploymentResourceInstancesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start deployment resource instances forbidden response +func (o *StartDeploymentResourceInstancesForbidden) Code() int { + return 403 +} + func (o *StartDeploymentResourceInstancesForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesForbidden %+v", 403, o.Payload) } + +func (o *StartDeploymentResourceInstancesForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesForbidden %+v", 403, o.Payload) +} + func (o *StartDeploymentResourceInstancesForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStartDeploymentResourceInstancesNotFound() *StartDeploymentResourceInsta return &StartDeploymentResourceInstancesNotFound{} } -/* StartDeploymentResourceInstancesNotFound describes a response with status code 404, with default header values. +/* + StartDeploymentResourceInstancesNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StartDeploymentResourceInstancesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances not found response has a 2xx status code +func (o *StartDeploymentResourceInstancesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances not found response has a 3xx status code +func (o *StartDeploymentResourceInstancesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances not found response has a 4xx status code +func (o *StartDeploymentResourceInstancesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances not found response has a 5xx status code +func (o *StartDeploymentResourceInstancesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances not found response a status code equal to that given +func (o *StartDeploymentResourceInstancesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start deployment resource instances not found response +func (o *StartDeploymentResourceInstancesNotFound) Code() int { + return 404 +} + func (o *StartDeploymentResourceInstancesNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesNotFound %+v", 404, o.Payload) } + +func (o *StartDeploymentResourceInstancesNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesNotFound %+v", 404, o.Payload) +} + func (o *StartDeploymentResourceInstancesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStartDeploymentResourceInstancesRetryWith() *StartDeploymentResourceInst return &StartDeploymentResourceInstancesRetryWith{} } -/* StartDeploymentResourceInstancesRetryWith describes a response with status code 449, with default header values. +/* +StartDeploymentResourceInstancesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StartDeploymentResourceInstancesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances retry with response has a 2xx status code +func (o *StartDeploymentResourceInstancesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances retry with response has a 3xx status code +func (o *StartDeploymentResourceInstancesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances retry with response has a 4xx status code +func (o *StartDeploymentResourceInstancesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource instances retry with response has a 5xx status code +func (o *StartDeploymentResourceInstancesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource instances retry with response a status code equal to that given +func (o *StartDeploymentResourceInstancesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start deployment resource instances retry with response +func (o *StartDeploymentResourceInstancesRetryWith) Code() int { + return 449 +} + func (o *StartDeploymentResourceInstancesRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesRetryWith %+v", 449, o.Payload) } + +func (o *StartDeploymentResourceInstancesRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesRetryWith %+v", 449, o.Payload) +} + func (o *StartDeploymentResourceInstancesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStartDeploymentResourceInstancesInternalServerError() *StartDeploymentRe return &StartDeploymentResourceInstancesInternalServerError{} } -/* StartDeploymentResourceInstancesInternalServerError describes a response with status code 500, with default header values. +/* +StartDeploymentResourceInstancesInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StartDeploymentResourceInstancesInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource instances internal server error response has a 2xx status code +func (o *StartDeploymentResourceInstancesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource instances internal server error response has a 3xx status code +func (o *StartDeploymentResourceInstancesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource instances internal server error response has a 4xx status code +func (o *StartDeploymentResourceInstancesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource instances internal server error response has a 5xx status code +func (o *StartDeploymentResourceInstancesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this start deployment resource instances internal server error response a status code equal to that given +func (o *StartDeploymentResourceInstancesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the start deployment resource instances internal server error response +func (o *StartDeploymentResourceInstancesInternalServerError) Code() int { + return 500 +} + func (o *StartDeploymentResourceInstancesInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesInternalServerError %+v", 500, o.Payload) } + +func (o *StartDeploymentResourceInstancesInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start][%d] startDeploymentResourceInstancesInternalServerError %+v", 500, o.Payload) +} + func (o *StartDeploymentResourceInstancesInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/start_deployment_resource_maintenance_mode_parameters.go b/pkg/client/deployments/start_deployment_resource_maintenance_mode_parameters.go index 502afa50..593dbe87 100644 --- a/pkg/client/deployments/start_deployment_resource_maintenance_mode_parameters.go +++ b/pkg/client/deployments/start_deployment_resource_maintenance_mode_parameters.go @@ -70,10 +70,12 @@ func NewStartDeploymentResourceMaintenanceModeParamsWithHTTPClient(client *http. } } -/* StartDeploymentResourceMaintenanceModeParams contains all the parameters to send to the API endpoint - for the start deployment resource maintenance mode operation. +/* +StartDeploymentResourceMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start deployment resource maintenance mode operation. + + Typically these are written to a http.Request. */ type StartDeploymentResourceMaintenanceModeParams struct { diff --git a/pkg/client/deployments/start_deployment_resource_maintenance_mode_responses.go b/pkg/client/deployments/start_deployment_resource_maintenance_mode_responses.go index 4a20398d..f24acbbf 100644 --- a/pkg/client/deployments/start_deployment_resource_maintenance_mode_responses.go +++ b/pkg/client/deployments/start_deployment_resource_maintenance_mode_responses.go @@ -80,7 +80,8 @@ func NewStartDeploymentResourceMaintenanceModeAccepted() *StartDeploymentResourc return &StartDeploymentResourceMaintenanceModeAccepted{} } -/* StartDeploymentResourceMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StartDeploymentResourceMaintenanceModeAccepted describes a response with status code 202, with default header values. The start maintenance command was issued successfully. */ @@ -88,9 +89,44 @@ type StartDeploymentResourceMaintenanceModeAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this start deployment resource maintenance mode accepted response has a 2xx status code +func (o *StartDeploymentResourceMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start deployment resource maintenance mode accepted response has a 3xx status code +func (o *StartDeploymentResourceMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource maintenance mode accepted response has a 4xx status code +func (o *StartDeploymentResourceMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource maintenance mode accepted response has a 5xx status code +func (o *StartDeploymentResourceMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource maintenance mode accepted response a status code equal to that given +func (o *StartDeploymentResourceMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start deployment resource maintenance mode accepted response +func (o *StartDeploymentResourceMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StartDeploymentResourceMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StartDeploymentResourceMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StartDeploymentResourceMaintenanceModeAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStartDeploymentResourceMaintenanceModeForbidden() *StartDeploymentResour return &StartDeploymentResourceMaintenanceModeForbidden{} } -/* StartDeploymentResourceMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StartDeploymentResourceMaintenanceModeForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StartDeploymentResourceMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource maintenance mode forbidden response has a 2xx status code +func (o *StartDeploymentResourceMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource maintenance mode forbidden response has a 3xx status code +func (o *StartDeploymentResourceMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource maintenance mode forbidden response has a 4xx status code +func (o *StartDeploymentResourceMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource maintenance mode forbidden response has a 5xx status code +func (o *StartDeploymentResourceMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource maintenance mode forbidden response a status code equal to that given +func (o *StartDeploymentResourceMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start deployment resource maintenance mode forbidden response +func (o *StartDeploymentResourceMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StartDeploymentResourceMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StartDeploymentResourceMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StartDeploymentResourceMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStartDeploymentResourceMaintenanceModeNotFound() *StartDeploymentResourc return &StartDeploymentResourceMaintenanceModeNotFound{} } -/* StartDeploymentResourceMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* + StartDeploymentResourceMaintenanceModeNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StartDeploymentResourceMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource maintenance mode not found response has a 2xx status code +func (o *StartDeploymentResourceMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource maintenance mode not found response has a 3xx status code +func (o *StartDeploymentResourceMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource maintenance mode not found response has a 4xx status code +func (o *StartDeploymentResourceMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource maintenance mode not found response has a 5xx status code +func (o *StartDeploymentResourceMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource maintenance mode not found response a status code equal to that given +func (o *StartDeploymentResourceMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start deployment resource maintenance mode not found response +func (o *StartDeploymentResourceMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StartDeploymentResourceMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StartDeploymentResourceMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StartDeploymentResourceMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStartDeploymentResourceMaintenanceModeRetryWith() *StartDeploymentResour return &StartDeploymentResourceMaintenanceModeRetryWith{} } -/* StartDeploymentResourceMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StartDeploymentResourceMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StartDeploymentResourceMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource maintenance mode retry with response has a 2xx status code +func (o *StartDeploymentResourceMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource maintenance mode retry with response has a 3xx status code +func (o *StartDeploymentResourceMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource maintenance mode retry with response has a 4xx status code +func (o *StartDeploymentResourceMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start deployment resource maintenance mode retry with response has a 5xx status code +func (o *StartDeploymentResourceMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start deployment resource maintenance mode retry with response a status code equal to that given +func (o *StartDeploymentResourceMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start deployment resource maintenance mode retry with response +func (o *StartDeploymentResourceMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StartDeploymentResourceMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StartDeploymentResourceMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StartDeploymentResourceMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStartDeploymentResourceMaintenanceModeInternalServerError() *StartDeploy return &StartDeploymentResourceMaintenanceModeInternalServerError{} } -/* StartDeploymentResourceMaintenanceModeInternalServerError describes a response with status code 500, with default header values. +/* +StartDeploymentResourceMaintenanceModeInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StartDeploymentResourceMaintenanceModeInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start deployment resource maintenance mode internal server error response has a 2xx status code +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start deployment resource maintenance mode internal server error response has a 3xx status code +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start deployment resource maintenance mode internal server error response has a 4xx status code +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this start deployment resource maintenance mode internal server error response has a 5xx status code +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this start deployment resource maintenance mode internal server error response a status code equal to that given +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the start deployment resource maintenance mode internal server error response +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) Code() int { + return 500 +} + func (o *StartDeploymentResourceMaintenanceModeInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeInternalServerError %+v", 500, o.Payload) } + +func (o *StartDeploymentResourceMaintenanceModeInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start][%d] startDeploymentResourceMaintenanceModeInternalServerError %+v", 500, o.Payload) +} + func (o *StartDeploymentResourceMaintenanceModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_parameters.go b/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_parameters.go index e042c8ff..4872c2f9 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_parameters.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeParamsWithHTTPClient(cl } } -/* StopDeploymentResourceInstancesAllMaintenanceModeParams contains all the parameters to send to the API endpoint - for the stop deployment resource instances all maintenance mode operation. +/* +StopDeploymentResourceInstancesAllMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop deployment resource instances all maintenance mode operation. + + Typically these are written to a http.Request. */ type StopDeploymentResourceInstancesAllMaintenanceModeParams struct { diff --git a/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_responses.go b/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_responses.go index d3206bcb..b341cf77 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_responses.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_all_maintenance_mode_responses.go @@ -80,7 +80,8 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeAccepted() *StopDeploym return &StopDeploymentResourceInstancesAllMaintenanceModeAccepted{} } -/* StopDeploymentResourceInstancesAllMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StopDeploymentResourceInstancesAllMaintenanceModeAccepted describes a response with status code 202, with default header values. The stop maintenance mode command was issued successfully. */ @@ -88,9 +89,44 @@ type StopDeploymentResourceInstancesAllMaintenanceModeAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this stop deployment resource instances all maintenance mode accepted response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop deployment resource instances all maintenance mode accepted response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all maintenance mode accepted response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances all maintenance mode accepted response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all maintenance mode accepted response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop deployment resource instances all maintenance mode accepted response +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeForbidden() *StopDeploy return &StopDeploymentResourceInstancesAllMaintenanceModeForbidden{} } -/* StopDeploymentResourceInstancesAllMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StopDeploymentResourceInstancesAllMaintenanceModeForbidden describes a response with status code 403, with default header values. The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StopDeploymentResourceInstancesAllMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all maintenance mode forbidden response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all maintenance mode forbidden response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all maintenance mode forbidden response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all maintenance mode forbidden response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all maintenance mode forbidden response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop deployment resource instances all maintenance mode forbidden response +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeNotFound() *StopDeploym return &StopDeploymentResourceInstancesAllMaintenanceModeNotFound{} } -/* StopDeploymentResourceInstancesAllMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* + StopDeploymentResourceInstancesAllMaintenanceModeNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StopDeploymentResourceInstancesAllMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all maintenance mode not found response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all maintenance mode not found response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all maintenance mode not found response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all maintenance mode not found response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all maintenance mode not found response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop deployment resource instances all maintenance mode not found response +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeRetryWith() *StopDeploy return &StopDeploymentResourceInstancesAllMaintenanceModeRetryWith{} } -/* StopDeploymentResourceInstancesAllMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StopDeploymentResourceInstancesAllMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StopDeploymentResourceInstancesAllMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all maintenance mode retry with response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all maintenance mode retry with response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all maintenance mode retry with response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all maintenance mode retry with response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all maintenance mode retry with response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop deployment resource instances all maintenance mode retry with response +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStopDeploymentResourceInstancesAllMaintenanceModeInternalServerError() * return &StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError{} } -/* StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError describes a response with status code 500, with default header values. +/* +StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError struct Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all maintenance mode internal server error response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all maintenance mode internal server error response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all maintenance mode internal server error response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances all maintenance mode internal server error response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this stop deployment resource instances all maintenance mode internal server error response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the stop deployment resource instances all maintenance mode internal server error response +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) Code() int { + return 500 +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeInternalServerError %+v", 500, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop][%d] stopDeploymentResourceInstancesAllMaintenanceModeInternalServerError %+v", 500, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllMaintenanceModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/stop_deployment_resource_instances_all_parameters.go b/pkg/client/deployments/stop_deployment_resource_instances_all_parameters.go index 09994d82..bf91592e 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_all_parameters.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_all_parameters.go @@ -69,10 +69,12 @@ func NewStopDeploymentResourceInstancesAllParamsWithHTTPClient(client *http.Clie } } -/* StopDeploymentResourceInstancesAllParams contains all the parameters to send to the API endpoint - for the stop deployment resource instances all operation. +/* +StopDeploymentResourceInstancesAllParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop deployment resource instances all operation. + + Typically these are written to a http.Request. */ type StopDeploymentResourceInstancesAllParams struct { diff --git a/pkg/client/deployments/stop_deployment_resource_instances_all_responses.go b/pkg/client/deployments/stop_deployment_resource_instances_all_responses.go index 37f63823..6dbb928f 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_all_responses.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_all_responses.go @@ -80,7 +80,8 @@ func NewStopDeploymentResourceInstancesAllAccepted() *StopDeploymentResourceInst return &StopDeploymentResourceInstancesAllAccepted{} } -/* StopDeploymentResourceInstancesAllAccepted describes a response with status code 202, with default header values. +/* +StopDeploymentResourceInstancesAllAccepted describes a response with status code 202, with default header values. The stop command was issued successfully. */ @@ -88,9 +89,44 @@ type StopDeploymentResourceInstancesAllAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this stop deployment resource instances all accepted response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop deployment resource instances all accepted response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all accepted response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances all accepted response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all accepted response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop deployment resource instances all accepted response +func (o *StopDeploymentResourceInstancesAllAccepted) Code() int { + return 202 +} + func (o *StopDeploymentResourceInstancesAllAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllAccepted %+v", 202, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllAccepted %+v", 202, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStopDeploymentResourceInstancesAllForbidden() *StopDeploymentResourceIns return &StopDeploymentResourceInstancesAllForbidden{} } -/* StopDeploymentResourceInstancesAllForbidden describes a response with status code 403, with default header values. +/* +StopDeploymentResourceInstancesAllForbidden describes a response with status code 403, with default header values. The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StopDeploymentResourceInstancesAllForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all forbidden response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all forbidden response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all forbidden response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all forbidden response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all forbidden response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop deployment resource instances all forbidden response +func (o *StopDeploymentResourceInstancesAllForbidden) Code() int { + return 403 +} + func (o *StopDeploymentResourceInstancesAllForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllForbidden %+v", 403, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllForbidden %+v", 403, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStopDeploymentResourceInstancesAllNotFound() *StopDeploymentResourceInst return &StopDeploymentResourceInstancesAllNotFound{} } -/* StopDeploymentResourceInstancesAllNotFound describes a response with status code 404, with default header values. +/* + StopDeploymentResourceInstancesAllNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StopDeploymentResourceInstancesAllNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all not found response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all not found response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all not found response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all not found response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all not found response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop deployment resource instances all not found response +func (o *StopDeploymentResourceInstancesAllNotFound) Code() int { + return 404 +} + func (o *StopDeploymentResourceInstancesAllNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllNotFound %+v", 404, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllNotFound %+v", 404, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStopDeploymentResourceInstancesAllRetryWith() *StopDeploymentResourceIns return &StopDeploymentResourceInstancesAllRetryWith{} } -/* StopDeploymentResourceInstancesAllRetryWith describes a response with status code 449, with default header values. +/* +StopDeploymentResourceInstancesAllRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StopDeploymentResourceInstancesAllRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all retry with response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all retry with response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all retry with response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances all retry with response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances all retry with response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop deployment resource instances all retry with response +func (o *StopDeploymentResourceInstancesAllRetryWith) Code() int { + return 449 +} + func (o *StopDeploymentResourceInstancesAllRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllRetryWith %+v", 449, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllRetryWith %+v", 449, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStopDeploymentResourceInstancesAllInternalServerError() *StopDeploymentR return &StopDeploymentResourceInstancesAllInternalServerError{} } -/* StopDeploymentResourceInstancesAllInternalServerError describes a response with status code 500, with default header values. +/* +StopDeploymentResourceInstancesAllInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StopDeploymentResourceInstancesAllInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances all internal server error response has a 2xx status code +func (o *StopDeploymentResourceInstancesAllInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances all internal server error response has a 3xx status code +func (o *StopDeploymentResourceInstancesAllInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances all internal server error response has a 4xx status code +func (o *StopDeploymentResourceInstancesAllInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances all internal server error response has a 5xx status code +func (o *StopDeploymentResourceInstancesAllInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this stop deployment resource instances all internal server error response a status code equal to that given +func (o *StopDeploymentResourceInstancesAllInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the stop deployment resource instances all internal server error response +func (o *StopDeploymentResourceInstancesAllInternalServerError) Code() int { + return 500 +} + func (o *StopDeploymentResourceInstancesAllInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllInternalServerError %+v", 500, o.Payload) } + +func (o *StopDeploymentResourceInstancesAllInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop][%d] stopDeploymentResourceInstancesAllInternalServerError %+v", 500, o.Payload) +} + func (o *StopDeploymentResourceInstancesAllInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/stop_deployment_resource_instances_parameters.go b/pkg/client/deployments/stop_deployment_resource_instances_parameters.go index 6de4036d..333cc24f 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_parameters.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_parameters.go @@ -70,10 +70,12 @@ func NewStopDeploymentResourceInstancesParamsWithHTTPClient(client *http.Client) } } -/* StopDeploymentResourceInstancesParams contains all the parameters to send to the API endpoint - for the stop deployment resource instances operation. +/* +StopDeploymentResourceInstancesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop deployment resource instances operation. + + Typically these are written to a http.Request. */ type StopDeploymentResourceInstancesParams struct { diff --git a/pkg/client/deployments/stop_deployment_resource_instances_responses.go b/pkg/client/deployments/stop_deployment_resource_instances_responses.go index c6e096bb..ed0387f7 100644 --- a/pkg/client/deployments/stop_deployment_resource_instances_responses.go +++ b/pkg/client/deployments/stop_deployment_resource_instances_responses.go @@ -80,7 +80,8 @@ func NewStopDeploymentResourceInstancesAccepted() *StopDeploymentResourceInstanc return &StopDeploymentResourceInstancesAccepted{} } -/* StopDeploymentResourceInstancesAccepted describes a response with status code 202, with default header values. +/* +StopDeploymentResourceInstancesAccepted describes a response with status code 202, with default header values. The stop command was issued successfully. */ @@ -88,9 +89,44 @@ type StopDeploymentResourceInstancesAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this stop deployment resource instances accepted response has a 2xx status code +func (o *StopDeploymentResourceInstancesAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop deployment resource instances accepted response has a 3xx status code +func (o *StopDeploymentResourceInstancesAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances accepted response has a 4xx status code +func (o *StopDeploymentResourceInstancesAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances accepted response has a 5xx status code +func (o *StopDeploymentResourceInstancesAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances accepted response a status code equal to that given +func (o *StopDeploymentResourceInstancesAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop deployment resource instances accepted response +func (o *StopDeploymentResourceInstancesAccepted) Code() int { + return 202 +} + func (o *StopDeploymentResourceInstancesAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesAccepted %+v", 202, o.Payload) } + +func (o *StopDeploymentResourceInstancesAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesAccepted %+v", 202, o.Payload) +} + func (o *StopDeploymentResourceInstancesAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStopDeploymentResourceInstancesForbidden() *StopDeploymentResourceInstan return &StopDeploymentResourceInstancesForbidden{} } -/* StopDeploymentResourceInstancesForbidden describes a response with status code 403, with default header values. +/* +StopDeploymentResourceInstancesForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StopDeploymentResourceInstancesForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances forbidden response has a 2xx status code +func (o *StopDeploymentResourceInstancesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances forbidden response has a 3xx status code +func (o *StopDeploymentResourceInstancesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances forbidden response has a 4xx status code +func (o *StopDeploymentResourceInstancesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances forbidden response has a 5xx status code +func (o *StopDeploymentResourceInstancesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances forbidden response a status code equal to that given +func (o *StopDeploymentResourceInstancesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop deployment resource instances forbidden response +func (o *StopDeploymentResourceInstancesForbidden) Code() int { + return 403 +} + func (o *StopDeploymentResourceInstancesForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesForbidden %+v", 403, o.Payload) } + +func (o *StopDeploymentResourceInstancesForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesForbidden %+v", 403, o.Payload) +} + func (o *StopDeploymentResourceInstancesForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStopDeploymentResourceInstancesNotFound() *StopDeploymentResourceInstanc return &StopDeploymentResourceInstancesNotFound{} } -/* StopDeploymentResourceInstancesNotFound describes a response with status code 404, with default header values. +/* + StopDeploymentResourceInstancesNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StopDeploymentResourceInstancesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances not found response has a 2xx status code +func (o *StopDeploymentResourceInstancesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances not found response has a 3xx status code +func (o *StopDeploymentResourceInstancesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances not found response has a 4xx status code +func (o *StopDeploymentResourceInstancesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances not found response has a 5xx status code +func (o *StopDeploymentResourceInstancesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances not found response a status code equal to that given +func (o *StopDeploymentResourceInstancesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop deployment resource instances not found response +func (o *StopDeploymentResourceInstancesNotFound) Code() int { + return 404 +} + func (o *StopDeploymentResourceInstancesNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesNotFound %+v", 404, o.Payload) } + +func (o *StopDeploymentResourceInstancesNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesNotFound %+v", 404, o.Payload) +} + func (o *StopDeploymentResourceInstancesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStopDeploymentResourceInstancesRetryWith() *StopDeploymentResourceInstan return &StopDeploymentResourceInstancesRetryWith{} } -/* StopDeploymentResourceInstancesRetryWith describes a response with status code 449, with default header values. +/* +StopDeploymentResourceInstancesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StopDeploymentResourceInstancesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances retry with response has a 2xx status code +func (o *StopDeploymentResourceInstancesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances retry with response has a 3xx status code +func (o *StopDeploymentResourceInstancesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances retry with response has a 4xx status code +func (o *StopDeploymentResourceInstancesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource instances retry with response has a 5xx status code +func (o *StopDeploymentResourceInstancesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource instances retry with response a status code equal to that given +func (o *StopDeploymentResourceInstancesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop deployment resource instances retry with response +func (o *StopDeploymentResourceInstancesRetryWith) Code() int { + return 449 +} + func (o *StopDeploymentResourceInstancesRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesRetryWith %+v", 449, o.Payload) } + +func (o *StopDeploymentResourceInstancesRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesRetryWith %+v", 449, o.Payload) +} + func (o *StopDeploymentResourceInstancesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStopDeploymentResourceInstancesInternalServerError() *StopDeploymentReso return &StopDeploymentResourceInstancesInternalServerError{} } -/* StopDeploymentResourceInstancesInternalServerError describes a response with status code 500, with default header values. +/* +StopDeploymentResourceInstancesInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StopDeploymentResourceInstancesInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource instances internal server error response has a 2xx status code +func (o *StopDeploymentResourceInstancesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource instances internal server error response has a 3xx status code +func (o *StopDeploymentResourceInstancesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource instances internal server error response has a 4xx status code +func (o *StopDeploymentResourceInstancesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource instances internal server error response has a 5xx status code +func (o *StopDeploymentResourceInstancesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this stop deployment resource instances internal server error response a status code equal to that given +func (o *StopDeploymentResourceInstancesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the stop deployment resource instances internal server error response +func (o *StopDeploymentResourceInstancesInternalServerError) Code() int { + return 500 +} + func (o *StopDeploymentResourceInstancesInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesInternalServerError %+v", 500, o.Payload) } + +func (o *StopDeploymentResourceInstancesInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop][%d] stopDeploymentResourceInstancesInternalServerError %+v", 500, o.Payload) +} + func (o *StopDeploymentResourceInstancesInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/stop_deployment_resource_maintenance_mode_parameters.go b/pkg/client/deployments/stop_deployment_resource_maintenance_mode_parameters.go index e3f998aa..f6ced964 100644 --- a/pkg/client/deployments/stop_deployment_resource_maintenance_mode_parameters.go +++ b/pkg/client/deployments/stop_deployment_resource_maintenance_mode_parameters.go @@ -70,10 +70,12 @@ func NewStopDeploymentResourceMaintenanceModeParamsWithHTTPClient(client *http.C } } -/* StopDeploymentResourceMaintenanceModeParams contains all the parameters to send to the API endpoint - for the stop deployment resource maintenance mode operation. +/* +StopDeploymentResourceMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop deployment resource maintenance mode operation. + + Typically these are written to a http.Request. */ type StopDeploymentResourceMaintenanceModeParams struct { diff --git a/pkg/client/deployments/stop_deployment_resource_maintenance_mode_responses.go b/pkg/client/deployments/stop_deployment_resource_maintenance_mode_responses.go index a61b4809..670ef473 100644 --- a/pkg/client/deployments/stop_deployment_resource_maintenance_mode_responses.go +++ b/pkg/client/deployments/stop_deployment_resource_maintenance_mode_responses.go @@ -80,7 +80,8 @@ func NewStopDeploymentResourceMaintenanceModeAccepted() *StopDeploymentResourceM return &StopDeploymentResourceMaintenanceModeAccepted{} } -/* StopDeploymentResourceMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StopDeploymentResourceMaintenanceModeAccepted describes a response with status code 202, with default header values. The stop maintenance mode command was issued successfully. */ @@ -88,9 +89,44 @@ type StopDeploymentResourceMaintenanceModeAccepted struct { Payload *models.DeploymentResourceCommandResponse } +// IsSuccess returns true when this stop deployment resource maintenance mode accepted response has a 2xx status code +func (o *StopDeploymentResourceMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop deployment resource maintenance mode accepted response has a 3xx status code +func (o *StopDeploymentResourceMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource maintenance mode accepted response has a 4xx status code +func (o *StopDeploymentResourceMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource maintenance mode accepted response has a 5xx status code +func (o *StopDeploymentResourceMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource maintenance mode accepted response a status code equal to that given +func (o *StopDeploymentResourceMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop deployment resource maintenance mode accepted response +func (o *StopDeploymentResourceMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StopDeploymentResourceMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StopDeploymentResourceMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StopDeploymentResourceMaintenanceModeAccepted) GetPayload() *models.DeploymentResourceCommandResponse { return o.Payload } @@ -112,7 +148,8 @@ func NewStopDeploymentResourceMaintenanceModeForbidden() *StopDeploymentResource return &StopDeploymentResourceMaintenanceModeForbidden{} } -/* StopDeploymentResourceMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StopDeploymentResourceMaintenanceModeForbidden describes a response with status code 403, with default header values. The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`) */ @@ -125,9 +162,44 @@ type StopDeploymentResourceMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource maintenance mode forbidden response has a 2xx status code +func (o *StopDeploymentResourceMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource maintenance mode forbidden response has a 3xx status code +func (o *StopDeploymentResourceMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource maintenance mode forbidden response has a 4xx status code +func (o *StopDeploymentResourceMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource maintenance mode forbidden response has a 5xx status code +func (o *StopDeploymentResourceMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource maintenance mode forbidden response a status code equal to that given +func (o *StopDeploymentResourceMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop deployment resource maintenance mode forbidden response +func (o *StopDeploymentResourceMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StopDeploymentResourceMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StopDeploymentResourceMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StopDeploymentResourceMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,9 +228,11 @@ func NewStopDeploymentResourceMaintenanceModeNotFound() *StopDeploymentResourceM return &StopDeploymentResourceMaintenanceModeNotFound{} } -/* StopDeploymentResourceMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* + StopDeploymentResourceMaintenanceModeNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) * One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`) */ @@ -171,9 +245,44 @@ type StopDeploymentResourceMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource maintenance mode not found response has a 2xx status code +func (o *StopDeploymentResourceMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource maintenance mode not found response has a 3xx status code +func (o *StopDeploymentResourceMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource maintenance mode not found response has a 4xx status code +func (o *StopDeploymentResourceMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource maintenance mode not found response has a 5xx status code +func (o *StopDeploymentResourceMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource maintenance mode not found response a status code equal to that given +func (o *StopDeploymentResourceMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop deployment resource maintenance mode not found response +func (o *StopDeploymentResourceMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StopDeploymentResourceMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StopDeploymentResourceMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StopDeploymentResourceMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,7 +311,8 @@ func NewStopDeploymentResourceMaintenanceModeRetryWith() *StopDeploymentResource return &StopDeploymentResourceMaintenanceModeRetryWith{} } -/* StopDeploymentResourceMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StopDeploymentResourceMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -215,9 +325,44 @@ type StopDeploymentResourceMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource maintenance mode retry with response has a 2xx status code +func (o *StopDeploymentResourceMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource maintenance mode retry with response has a 3xx status code +func (o *StopDeploymentResourceMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource maintenance mode retry with response has a 4xx status code +func (o *StopDeploymentResourceMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop deployment resource maintenance mode retry with response has a 5xx status code +func (o *StopDeploymentResourceMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop deployment resource maintenance mode retry with response a status code equal to that given +func (o *StopDeploymentResourceMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop deployment resource maintenance mode retry with response +func (o *StopDeploymentResourceMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StopDeploymentResourceMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StopDeploymentResourceMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StopDeploymentResourceMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +391,8 @@ func NewStopDeploymentResourceMaintenanceModeInternalServerError() *StopDeployme return &StopDeploymentResourceMaintenanceModeInternalServerError{} } -/* StopDeploymentResourceMaintenanceModeInternalServerError describes a response with status code 500, with default header values. +/* +StopDeploymentResourceMaintenanceModeInternalServerError describes a response with status code 500, with default header values. A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`) */ @@ -259,9 +405,44 @@ type StopDeploymentResourceMaintenanceModeInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop deployment resource maintenance mode internal server error response has a 2xx status code +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop deployment resource maintenance mode internal server error response has a 3xx status code +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop deployment resource maintenance mode internal server error response has a 4xx status code +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop deployment resource maintenance mode internal server error response has a 5xx status code +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this stop deployment resource maintenance mode internal server error response a status code equal to that given +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the stop deployment resource maintenance mode internal server error response +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) Code() int { + return 500 +} + func (o *StopDeploymentResourceMaintenanceModeInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeInternalServerError %+v", 500, o.Payload) } + +func (o *StopDeploymentResourceMaintenanceModeInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop][%d] stopDeploymentResourceMaintenanceModeInternalServerError %+v", 500, o.Payload) +} + func (o *StopDeploymentResourceMaintenanceModeInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/update_deployment_parameters.go b/pkg/client/deployments/update_deployment_parameters.go index 0a6da720..12780887 100644 --- a/pkg/client/deployments/update_deployment_parameters.go +++ b/pkg/client/deployments/update_deployment_parameters.go @@ -72,10 +72,12 @@ func NewUpdateDeploymentParamsWithHTTPClient(client *http.Client) *UpdateDeploym } } -/* UpdateDeploymentParams contains all the parameters to send to the API endpoint - for the update deployment operation. +/* +UpdateDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update deployment operation. + + Typically these are written to a http.Request. */ type UpdateDeploymentParams struct { diff --git a/pkg/client/deployments/update_deployment_responses.go b/pkg/client/deployments/update_deployment_responses.go index 3cf0bf0a..0cd6274d 100644 --- a/pkg/client/deployments/update_deployment_responses.go +++ b/pkg/client/deployments/update_deployment_responses.go @@ -74,7 +74,8 @@ func NewUpdateDeploymentOK() *UpdateDeploymentOK { return &UpdateDeploymentOK{} } -/* UpdateDeploymentOK describes a response with status code 200, with default header values. +/* +UpdateDeploymentOK describes a response with status code 200, with default header values. The request was valid and the deployment was updated. */ @@ -95,9 +96,44 @@ type UpdateDeploymentOK struct { Payload *models.DeploymentUpdateResponse } +// IsSuccess returns true when this update deployment o k response has a 2xx status code +func (o *UpdateDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update deployment o k response has a 3xx status code +func (o *UpdateDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment o k response has a 4xx status code +func (o *UpdateDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update deployment o k response has a 5xx status code +func (o *UpdateDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment o k response a status code equal to that given +func (o *UpdateDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update deployment o k response +func (o *UpdateDeploymentOK) Code() int { + return 200 +} + func (o *UpdateDeploymentOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentOK %+v", 200, o.Payload) } + +func (o *UpdateDeploymentOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentOK %+v", 200, o.Payload) +} + func (o *UpdateDeploymentOK) GetPayload() *models.DeploymentUpdateResponse { return o.Payload } @@ -140,7 +176,8 @@ func NewUpdateDeploymentBadRequest() *UpdateDeploymentBadRequest { return &UpdateDeploymentBadRequest{} } -/* UpdateDeploymentBadRequest describes a response with status code 400, with default header values. +/* +UpdateDeploymentBadRequest describes a response with status code 400, with default header values. The deployment request had errors. */ @@ -148,9 +185,44 @@ type UpdateDeploymentBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update deployment bad request response has a 2xx status code +func (o *UpdateDeploymentBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update deployment bad request response has a 3xx status code +func (o *UpdateDeploymentBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment bad request response has a 4xx status code +func (o *UpdateDeploymentBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update deployment bad request response has a 5xx status code +func (o *UpdateDeploymentBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment bad request response a status code equal to that given +func (o *UpdateDeploymentBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update deployment bad request response +func (o *UpdateDeploymentBadRequest) Code() int { + return 400 +} + func (o *UpdateDeploymentBadRequest) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentBadRequest %+v", 400, o.Payload) } + +func (o *UpdateDeploymentBadRequest) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentBadRequest %+v", 400, o.Payload) +} + func (o *UpdateDeploymentBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -172,7 +244,8 @@ func NewUpdateDeploymentUnauthorized() *UpdateDeploymentUnauthorized { return &UpdateDeploymentUnauthorized{} } -/* UpdateDeploymentUnauthorized describes a response with status code 401, with default header values. +/* +UpdateDeploymentUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -180,9 +253,44 @@ type UpdateDeploymentUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update deployment unauthorized response has a 2xx status code +func (o *UpdateDeploymentUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update deployment unauthorized response has a 3xx status code +func (o *UpdateDeploymentUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment unauthorized response has a 4xx status code +func (o *UpdateDeploymentUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this update deployment unauthorized response has a 5xx status code +func (o *UpdateDeploymentUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment unauthorized response a status code equal to that given +func (o *UpdateDeploymentUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the update deployment unauthorized response +func (o *UpdateDeploymentUnauthorized) Code() int { + return 401 +} + func (o *UpdateDeploymentUnauthorized) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentUnauthorized %+v", 401, o.Payload) } + +func (o *UpdateDeploymentUnauthorized) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentUnauthorized %+v", 401, o.Payload) +} + func (o *UpdateDeploymentUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -204,7 +312,8 @@ func NewUpdateDeploymentNotFound() *UpdateDeploymentNotFound { return &UpdateDeploymentNotFound{} } -/* UpdateDeploymentNotFound describes a response with status code 404, with default header values. +/* +UpdateDeploymentNotFound describes a response with status code 404, with default header values. The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -217,9 +326,44 @@ type UpdateDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update deployment not found response has a 2xx status code +func (o *UpdateDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update deployment not found response has a 3xx status code +func (o *UpdateDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment not found response has a 4xx status code +func (o *UpdateDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update deployment not found response has a 5xx status code +func (o *UpdateDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment not found response a status code equal to that given +func (o *UpdateDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update deployment not found response +func (o *UpdateDeploymentNotFound) Code() int { + return 404 +} + func (o *UpdateDeploymentNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentNotFound %+v", 404, o.Payload) } + +func (o *UpdateDeploymentNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}][%d] updateDeploymentNotFound %+v", 404, o.Payload) +} + func (o *UpdateDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments/upgrade_deployment_stateless_resource_parameters.go b/pkg/client/deployments/upgrade_deployment_stateless_resource_parameters.go index c5ba24d6..b353bf15 100644 --- a/pkg/client/deployments/upgrade_deployment_stateless_resource_parameters.go +++ b/pkg/client/deployments/upgrade_deployment_stateless_resource_parameters.go @@ -70,10 +70,12 @@ func NewUpgradeDeploymentStatelessResourceParamsWithHTTPClient(client *http.Clie } } -/* UpgradeDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - for the upgrade deployment stateless resource operation. +/* +UpgradeDeploymentStatelessResourceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the upgrade deployment stateless resource operation. + + Typically these are written to a http.Request. */ type UpgradeDeploymentStatelessResourceParams struct { diff --git a/pkg/client/deployments/upgrade_deployment_stateless_resource_responses.go b/pkg/client/deployments/upgrade_deployment_stateless_resource_responses.go index 4f1c7279..7ae8419f 100644 --- a/pkg/client/deployments/upgrade_deployment_stateless_resource_responses.go +++ b/pkg/client/deployments/upgrade_deployment_stateless_resource_responses.go @@ -68,7 +68,8 @@ func NewUpgradeDeploymentStatelessResourceAccepted() *UpgradeDeploymentStateless return &UpgradeDeploymentStatelessResourceAccepted{} } -/* UpgradeDeploymentStatelessResourceAccepted describes a response with status code 202, with default header values. +/* +UpgradeDeploymentStatelessResourceAccepted describes a response with status code 202, with default header values. The upgrade command was issued successfully. Use the "GET" command on the /{deployment_id} resource to monitor progress */ @@ -76,9 +77,44 @@ type UpgradeDeploymentStatelessResourceAccepted struct { Payload *models.DeploymentResourceUpgradeResponse } +// IsSuccess returns true when this upgrade deployment stateless resource accepted response has a 2xx status code +func (o *UpgradeDeploymentStatelessResourceAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this upgrade deployment stateless resource accepted response has a 3xx status code +func (o *UpgradeDeploymentStatelessResourceAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upgrade deployment stateless resource accepted response has a 4xx status code +func (o *UpgradeDeploymentStatelessResourceAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this upgrade deployment stateless resource accepted response has a 5xx status code +func (o *UpgradeDeploymentStatelessResourceAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this upgrade deployment stateless resource accepted response a status code equal to that given +func (o *UpgradeDeploymentStatelessResourceAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the upgrade deployment stateless resource accepted response +func (o *UpgradeDeploymentStatelessResourceAccepted) Code() int { + return 202 +} + func (o *UpgradeDeploymentStatelessResourceAccepted) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceAccepted %+v", 202, o.Payload) } + +func (o *UpgradeDeploymentStatelessResourceAccepted) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceAccepted %+v", 202, o.Payload) +} + func (o *UpgradeDeploymentStatelessResourceAccepted) GetPayload() *models.DeploymentResourceUpgradeResponse { return o.Payload } @@ -100,9 +136,11 @@ func NewUpgradeDeploymentStatelessResourceNotFound() *UpgradeDeploymentStateless return &UpgradeDeploymentStatelessResourceNotFound{} } -/* UpgradeDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. +/* + UpgradeDeploymentStatelessResourceNotFound describes a response with status code 404, with default header values. + + * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) */ type UpgradeDeploymentStatelessResourceNotFound struct { @@ -114,9 +152,44 @@ type UpgradeDeploymentStatelessResourceNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this upgrade deployment stateless resource not found response has a 2xx status code +func (o *UpgradeDeploymentStatelessResourceNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this upgrade deployment stateless resource not found response has a 3xx status code +func (o *UpgradeDeploymentStatelessResourceNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upgrade deployment stateless resource not found response has a 4xx status code +func (o *UpgradeDeploymentStatelessResourceNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this upgrade deployment stateless resource not found response has a 5xx status code +func (o *UpgradeDeploymentStatelessResourceNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this upgrade deployment stateless resource not found response a status code equal to that given +func (o *UpgradeDeploymentStatelessResourceNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the upgrade deployment stateless resource not found response +func (o *UpgradeDeploymentStatelessResourceNotFound) Code() int { + return 404 +} + func (o *UpgradeDeploymentStatelessResourceNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceNotFound %+v", 404, o.Payload) } + +func (o *UpgradeDeploymentStatelessResourceNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceNotFound %+v", 404, o.Payload) +} + func (o *UpgradeDeploymentStatelessResourceNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -145,7 +218,8 @@ func NewUpgradeDeploymentStatelessResourceRetryWith() *UpgradeDeploymentStateles return &UpgradeDeploymentStatelessResourceRetryWith{} } -/* UpgradeDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. +/* +UpgradeDeploymentStatelessResourceRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -158,9 +232,44 @@ type UpgradeDeploymentStatelessResourceRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this upgrade deployment stateless resource retry with response has a 2xx status code +func (o *UpgradeDeploymentStatelessResourceRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this upgrade deployment stateless resource retry with response has a 3xx status code +func (o *UpgradeDeploymentStatelessResourceRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upgrade deployment stateless resource retry with response has a 4xx status code +func (o *UpgradeDeploymentStatelessResourceRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this upgrade deployment stateless resource retry with response has a 5xx status code +func (o *UpgradeDeploymentStatelessResourceRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this upgrade deployment stateless resource retry with response a status code equal to that given +func (o *UpgradeDeploymentStatelessResourceRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the upgrade deployment stateless resource retry with response +func (o *UpgradeDeploymentStatelessResourceRetryWith) Code() int { + return 449 +} + func (o *UpgradeDeploymentStatelessResourceRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) } + +func (o *UpgradeDeploymentStatelessResourceRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade][%d] upgradeDeploymentStatelessResourceRetryWith %+v", 449, o.Payload) +} + func (o *UpgradeDeploymentStatelessResourceRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_notes/create_deployment_note_parameters.go b/pkg/client/deployments_notes/create_deployment_note_parameters.go index 5de30974..0bf6d91a 100644 --- a/pkg/client/deployments_notes/create_deployment_note_parameters.go +++ b/pkg/client/deployments_notes/create_deployment_note_parameters.go @@ -71,10 +71,12 @@ func NewCreateDeploymentNoteParamsWithHTTPClient(client *http.Client) *CreateDep } } -/* CreateDeploymentNoteParams contains all the parameters to send to the API endpoint - for the create deployment note operation. +/* +CreateDeploymentNoteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create deployment note operation. + + Typically these are written to a http.Request. */ type CreateDeploymentNoteParams struct { diff --git a/pkg/client/deployments_notes/create_deployment_note_responses.go b/pkg/client/deployments_notes/create_deployment_note_responses.go index 6be8030d..769b5a13 100644 --- a/pkg/client/deployments_notes/create_deployment_note_responses.go +++ b/pkg/client/deployments_notes/create_deployment_note_responses.go @@ -68,7 +68,8 @@ func NewCreateDeploymentNoteCreated() *CreateDeploymentNoteCreated { return &CreateDeploymentNoteCreated{} } -/* CreateDeploymentNoteCreated describes a response with status code 201, with default header values. +/* +CreateDeploymentNoteCreated describes a response with status code 201, with default header values. List of deployment notes after the new deployment note has been added */ @@ -76,9 +77,44 @@ type CreateDeploymentNoteCreated struct { Payload *models.Notes } +// IsSuccess returns true when this create deployment note created response has a 2xx status code +func (o *CreateDeploymentNoteCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create deployment note created response has a 3xx status code +func (o *CreateDeploymentNoteCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment note created response has a 4xx status code +func (o *CreateDeploymentNoteCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create deployment note created response has a 5xx status code +func (o *CreateDeploymentNoteCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment note created response a status code equal to that given +func (o *CreateDeploymentNoteCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create deployment note created response +func (o *CreateDeploymentNoteCreated) Code() int { + return 201 +} + func (o *CreateDeploymentNoteCreated) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteCreated %+v", 201, o.Payload) } + +func (o *CreateDeploymentNoteCreated) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteCreated %+v", 201, o.Payload) +} + func (o *CreateDeploymentNoteCreated) GetPayload() *models.Notes { return o.Payload } @@ -100,7 +136,8 @@ func NewCreateDeploymentNoteNotFound() *CreateDeploymentNoteNotFound { return &CreateDeploymentNoteNotFound{} } -/* CreateDeploymentNoteNotFound describes a response with status code 404, with default header values. +/* +CreateDeploymentNoteNotFound describes a response with status code 404, with default header values. The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -113,9 +150,44 @@ type CreateDeploymentNoteNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment note not found response has a 2xx status code +func (o *CreateDeploymentNoteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment note not found response has a 3xx status code +func (o *CreateDeploymentNoteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment note not found response has a 4xx status code +func (o *CreateDeploymentNoteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment note not found response has a 5xx status code +func (o *CreateDeploymentNoteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment note not found response a status code equal to that given +func (o *CreateDeploymentNoteNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the create deployment note not found response +func (o *CreateDeploymentNoteNotFound) Code() int { + return 404 +} + func (o *CreateDeploymentNoteNotFound) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteNotFound %+v", 404, o.Payload) } + +func (o *CreateDeploymentNoteNotFound) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteNotFound %+v", 404, o.Payload) +} + func (o *CreateDeploymentNoteNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewCreateDeploymentNoteRetryWith() *CreateDeploymentNoteRetryWith { return &CreateDeploymentNoteRetryWith{} } -/* CreateDeploymentNoteRetryWith describes a response with status code 449, with default header values. +/* +CreateDeploymentNoteRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type CreateDeploymentNoteRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create deployment note retry with response has a 2xx status code +func (o *CreateDeploymentNoteRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create deployment note retry with response has a 3xx status code +func (o *CreateDeploymentNoteRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create deployment note retry with response has a 4xx status code +func (o *CreateDeploymentNoteRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create deployment note retry with response has a 5xx status code +func (o *CreateDeploymentNoteRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create deployment note retry with response a status code equal to that given +func (o *CreateDeploymentNoteRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create deployment note retry with response +func (o *CreateDeploymentNoteRetryWith) Code() int { + return 449 +} + func (o *CreateDeploymentNoteRetryWith) Error() string { return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteRetryWith %+v", 449, o.Payload) } + +func (o *CreateDeploymentNoteRetryWith) String() string { + return fmt.Sprintf("[POST /deployments/{deployment_id}/notes][%d] createDeploymentNoteRetryWith %+v", 449, o.Payload) +} + func (o *CreateDeploymentNoteRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_notes/delete_deployment_note_parameters.go b/pkg/client/deployments_notes/delete_deployment_note_parameters.go index 19d4ad5a..69bf93d1 100644 --- a/pkg/client/deployments_notes/delete_deployment_note_parameters.go +++ b/pkg/client/deployments_notes/delete_deployment_note_parameters.go @@ -69,10 +69,12 @@ func NewDeleteDeploymentNoteParamsWithHTTPClient(client *http.Client) *DeleteDep } } -/* DeleteDeploymentNoteParams contains all the parameters to send to the API endpoint - for the delete deployment note operation. +/* +DeleteDeploymentNoteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete deployment note operation. + + Typically these are written to a http.Request. */ type DeleteDeploymentNoteParams struct { diff --git a/pkg/client/deployments_notes/delete_deployment_note_responses.go b/pkg/client/deployments_notes/delete_deployment_note_responses.go index 2a560c06..4073ee98 100644 --- a/pkg/client/deployments_notes/delete_deployment_note_responses.go +++ b/pkg/client/deployments_notes/delete_deployment_note_responses.go @@ -68,7 +68,8 @@ func NewDeleteDeploymentNoteOK() *DeleteDeploymentNoteOK { return &DeleteDeploymentNoteOK{} } -/* DeleteDeploymentNoteOK describes a response with status code 200, with default header values. +/* +DeleteDeploymentNoteOK describes a response with status code 200, with default header values. List of deployment notes after {note_id} has been deleted */ @@ -89,9 +90,44 @@ type DeleteDeploymentNoteOK struct { Payload *models.Notes } +// IsSuccess returns true when this delete deployment note o k response has a 2xx status code +func (o *DeleteDeploymentNoteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete deployment note o k response has a 3xx status code +func (o *DeleteDeploymentNoteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment note o k response has a 4xx status code +func (o *DeleteDeploymentNoteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete deployment note o k response has a 5xx status code +func (o *DeleteDeploymentNoteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment note o k response a status code equal to that given +func (o *DeleteDeploymentNoteOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete deployment note o k response +func (o *DeleteDeploymentNoteOK) Code() int { + return 200 +} + func (o *DeleteDeploymentNoteOK) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteOK %+v", 200, o.Payload) } + +func (o *DeleteDeploymentNoteOK) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteOK %+v", 200, o.Payload) +} + func (o *DeleteDeploymentNoteOK) GetPayload() *models.Notes { return o.Payload } @@ -134,9 +170,11 @@ func NewDeleteDeploymentNoteNotFound() *DeleteDeploymentNoteNotFound { return &DeleteDeploymentNoteNotFound{} } -/* DeleteDeploymentNoteNotFound describes a response with status code 404, with default header values. +/* + DeleteDeploymentNoteNotFound describes a response with status code 404, with default header values. + + * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The note specified by {note_id} cannot be found. (code: `notes.note_not_found`) */ type DeleteDeploymentNoteNotFound struct { @@ -148,9 +186,44 @@ type DeleteDeploymentNoteNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment note not found response has a 2xx status code +func (o *DeleteDeploymentNoteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment note not found response has a 3xx status code +func (o *DeleteDeploymentNoteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment note not found response has a 4xx status code +func (o *DeleteDeploymentNoteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment note not found response has a 5xx status code +func (o *DeleteDeploymentNoteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment note not found response a status code equal to that given +func (o *DeleteDeploymentNoteNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete deployment note not found response +func (o *DeleteDeploymentNoteNotFound) Code() int { + return 404 +} + func (o *DeleteDeploymentNoteNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteNotFound %+v", 404, o.Payload) } + +func (o *DeleteDeploymentNoteNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteNotFound %+v", 404, o.Payload) +} + func (o *DeleteDeploymentNoteNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -179,7 +252,8 @@ func NewDeleteDeploymentNoteRetryWith() *DeleteDeploymentNoteRetryWith { return &DeleteDeploymentNoteRetryWith{} } -/* DeleteDeploymentNoteRetryWith describes a response with status code 449, with default header values. +/* +DeleteDeploymentNoteRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -192,9 +266,44 @@ type DeleteDeploymentNoteRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete deployment note retry with response has a 2xx status code +func (o *DeleteDeploymentNoteRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete deployment note retry with response has a 3xx status code +func (o *DeleteDeploymentNoteRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete deployment note retry with response has a 4xx status code +func (o *DeleteDeploymentNoteRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete deployment note retry with response has a 5xx status code +func (o *DeleteDeploymentNoteRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete deployment note retry with response a status code equal to that given +func (o *DeleteDeploymentNoteRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete deployment note retry with response +func (o *DeleteDeploymentNoteRetryWith) Code() int { + return 449 +} + func (o *DeleteDeploymentNoteRetryWith) Error() string { return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteRetryWith %+v", 449, o.Payload) } + +func (o *DeleteDeploymentNoteRetryWith) String() string { + return fmt.Sprintf("[DELETE /deployments/{deployment_id}/notes/{note_id}][%d] deleteDeploymentNoteRetryWith %+v", 449, o.Payload) +} + func (o *DeleteDeploymentNoteRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_notes/deployments_notes_client.go b/pkg/client/deployments_notes/deployments_notes_client.go index b88e2387..da72fb5f 100644 --- a/pkg/client/deployments_notes/deployments_notes_client.go +++ b/pkg/client/deployments_notes/deployments_notes_client.go @@ -61,9 +61,10 @@ type ClientService interface { } /* - CreateDeploymentNote creates deployment note + CreateDeploymentNote creates deployment note + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Use [Create a Comment](#Comments) instead. Create note for the running deployment. @@ -105,9 +106,10 @@ func (a *Client) CreateDeploymentNote(params *CreateDeploymentNoteParams, authIn } /* - DeleteDeploymentNote deletes deployment note + DeleteDeploymentNote deletes deployment note + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Use [Delete Comment](#Comments) instead. Delete note for the running deployment. @@ -149,9 +151,10 @@ func (a *Client) DeleteDeploymentNote(params *DeleteDeploymentNoteParams, authIn } /* - GetDeploymentNote gets a deployment note + GetDeploymentNote gets a deployment note + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Use [Get Comment](#Comments) instead. Gets a deployment note. @@ -193,9 +196,10 @@ func (a *Client) GetDeploymentNote(params *GetDeploymentNoteParams, authInfo run } /* - GetDeploymentNotes gets deployment notes + GetDeploymentNotes gets deployment notes + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Use [List Comments](#Comments) instead. Get deployment notes. @@ -237,9 +241,10 @@ func (a *Client) GetDeploymentNotes(params *GetDeploymentNotesParams, authInfo r } /* - UpdateDeploymentNote updates deployment note + UpdateDeploymentNote updates deployment note + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Use [Update Comment](#Comments) instead. Update note for the running deployment. diff --git a/pkg/client/deployments_notes/get_deployment_note_parameters.go b/pkg/client/deployments_notes/get_deployment_note_parameters.go index b289ff34..de5508c5 100644 --- a/pkg/client/deployments_notes/get_deployment_note_parameters.go +++ b/pkg/client/deployments_notes/get_deployment_note_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentNoteParamsWithHTTPClient(client *http.Client) *GetDeploymen } } -/* GetDeploymentNoteParams contains all the parameters to send to the API endpoint - for the get deployment note operation. +/* +GetDeploymentNoteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment note operation. + + Typically these are written to a http.Request. */ type GetDeploymentNoteParams struct { diff --git a/pkg/client/deployments_notes/get_deployment_note_responses.go b/pkg/client/deployments_notes/get_deployment_note_responses.go index b65784e6..41c8334f 100644 --- a/pkg/client/deployments_notes/get_deployment_note_responses.go +++ b/pkg/client/deployments_notes/get_deployment_note_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentNoteOK() *GetDeploymentNoteOK { return &GetDeploymentNoteOK{} } -/* GetDeploymentNoteOK describes a response with status code 200, with default header values. +/* +GetDeploymentNoteOK describes a response with status code 200, with default header values. The deployment note was successfully returned */ @@ -83,9 +84,44 @@ type GetDeploymentNoteOK struct { Payload *models.Note } +// IsSuccess returns true when this get deployment note o k response has a 2xx status code +func (o *GetDeploymentNoteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment note o k response has a 3xx status code +func (o *GetDeploymentNoteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment note o k response has a 4xx status code +func (o *GetDeploymentNoteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment note o k response has a 5xx status code +func (o *GetDeploymentNoteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment note o k response a status code equal to that given +func (o *GetDeploymentNoteOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment note o k response +func (o *GetDeploymentNoteOK) Code() int { + return 200 +} + func (o *GetDeploymentNoteOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/notes/{note_id}][%d] getDeploymentNoteOK %+v", 200, o.Payload) } + +func (o *GetDeploymentNoteOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/notes/{note_id}][%d] getDeploymentNoteOK %+v", 200, o.Payload) +} + func (o *GetDeploymentNoteOK) GetPayload() *models.Note { return o.Payload } @@ -128,9 +164,11 @@ func NewGetDeploymentNoteNotFound() *GetDeploymentNoteNotFound { return &GetDeploymentNoteNotFound{} } -/* GetDeploymentNoteNotFound describes a response with status code 404, with default header values. +/* + GetDeploymentNoteNotFound describes a response with status code 404, with default header values. + + * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The note specified by {note_id} cannot be found. (code: `notes.note_not_found`) */ type GetDeploymentNoteNotFound struct { @@ -142,9 +180,44 @@ type GetDeploymentNoteNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment note not found response has a 2xx status code +func (o *GetDeploymentNoteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment note not found response has a 3xx status code +func (o *GetDeploymentNoteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment note not found response has a 4xx status code +func (o *GetDeploymentNoteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment note not found response has a 5xx status code +func (o *GetDeploymentNoteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment note not found response a status code equal to that given +func (o *GetDeploymentNoteNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment note not found response +func (o *GetDeploymentNoteNotFound) Code() int { + return 404 +} + func (o *GetDeploymentNoteNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/notes/{note_id}][%d] getDeploymentNoteNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentNoteNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/notes/{note_id}][%d] getDeploymentNoteNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentNoteNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_notes/get_deployment_notes_parameters.go b/pkg/client/deployments_notes/get_deployment_notes_parameters.go index 64138b6d..73c97853 100644 --- a/pkg/client/deployments_notes/get_deployment_notes_parameters.go +++ b/pkg/client/deployments_notes/get_deployment_notes_parameters.go @@ -69,10 +69,12 @@ func NewGetDeploymentNotesParamsWithHTTPClient(client *http.Client) *GetDeployme } } -/* GetDeploymentNotesParams contains all the parameters to send to the API endpoint - for the get deployment notes operation. +/* +GetDeploymentNotesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get deployment notes operation. + + Typically these are written to a http.Request. */ type GetDeploymentNotesParams struct { diff --git a/pkg/client/deployments_notes/get_deployment_notes_responses.go b/pkg/client/deployments_notes/get_deployment_notes_responses.go index 34d73c16..8bdabbf2 100644 --- a/pkg/client/deployments_notes/get_deployment_notes_responses.go +++ b/pkg/client/deployments_notes/get_deployment_notes_responses.go @@ -62,7 +62,8 @@ func NewGetDeploymentNotesOK() *GetDeploymentNotesOK { return &GetDeploymentNotesOK{} } -/* GetDeploymentNotesOK describes a response with status code 200, with default header values. +/* +GetDeploymentNotesOK describes a response with status code 200, with default header values. The deployment notes were successfully returned */ @@ -83,9 +84,44 @@ type GetDeploymentNotesOK struct { Payload *models.Notes } +// IsSuccess returns true when this get deployment notes o k response has a 2xx status code +func (o *GetDeploymentNotesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get deployment notes o k response has a 3xx status code +func (o *GetDeploymentNotesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment notes o k response has a 4xx status code +func (o *GetDeploymentNotesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get deployment notes o k response has a 5xx status code +func (o *GetDeploymentNotesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment notes o k response a status code equal to that given +func (o *GetDeploymentNotesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get deployment notes o k response +func (o *GetDeploymentNotesOK) Code() int { + return 200 +} + func (o *GetDeploymentNotesOK) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/notes][%d] getDeploymentNotesOK %+v", 200, o.Payload) } + +func (o *GetDeploymentNotesOK) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/notes][%d] getDeploymentNotesOK %+v", 200, o.Payload) +} + func (o *GetDeploymentNotesOK) GetPayload() *models.Notes { return o.Payload } @@ -128,7 +164,8 @@ func NewGetDeploymentNotesNotFound() *GetDeploymentNotesNotFound { return &GetDeploymentNotesNotFound{} } -/* GetDeploymentNotesNotFound describes a response with status code 404, with default header values. +/* +GetDeploymentNotesNotFound describes a response with status code 404, with default header values. The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) */ @@ -141,9 +178,44 @@ type GetDeploymentNotesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get deployment notes not found response has a 2xx status code +func (o *GetDeploymentNotesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get deployment notes not found response has a 3xx status code +func (o *GetDeploymentNotesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get deployment notes not found response has a 4xx status code +func (o *GetDeploymentNotesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get deployment notes not found response has a 5xx status code +func (o *GetDeploymentNotesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get deployment notes not found response a status code equal to that given +func (o *GetDeploymentNotesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get deployment notes not found response +func (o *GetDeploymentNotesNotFound) Code() int { + return 404 +} + func (o *GetDeploymentNotesNotFound) Error() string { return fmt.Sprintf("[GET /deployments/{deployment_id}/notes][%d] getDeploymentNotesNotFound %+v", 404, o.Payload) } + +func (o *GetDeploymentNotesNotFound) String() string { + return fmt.Sprintf("[GET /deployments/{deployment_id}/notes][%d] getDeploymentNotesNotFound %+v", 404, o.Payload) +} + func (o *GetDeploymentNotesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_notes/update_deployment_note_parameters.go b/pkg/client/deployments_notes/update_deployment_note_parameters.go index 95f11fc2..8bd52419 100644 --- a/pkg/client/deployments_notes/update_deployment_note_parameters.go +++ b/pkg/client/deployments_notes/update_deployment_note_parameters.go @@ -71,10 +71,12 @@ func NewUpdateDeploymentNoteParamsWithHTTPClient(client *http.Client) *UpdateDep } } -/* UpdateDeploymentNoteParams contains all the parameters to send to the API endpoint - for the update deployment note operation. +/* +UpdateDeploymentNoteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update deployment note operation. + + Typically these are written to a http.Request. */ type UpdateDeploymentNoteParams struct { diff --git a/pkg/client/deployments_notes/update_deployment_note_responses.go b/pkg/client/deployments_notes/update_deployment_note_responses.go index f3b7c2ff..73966a34 100644 --- a/pkg/client/deployments_notes/update_deployment_note_responses.go +++ b/pkg/client/deployments_notes/update_deployment_note_responses.go @@ -68,7 +68,8 @@ func NewUpdateDeploymentNoteOK() *UpdateDeploymentNoteOK { return &UpdateDeploymentNoteOK{} } -/* UpdateDeploymentNoteOK describes a response with status code 200, with default header values. +/* +UpdateDeploymentNoteOK describes a response with status code 200, with default header values. Updated deployment note */ @@ -89,9 +90,44 @@ type UpdateDeploymentNoteOK struct { Payload *models.Note } +// IsSuccess returns true when this update deployment note o k response has a 2xx status code +func (o *UpdateDeploymentNoteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update deployment note o k response has a 3xx status code +func (o *UpdateDeploymentNoteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment note o k response has a 4xx status code +func (o *UpdateDeploymentNoteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update deployment note o k response has a 5xx status code +func (o *UpdateDeploymentNoteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment note o k response a status code equal to that given +func (o *UpdateDeploymentNoteOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update deployment note o k response +func (o *UpdateDeploymentNoteOK) Code() int { + return 200 +} + func (o *UpdateDeploymentNoteOK) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteOK %+v", 200, o.Payload) } + +func (o *UpdateDeploymentNoteOK) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteOK %+v", 200, o.Payload) +} + func (o *UpdateDeploymentNoteOK) GetPayload() *models.Note { return o.Payload } @@ -134,9 +170,11 @@ func NewUpdateDeploymentNoteNotFound() *UpdateDeploymentNoteNotFound { return &UpdateDeploymentNoteNotFound{} } -/* UpdateDeploymentNoteNotFound describes a response with status code 404, with default header values. +/* + UpdateDeploymentNoteNotFound describes a response with status code 404, with default header values. + + * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) - * "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The note specified by {note_id} cannot be found. (code: `notes.note_not_found`) */ type UpdateDeploymentNoteNotFound struct { @@ -148,9 +186,44 @@ type UpdateDeploymentNoteNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update deployment note not found response has a 2xx status code +func (o *UpdateDeploymentNoteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update deployment note not found response has a 3xx status code +func (o *UpdateDeploymentNoteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment note not found response has a 4xx status code +func (o *UpdateDeploymentNoteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update deployment note not found response has a 5xx status code +func (o *UpdateDeploymentNoteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment note not found response a status code equal to that given +func (o *UpdateDeploymentNoteNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update deployment note not found response +func (o *UpdateDeploymentNoteNotFound) Code() int { + return 404 +} + func (o *UpdateDeploymentNoteNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteNotFound %+v", 404, o.Payload) } + +func (o *UpdateDeploymentNoteNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteNotFound %+v", 404, o.Payload) +} + func (o *UpdateDeploymentNoteNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -179,7 +252,8 @@ func NewUpdateDeploymentNoteRetryWith() *UpdateDeploymentNoteRetryWith { return &UpdateDeploymentNoteRetryWith{} } -/* UpdateDeploymentNoteRetryWith describes a response with status code 449, with default header values. +/* +UpdateDeploymentNoteRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -192,9 +266,44 @@ type UpdateDeploymentNoteRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update deployment note retry with response has a 2xx status code +func (o *UpdateDeploymentNoteRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update deployment note retry with response has a 3xx status code +func (o *UpdateDeploymentNoteRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update deployment note retry with response has a 4xx status code +func (o *UpdateDeploymentNoteRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update deployment note retry with response has a 5xx status code +func (o *UpdateDeploymentNoteRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update deployment note retry with response a status code equal to that given +func (o *UpdateDeploymentNoteRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update deployment note retry with response +func (o *UpdateDeploymentNoteRetryWith) Code() int { + return 449 +} + func (o *UpdateDeploymentNoteRetryWith) Error() string { return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteRetryWith %+v", 449, o.Payload) } + +func (o *UpdateDeploymentNoteRetryWith) String() string { + return fmt.Sprintf("[PUT /deployments/{deployment_id}/notes/{note_id}][%d] updateDeploymentNoteRetryWith %+v", 449, o.Payload) +} + func (o *UpdateDeploymentNoteRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_parameters.go b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_parameters.go index 834db426..daff9509 100644 --- a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_parameters.go +++ b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_parameters.go @@ -71,10 +71,12 @@ func NewCreateTrafficFilterRulesetAssociationParamsWithHTTPClient(client *http.C } } -/* CreateTrafficFilterRulesetAssociationParams contains all the parameters to send to the API endpoint - for the create traffic filter ruleset association operation. +/* +CreateTrafficFilterRulesetAssociationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create traffic filter ruleset association operation. + + Typically these are written to a http.Request. */ type CreateTrafficFilterRulesetAssociationParams struct { diff --git a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_responses.go b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_responses.go index 7bf92103..afbb0850 100644 --- a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_responses.go +++ b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_association_responses.go @@ -74,7 +74,8 @@ func NewCreateTrafficFilterRulesetAssociationOK() *CreateTrafficFilterRulesetAss return &CreateTrafficFilterRulesetAssociationOK{} } -/* CreateTrafficFilterRulesetAssociationOK describes a response with status code 200, with default header values. +/* +CreateTrafficFilterRulesetAssociationOK describes a response with status code 200, with default header values. Create association request was valid and the association already exists */ @@ -82,9 +83,44 @@ type CreateTrafficFilterRulesetAssociationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this create traffic filter ruleset association o k response has a 2xx status code +func (o *CreateTrafficFilterRulesetAssociationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create traffic filter ruleset association o k response has a 3xx status code +func (o *CreateTrafficFilterRulesetAssociationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset association o k response has a 4xx status code +func (o *CreateTrafficFilterRulesetAssociationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create traffic filter ruleset association o k response has a 5xx status code +func (o *CreateTrafficFilterRulesetAssociationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create traffic filter ruleset association o k response a status code equal to that given +func (o *CreateTrafficFilterRulesetAssociationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create traffic filter ruleset association o k response +func (o *CreateTrafficFilterRulesetAssociationOK) Code() int { + return 200 +} + func (o *CreateTrafficFilterRulesetAssociationOK) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationOK %+v", 200, o.Payload) } + +func (o *CreateTrafficFilterRulesetAssociationOK) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationOK %+v", 200, o.Payload) +} + func (o *CreateTrafficFilterRulesetAssociationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewCreateTrafficFilterRulesetAssociationCreated() *CreateTrafficFilterRules return &CreateTrafficFilterRulesetAssociationCreated{} } -/* CreateTrafficFilterRulesetAssociationCreated describes a response with status code 201, with default header values. +/* +CreateTrafficFilterRulesetAssociationCreated describes a response with status code 201, with default header values. Create association request was valid and the association has been created */ @@ -112,9 +149,44 @@ type CreateTrafficFilterRulesetAssociationCreated struct { Payload models.EmptyResponse } +// IsSuccess returns true when this create traffic filter ruleset association created response has a 2xx status code +func (o *CreateTrafficFilterRulesetAssociationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create traffic filter ruleset association created response has a 3xx status code +func (o *CreateTrafficFilterRulesetAssociationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset association created response has a 4xx status code +func (o *CreateTrafficFilterRulesetAssociationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create traffic filter ruleset association created response has a 5xx status code +func (o *CreateTrafficFilterRulesetAssociationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create traffic filter ruleset association created response a status code equal to that given +func (o *CreateTrafficFilterRulesetAssociationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create traffic filter ruleset association created response +func (o *CreateTrafficFilterRulesetAssociationCreated) Code() int { + return 201 +} + func (o *CreateTrafficFilterRulesetAssociationCreated) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationCreated %+v", 201, o.Payload) } + +func (o *CreateTrafficFilterRulesetAssociationCreated) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationCreated %+v", 201, o.Payload) +} + func (o *CreateTrafficFilterRulesetAssociationCreated) GetPayload() models.EmptyResponse { return o.Payload } @@ -134,7 +206,8 @@ func NewCreateTrafficFilterRulesetAssociationNotFound() *CreateTrafficFilterRule return &CreateTrafficFilterRulesetAssociationNotFound{} } -/* CreateTrafficFilterRulesetAssociationNotFound describes a response with status code 404, with default header values. +/* +CreateTrafficFilterRulesetAssociationNotFound describes a response with status code 404, with default header values. The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) */ @@ -147,9 +220,44 @@ type CreateTrafficFilterRulesetAssociationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create traffic filter ruleset association not found response has a 2xx status code +func (o *CreateTrafficFilterRulesetAssociationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create traffic filter ruleset association not found response has a 3xx status code +func (o *CreateTrafficFilterRulesetAssociationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset association not found response has a 4xx status code +func (o *CreateTrafficFilterRulesetAssociationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this create traffic filter ruleset association not found response has a 5xx status code +func (o *CreateTrafficFilterRulesetAssociationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this create traffic filter ruleset association not found response a status code equal to that given +func (o *CreateTrafficFilterRulesetAssociationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the create traffic filter ruleset association not found response +func (o *CreateTrafficFilterRulesetAssociationNotFound) Code() int { + return 404 +} + func (o *CreateTrafficFilterRulesetAssociationNotFound) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationNotFound %+v", 404, o.Payload) } + +func (o *CreateTrafficFilterRulesetAssociationNotFound) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationNotFound %+v", 404, o.Payload) +} + func (o *CreateTrafficFilterRulesetAssociationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +286,8 @@ func NewCreateTrafficFilterRulesetAssociationInternalServerError() *CreateTraffi return &CreateTrafficFilterRulesetAssociationInternalServerError{} } -/* CreateTrafficFilterRulesetAssociationInternalServerError describes a response with status code 500, with default header values. +/* +CreateTrafficFilterRulesetAssociationInternalServerError describes a response with status code 500, with default header values. Creation failed. (code: `traffic_filter.request_execution_failed`) */ @@ -191,9 +300,44 @@ type CreateTrafficFilterRulesetAssociationInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create traffic filter ruleset association internal server error response has a 2xx status code +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create traffic filter ruleset association internal server error response has a 3xx status code +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset association internal server error response has a 4xx status code +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this create traffic filter ruleset association internal server error response has a 5xx status code +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this create traffic filter ruleset association internal server error response a status code equal to that given +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the create traffic filter ruleset association internal server error response +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) Code() int { + return 500 +} + func (o *CreateTrafficFilterRulesetAssociationInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationInternalServerError %+v", 500, o.Payload) } + +func (o *CreateTrafficFilterRulesetAssociationInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] createTrafficFilterRulesetAssociationInternalServerError %+v", 500, o.Payload) +} + func (o *CreateTrafficFilterRulesetAssociationInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_parameters.go b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_parameters.go index 161426c0..0e58c08c 100644 --- a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_parameters.go +++ b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_parameters.go @@ -71,10 +71,12 @@ func NewCreateTrafficFilterRulesetParamsWithHTTPClient(client *http.Client) *Cre } } -/* CreateTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - for the create traffic filter ruleset operation. +/* +CreateTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create traffic filter ruleset operation. + + Typically these are written to a http.Request. */ type CreateTrafficFilterRulesetParams struct { diff --git a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_responses.go b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_responses.go index f8152aef..f450ee6a 100644 --- a/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_responses.go +++ b/pkg/client/deployments_traffic_filter/create_traffic_filter_ruleset_responses.go @@ -62,7 +62,8 @@ func NewCreateTrafficFilterRulesetCreated() *CreateTrafficFilterRulesetCreated { return &CreateTrafficFilterRulesetCreated{} } -/* CreateTrafficFilterRulesetCreated describes a response with status code 201, with default header values. +/* +CreateTrafficFilterRulesetCreated describes a response with status code 201, with default header values. The ruleset definition is valid and the creation has started. */ @@ -70,9 +71,44 @@ type CreateTrafficFilterRulesetCreated struct { Payload *models.TrafficFilterRulesetResponse } +// IsSuccess returns true when this create traffic filter ruleset created response has a 2xx status code +func (o *CreateTrafficFilterRulesetCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create traffic filter ruleset created response has a 3xx status code +func (o *CreateTrafficFilterRulesetCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset created response has a 4xx status code +func (o *CreateTrafficFilterRulesetCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create traffic filter ruleset created response has a 5xx status code +func (o *CreateTrafficFilterRulesetCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create traffic filter ruleset created response a status code equal to that given +func (o *CreateTrafficFilterRulesetCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create traffic filter ruleset created response +func (o *CreateTrafficFilterRulesetCreated) Code() int { + return 201 +} + func (o *CreateTrafficFilterRulesetCreated) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets][%d] createTrafficFilterRulesetCreated %+v", 201, o.Payload) } + +func (o *CreateTrafficFilterRulesetCreated) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets][%d] createTrafficFilterRulesetCreated %+v", 201, o.Payload) +} + func (o *CreateTrafficFilterRulesetCreated) GetPayload() *models.TrafficFilterRulesetResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewCreateTrafficFilterRulesetInternalServerError() *CreateTrafficFilterRule return &CreateTrafficFilterRulesetInternalServerError{} } -/* CreateTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. +/* +CreateTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. Error creating the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) */ @@ -107,9 +144,44 @@ type CreateTrafficFilterRulesetInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create traffic filter ruleset internal server error response has a 2xx status code +func (o *CreateTrafficFilterRulesetInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create traffic filter ruleset internal server error response has a 3xx status code +func (o *CreateTrafficFilterRulesetInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create traffic filter ruleset internal server error response has a 4xx status code +func (o *CreateTrafficFilterRulesetInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this create traffic filter ruleset internal server error response has a 5xx status code +func (o *CreateTrafficFilterRulesetInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this create traffic filter ruleset internal server error response a status code equal to that given +func (o *CreateTrafficFilterRulesetInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the create traffic filter ruleset internal server error response +func (o *CreateTrafficFilterRulesetInternalServerError) Code() int { + return 500 +} + func (o *CreateTrafficFilterRulesetInternalServerError) Error() string { return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets][%d] createTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) } + +func (o *CreateTrafficFilterRulesetInternalServerError) String() string { + return fmt.Sprintf("[POST /deployments/traffic-filter/rulesets][%d] createTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) +} + func (o *CreateTrafficFilterRulesetInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_parameters.go b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_parameters.go index 032abe56..c86f92d0 100644 --- a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_parameters.go +++ b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_parameters.go @@ -69,10 +69,12 @@ func NewDeleteTrafficFilterRulesetAssociationParamsWithHTTPClient(client *http.C } } -/* DeleteTrafficFilterRulesetAssociationParams contains all the parameters to send to the API endpoint - for the delete traffic filter ruleset association operation. +/* +DeleteTrafficFilterRulesetAssociationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete traffic filter ruleset association operation. + + Typically these are written to a http.Request. */ type DeleteTrafficFilterRulesetAssociationParams struct { diff --git a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_responses.go b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_responses.go index c52b5272..9245c47b 100644 --- a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_responses.go +++ b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_association_responses.go @@ -68,7 +68,8 @@ func NewDeleteTrafficFilterRulesetAssociationOK() *DeleteTrafficFilterRulesetAss return &DeleteTrafficFilterRulesetAssociationOK{} } -/* DeleteTrafficFilterRulesetAssociationOK describes a response with status code 200, with default header values. +/* +DeleteTrafficFilterRulesetAssociationOK describes a response with status code 200, with default header values. Delete association request was valid and the association has been deleted */ @@ -76,9 +77,44 @@ type DeleteTrafficFilterRulesetAssociationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete traffic filter ruleset association o k response has a 2xx status code +func (o *DeleteTrafficFilterRulesetAssociationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete traffic filter ruleset association o k response has a 3xx status code +func (o *DeleteTrafficFilterRulesetAssociationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset association o k response has a 4xx status code +func (o *DeleteTrafficFilterRulesetAssociationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete traffic filter ruleset association o k response has a 5xx status code +func (o *DeleteTrafficFilterRulesetAssociationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete traffic filter ruleset association o k response a status code equal to that given +func (o *DeleteTrafficFilterRulesetAssociationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete traffic filter ruleset association o k response +func (o *DeleteTrafficFilterRulesetAssociationOK) Code() int { + return 200 +} + func (o *DeleteTrafficFilterRulesetAssociationOK) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationOK %+v", 200, o.Payload) } + +func (o *DeleteTrafficFilterRulesetAssociationOK) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationOK %+v", 200, o.Payload) +} + func (o *DeleteTrafficFilterRulesetAssociationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteTrafficFilterRulesetAssociationNotFound() *DeleteTrafficFilterRule return &DeleteTrafficFilterRulesetAssociationNotFound{} } -/* DeleteTrafficFilterRulesetAssociationNotFound describes a response with status code 404, with default header values. +/* +DeleteTrafficFilterRulesetAssociationNotFound describes a response with status code 404, with default header values. The traffic filter ruleset association cannot be found. (code: `traffic_filter.not_found`) */ @@ -111,9 +148,44 @@ type DeleteTrafficFilterRulesetAssociationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete traffic filter ruleset association not found response has a 2xx status code +func (o *DeleteTrafficFilterRulesetAssociationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete traffic filter ruleset association not found response has a 3xx status code +func (o *DeleteTrafficFilterRulesetAssociationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset association not found response has a 4xx status code +func (o *DeleteTrafficFilterRulesetAssociationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete traffic filter ruleset association not found response has a 5xx status code +func (o *DeleteTrafficFilterRulesetAssociationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete traffic filter ruleset association not found response a status code equal to that given +func (o *DeleteTrafficFilterRulesetAssociationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete traffic filter ruleset association not found response +func (o *DeleteTrafficFilterRulesetAssociationNotFound) Code() int { + return 404 +} + func (o *DeleteTrafficFilterRulesetAssociationNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationNotFound %+v", 404, o.Payload) } + +func (o *DeleteTrafficFilterRulesetAssociationNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationNotFound %+v", 404, o.Payload) +} + func (o *DeleteTrafficFilterRulesetAssociationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteTrafficFilterRulesetAssociationInternalServerError() *DeleteTraffi return &DeleteTrafficFilterRulesetAssociationInternalServerError{} } -/* DeleteTrafficFilterRulesetAssociationInternalServerError describes a response with status code 500, with default header values. +/* +DeleteTrafficFilterRulesetAssociationInternalServerError describes a response with status code 500, with default header values. Deletion failed. (code: `traffic_filter.request_execution_failed`) */ @@ -155,9 +228,44 @@ type DeleteTrafficFilterRulesetAssociationInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete traffic filter ruleset association internal server error response has a 2xx status code +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete traffic filter ruleset association internal server error response has a 3xx status code +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset association internal server error response has a 4xx status code +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete traffic filter ruleset association internal server error response has a 5xx status code +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this delete traffic filter ruleset association internal server error response a status code equal to that given +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the delete traffic filter ruleset association internal server error response +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) Code() int { + return 500 +} + func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationInternalServerError %+v", 500, o.Payload) } + +func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}][%d] deleteTrafficFilterRulesetAssociationInternalServerError %+v", 500, o.Payload) +} + func (o *DeleteTrafficFilterRulesetAssociationInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_parameters.go b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_parameters.go index 3ccb0fe7..5396cb44 100644 --- a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_parameters.go +++ b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_parameters.go @@ -70,10 +70,12 @@ func NewDeleteTrafficFilterRulesetParamsWithHTTPClient(client *http.Client) *Del } } -/* DeleteTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - for the delete traffic filter ruleset operation. +/* +DeleteTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete traffic filter ruleset operation. + + Typically these are written to a http.Request. */ type DeleteTrafficFilterRulesetParams struct { diff --git a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_responses.go b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_responses.go index 6a162f11..0d4fd473 100644 --- a/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_responses.go +++ b/pkg/client/deployments_traffic_filter/delete_traffic_filter_ruleset_responses.go @@ -68,7 +68,8 @@ func NewDeleteTrafficFilterRulesetOK() *DeleteTrafficFilterRulesetOK { return &DeleteTrafficFilterRulesetOK{} } -/* DeleteTrafficFilterRulesetOK describes a response with status code 200, with default header values. +/* +DeleteTrafficFilterRulesetOK describes a response with status code 200, with default header values. The traffic filter ruleset was successfully deleted. */ @@ -76,9 +77,44 @@ type DeleteTrafficFilterRulesetOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete traffic filter ruleset o k response has a 2xx status code +func (o *DeleteTrafficFilterRulesetOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete traffic filter ruleset o k response has a 3xx status code +func (o *DeleteTrafficFilterRulesetOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset o k response has a 4xx status code +func (o *DeleteTrafficFilterRulesetOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete traffic filter ruleset o k response has a 5xx status code +func (o *DeleteTrafficFilterRulesetOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete traffic filter ruleset o k response a status code equal to that given +func (o *DeleteTrafficFilterRulesetOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete traffic filter ruleset o k response +func (o *DeleteTrafficFilterRulesetOK) Code() int { + return 200 +} + func (o *DeleteTrafficFilterRulesetOK) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetOK %+v", 200, o.Payload) } + +func (o *DeleteTrafficFilterRulesetOK) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetOK %+v", 200, o.Payload) +} + func (o *DeleteTrafficFilterRulesetOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteTrafficFilterRulesetNotFound() *DeleteTrafficFilterRulesetNotFound return &DeleteTrafficFilterRulesetNotFound{} } -/* DeleteTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. +/* +DeleteTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) */ @@ -111,9 +148,44 @@ type DeleteTrafficFilterRulesetNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete traffic filter ruleset not found response has a 2xx status code +func (o *DeleteTrafficFilterRulesetNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete traffic filter ruleset not found response has a 3xx status code +func (o *DeleteTrafficFilterRulesetNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset not found response has a 4xx status code +func (o *DeleteTrafficFilterRulesetNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete traffic filter ruleset not found response has a 5xx status code +func (o *DeleteTrafficFilterRulesetNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete traffic filter ruleset not found response a status code equal to that given +func (o *DeleteTrafficFilterRulesetNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete traffic filter ruleset not found response +func (o *DeleteTrafficFilterRulesetNotFound) Code() int { + return 404 +} + func (o *DeleteTrafficFilterRulesetNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetNotFound %+v", 404, o.Payload) } + +func (o *DeleteTrafficFilterRulesetNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetNotFound %+v", 404, o.Payload) +} + func (o *DeleteTrafficFilterRulesetNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteTrafficFilterRulesetInternalServerError() *DeleteTrafficFilterRule return &DeleteTrafficFilterRulesetInternalServerError{} } -/* DeleteTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. +/* +DeleteTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. Error deleting the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) */ @@ -155,9 +228,44 @@ type DeleteTrafficFilterRulesetInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete traffic filter ruleset internal server error response has a 2xx status code +func (o *DeleteTrafficFilterRulesetInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete traffic filter ruleset internal server error response has a 3xx status code +func (o *DeleteTrafficFilterRulesetInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete traffic filter ruleset internal server error response has a 4xx status code +func (o *DeleteTrafficFilterRulesetInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete traffic filter ruleset internal server error response has a 5xx status code +func (o *DeleteTrafficFilterRulesetInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this delete traffic filter ruleset internal server error response a status code equal to that given +func (o *DeleteTrafficFilterRulesetInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the delete traffic filter ruleset internal server error response +func (o *DeleteTrafficFilterRulesetInternalServerError) Code() int { + return 500 +} + func (o *DeleteTrafficFilterRulesetInternalServerError) Error() string { return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) } + +func (o *DeleteTrafficFilterRulesetInternalServerError) String() string { + return fmt.Sprintf("[DELETE /deployments/traffic-filter/rulesets/{ruleset_id}][%d] deleteTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) +} + func (o *DeleteTrafficFilterRulesetInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/deployments_traffic_filter_client.go b/pkg/client/deployments_traffic_filter/deployments_traffic_filter_client.go index e5103450..9bdb974e 100644 --- a/pkg/client/deployments_traffic_filter/deployments_traffic_filter_client.go +++ b/pkg/client/deployments_traffic_filter/deployments_traffic_filter_client.go @@ -69,9 +69,9 @@ type ClientService interface { } /* - CreateTrafficFilterRuleset creates a ruleset +CreateTrafficFilterRuleset creates a ruleset - Creates a ruleset that consists of a set of rules. +Creates a ruleset that consists of a set of rules. */ func (a *Client) CreateTrafficFilterRuleset(params *CreateTrafficFilterRulesetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTrafficFilterRulesetCreated, error) { // TODO: Validate the params before sending @@ -110,9 +110,9 @@ func (a *Client) CreateTrafficFilterRuleset(params *CreateTrafficFilterRulesetPa } /* - CreateTrafficFilterRulesetAssociation creates ruleset association +CreateTrafficFilterRulesetAssociation creates ruleset association - Applies the ruleset to the specified deployment. +Applies the ruleset to the specified deployment. */ func (a *Client) CreateTrafficFilterRulesetAssociation(params *CreateTrafficFilterRulesetAssociationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTrafficFilterRulesetAssociationOK, *CreateTrafficFilterRulesetAssociationCreated, error) { // TODO: Validate the params before sending @@ -152,9 +152,9 @@ func (a *Client) CreateTrafficFilterRulesetAssociation(params *CreateTrafficFilt } /* - DeleteTrafficFilterRuleset deletes a ruleset +DeleteTrafficFilterRuleset deletes a ruleset - Deletes the ruleset by ID. +Deletes the ruleset by ID. */ func (a *Client) DeleteTrafficFilterRuleset(params *DeleteTrafficFilterRulesetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTrafficFilterRulesetOK, error) { // TODO: Validate the params before sending @@ -193,9 +193,9 @@ func (a *Client) DeleteTrafficFilterRuleset(params *DeleteTrafficFilterRulesetPa } /* - DeleteTrafficFilterRulesetAssociation deletes ruleset association +DeleteTrafficFilterRulesetAssociation deletes ruleset association - Deletes the traffic rules in the ruleset from the deployment. +Deletes the traffic rules in the ruleset from the deployment. */ func (a *Client) DeleteTrafficFilterRulesetAssociation(params *DeleteTrafficFilterRulesetAssociationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTrafficFilterRulesetAssociationOK, error) { // TODO: Validate the params before sending @@ -234,9 +234,9 @@ func (a *Client) DeleteTrafficFilterRulesetAssociation(params *DeleteTrafficFilt } /* - GetTrafficFilterDeploymentRulesetAssociations gets associated rulesets +GetTrafficFilterDeploymentRulesetAssociations gets associated rulesets - Retrieves the rulesets associated with a deployment. +Retrieves the rulesets associated with a deployment. */ func (a *Client) GetTrafficFilterDeploymentRulesetAssociations(params *GetTrafficFilterDeploymentRulesetAssociationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrafficFilterDeploymentRulesetAssociationsOK, error) { // TODO: Validate the params before sending @@ -275,9 +275,9 @@ func (a *Client) GetTrafficFilterDeploymentRulesetAssociations(params *GetTraffi } /* - GetTrafficFilterRuleset retrieves the ruleset by ID +GetTrafficFilterRuleset retrieves the ruleset by ID - Retrieves a list of resources that are associated to the specified ruleset. +Retrieves a list of resources that are associated to the specified ruleset. */ func (a *Client) GetTrafficFilterRuleset(params *GetTrafficFilterRulesetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrafficFilterRulesetOK, error) { // TODO: Validate the params before sending @@ -316,9 +316,9 @@ func (a *Client) GetTrafficFilterRuleset(params *GetTrafficFilterRulesetParams, } /* - GetTrafficFilterRulesetDeploymentAssociations gets associated deployments +GetTrafficFilterRulesetDeploymentAssociations gets associated deployments - Retrieves a list of deployments that are associated to the specified ruleset. +Retrieves a list of deployments that are associated to the specified ruleset. */ func (a *Client) GetTrafficFilterRulesetDeploymentAssociations(params *GetTrafficFilterRulesetDeploymentAssociationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrafficFilterRulesetDeploymentAssociationsOK, error) { // TODO: Validate the params before sending @@ -357,9 +357,9 @@ func (a *Client) GetTrafficFilterRulesetDeploymentAssociations(params *GetTraffi } /* - GetTrafficFilterRulesets lists traffic filter rulesets +GetTrafficFilterRulesets lists traffic filter rulesets - List all of the traffic filter rulesets. +List all of the traffic filter rulesets. */ func (a *Client) GetTrafficFilterRulesets(params *GetTrafficFilterRulesetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrafficFilterRulesetsOK, error) { // TODO: Validate the params before sending @@ -398,9 +398,9 @@ func (a *Client) GetTrafficFilterRulesets(params *GetTrafficFilterRulesetsParams } /* - UpdateTrafficFilterRuleset updates a ruleset +UpdateTrafficFilterRuleset updates a ruleset - Updates the ruleset with the definition. +Updates the ruleset with the definition. */ func (a *Client) UpdateTrafficFilterRuleset(params *UpdateTrafficFilterRulesetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTrafficFilterRulesetOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_parameters.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_parameters.go index 9fdd18f9..70ebf365 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_parameters.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_parameters.go @@ -69,10 +69,12 @@ func NewGetTrafficFilterDeploymentRulesetAssociationsParamsWithHTTPClient(client } } -/* GetTrafficFilterDeploymentRulesetAssociationsParams contains all the parameters to send to the API endpoint - for the get traffic filter deployment ruleset associations operation. +/* +GetTrafficFilterDeploymentRulesetAssociationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get traffic filter deployment ruleset associations operation. + + Typically these are written to a http.Request. */ type GetTrafficFilterDeploymentRulesetAssociationsParams struct { diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_responses.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_responses.go index 665a11e6..2dd5cdcc 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_responses.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_deployment_ruleset_associations_responses.go @@ -68,7 +68,8 @@ func NewGetTrafficFilterDeploymentRulesetAssociationsOK() *GetTrafficFilterDeplo return &GetTrafficFilterDeploymentRulesetAssociationsOK{} } -/* GetTrafficFilterDeploymentRulesetAssociationsOK describes a response with status code 200, with default header values. +/* +GetTrafficFilterDeploymentRulesetAssociationsOK describes a response with status code 200, with default header values. Rulesets in the deployment were successfully returned */ @@ -76,9 +77,44 @@ type GetTrafficFilterDeploymentRulesetAssociationsOK struct { Payload *models.TrafficFilterSettings } +// IsSuccess returns true when this get traffic filter deployment ruleset associations o k response has a 2xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get traffic filter deployment ruleset associations o k response has a 3xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter deployment ruleset associations o k response has a 4xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter deployment ruleset associations o k response has a 5xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter deployment ruleset associations o k response a status code equal to that given +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get traffic filter deployment ruleset associations o k response +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) Code() int { + return 200 +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsOK %+v", 200, o.Payload) } + +func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsOK %+v", 200, o.Payload) +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsOK) GetPayload() *models.TrafficFilterSettings { return o.Payload } @@ -100,7 +136,8 @@ func NewGetTrafficFilterDeploymentRulesetAssociationsBadRequest() *GetTrafficFil return &GetTrafficFilterDeploymentRulesetAssociationsBadRequest{} } -/* GetTrafficFilterDeploymentRulesetAssociationsBadRequest describes a response with status code 400, with default header values. +/* +GetTrafficFilterDeploymentRulesetAssociationsBadRequest describes a response with status code 400, with default header values. Invalid association type. (code: `traffic_filter.invalid_association_type`) */ @@ -113,9 +150,44 @@ type GetTrafficFilterDeploymentRulesetAssociationsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter deployment ruleset associations bad request response has a 2xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter deployment ruleset associations bad request response has a 3xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter deployment ruleset associations bad request response has a 4xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this get traffic filter deployment ruleset associations bad request response has a 5xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter deployment ruleset associations bad request response a status code equal to that given +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the get traffic filter deployment ruleset associations bad request response +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) Code() int { + return 400 +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsBadRequest %+v", 400, o.Payload) } + +func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsBadRequest %+v", 400, o.Payload) +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetTrafficFilterDeploymentRulesetAssociationsInternalServerError() *GetT return &GetTrafficFilterDeploymentRulesetAssociationsInternalServerError{} } -/* GetTrafficFilterDeploymentRulesetAssociationsInternalServerError describes a response with status code 500, with default header values. +/* +GetTrafficFilterDeploymentRulesetAssociationsInternalServerError describes a response with status code 500, with default header values. Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`) */ @@ -157,9 +230,44 @@ type GetTrafficFilterDeploymentRulesetAssociationsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter deployment ruleset associations internal server error response has a 2xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter deployment ruleset associations internal server error response has a 3xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter deployment ruleset associations internal server error response has a 4xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter deployment ruleset associations internal server error response has a 5xx status code +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get traffic filter deployment ruleset associations internal server error response a status code equal to that given +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get traffic filter deployment ruleset associations internal server error response +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) Code() int { + return 500 +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets][%d] getTrafficFilterDeploymentRulesetAssociationsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTrafficFilterDeploymentRulesetAssociationsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_parameters.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_parameters.go index e1297d96..0b0acd50 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_parameters.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_parameters.go @@ -69,10 +69,12 @@ func NewGetTrafficFilterRulesetDeploymentAssociationsParamsWithHTTPClient(client } } -/* GetTrafficFilterRulesetDeploymentAssociationsParams contains all the parameters to send to the API endpoint - for the get traffic filter ruleset deployment associations operation. +/* +GetTrafficFilterRulesetDeploymentAssociationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get traffic filter ruleset deployment associations operation. + + Typically these are written to a http.Request. */ type GetTrafficFilterRulesetDeploymentAssociationsParams struct { diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_responses.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_responses.go index 7e6c3831..2421310d 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_responses.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_deployment_associations_responses.go @@ -62,7 +62,8 @@ func NewGetTrafficFilterRulesetDeploymentAssociationsOK() *GetTrafficFilterRules return &GetTrafficFilterRulesetDeploymentAssociationsOK{} } -/* GetTrafficFilterRulesetDeploymentAssociationsOK describes a response with status code 200, with default header values. +/* +GetTrafficFilterRulesetDeploymentAssociationsOK describes a response with status code 200, with default header values. Associations referred by traffic filter rulesets were successfully returned */ @@ -70,9 +71,44 @@ type GetTrafficFilterRulesetDeploymentAssociationsOK struct { Payload *models.RulesetAssociations } +// IsSuccess returns true when this get traffic filter ruleset deployment associations o k response has a 2xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get traffic filter ruleset deployment associations o k response has a 3xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter ruleset deployment associations o k response has a 4xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter ruleset deployment associations o k response has a 5xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter ruleset deployment associations o k response a status code equal to that given +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get traffic filter ruleset deployment associations o k response +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) Code() int { + return 200 +} + func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] getTrafficFilterRulesetDeploymentAssociationsOK %+v", 200, o.Payload) } + +func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] getTrafficFilterRulesetDeploymentAssociationsOK %+v", 200, o.Payload) +} + func (o *GetTrafficFilterRulesetDeploymentAssociationsOK) GetPayload() *models.RulesetAssociations { return o.Payload } @@ -94,7 +130,8 @@ func NewGetTrafficFilterRulesetDeploymentAssociationsInternalServerError() *GetT return &GetTrafficFilterRulesetDeploymentAssociationsInternalServerError{} } -/* GetTrafficFilterRulesetDeploymentAssociationsInternalServerError describes a response with status code 500, with default header values. +/* +GetTrafficFilterRulesetDeploymentAssociationsInternalServerError describes a response with status code 500, with default header values. Error fetching deployments. (code: `traffic_filter.request_execution_failed`) */ @@ -107,9 +144,44 @@ type GetTrafficFilterRulesetDeploymentAssociationsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter ruleset deployment associations internal server error response has a 2xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter ruleset deployment associations internal server error response has a 3xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter ruleset deployment associations internal server error response has a 4xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter ruleset deployment associations internal server error response has a 5xx status code +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get traffic filter ruleset deployment associations internal server error response a status code equal to that given +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get traffic filter ruleset deployment associations internal server error response +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) Code() int { + return 500 +} + func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] getTrafficFilterRulesetDeploymentAssociationsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}/associations][%d] getTrafficFilterRulesetDeploymentAssociationsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTrafficFilterRulesetDeploymentAssociationsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_parameters.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_parameters.go index e5d1ca74..166f42f6 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_parameters.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_parameters.go @@ -70,10 +70,12 @@ func NewGetTrafficFilterRulesetParamsWithHTTPClient(client *http.Client) *GetTra } } -/* GetTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - for the get traffic filter ruleset operation. +/* +GetTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get traffic filter ruleset operation. + + Typically these are written to a http.Request. */ type GetTrafficFilterRulesetParams struct { diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_responses.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_responses.go index 7ebb36e0..1b7843a1 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_responses.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_ruleset_responses.go @@ -68,7 +68,8 @@ func NewGetTrafficFilterRulesetOK() *GetTrafficFilterRulesetOK { return &GetTrafficFilterRulesetOK{} } -/* GetTrafficFilterRulesetOK describes a response with status code 200, with default header values. +/* +GetTrafficFilterRulesetOK describes a response with status code 200, with default header values. The container for a set of traffic filter rules. */ @@ -76,9 +77,44 @@ type GetTrafficFilterRulesetOK struct { Payload *models.TrafficFilterRulesetInfo } +// IsSuccess returns true when this get traffic filter ruleset o k response has a 2xx status code +func (o *GetTrafficFilterRulesetOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get traffic filter ruleset o k response has a 3xx status code +func (o *GetTrafficFilterRulesetOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter ruleset o k response has a 4xx status code +func (o *GetTrafficFilterRulesetOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter ruleset o k response has a 5xx status code +func (o *GetTrafficFilterRulesetOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter ruleset o k response a status code equal to that given +func (o *GetTrafficFilterRulesetOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get traffic filter ruleset o k response +func (o *GetTrafficFilterRulesetOK) Code() int { + return 200 +} + func (o *GetTrafficFilterRulesetOK) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetOK %+v", 200, o.Payload) } + +func (o *GetTrafficFilterRulesetOK) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetOK %+v", 200, o.Payload) +} + func (o *GetTrafficFilterRulesetOK) GetPayload() *models.TrafficFilterRulesetInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewGetTrafficFilterRulesetNotFound() *GetTrafficFilterRulesetNotFound { return &GetTrafficFilterRulesetNotFound{} } -/* GetTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. +/* +GetTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) */ @@ -113,9 +150,44 @@ type GetTrafficFilterRulesetNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter ruleset not found response has a 2xx status code +func (o *GetTrafficFilterRulesetNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter ruleset not found response has a 3xx status code +func (o *GetTrafficFilterRulesetNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter ruleset not found response has a 4xx status code +func (o *GetTrafficFilterRulesetNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get traffic filter ruleset not found response has a 5xx status code +func (o *GetTrafficFilterRulesetNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter ruleset not found response a status code equal to that given +func (o *GetTrafficFilterRulesetNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get traffic filter ruleset not found response +func (o *GetTrafficFilterRulesetNotFound) Code() int { + return 404 +} + func (o *GetTrafficFilterRulesetNotFound) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetNotFound %+v", 404, o.Payload) } + +func (o *GetTrafficFilterRulesetNotFound) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetNotFound %+v", 404, o.Payload) +} + func (o *GetTrafficFilterRulesetNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewGetTrafficFilterRulesetInternalServerError() *GetTrafficFilterRulesetInt return &GetTrafficFilterRulesetInternalServerError{} } -/* GetTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. +/* +GetTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) */ @@ -157,9 +230,44 @@ type GetTrafficFilterRulesetInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter ruleset internal server error response has a 2xx status code +func (o *GetTrafficFilterRulesetInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter ruleset internal server error response has a 3xx status code +func (o *GetTrafficFilterRulesetInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter ruleset internal server error response has a 4xx status code +func (o *GetTrafficFilterRulesetInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter ruleset internal server error response has a 5xx status code +func (o *GetTrafficFilterRulesetInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get traffic filter ruleset internal server error response a status code equal to that given +func (o *GetTrafficFilterRulesetInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get traffic filter ruleset internal server error response +func (o *GetTrafficFilterRulesetInternalServerError) Code() int { + return 500 +} + func (o *GetTrafficFilterRulesetInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) } + +func (o *GetTrafficFilterRulesetInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets/{ruleset_id}][%d] getTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) +} + func (o *GetTrafficFilterRulesetInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_parameters.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_parameters.go index aee89593..5d9fbf4d 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_parameters.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_parameters.go @@ -70,10 +70,12 @@ func NewGetTrafficFilterRulesetsParamsWithHTTPClient(client *http.Client) *GetTr } } -/* GetTrafficFilterRulesetsParams contains all the parameters to send to the API endpoint - for the get traffic filter rulesets operation. +/* +GetTrafficFilterRulesetsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get traffic filter rulesets operation. + + Typically these are written to a http.Request. */ type GetTrafficFilterRulesetsParams struct { diff --git a/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_responses.go b/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_responses.go index ca3f7fb4..6c305b1d 100644 --- a/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_responses.go +++ b/pkg/client/deployments_traffic_filter/get_traffic_filter_rulesets_responses.go @@ -62,7 +62,8 @@ func NewGetTrafficFilterRulesetsOK() *GetTrafficFilterRulesetsOK { return &GetTrafficFilterRulesetsOK{} } -/* GetTrafficFilterRulesetsOK describes a response with status code 200, with default header values. +/* +GetTrafficFilterRulesetsOK describes a response with status code 200, with default header values. The collection of traffic filter routes */ @@ -70,9 +71,44 @@ type GetTrafficFilterRulesetsOK struct { Payload *models.TrafficFilterRulesets } +// IsSuccess returns true when this get traffic filter rulesets o k response has a 2xx status code +func (o *GetTrafficFilterRulesetsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get traffic filter rulesets o k response has a 3xx status code +func (o *GetTrafficFilterRulesetsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter rulesets o k response has a 4xx status code +func (o *GetTrafficFilterRulesetsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter rulesets o k response has a 5xx status code +func (o *GetTrafficFilterRulesetsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get traffic filter rulesets o k response a status code equal to that given +func (o *GetTrafficFilterRulesetsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get traffic filter rulesets o k response +func (o *GetTrafficFilterRulesetsOK) Code() int { + return 200 +} + func (o *GetTrafficFilterRulesetsOK) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets][%d] getTrafficFilterRulesetsOK %+v", 200, o.Payload) } + +func (o *GetTrafficFilterRulesetsOK) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets][%d] getTrafficFilterRulesetsOK %+v", 200, o.Payload) +} + func (o *GetTrafficFilterRulesetsOK) GetPayload() *models.TrafficFilterRulesets { return o.Payload } @@ -94,7 +130,8 @@ func NewGetTrafficFilterRulesetsInternalServerError() *GetTrafficFilterRulesetsI return &GetTrafficFilterRulesetsInternalServerError{} } -/* GetTrafficFilterRulesetsInternalServerError describes a response with status code 500, with default header values. +/* +GetTrafficFilterRulesetsInternalServerError describes a response with status code 500, with default header values. Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`) */ @@ -107,9 +144,44 @@ type GetTrafficFilterRulesetsInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get traffic filter rulesets internal server error response has a 2xx status code +func (o *GetTrafficFilterRulesetsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get traffic filter rulesets internal server error response has a 3xx status code +func (o *GetTrafficFilterRulesetsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get traffic filter rulesets internal server error response has a 4xx status code +func (o *GetTrafficFilterRulesetsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get traffic filter rulesets internal server error response has a 5xx status code +func (o *GetTrafficFilterRulesetsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get traffic filter rulesets internal server error response a status code equal to that given +func (o *GetTrafficFilterRulesetsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get traffic filter rulesets internal server error response +func (o *GetTrafficFilterRulesetsInternalServerError) Code() int { + return 500 +} + func (o *GetTrafficFilterRulesetsInternalServerError) Error() string { return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets][%d] getTrafficFilterRulesetsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTrafficFilterRulesetsInternalServerError) String() string { + return fmt.Sprintf("[GET /deployments/traffic-filter/rulesets][%d] getTrafficFilterRulesetsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTrafficFilterRulesetsInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_parameters.go b/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_parameters.go index 9771d78a..a019b3e9 100644 --- a/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_parameters.go +++ b/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_parameters.go @@ -71,10 +71,12 @@ func NewUpdateTrafficFilterRulesetParamsWithHTTPClient(client *http.Client) *Upd } } -/* UpdateTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - for the update traffic filter ruleset operation. +/* +UpdateTrafficFilterRulesetParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update traffic filter ruleset operation. + + Typically these are written to a http.Request. */ type UpdateTrafficFilterRulesetParams struct { diff --git a/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_responses.go b/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_responses.go index 9c34108f..35c27418 100644 --- a/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_responses.go +++ b/pkg/client/deployments_traffic_filter/update_traffic_filter_ruleset_responses.go @@ -68,7 +68,8 @@ func NewUpdateTrafficFilterRulesetOK() *UpdateTrafficFilterRulesetOK { return &UpdateTrafficFilterRulesetOK{} } -/* UpdateTrafficFilterRulesetOK describes a response with status code 200, with default header values. +/* +UpdateTrafficFilterRulesetOK describes a response with status code 200, with default header values. The ruleset definition was valid and the update has started. */ @@ -76,9 +77,44 @@ type UpdateTrafficFilterRulesetOK struct { Payload *models.TrafficFilterRulesetResponse } +// IsSuccess returns true when this update traffic filter ruleset o k response has a 2xx status code +func (o *UpdateTrafficFilterRulesetOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update traffic filter ruleset o k response has a 3xx status code +func (o *UpdateTrafficFilterRulesetOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update traffic filter ruleset o k response has a 4xx status code +func (o *UpdateTrafficFilterRulesetOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update traffic filter ruleset o k response has a 5xx status code +func (o *UpdateTrafficFilterRulesetOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update traffic filter ruleset o k response a status code equal to that given +func (o *UpdateTrafficFilterRulesetOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update traffic filter ruleset o k response +func (o *UpdateTrafficFilterRulesetOK) Code() int { + return 200 +} + func (o *UpdateTrafficFilterRulesetOK) Error() string { return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetOK %+v", 200, o.Payload) } + +func (o *UpdateTrafficFilterRulesetOK) String() string { + return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetOK %+v", 200, o.Payload) +} + func (o *UpdateTrafficFilterRulesetOK) GetPayload() *models.TrafficFilterRulesetResponse { return o.Payload } @@ -100,7 +136,8 @@ func NewUpdateTrafficFilterRulesetNotFound() *UpdateTrafficFilterRulesetNotFound return &UpdateTrafficFilterRulesetNotFound{} } -/* UpdateTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. +/* +UpdateTrafficFilterRulesetNotFound describes a response with status code 404, with default header values. The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) */ @@ -113,9 +150,44 @@ type UpdateTrafficFilterRulesetNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update traffic filter ruleset not found response has a 2xx status code +func (o *UpdateTrafficFilterRulesetNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update traffic filter ruleset not found response has a 3xx status code +func (o *UpdateTrafficFilterRulesetNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update traffic filter ruleset not found response has a 4xx status code +func (o *UpdateTrafficFilterRulesetNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update traffic filter ruleset not found response has a 5xx status code +func (o *UpdateTrafficFilterRulesetNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update traffic filter ruleset not found response a status code equal to that given +func (o *UpdateTrafficFilterRulesetNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update traffic filter ruleset not found response +func (o *UpdateTrafficFilterRulesetNotFound) Code() int { + return 404 +} + func (o *UpdateTrafficFilterRulesetNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetNotFound %+v", 404, o.Payload) } + +func (o *UpdateTrafficFilterRulesetNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetNotFound %+v", 404, o.Payload) +} + func (o *UpdateTrafficFilterRulesetNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewUpdateTrafficFilterRulesetInternalServerError() *UpdateTrafficFilterRule return &UpdateTrafficFilterRulesetInternalServerError{} } -/* UpdateTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. +/* +UpdateTrafficFilterRulesetInternalServerError describes a response with status code 500, with default header values. Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) */ @@ -157,9 +230,44 @@ type UpdateTrafficFilterRulesetInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update traffic filter ruleset internal server error response has a 2xx status code +func (o *UpdateTrafficFilterRulesetInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update traffic filter ruleset internal server error response has a 3xx status code +func (o *UpdateTrafficFilterRulesetInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update traffic filter ruleset internal server error response has a 4xx status code +func (o *UpdateTrafficFilterRulesetInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this update traffic filter ruleset internal server error response has a 5xx status code +func (o *UpdateTrafficFilterRulesetInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this update traffic filter ruleset internal server error response a status code equal to that given +func (o *UpdateTrafficFilterRulesetInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the update traffic filter ruleset internal server error response +func (o *UpdateTrafficFilterRulesetInternalServerError) Code() int { + return 500 +} + func (o *UpdateTrafficFilterRulesetInternalServerError) Error() string { return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) } + +func (o *UpdateTrafficFilterRulesetInternalServerError) String() string { + return fmt.Sprintf("[PUT /deployments/traffic-filter/rulesets/{ruleset_id}][%d] updateTrafficFilterRulesetInternalServerError %+v", 500, o.Payload) +} + func (o *UpdateTrafficFilterRulesetInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/extensions/create_extension_parameters.go b/pkg/client/extensions/create_extension_parameters.go index d7bc4213..5e8b3857 100644 --- a/pkg/client/extensions/create_extension_parameters.go +++ b/pkg/client/extensions/create_extension_parameters.go @@ -71,10 +71,12 @@ func NewCreateExtensionParamsWithHTTPClient(client *http.Client) *CreateExtensio } } -/* CreateExtensionParams contains all the parameters to send to the API endpoint - for the create extension operation. +/* +CreateExtensionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create extension operation. + + Typically these are written to a http.Request. */ type CreateExtensionParams struct { diff --git a/pkg/client/extensions/create_extension_responses.go b/pkg/client/extensions/create_extension_responses.go index 392b1a0b..fbe67c8d 100644 --- a/pkg/client/extensions/create_extension_responses.go +++ b/pkg/client/extensions/create_extension_responses.go @@ -74,7 +74,8 @@ func NewCreateExtensionCreated() *CreateExtensionCreated { return &CreateExtensionCreated{} } -/* CreateExtensionCreated describes a response with status code 201, with default header values. +/* +CreateExtensionCreated describes a response with status code 201, with default header values. The extension that was just created. */ @@ -95,9 +96,44 @@ type CreateExtensionCreated struct { Payload *models.Extension } +// IsSuccess returns true when this create extension created response has a 2xx status code +func (o *CreateExtensionCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create extension created response has a 3xx status code +func (o *CreateExtensionCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create extension created response has a 4xx status code +func (o *CreateExtensionCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create extension created response has a 5xx status code +func (o *CreateExtensionCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create extension created response a status code equal to that given +func (o *CreateExtensionCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create extension created response +func (o *CreateExtensionCreated) Code() int { + return 201 +} + func (o *CreateExtensionCreated) Error() string { return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionCreated %+v", 201, o.Payload) } + +func (o *CreateExtensionCreated) String() string { + return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionCreated %+v", 201, o.Payload) +} + func (o *CreateExtensionCreated) GetPayload() *models.Extension { return o.Payload } @@ -140,7 +176,8 @@ func NewCreateExtensionBadRequest() *CreateExtensionBadRequest { return &CreateExtensionBadRequest{} } -/* CreateExtensionBadRequest describes a response with status code 400, with default header values. +/* +CreateExtensionBadRequest describes a response with status code 400, with default header values. Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`) */ @@ -153,9 +190,44 @@ type CreateExtensionBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create extension bad request response has a 2xx status code +func (o *CreateExtensionBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create extension bad request response has a 3xx status code +func (o *CreateExtensionBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create extension bad request response has a 4xx status code +func (o *CreateExtensionBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create extension bad request response has a 5xx status code +func (o *CreateExtensionBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create extension bad request response a status code equal to that given +func (o *CreateExtensionBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create extension bad request response +func (o *CreateExtensionBadRequest) Code() int { + return 400 +} + func (o *CreateExtensionBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionBadRequest %+v", 400, o.Payload) } + +func (o *CreateExtensionBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionBadRequest %+v", 400, o.Payload) +} + func (o *CreateExtensionBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,7 +256,8 @@ func NewCreateExtensionNotFound() *CreateExtensionNotFound { return &CreateExtensionNotFound{} } -/* CreateExtensionNotFound describes a response with status code 404, with default header values. +/* +CreateExtensionNotFound describes a response with status code 404, with default header values. Your current session does not have a user id associated with it. (code: `extensions.no_user_id`) */ @@ -197,9 +270,44 @@ type CreateExtensionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create extension not found response has a 2xx status code +func (o *CreateExtensionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create extension not found response has a 3xx status code +func (o *CreateExtensionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create extension not found response has a 4xx status code +func (o *CreateExtensionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this create extension not found response has a 5xx status code +func (o *CreateExtensionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this create extension not found response a status code equal to that given +func (o *CreateExtensionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the create extension not found response +func (o *CreateExtensionNotFound) Code() int { + return 404 +} + func (o *CreateExtensionNotFound) Error() string { return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionNotFound %+v", 404, o.Payload) } + +func (o *CreateExtensionNotFound) String() string { + return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionNotFound %+v", 404, o.Payload) +} + func (o *CreateExtensionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -228,7 +336,8 @@ func NewCreateExtensionConflict() *CreateExtensionConflict { return &CreateExtensionConflict{} } -/* CreateExtensionConflict describes a response with status code 409, with default header values. +/* +CreateExtensionConflict describes a response with status code 409, with default header values. An extension already exists with the generated id. Please try again. (code: `extensions.id_already_exists`) */ @@ -241,9 +350,44 @@ type CreateExtensionConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create extension conflict response has a 2xx status code +func (o *CreateExtensionConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create extension conflict response has a 3xx status code +func (o *CreateExtensionConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create extension conflict response has a 4xx status code +func (o *CreateExtensionConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this create extension conflict response has a 5xx status code +func (o *CreateExtensionConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this create extension conflict response a status code equal to that given +func (o *CreateExtensionConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the create extension conflict response +func (o *CreateExtensionConflict) Code() int { + return 409 +} + func (o *CreateExtensionConflict) Error() string { return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionConflict %+v", 409, o.Payload) } + +func (o *CreateExtensionConflict) String() string { + return fmt.Sprintf("[POST /deployments/extensions][%d] createExtensionConflict %+v", 409, o.Payload) +} + func (o *CreateExtensionConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/extensions/delete_extension_parameters.go b/pkg/client/extensions/delete_extension_parameters.go index 5de3655c..d3da1e73 100644 --- a/pkg/client/extensions/delete_extension_parameters.go +++ b/pkg/client/extensions/delete_extension_parameters.go @@ -69,10 +69,12 @@ func NewDeleteExtensionParamsWithHTTPClient(client *http.Client) *DeleteExtensio } } -/* DeleteExtensionParams contains all the parameters to send to the API endpoint - for the delete extension operation. +/* +DeleteExtensionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete extension operation. + + Typically these are written to a http.Request. */ type DeleteExtensionParams struct { diff --git a/pkg/client/extensions/delete_extension_responses.go b/pkg/client/extensions/delete_extension_responses.go index b98d6f55..edbe3d02 100644 --- a/pkg/client/extensions/delete_extension_responses.go +++ b/pkg/client/extensions/delete_extension_responses.go @@ -74,7 +74,8 @@ func NewDeleteExtensionOK() *DeleteExtensionOK { return &DeleteExtensionOK{} } -/* DeleteExtensionOK describes a response with status code 200, with default header values. +/* +DeleteExtensionOK describes a response with status code 200, with default header values. Extension deleted successfully. */ @@ -95,9 +96,44 @@ type DeleteExtensionOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete extension o k response has a 2xx status code +func (o *DeleteExtensionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete extension o k response has a 3xx status code +func (o *DeleteExtensionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extension o k response has a 4xx status code +func (o *DeleteExtensionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete extension o k response has a 5xx status code +func (o *DeleteExtensionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extension o k response a status code equal to that given +func (o *DeleteExtensionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete extension o k response +func (o *DeleteExtensionOK) Code() int { + return 200 +} + func (o *DeleteExtensionOK) Error() string { return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionOK %+v", 200, o.Payload) } + +func (o *DeleteExtensionOK) String() string { + return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionOK %+v", 200, o.Payload) +} + func (o *DeleteExtensionOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -138,9 +174,11 @@ func NewDeleteExtensionUnauthorized() *DeleteExtensionUnauthorized { return &DeleteExtensionUnauthorized{} } -/* DeleteExtensionUnauthorized describes a response with status code 401, with default header values. +/* + DeleteExtensionUnauthorized describes a response with status code 401, with default header values. + + * The extension does not belong to you. (code: `extensions.unauthorised`) - * The extension does not belong to you. (code: `extensions.unauthorised`) * Your current session does not have a user id associated with it. (code: `extensions.no_user_id`) */ type DeleteExtensionUnauthorized struct { @@ -152,9 +190,44 @@ type DeleteExtensionUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete extension unauthorized response has a 2xx status code +func (o *DeleteExtensionUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete extension unauthorized response has a 3xx status code +func (o *DeleteExtensionUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extension unauthorized response has a 4xx status code +func (o *DeleteExtensionUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete extension unauthorized response has a 5xx status code +func (o *DeleteExtensionUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extension unauthorized response a status code equal to that given +func (o *DeleteExtensionUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete extension unauthorized response +func (o *DeleteExtensionUnauthorized) Code() int { + return 401 +} + func (o *DeleteExtensionUnauthorized) Error() string { return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionUnauthorized %+v", 401, o.Payload) } + +func (o *DeleteExtensionUnauthorized) String() string { + return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionUnauthorized %+v", 401, o.Payload) +} + func (o *DeleteExtensionUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -183,7 +256,8 @@ func NewDeleteExtensionNotFound() *DeleteExtensionNotFound { return &DeleteExtensionNotFound{} } -/* DeleteExtensionNotFound describes a response with status code 404, with default header values. +/* +DeleteExtensionNotFound describes a response with status code 404, with default header values. The extension requested does not exist. (code: `extensions.not_found`) */ @@ -196,9 +270,44 @@ type DeleteExtensionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete extension not found response has a 2xx status code +func (o *DeleteExtensionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete extension not found response has a 3xx status code +func (o *DeleteExtensionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extension not found response has a 4xx status code +func (o *DeleteExtensionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete extension not found response has a 5xx status code +func (o *DeleteExtensionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extension not found response a status code equal to that given +func (o *DeleteExtensionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete extension not found response +func (o *DeleteExtensionNotFound) Code() int { + return 404 +} + func (o *DeleteExtensionNotFound) Error() string { return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionNotFound %+v", 404, o.Payload) } + +func (o *DeleteExtensionNotFound) String() string { + return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionNotFound %+v", 404, o.Payload) +} + func (o *DeleteExtensionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -227,7 +336,8 @@ func NewDeleteExtensionConflict() *DeleteExtensionConflict { return &DeleteExtensionConflict{} } -/* DeleteExtensionConflict describes a response with status code 409, with default header values. +/* +DeleteExtensionConflict describes a response with status code 409, with default header values. The version you sent does not match the persisted version. (code: `extensions.version_conflict`) */ @@ -240,9 +350,44 @@ type DeleteExtensionConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete extension conflict response has a 2xx status code +func (o *DeleteExtensionConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete extension conflict response has a 3xx status code +func (o *DeleteExtensionConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extension conflict response has a 4xx status code +func (o *DeleteExtensionConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete extension conflict response has a 5xx status code +func (o *DeleteExtensionConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extension conflict response a status code equal to that given +func (o *DeleteExtensionConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete extension conflict response +func (o *DeleteExtensionConflict) Code() int { + return 409 +} + func (o *DeleteExtensionConflict) Error() string { return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionConflict %+v", 409, o.Payload) } + +func (o *DeleteExtensionConflict) String() string { + return fmt.Sprintf("[DELETE /deployments/extensions/{extension_id}][%d] deleteExtensionConflict %+v", 409, o.Payload) +} + func (o *DeleteExtensionConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/extensions/extensions_client.go b/pkg/client/extensions/extensions_client.go index d0e40c78..a300966e 100644 --- a/pkg/client/extensions/extensions_client.go +++ b/pkg/client/extensions/extensions_client.go @@ -63,13 +63,13 @@ type ClientService interface { } /* - CreateExtension creates an extension + CreateExtension creates an extension - Creates the extension. - The extensions API supports two types of usage patterns. - A). Specify a `download_url`, http or https URL, where the extension is currently hosted. This will result in extension being copied to elastic repository. - B). Create only the extension metadata using the `POST` endpoint and then use `PUT` to upload the extension file. Leave the `download_url` unspecified in this case. + Creates the extension. +The extensions API supports two types of usage patterns. +A). Specify a `download_url`, http or https URL, where the extension is currently hosted. This will result in extension being copied to elastic repository. +B). Create only the extension metadata using the `POST` endpoint and then use `PUT` to upload the extension file. Leave the `download_url` unspecified in this case. */ func (a *Client) CreateExtension(params *CreateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateExtensionCreated, error) { // TODO: Validate the params before sending @@ -108,9 +108,9 @@ func (a *Client) CreateExtension(params *CreateExtensionParams, authInfo runtime } /* - DeleteExtension deletes extension +DeleteExtension deletes extension - Deletes a Extension. +Deletes a Extension. */ func (a *Client) DeleteExtension(params *DeleteExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtensionOK, error) { // TODO: Validate the params before sending @@ -149,9 +149,9 @@ func (a *Client) DeleteExtension(params *DeleteExtensionParams, authInfo runtime } /* - GetExtension gets extension +GetExtension gets extension - Retrieves an extension. +Retrieves an extension. */ func (a *Client) GetExtension(params *GetExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtensionOK, error) { // TODO: Validate the params before sending @@ -190,9 +190,9 @@ func (a *Client) GetExtension(params *GetExtensionParams, authInfo runtime.Clien } /* - ListExtensions lists extensions +ListExtensions lists extensions - Retrieves all of the available extensions. +Retrieves all of the available extensions. */ func (a *Client) ListExtensions(params *ListExtensionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListExtensionsOK, error) { // TODO: Validate the params before sending @@ -231,9 +231,9 @@ func (a *Client) ListExtensions(params *ListExtensionsParams, authInfo runtime.C } /* - UpdateExtension updates extension +UpdateExtension updates extension - Updates an extension. +Updates an extension. */ func (a *Client) UpdateExtension(params *UpdateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateExtensionOK, error) { // TODO: Validate the params before sending @@ -272,9 +272,9 @@ func (a *Client) UpdateExtension(params *UpdateExtensionParams, authInfo runtime } /* - UploadExtension uploads the extension +UploadExtension uploads the extension - Uploads archive for an extension. +Uploads archive for an extension. */ func (a *Client) UploadExtension(params *UploadExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadExtensionOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/extensions/get_extension_parameters.go b/pkg/client/extensions/get_extension_parameters.go index 2adc1f69..adb580d1 100644 --- a/pkg/client/extensions/get_extension_parameters.go +++ b/pkg/client/extensions/get_extension_parameters.go @@ -70,10 +70,12 @@ func NewGetExtensionParamsWithHTTPClient(client *http.Client) *GetExtensionParam } } -/* GetExtensionParams contains all the parameters to send to the API endpoint - for the get extension operation. +/* +GetExtensionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get extension operation. + + Typically these are written to a http.Request. */ type GetExtensionParams struct { diff --git a/pkg/client/extensions/get_extension_responses.go b/pkg/client/extensions/get_extension_responses.go index 94bb9562..9921baf7 100644 --- a/pkg/client/extensions/get_extension_responses.go +++ b/pkg/client/extensions/get_extension_responses.go @@ -62,7 +62,8 @@ func NewGetExtensionOK() *GetExtensionOK { return &GetExtensionOK{} } -/* GetExtensionOK describes a response with status code 200, with default header values. +/* +GetExtensionOK describes a response with status code 200, with default header values. The Extension */ @@ -83,9 +84,44 @@ type GetExtensionOK struct { Payload *models.Extension } +// IsSuccess returns true when this get extension o k response has a 2xx status code +func (o *GetExtensionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get extension o k response has a 3xx status code +func (o *GetExtensionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get extension o k response has a 4xx status code +func (o *GetExtensionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get extension o k response has a 5xx status code +func (o *GetExtensionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get extension o k response a status code equal to that given +func (o *GetExtensionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get extension o k response +func (o *GetExtensionOK) Code() int { + return 200 +} + func (o *GetExtensionOK) Error() string { return fmt.Sprintf("[GET /deployments/extensions/{extension_id}][%d] getExtensionOK %+v", 200, o.Payload) } + +func (o *GetExtensionOK) String() string { + return fmt.Sprintf("[GET /deployments/extensions/{extension_id}][%d] getExtensionOK %+v", 200, o.Payload) +} + func (o *GetExtensionOK) GetPayload() *models.Extension { return o.Payload } @@ -128,7 +164,8 @@ func NewGetExtensionNotFound() *GetExtensionNotFound { return &GetExtensionNotFound{} } -/* GetExtensionNotFound describes a response with status code 404, with default header values. +/* +GetExtensionNotFound describes a response with status code 404, with default header values. The extension requested does not exist. (code: `extensions.not_found`) */ @@ -141,9 +178,44 @@ type GetExtensionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get extension not found response has a 2xx status code +func (o *GetExtensionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get extension not found response has a 3xx status code +func (o *GetExtensionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get extension not found response has a 4xx status code +func (o *GetExtensionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get extension not found response has a 5xx status code +func (o *GetExtensionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get extension not found response a status code equal to that given +func (o *GetExtensionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get extension not found response +func (o *GetExtensionNotFound) Code() int { + return 404 +} + func (o *GetExtensionNotFound) Error() string { return fmt.Sprintf("[GET /deployments/extensions/{extension_id}][%d] getExtensionNotFound %+v", 404, o.Payload) } + +func (o *GetExtensionNotFound) String() string { + return fmt.Sprintf("[GET /deployments/extensions/{extension_id}][%d] getExtensionNotFound %+v", 404, o.Payload) +} + func (o *GetExtensionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/extensions/list_extensions_parameters.go b/pkg/client/extensions/list_extensions_parameters.go index d878580a..b7e64637 100644 --- a/pkg/client/extensions/list_extensions_parameters.go +++ b/pkg/client/extensions/list_extensions_parameters.go @@ -69,10 +69,12 @@ func NewListExtensionsParamsWithHTTPClient(client *http.Client) *ListExtensionsP } } -/* ListExtensionsParams contains all the parameters to send to the API endpoint - for the list extensions operation. +/* +ListExtensionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list extensions operation. + + Typically these are written to a http.Request. */ type ListExtensionsParams struct { timeout time.Duration diff --git a/pkg/client/extensions/list_extensions_responses.go b/pkg/client/extensions/list_extensions_responses.go index 96484373..170c3d4e 100644 --- a/pkg/client/extensions/list_extensions_responses.go +++ b/pkg/client/extensions/list_extensions_responses.go @@ -56,7 +56,8 @@ func NewListExtensionsOK() *ListExtensionsOK { return &ListExtensionsOK{} } -/* ListExtensionsOK describes a response with status code 200, with default header values. +/* +ListExtensionsOK describes a response with status code 200, with default header values. The extensions that are available */ @@ -64,9 +65,44 @@ type ListExtensionsOK struct { Payload *models.Extensions } +// IsSuccess returns true when this list extensions o k response has a 2xx status code +func (o *ListExtensionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list extensions o k response has a 3xx status code +func (o *ListExtensionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list extensions o k response has a 4xx status code +func (o *ListExtensionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list extensions o k response has a 5xx status code +func (o *ListExtensionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list extensions o k response a status code equal to that given +func (o *ListExtensionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list extensions o k response +func (o *ListExtensionsOK) Code() int { + return 200 +} + func (o *ListExtensionsOK) Error() string { return fmt.Sprintf("[GET /deployments/extensions][%d] listExtensionsOK %+v", 200, o.Payload) } + +func (o *ListExtensionsOK) String() string { + return fmt.Sprintf("[GET /deployments/extensions][%d] listExtensionsOK %+v", 200, o.Payload) +} + func (o *ListExtensionsOK) GetPayload() *models.Extensions { return o.Payload } diff --git a/pkg/client/extensions/update_extension_parameters.go b/pkg/client/extensions/update_extension_parameters.go index e5d11e5d..7b4c4ce6 100644 --- a/pkg/client/extensions/update_extension_parameters.go +++ b/pkg/client/extensions/update_extension_parameters.go @@ -71,10 +71,12 @@ func NewUpdateExtensionParamsWithHTTPClient(client *http.Client) *UpdateExtensio } } -/* UpdateExtensionParams contains all the parameters to send to the API endpoint - for the update extension operation. +/* +UpdateExtensionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update extension operation. + + Typically these are written to a http.Request. */ type UpdateExtensionParams struct { diff --git a/pkg/client/extensions/update_extension_responses.go b/pkg/client/extensions/update_extension_responses.go index 66c71018..5c9f6dce 100644 --- a/pkg/client/extensions/update_extension_responses.go +++ b/pkg/client/extensions/update_extension_responses.go @@ -80,7 +80,8 @@ func NewUpdateExtensionOK() *UpdateExtensionOK { return &UpdateExtensionOK{} } -/* UpdateExtensionOK describes a response with status code 200, with default header values. +/* +UpdateExtensionOK describes a response with status code 200, with default header values. Extension updated successfully. */ @@ -101,9 +102,44 @@ type UpdateExtensionOK struct { Payload *models.Extension } +// IsSuccess returns true when this update extension o k response has a 2xx status code +func (o *UpdateExtensionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update extension o k response has a 3xx status code +func (o *UpdateExtensionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update extension o k response has a 4xx status code +func (o *UpdateExtensionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update extension o k response has a 5xx status code +func (o *UpdateExtensionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update extension o k response a status code equal to that given +func (o *UpdateExtensionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update extension o k response +func (o *UpdateExtensionOK) Code() int { + return 200 +} + func (o *UpdateExtensionOK) Error() string { return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionOK %+v", 200, o.Payload) } + +func (o *UpdateExtensionOK) String() string { + return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionOK %+v", 200, o.Payload) +} + func (o *UpdateExtensionOK) GetPayload() *models.Extension { return o.Payload } @@ -146,7 +182,8 @@ func NewUpdateExtensionBadRequest() *UpdateExtensionBadRequest { return &UpdateExtensionBadRequest{} } -/* UpdateExtensionBadRequest describes a response with status code 400, with default header values. +/* +UpdateExtensionBadRequest describes a response with status code 400, with default header values. Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`) */ @@ -159,9 +196,44 @@ type UpdateExtensionBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update extension bad request response has a 2xx status code +func (o *UpdateExtensionBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update extension bad request response has a 3xx status code +func (o *UpdateExtensionBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update extension bad request response has a 4xx status code +func (o *UpdateExtensionBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update extension bad request response has a 5xx status code +func (o *UpdateExtensionBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update extension bad request response a status code equal to that given +func (o *UpdateExtensionBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update extension bad request response +func (o *UpdateExtensionBadRequest) Code() int { + return 400 +} + func (o *UpdateExtensionBadRequest) Error() string { return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionBadRequest %+v", 400, o.Payload) } + +func (o *UpdateExtensionBadRequest) String() string { + return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionBadRequest %+v", 400, o.Payload) +} + func (o *UpdateExtensionBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -190,9 +262,11 @@ func NewUpdateExtensionUnauthorized() *UpdateExtensionUnauthorized { return &UpdateExtensionUnauthorized{} } -/* UpdateExtensionUnauthorized describes a response with status code 401, with default header values. +/* + UpdateExtensionUnauthorized describes a response with status code 401, with default header values. + + * The extension does not belong to you. (code: `extensions.unauthorised`) - * The extension does not belong to you. (code: `extensions.unauthorised`) * Your current session does not have a user id associated with it. (code: `extensions.no_user_id`) */ type UpdateExtensionUnauthorized struct { @@ -204,9 +278,44 @@ type UpdateExtensionUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update extension unauthorized response has a 2xx status code +func (o *UpdateExtensionUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update extension unauthorized response has a 3xx status code +func (o *UpdateExtensionUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update extension unauthorized response has a 4xx status code +func (o *UpdateExtensionUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this update extension unauthorized response has a 5xx status code +func (o *UpdateExtensionUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this update extension unauthorized response a status code equal to that given +func (o *UpdateExtensionUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the update extension unauthorized response +func (o *UpdateExtensionUnauthorized) Code() int { + return 401 +} + func (o *UpdateExtensionUnauthorized) Error() string { return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionUnauthorized %+v", 401, o.Payload) } + +func (o *UpdateExtensionUnauthorized) String() string { + return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionUnauthorized %+v", 401, o.Payload) +} + func (o *UpdateExtensionUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -235,7 +344,8 @@ func NewUpdateExtensionNotFound() *UpdateExtensionNotFound { return &UpdateExtensionNotFound{} } -/* UpdateExtensionNotFound describes a response with status code 404, with default header values. +/* +UpdateExtensionNotFound describes a response with status code 404, with default header values. The extension you want does not exist. (code: `extensions.not_found`) */ @@ -248,9 +358,44 @@ type UpdateExtensionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update extension not found response has a 2xx status code +func (o *UpdateExtensionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update extension not found response has a 3xx status code +func (o *UpdateExtensionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update extension not found response has a 4xx status code +func (o *UpdateExtensionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update extension not found response has a 5xx status code +func (o *UpdateExtensionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update extension not found response a status code equal to that given +func (o *UpdateExtensionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update extension not found response +func (o *UpdateExtensionNotFound) Code() int { + return 404 +} + func (o *UpdateExtensionNotFound) Error() string { return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionNotFound %+v", 404, o.Payload) } + +func (o *UpdateExtensionNotFound) String() string { + return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionNotFound %+v", 404, o.Payload) +} + func (o *UpdateExtensionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -279,7 +424,8 @@ func NewUpdateExtensionConflict() *UpdateExtensionConflict { return &UpdateExtensionConflict{} } -/* UpdateExtensionConflict describes a response with status code 409, with default header values. +/* +UpdateExtensionConflict describes a response with status code 409, with default header values. The version you sent does not match the persisted version. (code: `extensions.version_conflict`) */ @@ -292,9 +438,44 @@ type UpdateExtensionConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update extension conflict response has a 2xx status code +func (o *UpdateExtensionConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update extension conflict response has a 3xx status code +func (o *UpdateExtensionConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update extension conflict response has a 4xx status code +func (o *UpdateExtensionConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update extension conflict response has a 5xx status code +func (o *UpdateExtensionConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update extension conflict response a status code equal to that given +func (o *UpdateExtensionConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update extension conflict response +func (o *UpdateExtensionConflict) Code() int { + return 409 +} + func (o *UpdateExtensionConflict) Error() string { return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionConflict %+v", 409, o.Payload) } + +func (o *UpdateExtensionConflict) String() string { + return fmt.Sprintf("[POST /deployments/extensions/{extension_id}][%d] updateExtensionConflict %+v", 409, o.Payload) +} + func (o *UpdateExtensionConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/extensions/upload_extension_parameters.go b/pkg/client/extensions/upload_extension_parameters.go index ba07c95d..04bc8790 100644 --- a/pkg/client/extensions/upload_extension_parameters.go +++ b/pkg/client/extensions/upload_extension_parameters.go @@ -69,10 +69,12 @@ func NewUploadExtensionParamsWithHTTPClient(client *http.Client) *UploadExtensio } } -/* UploadExtensionParams contains all the parameters to send to the API endpoint - for the upload extension operation. +/* +UploadExtensionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the upload extension operation. + + Typically these are written to a http.Request. */ type UploadExtensionParams struct { diff --git a/pkg/client/extensions/upload_extension_responses.go b/pkg/client/extensions/upload_extension_responses.go index 1ccae6bd..52a3dd37 100644 --- a/pkg/client/extensions/upload_extension_responses.go +++ b/pkg/client/extensions/upload_extension_responses.go @@ -74,7 +74,8 @@ func NewUploadExtensionOK() *UploadExtensionOK { return &UploadExtensionOK{} } -/* UploadExtensionOK describes a response with status code 200, with default header values. +/* +UploadExtensionOK describes a response with status code 200, with default header values. Archive uploaded successfully. */ @@ -95,9 +96,44 @@ type UploadExtensionOK struct { Payload *models.Extension } +// IsSuccess returns true when this upload extension o k response has a 2xx status code +func (o *UploadExtensionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this upload extension o k response has a 3xx status code +func (o *UploadExtensionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upload extension o k response has a 4xx status code +func (o *UploadExtensionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this upload extension o k response has a 5xx status code +func (o *UploadExtensionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this upload extension o k response a status code equal to that given +func (o *UploadExtensionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the upload extension o k response +func (o *UploadExtensionOK) Code() int { + return 200 +} + func (o *UploadExtensionOK) Error() string { return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionOK %+v", 200, o.Payload) } + +func (o *UploadExtensionOK) String() string { + return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionOK %+v", 200, o.Payload) +} + func (o *UploadExtensionOK) GetPayload() *models.Extension { return o.Payload } @@ -140,7 +176,8 @@ func NewUploadExtensionBadRequest() *UploadExtensionBadRequest { return &UploadExtensionBadRequest{} } -/* UploadExtensionBadRequest describes a response with status code 400, with default header values. +/* +UploadExtensionBadRequest describes a response with status code 400, with default header values. Could not accept the extensions file. (code: `extensions.request_execution_failed`) */ @@ -153,9 +190,44 @@ type UploadExtensionBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this upload extension bad request response has a 2xx status code +func (o *UploadExtensionBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this upload extension bad request response has a 3xx status code +func (o *UploadExtensionBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upload extension bad request response has a 4xx status code +func (o *UploadExtensionBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this upload extension bad request response has a 5xx status code +func (o *UploadExtensionBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this upload extension bad request response a status code equal to that given +func (o *UploadExtensionBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the upload extension bad request response +func (o *UploadExtensionBadRequest) Code() int { + return 400 +} + func (o *UploadExtensionBadRequest) Error() string { return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionBadRequest %+v", 400, o.Payload) } + +func (o *UploadExtensionBadRequest) String() string { + return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionBadRequest %+v", 400, o.Payload) +} + func (o *UploadExtensionBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,9 +256,11 @@ func NewUploadExtensionUnauthorized() *UploadExtensionUnauthorized { return &UploadExtensionUnauthorized{} } -/* UploadExtensionUnauthorized describes a response with status code 401, with default header values. +/* + UploadExtensionUnauthorized describes a response with status code 401, with default header values. + + * The extension does not belong to you. (code: `extensions.unauthorised`) - * The extension does not belong to you. (code: `extensions.unauthorised`) * Your current session does not have a user id associated with it. (code: `extensions.no_user_id`) */ type UploadExtensionUnauthorized struct { @@ -198,9 +272,44 @@ type UploadExtensionUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this upload extension unauthorized response has a 2xx status code +func (o *UploadExtensionUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this upload extension unauthorized response has a 3xx status code +func (o *UploadExtensionUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upload extension unauthorized response has a 4xx status code +func (o *UploadExtensionUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this upload extension unauthorized response has a 5xx status code +func (o *UploadExtensionUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this upload extension unauthorized response a status code equal to that given +func (o *UploadExtensionUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the upload extension unauthorized response +func (o *UploadExtensionUnauthorized) Code() int { + return 401 +} + func (o *UploadExtensionUnauthorized) Error() string { return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionUnauthorized %+v", 401, o.Payload) } + +func (o *UploadExtensionUnauthorized) String() string { + return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionUnauthorized %+v", 401, o.Payload) +} + func (o *UploadExtensionUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -229,7 +338,8 @@ func NewUploadExtensionNotFound() *UploadExtensionNotFound { return &UploadExtensionNotFound{} } -/* UploadExtensionNotFound describes a response with status code 404, with default header values. +/* +UploadExtensionNotFound describes a response with status code 404, with default header values. The extension you want does not exist. (code: `extensions.not_found`) */ @@ -242,9 +352,44 @@ type UploadExtensionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this upload extension not found response has a 2xx status code +func (o *UploadExtensionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this upload extension not found response has a 3xx status code +func (o *UploadExtensionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this upload extension not found response has a 4xx status code +func (o *UploadExtensionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this upload extension not found response has a 5xx status code +func (o *UploadExtensionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this upload extension not found response a status code equal to that given +func (o *UploadExtensionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the upload extension not found response +func (o *UploadExtensionNotFound) Code() int { + return 404 +} + func (o *UploadExtensionNotFound) Error() string { return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionNotFound %+v", 404, o.Payload) } + +func (o *UploadExtensionNotFound) String() string { + return fmt.Sprintf("[PUT /deployments/extensions/{extension_id}][%d] uploadExtensionNotFound %+v", 404, o.Payload) +} + func (o *UploadExtensionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/accept_organization_invitation_parameters.go b/pkg/client/organizations/accept_organization_invitation_parameters.go index e8b71d7b..7e92332d 100644 --- a/pkg/client/organizations/accept_organization_invitation_parameters.go +++ b/pkg/client/organizations/accept_organization_invitation_parameters.go @@ -69,10 +69,12 @@ func NewAcceptOrganizationInvitationParamsWithHTTPClient(client *http.Client) *A } } -/* AcceptOrganizationInvitationParams contains all the parameters to send to the API endpoint - for the accept organization invitation operation. +/* +AcceptOrganizationInvitationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the accept organization invitation operation. + + Typically these are written to a http.Request. */ type AcceptOrganizationInvitationParams struct { diff --git a/pkg/client/organizations/accept_organization_invitation_responses.go b/pkg/client/organizations/accept_organization_invitation_responses.go index bb1f3ab6..97cb9777 100644 --- a/pkg/client/organizations/accept_organization_invitation_responses.go +++ b/pkg/client/organizations/accept_organization_invitation_responses.go @@ -74,7 +74,8 @@ func NewAcceptOrganizationInvitationOK() *AcceptOrganizationInvitationOK { return &AcceptOrganizationInvitationOK{} } -/* AcceptOrganizationInvitationOK describes a response with status code 200, with default header values. +/* +AcceptOrganizationInvitationOK describes a response with status code 200, with default header values. Organization invitation accepted successfully */ @@ -82,9 +83,44 @@ type AcceptOrganizationInvitationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this accept organization invitation o k response has a 2xx status code +func (o *AcceptOrganizationInvitationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this accept organization invitation o k response has a 3xx status code +func (o *AcceptOrganizationInvitationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this accept organization invitation o k response has a 4xx status code +func (o *AcceptOrganizationInvitationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this accept organization invitation o k response has a 5xx status code +func (o *AcceptOrganizationInvitationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this accept organization invitation o k response a status code equal to that given +func (o *AcceptOrganizationInvitationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the accept organization invitation o k response +func (o *AcceptOrganizationInvitationOK) Code() int { + return 200 +} + func (o *AcceptOrganizationInvitationOK) Error() string { return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationOK %+v", 200, o.Payload) } + +func (o *AcceptOrganizationInvitationOK) String() string { + return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationOK %+v", 200, o.Payload) +} + func (o *AcceptOrganizationInvitationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewAcceptOrganizationInvitationBadRequest() *AcceptOrganizationInvitationBa return &AcceptOrganizationInvitationBadRequest{} } -/* AcceptOrganizationInvitationBadRequest describes a response with status code 400, with default header values. +/* +AcceptOrganizationInvitationBadRequest describes a response with status code 400, with default header values. User already belongs to organization. (code: `organization.user_organization_already_belongs`) */ @@ -117,9 +154,44 @@ type AcceptOrganizationInvitationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this accept organization invitation bad request response has a 2xx status code +func (o *AcceptOrganizationInvitationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this accept organization invitation bad request response has a 3xx status code +func (o *AcceptOrganizationInvitationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this accept organization invitation bad request response has a 4xx status code +func (o *AcceptOrganizationInvitationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this accept organization invitation bad request response has a 5xx status code +func (o *AcceptOrganizationInvitationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this accept organization invitation bad request response a status code equal to that given +func (o *AcceptOrganizationInvitationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the accept organization invitation bad request response +func (o *AcceptOrganizationInvitationBadRequest) Code() int { + return 400 +} + func (o *AcceptOrganizationInvitationBadRequest) Error() string { return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationBadRequest %+v", 400, o.Payload) } + +func (o *AcceptOrganizationInvitationBadRequest) String() string { + return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationBadRequest %+v", 400, o.Payload) +} + func (o *AcceptOrganizationInvitationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewAcceptOrganizationInvitationForbidden() *AcceptOrganizationInvitationFor return &AcceptOrganizationInvitationForbidden{} } -/* AcceptOrganizationInvitationForbidden describes a response with status code 403, with default header values. +/* +AcceptOrganizationInvitationForbidden describes a response with status code 403, with default header values. The current user authentication is not valid. (code: `root.invalid_authentication`) */ @@ -161,9 +234,44 @@ type AcceptOrganizationInvitationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this accept organization invitation forbidden response has a 2xx status code +func (o *AcceptOrganizationInvitationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this accept organization invitation forbidden response has a 3xx status code +func (o *AcceptOrganizationInvitationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this accept organization invitation forbidden response has a 4xx status code +func (o *AcceptOrganizationInvitationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this accept organization invitation forbidden response has a 5xx status code +func (o *AcceptOrganizationInvitationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this accept organization invitation forbidden response a status code equal to that given +func (o *AcceptOrganizationInvitationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the accept organization invitation forbidden response +func (o *AcceptOrganizationInvitationForbidden) Code() int { + return 403 +} + func (o *AcceptOrganizationInvitationForbidden) Error() string { return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationForbidden %+v", 403, o.Payload) } + +func (o *AcceptOrganizationInvitationForbidden) String() string { + return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationForbidden %+v", 403, o.Payload) +} + func (o *AcceptOrganizationInvitationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,9 +300,11 @@ func NewAcceptOrganizationInvitationNotFound() *AcceptOrganizationInvitationNotF return &AcceptOrganizationInvitationNotFound{} } -/* AcceptOrganizationInvitationNotFound describes a response with status code 404, with default header values. +/* + AcceptOrganizationInvitationNotFound describes a response with status code 404, with default header values. + + * Organization not found. (code: `organization.not_found`) - * Organization not found. (code: `organization.not_found`) * User not found. (code: `user.not_found`) * Invitation not found. (code: `organization.invitation_not_found`) */ @@ -207,9 +317,44 @@ type AcceptOrganizationInvitationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this accept organization invitation not found response has a 2xx status code +func (o *AcceptOrganizationInvitationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this accept organization invitation not found response has a 3xx status code +func (o *AcceptOrganizationInvitationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this accept organization invitation not found response has a 4xx status code +func (o *AcceptOrganizationInvitationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this accept organization invitation not found response has a 5xx status code +func (o *AcceptOrganizationInvitationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this accept organization invitation not found response a status code equal to that given +func (o *AcceptOrganizationInvitationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the accept organization invitation not found response +func (o *AcceptOrganizationInvitationNotFound) Code() int { + return 404 +} + func (o *AcceptOrganizationInvitationNotFound) Error() string { return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationNotFound %+v", 404, o.Payload) } + +func (o *AcceptOrganizationInvitationNotFound) String() string { + return fmt.Sprintf("[POST /organizations/invitations/{invitation_token}/_accept][%d] acceptOrganizationInvitationNotFound %+v", 404, o.Payload) +} + func (o *AcceptOrganizationInvitationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/create_organization_invitations_parameters.go b/pkg/client/organizations/create_organization_invitations_parameters.go index b34eb33e..c1ed338b 100644 --- a/pkg/client/organizations/create_organization_invitations_parameters.go +++ b/pkg/client/organizations/create_organization_invitations_parameters.go @@ -71,10 +71,12 @@ func NewCreateOrganizationInvitationsParamsWithHTTPClient(client *http.Client) * } } -/* CreateOrganizationInvitationsParams contains all the parameters to send to the API endpoint - for the create organization invitations operation. +/* +CreateOrganizationInvitationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create organization invitations operation. + + Typically these are written to a http.Request. */ type CreateOrganizationInvitationsParams struct { diff --git a/pkg/client/organizations/create_organization_invitations_responses.go b/pkg/client/organizations/create_organization_invitations_responses.go index c94cc15d..be06c117 100644 --- a/pkg/client/organizations/create_organization_invitations_responses.go +++ b/pkg/client/organizations/create_organization_invitations_responses.go @@ -80,7 +80,8 @@ func NewCreateOrganizationInvitationsCreated() *CreateOrganizationInvitationsCre return &CreateOrganizationInvitationsCreated{} } -/* CreateOrganizationInvitationsCreated describes a response with status code 201, with default header values. +/* +CreateOrganizationInvitationsCreated describes a response with status code 201, with default header values. Organization invitations created successfully */ @@ -88,9 +89,44 @@ type CreateOrganizationInvitationsCreated struct { Payload *models.OrganizationInvitations } +// IsSuccess returns true when this create organization invitations created response has a 2xx status code +func (o *CreateOrganizationInvitationsCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create organization invitations created response has a 3xx status code +func (o *CreateOrganizationInvitationsCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create organization invitations created response has a 4xx status code +func (o *CreateOrganizationInvitationsCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create organization invitations created response has a 5xx status code +func (o *CreateOrganizationInvitationsCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create organization invitations created response a status code equal to that given +func (o *CreateOrganizationInvitationsCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create organization invitations created response +func (o *CreateOrganizationInvitationsCreated) Code() int { + return 201 +} + func (o *CreateOrganizationInvitationsCreated) Error() string { return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsCreated %+v", 201, o.Payload) } + +func (o *CreateOrganizationInvitationsCreated) String() string { + return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsCreated %+v", 201, o.Payload) +} + func (o *CreateOrganizationInvitationsCreated) GetPayload() *models.OrganizationInvitations { return o.Payload } @@ -112,9 +148,11 @@ func NewCreateOrganizationInvitationsBadRequest() *CreateOrganizationInvitations return &CreateOrganizationInvitationsBadRequest{} } -/* CreateOrganizationInvitationsBadRequest describes a response with status code 400, with default header values. +/* + CreateOrganizationInvitationsBadRequest describes a response with status code 400, with default header values. + + * Invitation email was not valid. (code: `organization.invitation_invalid_email`) - * Invitation email was not valid. (code: `organization.invitation_invalid_email`) * Invitation already sent. (code: `organization.invitation_already_exists`) * User already belongs to organization. (code: `organization.user_organization_already_belongs`) */ @@ -127,9 +165,44 @@ type CreateOrganizationInvitationsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create organization invitations bad request response has a 2xx status code +func (o *CreateOrganizationInvitationsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create organization invitations bad request response has a 3xx status code +func (o *CreateOrganizationInvitationsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create organization invitations bad request response has a 4xx status code +func (o *CreateOrganizationInvitationsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create organization invitations bad request response has a 5xx status code +func (o *CreateOrganizationInvitationsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create organization invitations bad request response a status code equal to that given +func (o *CreateOrganizationInvitationsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create organization invitations bad request response +func (o *CreateOrganizationInvitationsBadRequest) Code() int { + return 400 +} + func (o *CreateOrganizationInvitationsBadRequest) Error() string { return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsBadRequest %+v", 400, o.Payload) } + +func (o *CreateOrganizationInvitationsBadRequest) String() string { + return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsBadRequest %+v", 400, o.Payload) +} + func (o *CreateOrganizationInvitationsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -158,7 +231,8 @@ func NewCreateOrganizationInvitationsForbidden() *CreateOrganizationInvitationsF return &CreateOrganizationInvitationsForbidden{} } -/* CreateOrganizationInvitationsForbidden describes a response with status code 403, with default header values. +/* +CreateOrganizationInvitationsForbidden describes a response with status code 403, with default header values. The current user authentication is not valid. (code: `root.invalid_authentication`) */ @@ -171,9 +245,44 @@ type CreateOrganizationInvitationsForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create organization invitations forbidden response has a 2xx status code +func (o *CreateOrganizationInvitationsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create organization invitations forbidden response has a 3xx status code +func (o *CreateOrganizationInvitationsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create organization invitations forbidden response has a 4xx status code +func (o *CreateOrganizationInvitationsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this create organization invitations forbidden response has a 5xx status code +func (o *CreateOrganizationInvitationsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this create organization invitations forbidden response a status code equal to that given +func (o *CreateOrganizationInvitationsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the create organization invitations forbidden response +func (o *CreateOrganizationInvitationsForbidden) Code() int { + return 403 +} + func (o *CreateOrganizationInvitationsForbidden) Error() string { return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsForbidden %+v", 403, o.Payload) } + +func (o *CreateOrganizationInvitationsForbidden) String() string { + return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsForbidden %+v", 403, o.Payload) +} + func (o *CreateOrganizationInvitationsForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -202,9 +311,11 @@ func NewCreateOrganizationInvitationsNotFound() *CreateOrganizationInvitationsNo return &CreateOrganizationInvitationsNotFound{} } -/* CreateOrganizationInvitationsNotFound describes a response with status code 404, with default header values. +/* + CreateOrganizationInvitationsNotFound describes a response with status code 404, with default header values. + + * Organization not found. (code: `organization.not_found`) - * Organization not found. (code: `organization.not_found`) * User not found. (code: `user.not_found`) * Invitation sender does not belong to organization. (code: `organization.user_organization_does_not_belong`) */ @@ -217,9 +328,44 @@ type CreateOrganizationInvitationsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create organization invitations not found response has a 2xx status code +func (o *CreateOrganizationInvitationsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create organization invitations not found response has a 3xx status code +func (o *CreateOrganizationInvitationsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create organization invitations not found response has a 4xx status code +func (o *CreateOrganizationInvitationsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this create organization invitations not found response has a 5xx status code +func (o *CreateOrganizationInvitationsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this create organization invitations not found response a status code equal to that given +func (o *CreateOrganizationInvitationsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the create organization invitations not found response +func (o *CreateOrganizationInvitationsNotFound) Code() int { + return 404 +} + func (o *CreateOrganizationInvitationsNotFound) Error() string { return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsNotFound %+v", 404, o.Payload) } + +func (o *CreateOrganizationInvitationsNotFound) String() string { + return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsNotFound %+v", 404, o.Payload) +} + func (o *CreateOrganizationInvitationsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -248,7 +394,8 @@ func NewCreateOrganizationInvitationsTooManyRequests() *CreateOrganizationInvita return &CreateOrganizationInvitationsTooManyRequests{} } -/* CreateOrganizationInvitationsTooManyRequests describes a response with status code 429, with default header values. +/* +CreateOrganizationInvitationsTooManyRequests describes a response with status code 429, with default header values. Request exceeds organization invitation creation rate limits. (code: `organization.invitations_rate_limit_exceeded`) */ @@ -261,9 +408,44 @@ type CreateOrganizationInvitationsTooManyRequests struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create organization invitations too many requests response has a 2xx status code +func (o *CreateOrganizationInvitationsTooManyRequests) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create organization invitations too many requests response has a 3xx status code +func (o *CreateOrganizationInvitationsTooManyRequests) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create organization invitations too many requests response has a 4xx status code +func (o *CreateOrganizationInvitationsTooManyRequests) IsClientError() bool { + return true +} + +// IsServerError returns true when this create organization invitations too many requests response has a 5xx status code +func (o *CreateOrganizationInvitationsTooManyRequests) IsServerError() bool { + return false +} + +// IsCode returns true when this create organization invitations too many requests response a status code equal to that given +func (o *CreateOrganizationInvitationsTooManyRequests) IsCode(code int) bool { + return code == 429 +} + +// Code gets the status code for the create organization invitations too many requests response +func (o *CreateOrganizationInvitationsTooManyRequests) Code() int { + return 429 +} + func (o *CreateOrganizationInvitationsTooManyRequests) Error() string { return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsTooManyRequests %+v", 429, o.Payload) } + +func (o *CreateOrganizationInvitationsTooManyRequests) String() string { + return fmt.Sprintf("[POST /organizations/{organization_id}/invitations][%d] createOrganizationInvitationsTooManyRequests %+v", 429, o.Payload) +} + func (o *CreateOrganizationInvitationsTooManyRequests) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/delete_organization_invitations_parameters.go b/pkg/client/organizations/delete_organization_invitations_parameters.go index 0192528b..efda3d00 100644 --- a/pkg/client/organizations/delete_organization_invitations_parameters.go +++ b/pkg/client/organizations/delete_organization_invitations_parameters.go @@ -69,10 +69,12 @@ func NewDeleteOrganizationInvitationsParamsWithHTTPClient(client *http.Client) * } } -/* DeleteOrganizationInvitationsParams contains all the parameters to send to the API endpoint - for the delete organization invitations operation. +/* +DeleteOrganizationInvitationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete organization invitations operation. + + Typically these are written to a http.Request. */ type DeleteOrganizationInvitationsParams struct { diff --git a/pkg/client/organizations/delete_organization_invitations_responses.go b/pkg/client/organizations/delete_organization_invitations_responses.go index ed205277..76aca98e 100644 --- a/pkg/client/organizations/delete_organization_invitations_responses.go +++ b/pkg/client/organizations/delete_organization_invitations_responses.go @@ -68,7 +68,8 @@ func NewDeleteOrganizationInvitationsOK() *DeleteOrganizationInvitationsOK { return &DeleteOrganizationInvitationsOK{} } -/* DeleteOrganizationInvitationsOK describes a response with status code 200, with default header values. +/* +DeleteOrganizationInvitationsOK describes a response with status code 200, with default header values. Organization invitations deleted successfully */ @@ -76,9 +77,44 @@ type DeleteOrganizationInvitationsOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete organization invitations o k response has a 2xx status code +func (o *DeleteOrganizationInvitationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete organization invitations o k response has a 3xx status code +func (o *DeleteOrganizationInvitationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete organization invitations o k response has a 4xx status code +func (o *DeleteOrganizationInvitationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete organization invitations o k response has a 5xx status code +func (o *DeleteOrganizationInvitationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete organization invitations o k response a status code equal to that given +func (o *DeleteOrganizationInvitationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete organization invitations o k response +func (o *DeleteOrganizationInvitationsOK) Code() int { + return 200 +} + func (o *DeleteOrganizationInvitationsOK) Error() string { return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsOK %+v", 200, o.Payload) } + +func (o *DeleteOrganizationInvitationsOK) String() string { + return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsOK %+v", 200, o.Payload) +} + func (o *DeleteOrganizationInvitationsOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteOrganizationInvitationsBadRequest() *DeleteOrganizationInvitations return &DeleteOrganizationInvitationsBadRequest{} } -/* DeleteOrganizationInvitationsBadRequest describes a response with status code 400, with default header values. +/* +DeleteOrganizationInvitationsBadRequest describes a response with status code 400, with default header values. No valid invitation token was supplied. (code: `root.invalid_data`) */ @@ -111,9 +148,44 @@ type DeleteOrganizationInvitationsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete organization invitations bad request response has a 2xx status code +func (o *DeleteOrganizationInvitationsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete organization invitations bad request response has a 3xx status code +func (o *DeleteOrganizationInvitationsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete organization invitations bad request response has a 4xx status code +func (o *DeleteOrganizationInvitationsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete organization invitations bad request response has a 5xx status code +func (o *DeleteOrganizationInvitationsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete organization invitations bad request response a status code equal to that given +func (o *DeleteOrganizationInvitationsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete organization invitations bad request response +func (o *DeleteOrganizationInvitationsBadRequest) Code() int { + return 400 +} + func (o *DeleteOrganizationInvitationsBadRequest) Error() string { return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsBadRequest %+v", 400, o.Payload) } + +func (o *DeleteOrganizationInvitationsBadRequest) String() string { + return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsBadRequest %+v", 400, o.Payload) +} + func (o *DeleteOrganizationInvitationsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,9 +214,11 @@ func NewDeleteOrganizationInvitationsNotFound() *DeleteOrganizationInvitationsNo return &DeleteOrganizationInvitationsNotFound{} } -/* DeleteOrganizationInvitationsNotFound describes a response with status code 404, with default header values. +/* + DeleteOrganizationInvitationsNotFound describes a response with status code 404, with default header values. + + * Organization not found. (code: `organization.not_found`) - * Organization not found. (code: `organization.not_found`) * Invitation not found. (code: `organization.invitation_not_found`) */ type DeleteOrganizationInvitationsNotFound struct { @@ -156,9 +230,44 @@ type DeleteOrganizationInvitationsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete organization invitations not found response has a 2xx status code +func (o *DeleteOrganizationInvitationsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete organization invitations not found response has a 3xx status code +func (o *DeleteOrganizationInvitationsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete organization invitations not found response has a 4xx status code +func (o *DeleteOrganizationInvitationsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete organization invitations not found response has a 5xx status code +func (o *DeleteOrganizationInvitationsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete organization invitations not found response a status code equal to that given +func (o *DeleteOrganizationInvitationsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete organization invitations not found response +func (o *DeleteOrganizationInvitationsNotFound) Code() int { + return 404 +} + func (o *DeleteOrganizationInvitationsNotFound) Error() string { return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsNotFound %+v", 404, o.Payload) } + +func (o *DeleteOrganizationInvitationsNotFound) String() string { + return fmt.Sprintf("[DELETE /organizations/{organization_id}/invitations/{invitation_tokens}][%d] deleteOrganizationInvitationsNotFound %+v", 404, o.Payload) +} + func (o *DeleteOrganizationInvitationsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/delete_organization_memberships_parameters.go b/pkg/client/organizations/delete_organization_memberships_parameters.go index 456c25b9..7ba78fec 100644 --- a/pkg/client/organizations/delete_organization_memberships_parameters.go +++ b/pkg/client/organizations/delete_organization_memberships_parameters.go @@ -70,10 +70,12 @@ func NewDeleteOrganizationMembershipsParamsWithHTTPClient(client *http.Client) * } } -/* DeleteOrganizationMembershipsParams contains all the parameters to send to the API endpoint - for the delete organization memberships operation. +/* +DeleteOrganizationMembershipsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete organization memberships operation. + + Typically these are written to a http.Request. */ type DeleteOrganizationMembershipsParams struct { diff --git a/pkg/client/organizations/delete_organization_memberships_responses.go b/pkg/client/organizations/delete_organization_memberships_responses.go index b69beb82..13759a8f 100644 --- a/pkg/client/organizations/delete_organization_memberships_responses.go +++ b/pkg/client/organizations/delete_organization_memberships_responses.go @@ -62,7 +62,8 @@ func NewDeleteOrganizationMembershipsOK() *DeleteOrganizationMembershipsOK { return &DeleteOrganizationMembershipsOK{} } -/* DeleteOrganizationMembershipsOK describes a response with status code 200, with default header values. +/* +DeleteOrganizationMembershipsOK describes a response with status code 200, with default header values. Organization membership deleted successfully */ @@ -70,9 +71,44 @@ type DeleteOrganizationMembershipsOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete organization memberships o k response has a 2xx status code +func (o *DeleteOrganizationMembershipsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete organization memberships o k response has a 3xx status code +func (o *DeleteOrganizationMembershipsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete organization memberships o k response has a 4xx status code +func (o *DeleteOrganizationMembershipsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete organization memberships o k response has a 5xx status code +func (o *DeleteOrganizationMembershipsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete organization memberships o k response a status code equal to that given +func (o *DeleteOrganizationMembershipsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete organization memberships o k response +func (o *DeleteOrganizationMembershipsOK) Code() int { + return 200 +} + func (o *DeleteOrganizationMembershipsOK) Error() string { return fmt.Sprintf("[DELETE /organizations/{organization_id}/members/{user_ids}][%d] deleteOrganizationMembershipsOK %+v", 200, o.Payload) } + +func (o *DeleteOrganizationMembershipsOK) String() string { + return fmt.Sprintf("[DELETE /organizations/{organization_id}/members/{user_ids}][%d] deleteOrganizationMembershipsOK %+v", 200, o.Payload) +} + func (o *DeleteOrganizationMembershipsOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -92,9 +128,11 @@ func NewDeleteOrganizationMembershipsNotFound() *DeleteOrganizationMembershipsNo return &DeleteOrganizationMembershipsNotFound{} } -/* DeleteOrganizationMembershipsNotFound describes a response with status code 404, with default header values. +/* + DeleteOrganizationMembershipsNotFound describes a response with status code 404, with default header values. + + * User not found. (code: `user.not_found`) - * User not found. (code: `user.not_found`) * Organization not found. (code: `organization.not_found`) * Organization membership not found. (code: `organization.membership_not_found`) */ @@ -107,9 +145,44 @@ type DeleteOrganizationMembershipsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete organization memberships not found response has a 2xx status code +func (o *DeleteOrganizationMembershipsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete organization memberships not found response has a 3xx status code +func (o *DeleteOrganizationMembershipsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete organization memberships not found response has a 4xx status code +func (o *DeleteOrganizationMembershipsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete organization memberships not found response has a 5xx status code +func (o *DeleteOrganizationMembershipsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete organization memberships not found response a status code equal to that given +func (o *DeleteOrganizationMembershipsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete organization memberships not found response +func (o *DeleteOrganizationMembershipsNotFound) Code() int { + return 404 +} + func (o *DeleteOrganizationMembershipsNotFound) Error() string { return fmt.Sprintf("[DELETE /organizations/{organization_id}/members/{user_ids}][%d] deleteOrganizationMembershipsNotFound %+v", 404, o.Payload) } + +func (o *DeleteOrganizationMembershipsNotFound) String() string { + return fmt.Sprintf("[DELETE /organizations/{organization_id}/members/{user_ids}][%d] deleteOrganizationMembershipsNotFound %+v", 404, o.Payload) +} + func (o *DeleteOrganizationMembershipsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/get_organization_invitation_parameters.go b/pkg/client/organizations/get_organization_invitation_parameters.go index 12934159..752c01f1 100644 --- a/pkg/client/organizations/get_organization_invitation_parameters.go +++ b/pkg/client/organizations/get_organization_invitation_parameters.go @@ -69,10 +69,12 @@ func NewGetOrganizationInvitationParamsWithHTTPClient(client *http.Client) *GetO } } -/* GetOrganizationInvitationParams contains all the parameters to send to the API endpoint - for the get organization invitation operation. +/* +GetOrganizationInvitationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get organization invitation operation. + + Typically these are written to a http.Request. */ type GetOrganizationInvitationParams struct { diff --git a/pkg/client/organizations/get_organization_invitation_responses.go b/pkg/client/organizations/get_organization_invitation_responses.go index e605dc11..7bea1327 100644 --- a/pkg/client/organizations/get_organization_invitation_responses.go +++ b/pkg/client/organizations/get_organization_invitation_responses.go @@ -62,7 +62,8 @@ func NewGetOrganizationInvitationOK() *GetOrganizationInvitationOK { return &GetOrganizationInvitationOK{} } -/* GetOrganizationInvitationOK describes a response with status code 200, with default header values. +/* +GetOrganizationInvitationOK describes a response with status code 200, with default header values. Organization invitation fetched successfully */ @@ -70,9 +71,44 @@ type GetOrganizationInvitationOK struct { Payload *models.OrganizationInvitation } +// IsSuccess returns true when this get organization invitation o k response has a 2xx status code +func (o *GetOrganizationInvitationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get organization invitation o k response has a 3xx status code +func (o *GetOrganizationInvitationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization invitation o k response has a 4xx status code +func (o *GetOrganizationInvitationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get organization invitation o k response has a 5xx status code +func (o *GetOrganizationInvitationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization invitation o k response a status code equal to that given +func (o *GetOrganizationInvitationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get organization invitation o k response +func (o *GetOrganizationInvitationOK) Code() int { + return 200 +} + func (o *GetOrganizationInvitationOK) Error() string { return fmt.Sprintf("[GET /organizations/invitations/{invitation_token}][%d] getOrganizationInvitationOK %+v", 200, o.Payload) } + +func (o *GetOrganizationInvitationOK) String() string { + return fmt.Sprintf("[GET /organizations/invitations/{invitation_token}][%d] getOrganizationInvitationOK %+v", 200, o.Payload) +} + func (o *GetOrganizationInvitationOK) GetPayload() *models.OrganizationInvitation { return o.Payload } @@ -94,7 +130,8 @@ func NewGetOrganizationInvitationNotFound() *GetOrganizationInvitationNotFound { return &GetOrganizationInvitationNotFound{} } -/* GetOrganizationInvitationNotFound describes a response with status code 404, with default header values. +/* +GetOrganizationInvitationNotFound describes a response with status code 404, with default header values. Invitation not found. (code: `organization.invitation_not_found`) */ @@ -107,9 +144,44 @@ type GetOrganizationInvitationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get organization invitation not found response has a 2xx status code +func (o *GetOrganizationInvitationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get organization invitation not found response has a 3xx status code +func (o *GetOrganizationInvitationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization invitation not found response has a 4xx status code +func (o *GetOrganizationInvitationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get organization invitation not found response has a 5xx status code +func (o *GetOrganizationInvitationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization invitation not found response a status code equal to that given +func (o *GetOrganizationInvitationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get organization invitation not found response +func (o *GetOrganizationInvitationNotFound) Code() int { + return 404 +} + func (o *GetOrganizationInvitationNotFound) Error() string { return fmt.Sprintf("[GET /organizations/invitations/{invitation_token}][%d] getOrganizationInvitationNotFound %+v", 404, o.Payload) } + +func (o *GetOrganizationInvitationNotFound) String() string { + return fmt.Sprintf("[GET /organizations/invitations/{invitation_token}][%d] getOrganizationInvitationNotFound %+v", 404, o.Payload) +} + func (o *GetOrganizationInvitationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/get_organization_parameters.go b/pkg/client/organizations/get_organization_parameters.go index 9135aaa5..2f1a5183 100644 --- a/pkg/client/organizations/get_organization_parameters.go +++ b/pkg/client/organizations/get_organization_parameters.go @@ -69,10 +69,12 @@ func NewGetOrganizationParamsWithHTTPClient(client *http.Client) *GetOrganizatio } } -/* GetOrganizationParams contains all the parameters to send to the API endpoint - for the get organization operation. +/* +GetOrganizationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get organization operation. + + Typically these are written to a http.Request. */ type GetOrganizationParams struct { diff --git a/pkg/client/organizations/get_organization_responses.go b/pkg/client/organizations/get_organization_responses.go index 1d9ea495..86672ba3 100644 --- a/pkg/client/organizations/get_organization_responses.go +++ b/pkg/client/organizations/get_organization_responses.go @@ -74,7 +74,8 @@ func NewGetOrganizationOK() *GetOrganizationOK { return &GetOrganizationOK{} } -/* GetOrganizationOK describes a response with status code 200, with default header values. +/* +GetOrganizationOK describes a response with status code 200, with default header values. Organization fetched successfully */ @@ -82,9 +83,44 @@ type GetOrganizationOK struct { Payload *models.Organization } +// IsSuccess returns true when this get organization o k response has a 2xx status code +func (o *GetOrganizationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get organization o k response has a 3xx status code +func (o *GetOrganizationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization o k response has a 4xx status code +func (o *GetOrganizationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get organization o k response has a 5xx status code +func (o *GetOrganizationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization o k response a status code equal to that given +func (o *GetOrganizationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get organization o k response +func (o *GetOrganizationOK) Code() int { + return 200 +} + func (o *GetOrganizationOK) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationOK %+v", 200, o.Payload) } + +func (o *GetOrganizationOK) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationOK %+v", 200, o.Payload) +} + func (o *GetOrganizationOK) GetPayload() *models.Organization { return o.Payload } @@ -106,7 +142,8 @@ func NewGetOrganizationUnauthorized() *GetOrganizationUnauthorized { return &GetOrganizationUnauthorized{} } -/* GetOrganizationUnauthorized describes a response with status code 401, with default header values. +/* +GetOrganizationUnauthorized describes a response with status code 401, with default header values. User not found. (code: `user.not_found`) */ @@ -119,9 +156,44 @@ type GetOrganizationUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get organization unauthorized response has a 2xx status code +func (o *GetOrganizationUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get organization unauthorized response has a 3xx status code +func (o *GetOrganizationUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization unauthorized response has a 4xx status code +func (o *GetOrganizationUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get organization unauthorized response has a 5xx status code +func (o *GetOrganizationUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization unauthorized response a status code equal to that given +func (o *GetOrganizationUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get organization unauthorized response +func (o *GetOrganizationUnauthorized) Code() int { + return 401 +} + func (o *GetOrganizationUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationUnauthorized %+v", 401, o.Payload) } + +func (o *GetOrganizationUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationUnauthorized %+v", 401, o.Payload) +} + func (o *GetOrganizationUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewGetOrganizationForbidden() *GetOrganizationForbidden { return &GetOrganizationForbidden{} } -/* GetOrganizationForbidden describes a response with status code 403, with default header values. +/* +GetOrganizationForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -163,9 +236,44 @@ type GetOrganizationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get organization forbidden response has a 2xx status code +func (o *GetOrganizationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get organization forbidden response has a 3xx status code +func (o *GetOrganizationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization forbidden response has a 4xx status code +func (o *GetOrganizationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get organization forbidden response has a 5xx status code +func (o *GetOrganizationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization forbidden response a status code equal to that given +func (o *GetOrganizationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get organization forbidden response +func (o *GetOrganizationForbidden) Code() int { + return 403 +} + func (o *GetOrganizationForbidden) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationForbidden %+v", 403, o.Payload) } + +func (o *GetOrganizationForbidden) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationForbidden %+v", 403, o.Payload) +} + func (o *GetOrganizationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewGetOrganizationNotFound() *GetOrganizationNotFound { return &GetOrganizationNotFound{} } -/* GetOrganizationNotFound describes a response with status code 404, with default header values. +/* +GetOrganizationNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -207,9 +316,44 @@ type GetOrganizationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get organization not found response has a 2xx status code +func (o *GetOrganizationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get organization not found response has a 3xx status code +func (o *GetOrganizationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get organization not found response has a 4xx status code +func (o *GetOrganizationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get organization not found response has a 5xx status code +func (o *GetOrganizationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get organization not found response a status code equal to that given +func (o *GetOrganizationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get organization not found response +func (o *GetOrganizationNotFound) Code() int { + return 404 +} + func (o *GetOrganizationNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationNotFound %+v", 404, o.Payload) } + +func (o *GetOrganizationNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}][%d] getOrganizationNotFound %+v", 404, o.Payload) +} + func (o *GetOrganizationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/list_organization_invitations_parameters.go b/pkg/client/organizations/list_organization_invitations_parameters.go index 61859768..cee8b328 100644 --- a/pkg/client/organizations/list_organization_invitations_parameters.go +++ b/pkg/client/organizations/list_organization_invitations_parameters.go @@ -69,10 +69,12 @@ func NewListOrganizationInvitationsParamsWithHTTPClient(client *http.Client) *Li } } -/* ListOrganizationInvitationsParams contains all the parameters to send to the API endpoint - for the list organization invitations operation. +/* +ListOrganizationInvitationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list organization invitations operation. + + Typically these are written to a http.Request. */ type ListOrganizationInvitationsParams struct { diff --git a/pkg/client/organizations/list_organization_invitations_responses.go b/pkg/client/organizations/list_organization_invitations_responses.go index 3b0c4216..582a463a 100644 --- a/pkg/client/organizations/list_organization_invitations_responses.go +++ b/pkg/client/organizations/list_organization_invitations_responses.go @@ -62,7 +62,8 @@ func NewListOrganizationInvitationsOK() *ListOrganizationInvitationsOK { return &ListOrganizationInvitationsOK{} } -/* ListOrganizationInvitationsOK describes a response with status code 200, with default header values. +/* +ListOrganizationInvitationsOK describes a response with status code 200, with default header values. Organization invitations fetched successfully */ @@ -70,9 +71,44 @@ type ListOrganizationInvitationsOK struct { Payload *models.OrganizationInvitations } +// IsSuccess returns true when this list organization invitations o k response has a 2xx status code +func (o *ListOrganizationInvitationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list organization invitations o k response has a 3xx status code +func (o *ListOrganizationInvitationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organization invitations o k response has a 4xx status code +func (o *ListOrganizationInvitationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list organization invitations o k response has a 5xx status code +func (o *ListOrganizationInvitationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list organization invitations o k response a status code equal to that given +func (o *ListOrganizationInvitationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list organization invitations o k response +func (o *ListOrganizationInvitationsOK) Code() int { + return 200 +} + func (o *ListOrganizationInvitationsOK) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}/invitations][%d] listOrganizationInvitationsOK %+v", 200, o.Payload) } + +func (o *ListOrganizationInvitationsOK) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}/invitations][%d] listOrganizationInvitationsOK %+v", 200, o.Payload) +} + func (o *ListOrganizationInvitationsOK) GetPayload() *models.OrganizationInvitations { return o.Payload } @@ -94,7 +130,8 @@ func NewListOrganizationInvitationsNotFound() *ListOrganizationInvitationsNotFou return &ListOrganizationInvitationsNotFound{} } -/* ListOrganizationInvitationsNotFound describes a response with status code 404, with default header values. +/* +ListOrganizationInvitationsNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -107,9 +144,44 @@ type ListOrganizationInvitationsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this list organization invitations not found response has a 2xx status code +func (o *ListOrganizationInvitationsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this list organization invitations not found response has a 3xx status code +func (o *ListOrganizationInvitationsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organization invitations not found response has a 4xx status code +func (o *ListOrganizationInvitationsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this list organization invitations not found response has a 5xx status code +func (o *ListOrganizationInvitationsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this list organization invitations not found response a status code equal to that given +func (o *ListOrganizationInvitationsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the list organization invitations not found response +func (o *ListOrganizationInvitationsNotFound) Code() int { + return 404 +} + func (o *ListOrganizationInvitationsNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}/invitations][%d] listOrganizationInvitationsNotFound %+v", 404, o.Payload) } + +func (o *ListOrganizationInvitationsNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}/invitations][%d] listOrganizationInvitationsNotFound %+v", 404, o.Payload) +} + func (o *ListOrganizationInvitationsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/list_organization_members_parameters.go b/pkg/client/organizations/list_organization_members_parameters.go index 9d417d4a..9cb9202d 100644 --- a/pkg/client/organizations/list_organization_members_parameters.go +++ b/pkg/client/organizations/list_organization_members_parameters.go @@ -69,10 +69,12 @@ func NewListOrganizationMembersParamsWithHTTPClient(client *http.Client) *ListOr } } -/* ListOrganizationMembersParams contains all the parameters to send to the API endpoint - for the list organization members operation. +/* +ListOrganizationMembersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list organization members operation. + + Typically these are written to a http.Request. */ type ListOrganizationMembersParams struct { diff --git a/pkg/client/organizations/list_organization_members_responses.go b/pkg/client/organizations/list_organization_members_responses.go index 59b2eb3f..1a2405d3 100644 --- a/pkg/client/organizations/list_organization_members_responses.go +++ b/pkg/client/organizations/list_organization_members_responses.go @@ -62,7 +62,8 @@ func NewListOrganizationMembersOK() *ListOrganizationMembersOK { return &ListOrganizationMembersOK{} } -/* ListOrganizationMembersOK describes a response with status code 200, with default header values. +/* +ListOrganizationMembersOK describes a response with status code 200, with default header values. Organization members fetched successfully */ @@ -70,9 +71,44 @@ type ListOrganizationMembersOK struct { Payload *models.OrganizationMemberships } +// IsSuccess returns true when this list organization members o k response has a 2xx status code +func (o *ListOrganizationMembersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list organization members o k response has a 3xx status code +func (o *ListOrganizationMembersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organization members o k response has a 4xx status code +func (o *ListOrganizationMembersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list organization members o k response has a 5xx status code +func (o *ListOrganizationMembersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list organization members o k response a status code equal to that given +func (o *ListOrganizationMembersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list organization members o k response +func (o *ListOrganizationMembersOK) Code() int { + return 200 +} + func (o *ListOrganizationMembersOK) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}/members][%d] listOrganizationMembersOK %+v", 200, o.Payload) } + +func (o *ListOrganizationMembersOK) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}/members][%d] listOrganizationMembersOK %+v", 200, o.Payload) +} + func (o *ListOrganizationMembersOK) GetPayload() *models.OrganizationMemberships { return o.Payload } @@ -94,7 +130,8 @@ func NewListOrganizationMembersNotFound() *ListOrganizationMembersNotFound { return &ListOrganizationMembersNotFound{} } -/* ListOrganizationMembersNotFound describes a response with status code 404, with default header values. +/* +ListOrganizationMembersNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -107,9 +144,44 @@ type ListOrganizationMembersNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this list organization members not found response has a 2xx status code +func (o *ListOrganizationMembersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this list organization members not found response has a 3xx status code +func (o *ListOrganizationMembersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organization members not found response has a 4xx status code +func (o *ListOrganizationMembersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this list organization members not found response has a 5xx status code +func (o *ListOrganizationMembersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this list organization members not found response a status code equal to that given +func (o *ListOrganizationMembersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the list organization members not found response +func (o *ListOrganizationMembersNotFound) Code() int { + return 404 +} + func (o *ListOrganizationMembersNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{organization_id}/members][%d] listOrganizationMembersNotFound %+v", 404, o.Payload) } + +func (o *ListOrganizationMembersNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{organization_id}/members][%d] listOrganizationMembersNotFound %+v", 404, o.Payload) +} + func (o *ListOrganizationMembersNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/list_organizations_parameters.go b/pkg/client/organizations/list_organizations_parameters.go index ef0b7efb..1780ff23 100644 --- a/pkg/client/organizations/list_organizations_parameters.go +++ b/pkg/client/organizations/list_organizations_parameters.go @@ -69,10 +69,12 @@ func NewListOrganizationsParamsWithHTTPClient(client *http.Client) *ListOrganiza } } -/* ListOrganizationsParams contains all the parameters to send to the API endpoint - for the list organizations operation. +/* +ListOrganizationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list organizations operation. + + Typically these are written to a http.Request. */ type ListOrganizationsParams struct { timeout time.Duration diff --git a/pkg/client/organizations/list_organizations_responses.go b/pkg/client/organizations/list_organizations_responses.go index d82a3ec8..f91859c0 100644 --- a/pkg/client/organizations/list_organizations_responses.go +++ b/pkg/client/organizations/list_organizations_responses.go @@ -62,7 +62,8 @@ func NewListOrganizationsOK() *ListOrganizationsOK { return &ListOrganizationsOK{} } -/* ListOrganizationsOK describes a response with status code 200, with default header values. +/* +ListOrganizationsOK describes a response with status code 200, with default header values. Organizations fetched successfully */ @@ -70,9 +71,44 @@ type ListOrganizationsOK struct { Payload *models.OrganizationList } +// IsSuccess returns true when this list organizations o k response has a 2xx status code +func (o *ListOrganizationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list organizations o k response has a 3xx status code +func (o *ListOrganizationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organizations o k response has a 4xx status code +func (o *ListOrganizationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list organizations o k response has a 5xx status code +func (o *ListOrganizationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list organizations o k response a status code equal to that given +func (o *ListOrganizationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list organizations o k response +func (o *ListOrganizationsOK) Code() int { + return 200 +} + func (o *ListOrganizationsOK) Error() string { return fmt.Sprintf("[GET /organizations][%d] listOrganizationsOK %+v", 200, o.Payload) } + +func (o *ListOrganizationsOK) String() string { + return fmt.Sprintf("[GET /organizations][%d] listOrganizationsOK %+v", 200, o.Payload) +} + func (o *ListOrganizationsOK) GetPayload() *models.OrganizationList { return o.Payload } @@ -94,7 +130,8 @@ func NewListOrganizationsUnauthorized() *ListOrganizationsUnauthorized { return &ListOrganizationsUnauthorized{} } -/* ListOrganizationsUnauthorized describes a response with status code 401, with default header values. +/* +ListOrganizationsUnauthorized describes a response with status code 401, with default header values. User not found. (code: `user.not_found`) */ @@ -107,9 +144,44 @@ type ListOrganizationsUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this list organizations unauthorized response has a 2xx status code +func (o *ListOrganizationsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this list organizations unauthorized response has a 3xx status code +func (o *ListOrganizationsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list organizations unauthorized response has a 4xx status code +func (o *ListOrganizationsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this list organizations unauthorized response has a 5xx status code +func (o *ListOrganizationsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this list organizations unauthorized response a status code equal to that given +func (o *ListOrganizationsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the list organizations unauthorized response +func (o *ListOrganizationsUnauthorized) Code() int { + return 401 +} + func (o *ListOrganizationsUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations][%d] listOrganizationsUnauthorized %+v", 401, o.Payload) } + +func (o *ListOrganizationsUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations][%d] listOrganizationsUnauthorized %+v", 401, o.Payload) +} + func (o *ListOrganizationsUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/organizations/organizations_client.go b/pkg/client/organizations/organizations_client.go index f0f39f25..75bf3fdd 100644 --- a/pkg/client/organizations/organizations_client.go +++ b/pkg/client/organizations/organizations_client.go @@ -71,9 +71,9 @@ type ClientService interface { } /* - AcceptOrganizationInvitation accepts an organization invitation +AcceptOrganizationInvitation accepts an organization invitation - Accepts an organization invitation. Currently unavailable in self-hosted ECE. +Accepts an organization invitation. Currently unavailable in self-hosted ECE. */ func (a *Client) AcceptOrganizationInvitation(params *AcceptOrganizationInvitationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AcceptOrganizationInvitationOK, error) { // TODO: Validate the params before sending @@ -112,9 +112,9 @@ func (a *Client) AcceptOrganizationInvitation(params *AcceptOrganizationInvitati } /* - CreateOrganizationInvitations creates organization invitations +CreateOrganizationInvitations creates organization invitations - Creates or refreshes organization invitations. Currently unavailable in self-hosted ECE. +Creates or refreshes organization invitations. Currently unavailable in self-hosted ECE. */ func (a *Client) CreateOrganizationInvitations(params *CreateOrganizationInvitationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOrganizationInvitationsCreated, error) { // TODO: Validate the params before sending @@ -153,9 +153,9 @@ func (a *Client) CreateOrganizationInvitations(params *CreateOrganizationInvitat } /* - DeleteOrganizationInvitations deletes organization invitations +DeleteOrganizationInvitations deletes organization invitations - Deletes one or more organization invitations. Currently unavailable in self-hosted ECE. +Deletes one or more organization invitations. Currently unavailable in self-hosted ECE. */ func (a *Client) DeleteOrganizationInvitations(params *DeleteOrganizationInvitationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOrganizationInvitationsOK, error) { // TODO: Validate the params before sending @@ -194,9 +194,9 @@ func (a *Client) DeleteOrganizationInvitations(params *DeleteOrganizationInvitat } /* - DeleteOrganizationMemberships deletes organization memberships +DeleteOrganizationMemberships deletes organization memberships - Deletes one or more organization memberships. Currently unavailable in self-hosted ECE. +Deletes one or more organization memberships. Currently unavailable in self-hosted ECE. */ func (a *Client) DeleteOrganizationMemberships(params *DeleteOrganizationMembershipsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOrganizationMembershipsOK, error) { // TODO: Validate the params before sending @@ -235,9 +235,9 @@ func (a *Client) DeleteOrganizationMemberships(params *DeleteOrganizationMembers } /* - GetOrganization fetches organization information +GetOrganization fetches organization information - Fetch a single organization by id. Currently unavailable in self-hosted ECE. +Fetch a single organization by id. Currently unavailable in self-hosted ECE. */ func (a *Client) GetOrganization(params *GetOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationOK, error) { // TODO: Validate the params before sending @@ -276,9 +276,9 @@ func (a *Client) GetOrganization(params *GetOrganizationParams, authInfo runtime } /* - GetOrganizationInvitation gets organization invitation +GetOrganizationInvitation gets organization invitation - Gets a single invitation to an organization by token. Currently unavailable in self-hosted ECE. +Gets a single invitation to an organization by token. Currently unavailable in self-hosted ECE. */ func (a *Client) GetOrganizationInvitation(params *GetOrganizationInvitationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationInvitationOK, error) { // TODO: Validate the params before sending @@ -317,9 +317,9 @@ func (a *Client) GetOrganizationInvitation(params *GetOrganizationInvitationPara } /* - ListOrganizationInvitations lists organization invitations +ListOrganizationInvitations lists organization invitations - Fetch open invitations to the selected organization. Currently unavailable in self-hosted ECE. +Fetch open invitations to the selected organization. Currently unavailable in self-hosted ECE. */ func (a *Client) ListOrganizationInvitations(params *ListOrganizationInvitationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationInvitationsOK, error) { // TODO: Validate the params before sending @@ -358,9 +358,9 @@ func (a *Client) ListOrganizationInvitations(params *ListOrganizationInvitations } /* - ListOrganizationMembers lists organization members +ListOrganizationMembers lists organization members - Fetch users belonging to the selected organization. Currently unavailable in self-hosted ECE. +Fetch users belonging to the selected organization. Currently unavailable in self-hosted ECE. */ func (a *Client) ListOrganizationMembers(params *ListOrganizationMembersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationMembersOK, error) { // TODO: Validate the params before sending @@ -399,9 +399,9 @@ func (a *Client) ListOrganizationMembers(params *ListOrganizationMembersParams, } /* - ListOrganizations lists organizations +ListOrganizations lists organizations - Fetch organizations available to the current user. Currently unavailable in self-hosted ECE. +Fetch organizations available to the current user. Currently unavailable in self-hosted ECE. */ func (a *Client) ListOrganizations(params *ListOrganizationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationsOK, error) { // TODO: Validate the params before sending @@ -440,9 +440,10 @@ func (a *Client) ListOrganizations(params *ListOrganizationsParams, authInfo run } /* - UpdateOrganization updates organization + UpdateOrganization updates organization + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Updates an existing organization. Currently unavailable in self-hosted ECE. diff --git a/pkg/client/organizations/update_organization_parameters.go b/pkg/client/organizations/update_organization_parameters.go index a28e17a9..139162bc 100644 --- a/pkg/client/organizations/update_organization_parameters.go +++ b/pkg/client/organizations/update_organization_parameters.go @@ -71,10 +71,12 @@ func NewUpdateOrganizationParamsWithHTTPClient(client *http.Client) *UpdateOrgan } } -/* UpdateOrganizationParams contains all the parameters to send to the API endpoint - for the update organization operation. +/* +UpdateOrganizationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update organization operation. + + Typically these are written to a http.Request. */ type UpdateOrganizationParams struct { diff --git a/pkg/client/organizations/update_organization_responses.go b/pkg/client/organizations/update_organization_responses.go index b0d4fd82..ad0e61ec 100644 --- a/pkg/client/organizations/update_organization_responses.go +++ b/pkg/client/organizations/update_organization_responses.go @@ -80,7 +80,8 @@ func NewUpdateOrganizationOK() *UpdateOrganizationOK { return &UpdateOrganizationOK{} } -/* UpdateOrganizationOK describes a response with status code 200, with default header values. +/* +UpdateOrganizationOK describes a response with status code 200, with default header values. Organization updated successfully */ @@ -88,9 +89,44 @@ type UpdateOrganizationOK struct { Payload *models.Organization } +// IsSuccess returns true when this update organization o k response has a 2xx status code +func (o *UpdateOrganizationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update organization o k response has a 3xx status code +func (o *UpdateOrganizationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update organization o k response has a 4xx status code +func (o *UpdateOrganizationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update organization o k response has a 5xx status code +func (o *UpdateOrganizationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update organization o k response a status code equal to that given +func (o *UpdateOrganizationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update organization o k response +func (o *UpdateOrganizationOK) Code() int { + return 200 +} + func (o *UpdateOrganizationOK) Error() string { return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationOK %+v", 200, o.Payload) } + +func (o *UpdateOrganizationOK) String() string { + return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationOK %+v", 200, o.Payload) +} + func (o *UpdateOrganizationOK) GetPayload() *models.Organization { return o.Payload } @@ -112,9 +148,11 @@ func NewUpdateOrganizationBadRequest() *UpdateOrganizationBadRequest { return &UpdateOrganizationBadRequest{} } -/* UpdateOrganizationBadRequest describes a response with status code 400, with default header values. +/* + UpdateOrganizationBadRequest describes a response with status code 400, with default header values. + + * Name must be between 2 and 30 characters. (code: `organization.invalid_name`) - * Name must be between 2 and 30 characters. (code: `organization.invalid_name`) * User already has an organization. (code: `organization.user_organization_already_exists`) */ type UpdateOrganizationBadRequest struct { @@ -126,9 +164,44 @@ type UpdateOrganizationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update organization bad request response has a 2xx status code +func (o *UpdateOrganizationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update organization bad request response has a 3xx status code +func (o *UpdateOrganizationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update organization bad request response has a 4xx status code +func (o *UpdateOrganizationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update organization bad request response has a 5xx status code +func (o *UpdateOrganizationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update organization bad request response a status code equal to that given +func (o *UpdateOrganizationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update organization bad request response +func (o *UpdateOrganizationBadRequest) Code() int { + return 400 +} + func (o *UpdateOrganizationBadRequest) Error() string { return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationBadRequest %+v", 400, o.Payload) } + +func (o *UpdateOrganizationBadRequest) String() string { + return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationBadRequest %+v", 400, o.Payload) +} + func (o *UpdateOrganizationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -157,7 +230,8 @@ func NewUpdateOrganizationUnauthorized() *UpdateOrganizationUnauthorized { return &UpdateOrganizationUnauthorized{} } -/* UpdateOrganizationUnauthorized describes a response with status code 401, with default header values. +/* +UpdateOrganizationUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action */ @@ -165,9 +239,44 @@ type UpdateOrganizationUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update organization unauthorized response has a 2xx status code +func (o *UpdateOrganizationUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update organization unauthorized response has a 3xx status code +func (o *UpdateOrganizationUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update organization unauthorized response has a 4xx status code +func (o *UpdateOrganizationUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this update organization unauthorized response has a 5xx status code +func (o *UpdateOrganizationUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this update organization unauthorized response a status code equal to that given +func (o *UpdateOrganizationUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the update organization unauthorized response +func (o *UpdateOrganizationUnauthorized) Code() int { + return 401 +} + func (o *UpdateOrganizationUnauthorized) Error() string { return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationUnauthorized %+v", 401, o.Payload) } + +func (o *UpdateOrganizationUnauthorized) String() string { + return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationUnauthorized %+v", 401, o.Payload) +} + func (o *UpdateOrganizationUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -189,7 +298,8 @@ func NewUpdateOrganizationForbidden() *UpdateOrganizationForbidden { return &UpdateOrganizationForbidden{} } -/* UpdateOrganizationForbidden describes a response with status code 403, with default header values. +/* +UpdateOrganizationForbidden describes a response with status code 403, with default header values. The current user does not have access to the requested organization. (code: `organization.invalid_access`) */ @@ -202,9 +312,44 @@ type UpdateOrganizationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update organization forbidden response has a 2xx status code +func (o *UpdateOrganizationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update organization forbidden response has a 3xx status code +func (o *UpdateOrganizationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update organization forbidden response has a 4xx status code +func (o *UpdateOrganizationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this update organization forbidden response has a 5xx status code +func (o *UpdateOrganizationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this update organization forbidden response a status code equal to that given +func (o *UpdateOrganizationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the update organization forbidden response +func (o *UpdateOrganizationForbidden) Code() int { + return 403 +} + func (o *UpdateOrganizationForbidden) Error() string { return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationForbidden %+v", 403, o.Payload) } + +func (o *UpdateOrganizationForbidden) String() string { + return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationForbidden %+v", 403, o.Payload) +} + func (o *UpdateOrganizationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -233,7 +378,8 @@ func NewUpdateOrganizationNotFound() *UpdateOrganizationNotFound { return &UpdateOrganizationNotFound{} } -/* UpdateOrganizationNotFound describes a response with status code 404, with default header values. +/* +UpdateOrganizationNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -246,9 +392,44 @@ type UpdateOrganizationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update organization not found response has a 2xx status code +func (o *UpdateOrganizationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update organization not found response has a 3xx status code +func (o *UpdateOrganizationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update organization not found response has a 4xx status code +func (o *UpdateOrganizationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update organization not found response has a 5xx status code +func (o *UpdateOrganizationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update organization not found response a status code equal to that given +func (o *UpdateOrganizationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update organization not found response +func (o *UpdateOrganizationNotFound) Code() int { + return 404 +} + func (o *UpdateOrganizationNotFound) Error() string { return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationNotFound %+v", 404, o.Payload) } + +func (o *UpdateOrganizationNotFound) String() string { + return fmt.Sprintf("[PUT /organizations/{organization_id}][%d] updateOrganizationNotFound %+v", 404, o.Payload) +} + func (o *UpdateOrganizationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform/delete_extra_certificate_parameters.go b/pkg/client/platform/delete_extra_certificate_parameters.go index 41ad7165..051d07f6 100644 --- a/pkg/client/platform/delete_extra_certificate_parameters.go +++ b/pkg/client/platform/delete_extra_certificate_parameters.go @@ -69,10 +69,12 @@ func NewDeleteExtraCertificateParamsWithHTTPClient(client *http.Client) *DeleteE } } -/* DeleteExtraCertificateParams contains all the parameters to send to the API endpoint - for the delete extra certificate operation. +/* +DeleteExtraCertificateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete extra certificate operation. + + Typically these are written to a http.Request. */ type DeleteExtraCertificateParams struct { diff --git a/pkg/client/platform/delete_extra_certificate_responses.go b/pkg/client/platform/delete_extra_certificate_responses.go index 4d37f1af..d8165f0a 100644 --- a/pkg/client/platform/delete_extra_certificate_responses.go +++ b/pkg/client/platform/delete_extra_certificate_responses.go @@ -62,7 +62,8 @@ func NewDeleteExtraCertificateOK() *DeleteExtraCertificateOK { return &DeleteExtraCertificateOK{} } -/* DeleteExtraCertificateOK describes a response with status code 200, with default header values. +/* +DeleteExtraCertificateOK describes a response with status code 200, with default header values. Extra certificate under the given id is deleted if exists */ @@ -70,9 +71,44 @@ type DeleteExtraCertificateOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete extra certificate o k response has a 2xx status code +func (o *DeleteExtraCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete extra certificate o k response has a 3xx status code +func (o *DeleteExtraCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extra certificate o k response has a 4xx status code +func (o *DeleteExtraCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete extra certificate o k response has a 5xx status code +func (o *DeleteExtraCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extra certificate o k response a status code equal to that given +func (o *DeleteExtraCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete extra certificate o k response +func (o *DeleteExtraCertificateOK) Code() int { + return 200 +} + func (o *DeleteExtraCertificateOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/extra_certs/{cert_id}][%d] deleteExtraCertificateOK %+v", 200, o.Payload) } + +func (o *DeleteExtraCertificateOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/extra_certs/{cert_id}][%d] deleteExtraCertificateOK %+v", 200, o.Payload) +} + func (o *DeleteExtraCertificateOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -92,7 +128,8 @@ func NewDeleteExtraCertificateNotFound() *DeleteExtraCertificateNotFound { return &DeleteExtraCertificateNotFound{} } -/* DeleteExtraCertificateNotFound describes a response with status code 404, with default header values. +/* +DeleteExtraCertificateNotFound describes a response with status code 404, with default header values. The extra certificate cannot be found. (code: `cert.not_found`) */ @@ -105,9 +142,44 @@ type DeleteExtraCertificateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete extra certificate not found response has a 2xx status code +func (o *DeleteExtraCertificateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete extra certificate not found response has a 3xx status code +func (o *DeleteExtraCertificateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete extra certificate not found response has a 4xx status code +func (o *DeleteExtraCertificateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete extra certificate not found response has a 5xx status code +func (o *DeleteExtraCertificateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete extra certificate not found response a status code equal to that given +func (o *DeleteExtraCertificateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete extra certificate not found response +func (o *DeleteExtraCertificateNotFound) Code() int { + return 404 +} + func (o *DeleteExtraCertificateNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/extra_certs/{cert_id}][%d] deleteExtraCertificateNotFound %+v", 404, o.Payload) } + +func (o *DeleteExtraCertificateNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/extra_certs/{cert_id}][%d] deleteExtraCertificateNotFound %+v", 404, o.Payload) +} + func (o *DeleteExtraCertificateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform/get_extra_certificate_parameters.go b/pkg/client/platform/get_extra_certificate_parameters.go index 92666456..4cf2881d 100644 --- a/pkg/client/platform/get_extra_certificate_parameters.go +++ b/pkg/client/platform/get_extra_certificate_parameters.go @@ -69,10 +69,12 @@ func NewGetExtraCertificateParamsWithHTTPClient(client *http.Client) *GetExtraCe } } -/* GetExtraCertificateParams contains all the parameters to send to the API endpoint - for the get extra certificate operation. +/* +GetExtraCertificateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get extra certificate operation. + + Typically these are written to a http.Request. */ type GetExtraCertificateParams struct { diff --git a/pkg/client/platform/get_extra_certificate_responses.go b/pkg/client/platform/get_extra_certificate_responses.go index 722c3050..51f27975 100644 --- a/pkg/client/platform/get_extra_certificate_responses.go +++ b/pkg/client/platform/get_extra_certificate_responses.go @@ -62,7 +62,8 @@ func NewGetExtraCertificateOK() *GetExtraCertificateOK { return &GetExtraCertificateOK{} } -/* GetExtraCertificateOK describes a response with status code 200, with default header values. +/* +GetExtraCertificateOK describes a response with status code 200, with default header values. Extra certificate public chain if exists */ @@ -70,9 +71,44 @@ type GetExtraCertificateOK struct { Payload *models.PublicCertChain } +// IsSuccess returns true when this get extra certificate o k response has a 2xx status code +func (o *GetExtraCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get extra certificate o k response has a 3xx status code +func (o *GetExtraCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get extra certificate o k response has a 4xx status code +func (o *GetExtraCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get extra certificate o k response has a 5xx status code +func (o *GetExtraCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get extra certificate o k response a status code equal to that given +func (o *GetExtraCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get extra certificate o k response +func (o *GetExtraCertificateOK) Code() int { + return 200 +} + func (o *GetExtraCertificateOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/extra_certs/{cert_id}][%d] getExtraCertificateOK %+v", 200, o.Payload) } + +func (o *GetExtraCertificateOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/extra_certs/{cert_id}][%d] getExtraCertificateOK %+v", 200, o.Payload) +} + func (o *GetExtraCertificateOK) GetPayload() *models.PublicCertChain { return o.Payload } @@ -94,7 +130,8 @@ func NewGetExtraCertificateNotFound() *GetExtraCertificateNotFound { return &GetExtraCertificateNotFound{} } -/* GetExtraCertificateNotFound describes a response with status code 404, with default header values. +/* +GetExtraCertificateNotFound describes a response with status code 404, with default header values. The extra certificate cannot be found. (code: `cert.not_found`) */ @@ -107,9 +144,44 @@ type GetExtraCertificateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get extra certificate not found response has a 2xx status code +func (o *GetExtraCertificateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get extra certificate not found response has a 3xx status code +func (o *GetExtraCertificateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get extra certificate not found response has a 4xx status code +func (o *GetExtraCertificateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get extra certificate not found response has a 5xx status code +func (o *GetExtraCertificateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get extra certificate not found response a status code equal to that given +func (o *GetExtraCertificateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get extra certificate not found response +func (o *GetExtraCertificateNotFound) Code() int { + return 404 +} + func (o *GetExtraCertificateNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/extra_certs/{cert_id}][%d] getExtraCertificateNotFound %+v", 404, o.Payload) } + +func (o *GetExtraCertificateNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/extra_certs/{cert_id}][%d] getExtraCertificateNotFound %+v", 404, o.Payload) +} + func (o *GetExtraCertificateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform/get_extra_certificates_parameters.go b/pkg/client/platform/get_extra_certificates_parameters.go index 1d0ae706..2f188857 100644 --- a/pkg/client/platform/get_extra_certificates_parameters.go +++ b/pkg/client/platform/get_extra_certificates_parameters.go @@ -69,10 +69,12 @@ func NewGetExtraCertificatesParamsWithHTTPClient(client *http.Client) *GetExtraC } } -/* GetExtraCertificatesParams contains all the parameters to send to the API endpoint - for the get extra certificates operation. +/* +GetExtraCertificatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get extra certificates operation. + + Typically these are written to a http.Request. */ type GetExtraCertificatesParams struct { timeout time.Duration diff --git a/pkg/client/platform/get_extra_certificates_responses.go b/pkg/client/platform/get_extra_certificates_responses.go index ed889339..cf055217 100644 --- a/pkg/client/platform/get_extra_certificates_responses.go +++ b/pkg/client/platform/get_extra_certificates_responses.go @@ -56,7 +56,8 @@ func NewGetExtraCertificatesOK() *GetExtraCertificatesOK { return &GetExtraCertificatesOK{} } -/* GetExtraCertificatesOK describes a response with status code 200, with default header values. +/* +GetExtraCertificatesOK describes a response with status code 200, with default header values. The collection of all available extra certificates public chains */ @@ -64,9 +65,44 @@ type GetExtraCertificatesOK struct { Payload *models.PublicCertChainCollection } +// IsSuccess returns true when this get extra certificates o k response has a 2xx status code +func (o *GetExtraCertificatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get extra certificates o k response has a 3xx status code +func (o *GetExtraCertificatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get extra certificates o k response has a 4xx status code +func (o *GetExtraCertificatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get extra certificates o k response has a 5xx status code +func (o *GetExtraCertificatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get extra certificates o k response a status code equal to that given +func (o *GetExtraCertificatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get extra certificates o k response +func (o *GetExtraCertificatesOK) Code() int { + return 200 +} + func (o *GetExtraCertificatesOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/extra_certs][%d] getExtraCertificatesOK %+v", 200, o.Payload) } + +func (o *GetExtraCertificatesOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/extra_certs][%d] getExtraCertificatesOK %+v", 200, o.Payload) +} + func (o *GetExtraCertificatesOK) GetPayload() *models.PublicCertChainCollection { return o.Payload } diff --git a/pkg/client/platform/get_platform_parameters.go b/pkg/client/platform/get_platform_parameters.go index 1a735c05..7125d1cf 100644 --- a/pkg/client/platform/get_platform_parameters.go +++ b/pkg/client/platform/get_platform_parameters.go @@ -69,10 +69,12 @@ func NewGetPlatformParamsWithHTTPClient(client *http.Client) *GetPlatformParams } } -/* GetPlatformParams contains all the parameters to send to the API endpoint - for the get platform operation. +/* +GetPlatformParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get platform operation. + + Typically these are written to a http.Request. */ type GetPlatformParams struct { timeout time.Duration diff --git a/pkg/client/platform/get_platform_responses.go b/pkg/client/platform/get_platform_responses.go index b9738af3..0e25bbb4 100644 --- a/pkg/client/platform/get_platform_responses.go +++ b/pkg/client/platform/get_platform_responses.go @@ -56,7 +56,8 @@ func NewGetPlatformOK() *GetPlatformOK { return &GetPlatformOK{} } -/* GetPlatformOK describes a response with status code 200, with default header values. +/* +GetPlatformOK describes a response with status code 200, with default header values. The platform information is retrieved. */ @@ -64,9 +65,44 @@ type GetPlatformOK struct { Payload *models.PlatformInfo } +// IsSuccess returns true when this get platform o k response has a 2xx status code +func (o *GetPlatformOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get platform o k response has a 3xx status code +func (o *GetPlatformOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get platform o k response has a 4xx status code +func (o *GetPlatformOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get platform o k response has a 5xx status code +func (o *GetPlatformOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get platform o k response a status code equal to that given +func (o *GetPlatformOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get platform o k response +func (o *GetPlatformOK) Code() int { + return 200 +} + func (o *GetPlatformOK) Error() string { return fmt.Sprintf("[GET /platform][%d] getPlatformOK %+v", 200, o.Payload) } + +func (o *GetPlatformOK) String() string { + return fmt.Sprintf("[GET /platform][%d] getPlatformOK %+v", 200, o.Payload) +} + func (o *GetPlatformOK) GetPayload() *models.PlatformInfo { return o.Payload } diff --git a/pkg/client/platform/platform_client.go b/pkg/client/platform/platform_client.go index 013f16e2..c6201af0 100644 --- a/pkg/client/platform/platform_client.go +++ b/pkg/client/platform/platform_client.go @@ -61,9 +61,9 @@ type ClientService interface { } /* - DeleteExtraCertificate deletes extra certificate +DeleteExtraCertificate deletes extra certificate - Delete an extra certificate. +Delete an extra certificate. */ func (a *Client) DeleteExtraCertificate(params *DeleteExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtraCertificateOK, error) { // TODO: Validate the params before sending @@ -102,9 +102,9 @@ func (a *Client) DeleteExtraCertificate(params *DeleteExtraCertificateParams, au } /* - GetExtraCertificate reads extra certificate +GetExtraCertificate reads extra certificate - Read an extra certificate. +Read an extra certificate. */ func (a *Client) GetExtraCertificate(params *GetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificateOK, error) { // TODO: Validate the params before sending @@ -143,9 +143,9 @@ func (a *Client) GetExtraCertificate(params *GetExtraCertificateParams, authInfo } /* - GetExtraCertificates lists extra certificates +GetExtraCertificates lists extra certificates - List all of the extra certificates. +List all of the extra certificates. */ func (a *Client) GetExtraCertificates(params *GetExtraCertificatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificatesOK, error) { // TODO: Validate the params before sending @@ -184,9 +184,9 @@ func (a *Client) GetExtraCertificates(params *GetExtraCertificatesParams, authIn } /* - GetPlatform gets platform info +GetPlatform gets platform info - Retrieves information about the active platform. +Retrieves information about the active platform. */ func (a *Client) GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlatformOK, error) { // TODO: Validate the params before sending @@ -225,9 +225,9 @@ func (a *Client) GetPlatform(params *GetPlatformParams, authInfo runtime.ClientA } /* - SetExtraCertificate updates extra certificate +SetExtraCertificate updates extra certificate - Add or update an extra certificate. +Add or update an extra certificate. */ func (a *Client) SetExtraCertificate(params *SetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetExtraCertificateOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform/set_extra_certificate_parameters.go b/pkg/client/platform/set_extra_certificate_parameters.go index 25978496..6c617f7a 100644 --- a/pkg/client/platform/set_extra_certificate_parameters.go +++ b/pkg/client/platform/set_extra_certificate_parameters.go @@ -69,10 +69,12 @@ func NewSetExtraCertificateParamsWithHTTPClient(client *http.Client) *SetExtraCe } } -/* SetExtraCertificateParams contains all the parameters to send to the API endpoint - for the set extra certificate operation. +/* +SetExtraCertificateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set extra certificate operation. + + Typically these are written to a http.Request. */ type SetExtraCertificateParams struct { diff --git a/pkg/client/platform/set_extra_certificate_responses.go b/pkg/client/platform/set_extra_certificate_responses.go index 58f960b0..29b558ec 100644 --- a/pkg/client/platform/set_extra_certificate_responses.go +++ b/pkg/client/platform/set_extra_certificate_responses.go @@ -62,7 +62,8 @@ func NewSetExtraCertificateOK() *SetExtraCertificateOK { return &SetExtraCertificateOK{} } -/* SetExtraCertificateOK describes a response with status code 200, with default header values. +/* +SetExtraCertificateOK describes a response with status code 200, with default header values. Updates extra certificate under given id */ @@ -70,9 +71,44 @@ type SetExtraCertificateOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this set extra certificate o k response has a 2xx status code +func (o *SetExtraCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set extra certificate o k response has a 3xx status code +func (o *SetExtraCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set extra certificate o k response has a 4xx status code +func (o *SetExtraCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set extra certificate o k response has a 5xx status code +func (o *SetExtraCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set extra certificate o k response a status code equal to that given +func (o *SetExtraCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set extra certificate o k response +func (o *SetExtraCertificateOK) Code() int { + return 200 +} + func (o *SetExtraCertificateOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/extra_certs/{cert_id}][%d] setExtraCertificateOK %+v", 200, o.Payload) } + +func (o *SetExtraCertificateOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/extra_certs/{cert_id}][%d] setExtraCertificateOK %+v", 200, o.Payload) +} + func (o *SetExtraCertificateOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -92,7 +128,8 @@ func NewSetExtraCertificateBadRequest() *SetExtraCertificateBadRequest { return &SetExtraCertificateBadRequest{} } -/* SetExtraCertificateBadRequest describes a response with status code 400, with default header values. +/* +SetExtraCertificateBadRequest describes a response with status code 400, with default header values. Certificate uses unknown cryptographic algorithm. (code: `cert.unknown_cert_algorithm`) */ @@ -105,9 +142,44 @@ type SetExtraCertificateBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set extra certificate bad request response has a 2xx status code +func (o *SetExtraCertificateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set extra certificate bad request response has a 3xx status code +func (o *SetExtraCertificateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set extra certificate bad request response has a 4xx status code +func (o *SetExtraCertificateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set extra certificate bad request response has a 5xx status code +func (o *SetExtraCertificateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set extra certificate bad request response a status code equal to that given +func (o *SetExtraCertificateBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set extra certificate bad request response +func (o *SetExtraCertificateBadRequest) Code() int { + return 400 +} + func (o *SetExtraCertificateBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/extra_certs/{cert_id}][%d] setExtraCertificateBadRequest %+v", 400, o.Payload) } + +func (o *SetExtraCertificateBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/extra_certs/{cert_id}][%d] setExtraCertificateBadRequest %+v", 400, o.Payload) +} + func (o *SetExtraCertificateBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_instances/create_instance_configuration_parameters.go b/pkg/client/platform_configuration_instances/create_instance_configuration_parameters.go index 1c27b757..e2404fc4 100644 --- a/pkg/client/platform_configuration_instances/create_instance_configuration_parameters.go +++ b/pkg/client/platform_configuration_instances/create_instance_configuration_parameters.go @@ -71,10 +71,12 @@ func NewCreateInstanceConfigurationParamsWithHTTPClient(client *http.Client) *Cr } } -/* CreateInstanceConfigurationParams contains all the parameters to send to the API endpoint - for the create instance configuration operation. +/* +CreateInstanceConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create instance configuration operation. + + Typically these are written to a http.Request. */ type CreateInstanceConfigurationParams struct { diff --git a/pkg/client/platform_configuration_instances/create_instance_configuration_responses.go b/pkg/client/platform_configuration_instances/create_instance_configuration_responses.go index 3f59cbe3..b8422936 100644 --- a/pkg/client/platform_configuration_instances/create_instance_configuration_responses.go +++ b/pkg/client/platform_configuration_instances/create_instance_configuration_responses.go @@ -74,7 +74,8 @@ func NewCreateInstanceConfigurationCreated() *CreateInstanceConfigurationCreated return &CreateInstanceConfigurationCreated{} } -/* CreateInstanceConfigurationCreated describes a response with status code 201, with default header values. +/* +CreateInstanceConfigurationCreated describes a response with status code 201, with default header values. Instance Configuration added with the auto generated ID returned */ @@ -82,9 +83,44 @@ type CreateInstanceConfigurationCreated struct { Payload *models.IDResponse } +// IsSuccess returns true when this create instance configuration created response has a 2xx status code +func (o *CreateInstanceConfigurationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create instance configuration created response has a 3xx status code +func (o *CreateInstanceConfigurationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create instance configuration created response has a 4xx status code +func (o *CreateInstanceConfigurationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create instance configuration created response has a 5xx status code +func (o *CreateInstanceConfigurationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create instance configuration created response a status code equal to that given +func (o *CreateInstanceConfigurationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create instance configuration created response +func (o *CreateInstanceConfigurationCreated) Code() int { + return 201 +} + func (o *CreateInstanceConfigurationCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationCreated %+v", 201, o.Payload) } + +func (o *CreateInstanceConfigurationCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationCreated %+v", 201, o.Payload) +} + func (o *CreateInstanceConfigurationCreated) GetPayload() *models.IDResponse { return o.Payload } @@ -106,7 +142,8 @@ func NewCreateInstanceConfigurationBadRequest() *CreateInstanceConfigurationBadR return &CreateInstanceConfigurationBadRequest{} } -/* CreateInstanceConfigurationBadRequest describes a response with status code 400, with default header values. +/* +CreateInstanceConfigurationBadRequest describes a response with status code 400, with default header values. cluster_type in the InstanceConfiguration model is invalid (code: 'configuration.invalid_cluster_type') or the discrete_sizes in the InstanceConfiguration model is invalid (code: 'configuration.invalid_discrete_sizes') or the metadata in the InstanceConfiguration model has empty keys or values (code: 'configuration.bad_meta_data') */ @@ -114,9 +151,44 @@ type CreateInstanceConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create instance configuration bad request response has a 2xx status code +func (o *CreateInstanceConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create instance configuration bad request response has a 3xx status code +func (o *CreateInstanceConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create instance configuration bad request response has a 4xx status code +func (o *CreateInstanceConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create instance configuration bad request response has a 5xx status code +func (o *CreateInstanceConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create instance configuration bad request response a status code equal to that given +func (o *CreateInstanceConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create instance configuration bad request response +func (o *CreateInstanceConfigurationBadRequest) Code() int { + return 400 +} + func (o *CreateInstanceConfigurationBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *CreateInstanceConfigurationBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *CreateInstanceConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -138,7 +210,8 @@ func NewCreateInstanceConfigurationForbidden() *CreateInstanceConfigurationForbi return &CreateInstanceConfigurationForbidden{} } -/* CreateInstanceConfigurationForbidden describes a response with status code 403, with default header values. +/* +CreateInstanceConfigurationForbidden describes a response with status code 403, with default header values. system_owned or deleted_on cannot be set externally (code: 'configuration.system_owned') */ @@ -146,9 +219,44 @@ type CreateInstanceConfigurationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create instance configuration forbidden response has a 2xx status code +func (o *CreateInstanceConfigurationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create instance configuration forbidden response has a 3xx status code +func (o *CreateInstanceConfigurationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create instance configuration forbidden response has a 4xx status code +func (o *CreateInstanceConfigurationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this create instance configuration forbidden response has a 5xx status code +func (o *CreateInstanceConfigurationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this create instance configuration forbidden response a status code equal to that given +func (o *CreateInstanceConfigurationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the create instance configuration forbidden response +func (o *CreateInstanceConfigurationForbidden) Code() int { + return 403 +} + func (o *CreateInstanceConfigurationForbidden) Error() string { return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationForbidden %+v", 403, o.Payload) } + +func (o *CreateInstanceConfigurationForbidden) String() string { + return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationForbidden %+v", 403, o.Payload) +} + func (o *CreateInstanceConfigurationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -170,7 +278,8 @@ func NewCreateInstanceConfigurationRetryWith() *CreateInstanceConfigurationRetry return &CreateInstanceConfigurationRetryWith{} } -/* CreateInstanceConfigurationRetryWith describes a response with status code 449, with default header values. +/* +CreateInstanceConfigurationRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -178,9 +287,44 @@ type CreateInstanceConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create instance configuration retry with response has a 2xx status code +func (o *CreateInstanceConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create instance configuration retry with response has a 3xx status code +func (o *CreateInstanceConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create instance configuration retry with response has a 4xx status code +func (o *CreateInstanceConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create instance configuration retry with response has a 5xx status code +func (o *CreateInstanceConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create instance configuration retry with response a status code equal to that given +func (o *CreateInstanceConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create instance configuration retry with response +func (o *CreateInstanceConfigurationRetryWith) Code() int { + return 449 +} + func (o *CreateInstanceConfigurationRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *CreateInstanceConfigurationRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/instances][%d] createInstanceConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *CreateInstanceConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_instances/delete_instance_configuration_parameters.go b/pkg/client/platform_configuration_instances/delete_instance_configuration_parameters.go index 110acf99..8a0715ec 100644 --- a/pkg/client/platform_configuration_instances/delete_instance_configuration_parameters.go +++ b/pkg/client/platform_configuration_instances/delete_instance_configuration_parameters.go @@ -70,10 +70,12 @@ func NewDeleteInstanceConfigurationParamsWithHTTPClient(client *http.Client) *De } } -/* DeleteInstanceConfigurationParams contains all the parameters to send to the API endpoint - for the delete instance configuration operation. +/* +DeleteInstanceConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete instance configuration operation. + + Typically these are written to a http.Request. */ type DeleteInstanceConfigurationParams struct { diff --git a/pkg/client/platform_configuration_instances/delete_instance_configuration_responses.go b/pkg/client/platform_configuration_instances/delete_instance_configuration_responses.go index 2fe648a3..df05f627 100644 --- a/pkg/client/platform_configuration_instances/delete_instance_configuration_responses.go +++ b/pkg/client/platform_configuration_instances/delete_instance_configuration_responses.go @@ -74,7 +74,8 @@ func NewDeleteInstanceConfigurationOK() *DeleteInstanceConfigurationOK { return &DeleteInstanceConfigurationOK{} } -/* DeleteInstanceConfigurationOK describes a response with status code 200, with default header values. +/* +DeleteInstanceConfigurationOK describes a response with status code 200, with default header values. Instance configuration specified by {id} was deleted */ @@ -82,9 +83,44 @@ type DeleteInstanceConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete instance configuration o k response has a 2xx status code +func (o *DeleteInstanceConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete instance configuration o k response has a 3xx status code +func (o *DeleteInstanceConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete instance configuration o k response has a 4xx status code +func (o *DeleteInstanceConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete instance configuration o k response has a 5xx status code +func (o *DeleteInstanceConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete instance configuration o k response a status code equal to that given +func (o *DeleteInstanceConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete instance configuration o k response +func (o *DeleteInstanceConfigurationOK) Code() int { + return 200 +} + func (o *DeleteInstanceConfigurationOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationOK %+v", 200, o.Payload) } + +func (o *DeleteInstanceConfigurationOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationOK %+v", 200, o.Payload) +} + func (o *DeleteInstanceConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteInstanceConfigurationForbidden() *DeleteInstanceConfigurationForbi return &DeleteInstanceConfigurationForbidden{} } -/* DeleteInstanceConfigurationForbidden describes a response with status code 403, with default header values. +/* +DeleteInstanceConfigurationForbidden describes a response with status code 403, with default header values. Instance configuration specified by {id} is system owned (code: 'configuration.system_owned') */ @@ -112,9 +149,44 @@ type DeleteInstanceConfigurationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete instance configuration forbidden response has a 2xx status code +func (o *DeleteInstanceConfigurationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete instance configuration forbidden response has a 3xx status code +func (o *DeleteInstanceConfigurationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete instance configuration forbidden response has a 4xx status code +func (o *DeleteInstanceConfigurationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete instance configuration forbidden response has a 5xx status code +func (o *DeleteInstanceConfigurationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this delete instance configuration forbidden response a status code equal to that given +func (o *DeleteInstanceConfigurationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the delete instance configuration forbidden response +func (o *DeleteInstanceConfigurationForbidden) Code() int { + return 403 +} + func (o *DeleteInstanceConfigurationForbidden) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationForbidden %+v", 403, o.Payload) } + +func (o *DeleteInstanceConfigurationForbidden) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationForbidden %+v", 403, o.Payload) +} + func (o *DeleteInstanceConfigurationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -136,7 +208,8 @@ func NewDeleteInstanceConfigurationNotFound() *DeleteInstanceConfigurationNotFou return &DeleteInstanceConfigurationNotFound{} } -/* DeleteInstanceConfigurationNotFound describes a response with status code 404, with default header values. +/* +DeleteInstanceConfigurationNotFound describes a response with status code 404, with default header values. Instance configuration specified by {id} cannot be found or the operation failed (code: 'configuration.instance_configuration_not_found') */ @@ -144,9 +217,44 @@ type DeleteInstanceConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete instance configuration not found response has a 2xx status code +func (o *DeleteInstanceConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete instance configuration not found response has a 3xx status code +func (o *DeleteInstanceConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete instance configuration not found response has a 4xx status code +func (o *DeleteInstanceConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete instance configuration not found response has a 5xx status code +func (o *DeleteInstanceConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete instance configuration not found response a status code equal to that given +func (o *DeleteInstanceConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete instance configuration not found response +func (o *DeleteInstanceConfigurationNotFound) Code() int { + return 404 +} + func (o *DeleteInstanceConfigurationNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationNotFound %+v", 404, o.Payload) } + +func (o *DeleteInstanceConfigurationNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationNotFound %+v", 404, o.Payload) +} + func (o *DeleteInstanceConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -168,7 +276,8 @@ func NewDeleteInstanceConfigurationRetryWith() *DeleteInstanceConfigurationRetry return &DeleteInstanceConfigurationRetryWith{} } -/* DeleteInstanceConfigurationRetryWith describes a response with status code 449, with default header values. +/* +DeleteInstanceConfigurationRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -176,9 +285,44 @@ type DeleteInstanceConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete instance configuration retry with response has a 2xx status code +func (o *DeleteInstanceConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete instance configuration retry with response has a 3xx status code +func (o *DeleteInstanceConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete instance configuration retry with response has a 4xx status code +func (o *DeleteInstanceConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete instance configuration retry with response has a 5xx status code +func (o *DeleteInstanceConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete instance configuration retry with response a status code equal to that given +func (o *DeleteInstanceConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete instance configuration retry with response +func (o *DeleteInstanceConfigurationRetryWith) Code() int { + return 449 +} + func (o *DeleteInstanceConfigurationRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *DeleteInstanceConfigurationRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/instances/{id}][%d] deleteInstanceConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *DeleteInstanceConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_instances/get_instance_configuration_parameters.go b/pkg/client/platform_configuration_instances/get_instance_configuration_parameters.go index 6ae4a89f..60f6b594 100644 --- a/pkg/client/platform_configuration_instances/get_instance_configuration_parameters.go +++ b/pkg/client/platform_configuration_instances/get_instance_configuration_parameters.go @@ -70,10 +70,12 @@ func NewGetInstanceConfigurationParamsWithHTTPClient(client *http.Client) *GetIn } } -/* GetInstanceConfigurationParams contains all the parameters to send to the API endpoint - for the get instance configuration operation. +/* +GetInstanceConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get instance configuration operation. + + Typically these are written to a http.Request. */ type GetInstanceConfigurationParams struct { diff --git a/pkg/client/platform_configuration_instances/get_instance_configuration_responses.go b/pkg/client/platform_configuration_instances/get_instance_configuration_responses.go index 6ae7c95a..8defc45c 100644 --- a/pkg/client/platform_configuration_instances/get_instance_configuration_responses.go +++ b/pkg/client/platform_configuration_instances/get_instance_configuration_responses.go @@ -62,7 +62,8 @@ func NewGetInstanceConfigurationOK() *GetInstanceConfigurationOK { return &GetInstanceConfigurationOK{} } -/* GetInstanceConfigurationOK describes a response with status code 200, with default header values. +/* +GetInstanceConfigurationOK describes a response with status code 200, with default header values. An InstanceConfiguration */ @@ -70,9 +71,44 @@ type GetInstanceConfigurationOK struct { Payload *models.InstanceConfiguration } +// IsSuccess returns true when this get instance configuration o k response has a 2xx status code +func (o *GetInstanceConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get instance configuration o k response has a 3xx status code +func (o *GetInstanceConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get instance configuration o k response has a 4xx status code +func (o *GetInstanceConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get instance configuration o k response has a 5xx status code +func (o *GetInstanceConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get instance configuration o k response a status code equal to that given +func (o *GetInstanceConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get instance configuration o k response +func (o *GetInstanceConfigurationOK) Code() int { + return 200 +} + func (o *GetInstanceConfigurationOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/instances/{id}][%d] getInstanceConfigurationOK %+v", 200, o.Payload) } + +func (o *GetInstanceConfigurationOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/instances/{id}][%d] getInstanceConfigurationOK %+v", 200, o.Payload) +} + func (o *GetInstanceConfigurationOK) GetPayload() *models.InstanceConfiguration { return o.Payload } @@ -94,7 +130,8 @@ func NewGetInstanceConfigurationNotFound() *GetInstanceConfigurationNotFound { return &GetInstanceConfigurationNotFound{} } -/* GetInstanceConfigurationNotFound describes a response with status code 404, with default header values. +/* +GetInstanceConfigurationNotFound describes a response with status code 404, with default header values. Instance configuration specified by {id} cannot be found (code: 'configuration.instance_configuration_not_found') */ @@ -102,9 +139,44 @@ type GetInstanceConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get instance configuration not found response has a 2xx status code +func (o *GetInstanceConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get instance configuration not found response has a 3xx status code +func (o *GetInstanceConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get instance configuration not found response has a 4xx status code +func (o *GetInstanceConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get instance configuration not found response has a 5xx status code +func (o *GetInstanceConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get instance configuration not found response a status code equal to that given +func (o *GetInstanceConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get instance configuration not found response +func (o *GetInstanceConfigurationNotFound) Code() int { + return 404 +} + func (o *GetInstanceConfigurationNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/instances/{id}][%d] getInstanceConfigurationNotFound %+v", 404, o.Payload) } + +func (o *GetInstanceConfigurationNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/instances/{id}][%d] getInstanceConfigurationNotFound %+v", 404, o.Payload) +} + func (o *GetInstanceConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_instances/get_instance_configurations_parameters.go b/pkg/client/platform_configuration_instances/get_instance_configurations_parameters.go index 28af39f3..72ecedf0 100644 --- a/pkg/client/platform_configuration_instances/get_instance_configurations_parameters.go +++ b/pkg/client/platform_configuration_instances/get_instance_configurations_parameters.go @@ -70,10 +70,12 @@ func NewGetInstanceConfigurationsParamsWithHTTPClient(client *http.Client) *GetI } } -/* GetInstanceConfigurationsParams contains all the parameters to send to the API endpoint - for the get instance configurations operation. +/* +GetInstanceConfigurationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get instance configurations operation. + + Typically these are written to a http.Request. */ type GetInstanceConfigurationsParams struct { diff --git a/pkg/client/platform_configuration_instances/get_instance_configurations_responses.go b/pkg/client/platform_configuration_instances/get_instance_configurations_responses.go index ef3a26f6..5fffc6c0 100644 --- a/pkg/client/platform_configuration_instances/get_instance_configurations_responses.go +++ b/pkg/client/platform_configuration_instances/get_instance_configurations_responses.go @@ -56,7 +56,8 @@ func NewGetInstanceConfigurationsOK() *GetInstanceConfigurationsOK { return &GetInstanceConfigurationsOK{} } -/* GetInstanceConfigurationsOK describes a response with status code 200, with default header values. +/* +GetInstanceConfigurationsOK describes a response with status code 200, with default header values. A InstanceConfiguration */ @@ -64,9 +65,44 @@ type GetInstanceConfigurationsOK struct { Payload []*models.InstanceConfiguration } +// IsSuccess returns true when this get instance configurations o k response has a 2xx status code +func (o *GetInstanceConfigurationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get instance configurations o k response has a 3xx status code +func (o *GetInstanceConfigurationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get instance configurations o k response has a 4xx status code +func (o *GetInstanceConfigurationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get instance configurations o k response has a 5xx status code +func (o *GetInstanceConfigurationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get instance configurations o k response a status code equal to that given +func (o *GetInstanceConfigurationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get instance configurations o k response +func (o *GetInstanceConfigurationsOK) Code() int { + return 200 +} + func (o *GetInstanceConfigurationsOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/instances][%d] getInstanceConfigurationsOK %+v", 200, o.Payload) } + +func (o *GetInstanceConfigurationsOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/instances][%d] getInstanceConfigurationsOK %+v", 200, o.Payload) +} + func (o *GetInstanceConfigurationsOK) GetPayload() []*models.InstanceConfiguration { return o.Payload } diff --git a/pkg/client/platform_configuration_instances/platform_configuration_instances_client.go b/pkg/client/platform_configuration_instances/platform_configuration_instances_client.go index 130aa1e0..96e99afd 100644 --- a/pkg/client/platform_configuration_instances/platform_configuration_instances_client.go +++ b/pkg/client/platform_configuration_instances/platform_configuration_instances_client.go @@ -61,9 +61,9 @@ type ClientService interface { } /* - CreateInstanceConfiguration creates instance configuration +CreateInstanceConfiguration creates instance configuration - Create instance configuration and return the auto-generated ID. +Create instance configuration and return the auto-generated ID. */ func (a *Client) CreateInstanceConfiguration(params *CreateInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInstanceConfigurationCreated, error) { // TODO: Validate the params before sending @@ -102,9 +102,9 @@ func (a *Client) CreateInstanceConfiguration(params *CreateInstanceConfiguration } /* - DeleteInstanceConfiguration deletes a instance configuration +DeleteInstanceConfiguration deletes a instance configuration - Delete the instance configuration with the given id. +Delete the instance configuration with the given id. */ func (a *Client) DeleteInstanceConfiguration(params *DeleteInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInstanceConfigurationOK, error) { // TODO: Validate the params before sending @@ -143,9 +143,9 @@ func (a *Client) DeleteInstanceConfiguration(params *DeleteInstanceConfiguration } /* - GetInstanceConfiguration gets instance configuration +GetInstanceConfiguration gets instance configuration - Get instance configuration by id. +Get instance configuration by id. */ func (a *Client) GetInstanceConfiguration(params *GetInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationOK, error) { // TODO: Validate the params before sending @@ -184,9 +184,9 @@ func (a *Client) GetInstanceConfiguration(params *GetInstanceConfigurationParams } /* - GetInstanceConfigurations gets instance configurations +GetInstanceConfigurations gets instance configurations - Get instance configurations. +Get instance configurations. */ func (a *Client) GetInstanceConfigurations(params *GetInstanceConfigurationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationsOK, error) { // TODO: Validate the params before sending @@ -225,9 +225,9 @@ func (a *Client) GetInstanceConfigurations(params *GetInstanceConfigurationsPara } /* - SetInstanceConfiguration sets instance configuration +SetInstanceConfiguration sets instance configuration - Creates or updates an instance configuration. +Creates or updates an instance configuration. */ func (a *Client) SetInstanceConfiguration(params *SetInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetInstanceConfigurationOK, *SetInstanceConfigurationCreated, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_instances/set_instance_configuration_parameters.go b/pkg/client/platform_configuration_instances/set_instance_configuration_parameters.go index c2cfa90e..5605b173 100644 --- a/pkg/client/platform_configuration_instances/set_instance_configuration_parameters.go +++ b/pkg/client/platform_configuration_instances/set_instance_configuration_parameters.go @@ -72,10 +72,12 @@ func NewSetInstanceConfigurationParamsWithHTTPClient(client *http.Client) *SetIn } } -/* SetInstanceConfigurationParams contains all the parameters to send to the API endpoint - for the set instance configuration operation. +/* +SetInstanceConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set instance configuration operation. + + Typically these are written to a http.Request. */ type SetInstanceConfigurationParams struct { diff --git a/pkg/client/platform_configuration_instances/set_instance_configuration_responses.go b/pkg/client/platform_configuration_instances/set_instance_configuration_responses.go index 2117cb53..d0157eb1 100644 --- a/pkg/client/platform_configuration_instances/set_instance_configuration_responses.go +++ b/pkg/client/platform_configuration_instances/set_instance_configuration_responses.go @@ -86,7 +86,8 @@ func NewSetInstanceConfigurationOK() *SetInstanceConfigurationOK { return &SetInstanceConfigurationOK{} } -/* SetInstanceConfigurationOK describes a response with status code 200, with default header values. +/* +SetInstanceConfigurationOK describes a response with status code 200, with default header values. The instance configuration was updated successfully. */ @@ -94,9 +95,44 @@ type SetInstanceConfigurationOK struct { Payload *models.IDResponse } +// IsSuccess returns true when this set instance configuration o k response has a 2xx status code +func (o *SetInstanceConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set instance configuration o k response has a 3xx status code +func (o *SetInstanceConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration o k response has a 4xx status code +func (o *SetInstanceConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set instance configuration o k response has a 5xx status code +func (o *SetInstanceConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration o k response a status code equal to that given +func (o *SetInstanceConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set instance configuration o k response +func (o *SetInstanceConfigurationOK) Code() int { + return 200 +} + func (o *SetInstanceConfigurationOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationOK %+v", 200, o.Payload) } + +func (o *SetInstanceConfigurationOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationOK %+v", 200, o.Payload) +} + func (o *SetInstanceConfigurationOK) GetPayload() *models.IDResponse { return o.Payload } @@ -118,7 +154,8 @@ func NewSetInstanceConfigurationCreated() *SetInstanceConfigurationCreated { return &SetInstanceConfigurationCreated{} } -/* SetInstanceConfigurationCreated describes a response with status code 201, with default header values. +/* +SetInstanceConfigurationCreated describes a response with status code 201, with default header values. The instance configuration was created successfully. */ @@ -126,9 +163,44 @@ type SetInstanceConfigurationCreated struct { Payload *models.IDResponse } +// IsSuccess returns true when this set instance configuration created response has a 2xx status code +func (o *SetInstanceConfigurationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set instance configuration created response has a 3xx status code +func (o *SetInstanceConfigurationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration created response has a 4xx status code +func (o *SetInstanceConfigurationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this set instance configuration created response has a 5xx status code +func (o *SetInstanceConfigurationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration created response a status code equal to that given +func (o *SetInstanceConfigurationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the set instance configuration created response +func (o *SetInstanceConfigurationCreated) Code() int { + return 201 +} + func (o *SetInstanceConfigurationCreated) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationCreated %+v", 201, o.Payload) } + +func (o *SetInstanceConfigurationCreated) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationCreated %+v", 201, o.Payload) +} + func (o *SetInstanceConfigurationCreated) GetPayload() *models.IDResponse { return o.Payload } @@ -150,7 +222,8 @@ func NewSetInstanceConfigurationBadRequest() *SetInstanceConfigurationBadRequest return &SetInstanceConfigurationBadRequest{} } -/* SetInstanceConfigurationBadRequest describes a response with status code 400, with default header values. +/* +SetInstanceConfigurationBadRequest describes a response with status code 400, with default header values. cluster_type in the InstanceConfiguration model is invalid (code: 'configuration.invalid_cluster_type') or the ZooKeeper operation failed due to bad version, etc. (code: 'configuration.instance_configuration_update_failed') or the id in the InstanceConfiguration model is reserved/prohibited (code: 'configuration.configuration_id_reserved') or the discrete_sizes in the InstanceConfiguration model is invalid (code: 'configuration.invalid_discrete_sizes') or the metadata in the InstanceConfiguration model has empty keys or values (code: 'configuration.bad_meta_data') */ @@ -158,9 +231,44 @@ type SetInstanceConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance configuration bad request response has a 2xx status code +func (o *SetInstanceConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance configuration bad request response has a 3xx status code +func (o *SetInstanceConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration bad request response has a 4xx status code +func (o *SetInstanceConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance configuration bad request response has a 5xx status code +func (o *SetInstanceConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration bad request response a status code equal to that given +func (o *SetInstanceConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set instance configuration bad request response +func (o *SetInstanceConfigurationBadRequest) Code() int { + return 400 +} + func (o *SetInstanceConfigurationBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *SetInstanceConfigurationBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *SetInstanceConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -182,7 +290,8 @@ func NewSetInstanceConfigurationForbidden() *SetInstanceConfigurationForbidden { return &SetInstanceConfigurationForbidden{} } -/* SetInstanceConfigurationForbidden describes a response with status code 403, with default header values. +/* +SetInstanceConfigurationForbidden describes a response with status code 403, with default header values. system_owned or deleted_on cannot be set externally (code: 'configuration.system_owned') */ @@ -190,9 +299,44 @@ type SetInstanceConfigurationForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance configuration forbidden response has a 2xx status code +func (o *SetInstanceConfigurationForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance configuration forbidden response has a 3xx status code +func (o *SetInstanceConfigurationForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration forbidden response has a 4xx status code +func (o *SetInstanceConfigurationForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance configuration forbidden response has a 5xx status code +func (o *SetInstanceConfigurationForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration forbidden response a status code equal to that given +func (o *SetInstanceConfigurationForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the set instance configuration forbidden response +func (o *SetInstanceConfigurationForbidden) Code() int { + return 403 +} + func (o *SetInstanceConfigurationForbidden) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationForbidden %+v", 403, o.Payload) } + +func (o *SetInstanceConfigurationForbidden) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationForbidden %+v", 403, o.Payload) +} + func (o *SetInstanceConfigurationForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -214,7 +358,8 @@ func NewSetInstanceConfigurationNotFound() *SetInstanceConfigurationNotFound { return &SetInstanceConfigurationNotFound{} } -/* SetInstanceConfigurationNotFound describes a response with status code 404, with default header values. +/* +SetInstanceConfigurationNotFound describes a response with status code 404, with default header values. Instance configuration specified by {id} cannot be found or the operation failed (code: 'configuration.instance_configuration_not_found') */ @@ -222,9 +367,44 @@ type SetInstanceConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance configuration not found response has a 2xx status code +func (o *SetInstanceConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance configuration not found response has a 3xx status code +func (o *SetInstanceConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration not found response has a 4xx status code +func (o *SetInstanceConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance configuration not found response has a 5xx status code +func (o *SetInstanceConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration not found response a status code equal to that given +func (o *SetInstanceConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set instance configuration not found response +func (o *SetInstanceConfigurationNotFound) Code() int { + return 404 +} + func (o *SetInstanceConfigurationNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationNotFound %+v", 404, o.Payload) } + +func (o *SetInstanceConfigurationNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationNotFound %+v", 404, o.Payload) +} + func (o *SetInstanceConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -246,7 +426,8 @@ func NewSetInstanceConfigurationRetryWith() *SetInstanceConfigurationRetryWith { return &SetInstanceConfigurationRetryWith{} } -/* SetInstanceConfigurationRetryWith describes a response with status code 449, with default header values. +/* +SetInstanceConfigurationRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -254,9 +435,44 @@ type SetInstanceConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set instance configuration retry with response has a 2xx status code +func (o *SetInstanceConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set instance configuration retry with response has a 3xx status code +func (o *SetInstanceConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set instance configuration retry with response has a 4xx status code +func (o *SetInstanceConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set instance configuration retry with response has a 5xx status code +func (o *SetInstanceConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set instance configuration retry with response a status code equal to that given +func (o *SetInstanceConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set instance configuration retry with response +func (o *SetInstanceConfigurationRetryWith) Code() int { + return 449 +} + func (o *SetInstanceConfigurationRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *SetInstanceConfigurationRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/instances/{id}][%d] setInstanceConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *SetInstanceConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_parameters.go b/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_parameters.go index 550f94bd..4f0eabfb 100644 --- a/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_parameters.go +++ b/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_parameters.go @@ -69,10 +69,12 @@ func NewGetDefaultDeploymentDomainNameParamsWithHTTPClient(client *http.Client) } } -/* GetDefaultDeploymentDomainNameParams contains all the parameters to send to the API endpoint - for the get default deployment domain name operation. +/* +GetDefaultDeploymentDomainNameParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get default deployment domain name operation. + + Typically these are written to a http.Request. */ type GetDefaultDeploymentDomainNameParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_responses.go b/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_responses.go index 0a9863a6..c46cef73 100644 --- a/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_responses.go +++ b/pkg/client/platform_configuration_networking/get_default_deployment_domain_name_responses.go @@ -62,7 +62,8 @@ func NewGetDefaultDeploymentDomainNameOK() *GetDefaultDeploymentDomainNameOK { return &GetDefaultDeploymentDomainNameOK{} } -/* GetDefaultDeploymentDomainNameOK describes a response with status code 200, with default header values. +/* +GetDefaultDeploymentDomainNameOK describes a response with status code 200, with default header values. The Deployment Domain Name was successfully retrieved */ @@ -83,9 +84,44 @@ type GetDefaultDeploymentDomainNameOK struct { Payload *models.DeploymentDomainName } +// IsSuccess returns true when this get default deployment domain name o k response has a 2xx status code +func (o *GetDefaultDeploymentDomainNameOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get default deployment domain name o k response has a 3xx status code +func (o *GetDefaultDeploymentDomainNameOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get default deployment domain name o k response has a 4xx status code +func (o *GetDefaultDeploymentDomainNameOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get default deployment domain name o k response has a 5xx status code +func (o *GetDefaultDeploymentDomainNameOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get default deployment domain name o k response a status code equal to that given +func (o *GetDefaultDeploymentDomainNameOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get default deployment domain name o k response +func (o *GetDefaultDeploymentDomainNameOK) Code() int { + return 200 +} + func (o *GetDefaultDeploymentDomainNameOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name][%d] getDefaultDeploymentDomainNameOK %+v", 200, o.Payload) } + +func (o *GetDefaultDeploymentDomainNameOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name][%d] getDefaultDeploymentDomainNameOK %+v", 200, o.Payload) +} + func (o *GetDefaultDeploymentDomainNameOK) GetPayload() *models.DeploymentDomainName { return o.Payload } @@ -128,7 +164,8 @@ func NewGetDefaultDeploymentDomainNameNotFound() *GetDefaultDeploymentDomainName return &GetDefaultDeploymentDomainNameNotFound{} } -/* GetDefaultDeploymentDomainNameNotFound describes a response with status code 404, with default header values. +/* +GetDefaultDeploymentDomainNameNotFound describes a response with status code 404, with default header values. There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`) */ @@ -141,9 +178,44 @@ type GetDefaultDeploymentDomainNameNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get default deployment domain name not found response has a 2xx status code +func (o *GetDefaultDeploymentDomainNameNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get default deployment domain name not found response has a 3xx status code +func (o *GetDefaultDeploymentDomainNameNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get default deployment domain name not found response has a 4xx status code +func (o *GetDefaultDeploymentDomainNameNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get default deployment domain name not found response has a 5xx status code +func (o *GetDefaultDeploymentDomainNameNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get default deployment domain name not found response a status code equal to that given +func (o *GetDefaultDeploymentDomainNameNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get default deployment domain name not found response +func (o *GetDefaultDeploymentDomainNameNotFound) Code() int { + return 404 +} + func (o *GetDefaultDeploymentDomainNameNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name][%d] getDefaultDeploymentDomainNameNotFound %+v", 404, o.Payload) } + +func (o *GetDefaultDeploymentDomainNameNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name][%d] getDefaultDeploymentDomainNameNotFound %+v", 404, o.Payload) +} + func (o *GetDefaultDeploymentDomainNameNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_parameters.go b/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_parameters.go index 8fbcdb5e..d8c39d79 100644 --- a/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_parameters.go +++ b/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_parameters.go @@ -69,10 +69,12 @@ func NewGetResourceKindDeploymentDomainNameParamsWithHTTPClient(client *http.Cli } } -/* GetResourceKindDeploymentDomainNameParams contains all the parameters to send to the API endpoint - for the get resource kind deployment domain name operation. +/* +GetResourceKindDeploymentDomainNameParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get resource kind deployment domain name operation. + + Typically these are written to a http.Request. */ type GetResourceKindDeploymentDomainNameParams struct { diff --git a/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_responses.go b/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_responses.go index 3c65da20..f93a4f45 100644 --- a/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_responses.go +++ b/pkg/client/platform_configuration_networking/get_resource_kind_deployment_domain_name_responses.go @@ -62,7 +62,8 @@ func NewGetResourceKindDeploymentDomainNameOK() *GetResourceKindDeploymentDomain return &GetResourceKindDeploymentDomainNameOK{} } -/* GetResourceKindDeploymentDomainNameOK describes a response with status code 200, with default header values. +/* +GetResourceKindDeploymentDomainNameOK describes a response with status code 200, with default header values. The Deployment Domain Name was successfully retrieved */ @@ -83,9 +84,44 @@ type GetResourceKindDeploymentDomainNameOK struct { Payload *models.DeploymentDomainName } +// IsSuccess returns true when this get resource kind deployment domain name o k response has a 2xx status code +func (o *GetResourceKindDeploymentDomainNameOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get resource kind deployment domain name o k response has a 3xx status code +func (o *GetResourceKindDeploymentDomainNameOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get resource kind deployment domain name o k response has a 4xx status code +func (o *GetResourceKindDeploymentDomainNameOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get resource kind deployment domain name o k response has a 5xx status code +func (o *GetResourceKindDeploymentDomainNameOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get resource kind deployment domain name o k response a status code equal to that given +func (o *GetResourceKindDeploymentDomainNameOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get resource kind deployment domain name o k response +func (o *GetResourceKindDeploymentDomainNameOK) Code() int { + return 200 +} + func (o *GetResourceKindDeploymentDomainNameOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] getResourceKindDeploymentDomainNameOK %+v", 200, o.Payload) } + +func (o *GetResourceKindDeploymentDomainNameOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] getResourceKindDeploymentDomainNameOK %+v", 200, o.Payload) +} + func (o *GetResourceKindDeploymentDomainNameOK) GetPayload() *models.DeploymentDomainName { return o.Payload } @@ -128,7 +164,8 @@ func NewGetResourceKindDeploymentDomainNameNotFound() *GetResourceKindDeployment return &GetResourceKindDeploymentDomainNameNotFound{} } -/* GetResourceKindDeploymentDomainNameNotFound describes a response with status code 404, with default header values. +/* +GetResourceKindDeploymentDomainNameNotFound describes a response with status code 404, with default header values. There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`) */ @@ -141,9 +178,44 @@ type GetResourceKindDeploymentDomainNameNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get resource kind deployment domain name not found response has a 2xx status code +func (o *GetResourceKindDeploymentDomainNameNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get resource kind deployment domain name not found response has a 3xx status code +func (o *GetResourceKindDeploymentDomainNameNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get resource kind deployment domain name not found response has a 4xx status code +func (o *GetResourceKindDeploymentDomainNameNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get resource kind deployment domain name not found response has a 5xx status code +func (o *GetResourceKindDeploymentDomainNameNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get resource kind deployment domain name not found response a status code equal to that given +func (o *GetResourceKindDeploymentDomainNameNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get resource kind deployment domain name not found response +func (o *GetResourceKindDeploymentDomainNameNotFound) Code() int { + return 404 +} + func (o *GetResourceKindDeploymentDomainNameNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] getResourceKindDeploymentDomainNameNotFound %+v", 404, o.Payload) } + +func (o *GetResourceKindDeploymentDomainNameNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] getResourceKindDeploymentDomainNameNotFound %+v", 404, o.Payload) +} + func (o *GetResourceKindDeploymentDomainNameNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_networking/platform_configuration_networking_client.go b/pkg/client/platform_configuration_networking/platform_configuration_networking_client.go index d7e681b4..49aa9b20 100644 --- a/pkg/client/platform_configuration_networking/platform_configuration_networking_client.go +++ b/pkg/client/platform_configuration_networking/platform_configuration_networking_client.go @@ -59,9 +59,9 @@ type ClientService interface { } /* - GetDefaultDeploymentDomainName gets default deployment domain name +GetDefaultDeploymentDomainName gets default deployment domain name - Gets the default Deployment Domain Name configuration value. +Gets the default Deployment Domain Name configuration value. */ func (a *Client) GetDefaultDeploymentDomainName(params *GetDefaultDeploymentDomainNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultDeploymentDomainNameOK, error) { // TODO: Validate the params before sending @@ -100,9 +100,9 @@ func (a *Client) GetDefaultDeploymentDomainName(params *GetDefaultDeploymentDoma } /* - GetResourceKindDeploymentDomainName gets deployment domain name for a resource kind +GetResourceKindDeploymentDomainName gets deployment domain name for a resource kind - Gets Deployment Domain Name configuration value for a resource kind. +Gets Deployment Domain Name configuration value for a resource kind. */ func (a *Client) GetResourceKindDeploymentDomainName(params *GetResourceKindDeploymentDomainNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceKindDeploymentDomainNameOK, error) { // TODO: Validate the params before sending @@ -141,9 +141,9 @@ func (a *Client) GetResourceKindDeploymentDomainName(params *GetResourceKindDepl } /* - SetDefaultDeploymentDomainName sets default deployment domain name +SetDefaultDeploymentDomainName sets default deployment domain name - Saves the default Deployment Domain Name configuration value. +Saves the default Deployment Domain Name configuration value. */ func (a *Client) SetDefaultDeploymentDomainName(params *SetDefaultDeploymentDomainNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDefaultDeploymentDomainNameOK, error) { // TODO: Validate the params before sending @@ -182,9 +182,9 @@ func (a *Client) SetDefaultDeploymentDomainName(params *SetDefaultDeploymentDoma } /* - SetResourceKindDeploymentDomainName sets deployment domain name for a resource kind +SetResourceKindDeploymentDomainName sets deployment domain name for a resource kind - Saves the Deployment Domain Name configuration value for a resource kind. +Saves the Deployment Domain Name configuration value for a resource kind. */ func (a *Client) SetResourceKindDeploymentDomainName(params *SetResourceKindDeploymentDomainNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetResourceKindDeploymentDomainNameOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_parameters.go b/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_parameters.go index b33240d0..c3d08af1 100644 --- a/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_parameters.go +++ b/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_parameters.go @@ -72,10 +72,12 @@ func NewSetDefaultDeploymentDomainNameParamsWithHTTPClient(client *http.Client) } } -/* SetDefaultDeploymentDomainNameParams contains all the parameters to send to the API endpoint - for the set default deployment domain name operation. +/* +SetDefaultDeploymentDomainNameParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set default deployment domain name operation. + + Typically these are written to a http.Request. */ type SetDefaultDeploymentDomainNameParams struct { diff --git a/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_responses.go b/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_responses.go index baaf51b4..f14b88b8 100644 --- a/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_responses.go +++ b/pkg/client/platform_configuration_networking/set_default_deployment_domain_name_responses.go @@ -80,7 +80,8 @@ func NewSetDefaultDeploymentDomainNameOK() *SetDefaultDeploymentDomainNameOK { return &SetDefaultDeploymentDomainNameOK{} } -/* SetDefaultDeploymentDomainNameOK describes a response with status code 200, with default header values. +/* +SetDefaultDeploymentDomainNameOK describes a response with status code 200, with default header values. The Deployment Domain Name was successfully saved. */ @@ -101,9 +102,44 @@ type SetDefaultDeploymentDomainNameOK struct { Payload *models.DeploymentDomainName } +// IsSuccess returns true when this set default deployment domain name o k response has a 2xx status code +func (o *SetDefaultDeploymentDomainNameOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set default deployment domain name o k response has a 3xx status code +func (o *SetDefaultDeploymentDomainNameOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set default deployment domain name o k response has a 4xx status code +func (o *SetDefaultDeploymentDomainNameOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set default deployment domain name o k response has a 5xx status code +func (o *SetDefaultDeploymentDomainNameOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set default deployment domain name o k response a status code equal to that given +func (o *SetDefaultDeploymentDomainNameOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set default deployment domain name o k response +func (o *SetDefaultDeploymentDomainNameOK) Code() int { + return 200 +} + func (o *SetDefaultDeploymentDomainNameOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameOK %+v", 200, o.Payload) } + +func (o *SetDefaultDeploymentDomainNameOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameOK %+v", 200, o.Payload) +} + func (o *SetDefaultDeploymentDomainNameOK) GetPayload() *models.DeploymentDomainName { return o.Payload } @@ -146,7 +182,8 @@ func NewSetDefaultDeploymentDomainNameBadRequest() *SetDefaultDeploymentDomainNa return &SetDefaultDeploymentDomainNameBadRequest{} } -/* SetDefaultDeploymentDomainNameBadRequest describes a response with status code 400, with default header values. +/* +SetDefaultDeploymentDomainNameBadRequest describes a response with status code 400, with default header values. The optimistic locking version format was wrong. (code: `networking.cname.bad_version_format`) */ @@ -159,9 +196,44 @@ type SetDefaultDeploymentDomainNameBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set default deployment domain name bad request response has a 2xx status code +func (o *SetDefaultDeploymentDomainNameBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set default deployment domain name bad request response has a 3xx status code +func (o *SetDefaultDeploymentDomainNameBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set default deployment domain name bad request response has a 4xx status code +func (o *SetDefaultDeploymentDomainNameBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set default deployment domain name bad request response has a 5xx status code +func (o *SetDefaultDeploymentDomainNameBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set default deployment domain name bad request response a status code equal to that given +func (o *SetDefaultDeploymentDomainNameBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set default deployment domain name bad request response +func (o *SetDefaultDeploymentDomainNameBadRequest) Code() int { + return 400 +} + func (o *SetDefaultDeploymentDomainNameBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameBadRequest %+v", 400, o.Payload) } + +func (o *SetDefaultDeploymentDomainNameBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameBadRequest %+v", 400, o.Payload) +} + func (o *SetDefaultDeploymentDomainNameBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -190,7 +262,8 @@ func NewSetDefaultDeploymentDomainNameNotFound() *SetDefaultDeploymentDomainName return &SetDefaultDeploymentDomainNameNotFound{} } -/* SetDefaultDeploymentDomainNameNotFound describes a response with status code 404, with default header values. +/* +SetDefaultDeploymentDomainNameNotFound describes a response with status code 404, with default header values. There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`) */ @@ -203,9 +276,44 @@ type SetDefaultDeploymentDomainNameNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set default deployment domain name not found response has a 2xx status code +func (o *SetDefaultDeploymentDomainNameNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set default deployment domain name not found response has a 3xx status code +func (o *SetDefaultDeploymentDomainNameNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set default deployment domain name not found response has a 4xx status code +func (o *SetDefaultDeploymentDomainNameNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set default deployment domain name not found response has a 5xx status code +func (o *SetDefaultDeploymentDomainNameNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set default deployment domain name not found response a status code equal to that given +func (o *SetDefaultDeploymentDomainNameNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set default deployment domain name not found response +func (o *SetDefaultDeploymentDomainNameNotFound) Code() int { + return 404 +} + func (o *SetDefaultDeploymentDomainNameNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameNotFound %+v", 404, o.Payload) } + +func (o *SetDefaultDeploymentDomainNameNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameNotFound %+v", 404, o.Payload) +} + func (o *SetDefaultDeploymentDomainNameNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -234,7 +342,8 @@ func NewSetDefaultDeploymentDomainNameConflict() *SetDefaultDeploymentDomainName return &SetDefaultDeploymentDomainNameConflict{} } -/* SetDefaultDeploymentDomainNameConflict describes a response with status code 409, with default header values. +/* +SetDefaultDeploymentDomainNameConflict describes a response with status code 409, with default header values. There was an optimistic locking version conflict. (code: `networking.cname.version_conflict`) */ @@ -247,9 +356,44 @@ type SetDefaultDeploymentDomainNameConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set default deployment domain name conflict response has a 2xx status code +func (o *SetDefaultDeploymentDomainNameConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set default deployment domain name conflict response has a 3xx status code +func (o *SetDefaultDeploymentDomainNameConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set default deployment domain name conflict response has a 4xx status code +func (o *SetDefaultDeploymentDomainNameConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set default deployment domain name conflict response has a 5xx status code +func (o *SetDefaultDeploymentDomainNameConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set default deployment domain name conflict response a status code equal to that given +func (o *SetDefaultDeploymentDomainNameConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set default deployment domain name conflict response +func (o *SetDefaultDeploymentDomainNameConflict) Code() int { + return 409 +} + func (o *SetDefaultDeploymentDomainNameConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameConflict %+v", 409, o.Payload) } + +func (o *SetDefaultDeploymentDomainNameConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNameConflict %+v", 409, o.Payload) +} + func (o *SetDefaultDeploymentDomainNameConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -278,7 +422,8 @@ func NewSetDefaultDeploymentDomainNamePreconditionFailed() *SetDefaultDeployment return &SetDefaultDeploymentDomainNamePreconditionFailed{} } -/* SetDefaultDeploymentDomainNamePreconditionFailed describes a response with status code 412, with default header values. +/* +SetDefaultDeploymentDomainNamePreconditionFailed describes a response with status code 412, with default header values. skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`) */ @@ -291,9 +436,44 @@ type SetDefaultDeploymentDomainNamePreconditionFailed struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set default deployment domain name precondition failed response has a 2xx status code +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set default deployment domain name precondition failed response has a 3xx status code +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set default deployment domain name precondition failed response has a 4xx status code +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this set default deployment domain name precondition failed response has a 5xx status code +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this set default deployment domain name precondition failed response a status code equal to that given +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) IsCode(code int) bool { + return code == 412 +} + +// Code gets the status code for the set default deployment domain name precondition failed response +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) Code() int { + return 412 +} + func (o *SetDefaultDeploymentDomainNamePreconditionFailed) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNamePreconditionFailed %+v", 412, o.Payload) } + +func (o *SetDefaultDeploymentDomainNamePreconditionFailed) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name][%d] setDefaultDeploymentDomainNamePreconditionFailed %+v", 412, o.Payload) +} + func (o *SetDefaultDeploymentDomainNamePreconditionFailed) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_parameters.go b/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_parameters.go index 4cc849df..3e0fcc8b 100644 --- a/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_parameters.go +++ b/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_parameters.go @@ -72,10 +72,12 @@ func NewSetResourceKindDeploymentDomainNameParamsWithHTTPClient(client *http.Cli } } -/* SetResourceKindDeploymentDomainNameParams contains all the parameters to send to the API endpoint - for the set resource kind deployment domain name operation. +/* +SetResourceKindDeploymentDomainNameParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set resource kind deployment domain name operation. + + Typically these are written to a http.Request. */ type SetResourceKindDeploymentDomainNameParams struct { diff --git a/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_responses.go b/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_responses.go index eb8bb24f..1811a129 100644 --- a/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_responses.go +++ b/pkg/client/platform_configuration_networking/set_resource_kind_deployment_domain_name_responses.go @@ -80,7 +80,8 @@ func NewSetResourceKindDeploymentDomainNameOK() *SetResourceKindDeploymentDomain return &SetResourceKindDeploymentDomainNameOK{} } -/* SetResourceKindDeploymentDomainNameOK describes a response with status code 200, with default header values. +/* +SetResourceKindDeploymentDomainNameOK describes a response with status code 200, with default header values. The Deployment Domain Name was successfully saved. */ @@ -101,9 +102,44 @@ type SetResourceKindDeploymentDomainNameOK struct { Payload *models.DeploymentDomainName } +// IsSuccess returns true when this set resource kind deployment domain name o k response has a 2xx status code +func (o *SetResourceKindDeploymentDomainNameOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set resource kind deployment domain name o k response has a 3xx status code +func (o *SetResourceKindDeploymentDomainNameOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set resource kind deployment domain name o k response has a 4xx status code +func (o *SetResourceKindDeploymentDomainNameOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set resource kind deployment domain name o k response has a 5xx status code +func (o *SetResourceKindDeploymentDomainNameOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set resource kind deployment domain name o k response a status code equal to that given +func (o *SetResourceKindDeploymentDomainNameOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set resource kind deployment domain name o k response +func (o *SetResourceKindDeploymentDomainNameOK) Code() int { + return 200 +} + func (o *SetResourceKindDeploymentDomainNameOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameOK %+v", 200, o.Payload) } + +func (o *SetResourceKindDeploymentDomainNameOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameOK %+v", 200, o.Payload) +} + func (o *SetResourceKindDeploymentDomainNameOK) GetPayload() *models.DeploymentDomainName { return o.Payload } @@ -146,7 +182,8 @@ func NewSetResourceKindDeploymentDomainNameBadRequest() *SetResourceKindDeployme return &SetResourceKindDeploymentDomainNameBadRequest{} } -/* SetResourceKindDeploymentDomainNameBadRequest describes a response with status code 400, with default header values. +/* +SetResourceKindDeploymentDomainNameBadRequest describes a response with status code 400, with default header values. The optimistic locking version format was wrong. (code: `networking.cname.bad_version_format`) */ @@ -159,9 +196,44 @@ type SetResourceKindDeploymentDomainNameBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set resource kind deployment domain name bad request response has a 2xx status code +func (o *SetResourceKindDeploymentDomainNameBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set resource kind deployment domain name bad request response has a 3xx status code +func (o *SetResourceKindDeploymentDomainNameBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set resource kind deployment domain name bad request response has a 4xx status code +func (o *SetResourceKindDeploymentDomainNameBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set resource kind deployment domain name bad request response has a 5xx status code +func (o *SetResourceKindDeploymentDomainNameBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set resource kind deployment domain name bad request response a status code equal to that given +func (o *SetResourceKindDeploymentDomainNameBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set resource kind deployment domain name bad request response +func (o *SetResourceKindDeploymentDomainNameBadRequest) Code() int { + return 400 +} + func (o *SetResourceKindDeploymentDomainNameBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameBadRequest %+v", 400, o.Payload) } + +func (o *SetResourceKindDeploymentDomainNameBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameBadRequest %+v", 400, o.Payload) +} + func (o *SetResourceKindDeploymentDomainNameBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -190,7 +262,8 @@ func NewSetResourceKindDeploymentDomainNameNotFound() *SetResourceKindDeployment return &SetResourceKindDeploymentDomainNameNotFound{} } -/* SetResourceKindDeploymentDomainNameNotFound describes a response with status code 404, with default header values. +/* +SetResourceKindDeploymentDomainNameNotFound describes a response with status code 404, with default header values. There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`) */ @@ -203,9 +276,44 @@ type SetResourceKindDeploymentDomainNameNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set resource kind deployment domain name not found response has a 2xx status code +func (o *SetResourceKindDeploymentDomainNameNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set resource kind deployment domain name not found response has a 3xx status code +func (o *SetResourceKindDeploymentDomainNameNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set resource kind deployment domain name not found response has a 4xx status code +func (o *SetResourceKindDeploymentDomainNameNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set resource kind deployment domain name not found response has a 5xx status code +func (o *SetResourceKindDeploymentDomainNameNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set resource kind deployment domain name not found response a status code equal to that given +func (o *SetResourceKindDeploymentDomainNameNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set resource kind deployment domain name not found response +func (o *SetResourceKindDeploymentDomainNameNotFound) Code() int { + return 404 +} + func (o *SetResourceKindDeploymentDomainNameNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameNotFound %+v", 404, o.Payload) } + +func (o *SetResourceKindDeploymentDomainNameNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameNotFound %+v", 404, o.Payload) +} + func (o *SetResourceKindDeploymentDomainNameNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -234,7 +342,8 @@ func NewSetResourceKindDeploymentDomainNameConflict() *SetResourceKindDeployment return &SetResourceKindDeploymentDomainNameConflict{} } -/* SetResourceKindDeploymentDomainNameConflict describes a response with status code 409, with default header values. +/* +SetResourceKindDeploymentDomainNameConflict describes a response with status code 409, with default header values. There was an optimistic locking version conflict. (code: `networking.cname.version_conflict`) */ @@ -247,9 +356,44 @@ type SetResourceKindDeploymentDomainNameConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set resource kind deployment domain name conflict response has a 2xx status code +func (o *SetResourceKindDeploymentDomainNameConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set resource kind deployment domain name conflict response has a 3xx status code +func (o *SetResourceKindDeploymentDomainNameConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set resource kind deployment domain name conflict response has a 4xx status code +func (o *SetResourceKindDeploymentDomainNameConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set resource kind deployment domain name conflict response has a 5xx status code +func (o *SetResourceKindDeploymentDomainNameConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set resource kind deployment domain name conflict response a status code equal to that given +func (o *SetResourceKindDeploymentDomainNameConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set resource kind deployment domain name conflict response +func (o *SetResourceKindDeploymentDomainNameConflict) Code() int { + return 409 +} + func (o *SetResourceKindDeploymentDomainNameConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameConflict %+v", 409, o.Payload) } + +func (o *SetResourceKindDeploymentDomainNameConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNameConflict %+v", 409, o.Payload) +} + func (o *SetResourceKindDeploymentDomainNameConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -278,7 +422,8 @@ func NewSetResourceKindDeploymentDomainNamePreconditionFailed() *SetResourceKind return &SetResourceKindDeploymentDomainNamePreconditionFailed{} } -/* SetResourceKindDeploymentDomainNamePreconditionFailed describes a response with status code 412, with default header values. +/* +SetResourceKindDeploymentDomainNamePreconditionFailed describes a response with status code 412, with default header values. skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`) */ @@ -291,9 +436,44 @@ type SetResourceKindDeploymentDomainNamePreconditionFailed struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set resource kind deployment domain name precondition failed response has a 2xx status code +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set resource kind deployment domain name precondition failed response has a 3xx status code +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set resource kind deployment domain name precondition failed response has a 4xx status code +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this set resource kind deployment domain name precondition failed response has a 5xx status code +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this set resource kind deployment domain name precondition failed response a status code equal to that given +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) IsCode(code int) bool { + return code == 412 +} + +// Code gets the status code for the set resource kind deployment domain name precondition failed response +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) Code() int { + return 412 +} + func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) Error() string { return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNamePreconditionFailed %+v", 412, o.Payload) } + +func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) String() string { + return fmt.Sprintf("[PUT /platform/configuration/networking/deployment_domain_name/{resource_kind}][%d] setResourceKindDeploymentDomainNamePreconditionFailed %+v", 412, o.Payload) +} + func (o *SetResourceKindDeploymentDomainNamePreconditionFailed) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/create_active_directory_configuration_parameters.go b/pkg/client/platform_configuration_security/create_active_directory_configuration_parameters.go index b907de0d..408ddf89 100644 --- a/pkg/client/platform_configuration_security/create_active_directory_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/create_active_directory_configuration_parameters.go @@ -71,10 +71,12 @@ func NewCreateActiveDirectoryConfigurationParamsWithHTTPClient(client *http.Clie } } -/* CreateActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - for the create active directory configuration operation. +/* +CreateActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create active directory configuration operation. + + Typically these are written to a http.Request. */ type CreateActiveDirectoryConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/create_active_directory_configuration_responses.go b/pkg/client/platform_configuration_security/create_active_directory_configuration_responses.go index 99a79ca6..92229c65 100644 --- a/pkg/client/platform_configuration_security/create_active_directory_configuration_responses.go +++ b/pkg/client/platform_configuration_security/create_active_directory_configuration_responses.go @@ -68,7 +68,8 @@ func NewCreateActiveDirectoryConfigurationCreated() *CreateActiveDirectoryConfig return &CreateActiveDirectoryConfigurationCreated{} } -/* CreateActiveDirectoryConfigurationCreated describes a response with status code 201, with default header values. +/* +CreateActiveDirectoryConfigurationCreated describes a response with status code 201, with default header values. The Active Directory configuration was successfully created */ @@ -89,9 +90,44 @@ type CreateActiveDirectoryConfigurationCreated struct { Payload models.EmptyResponse } +// IsSuccess returns true when this create active directory configuration created response has a 2xx status code +func (o *CreateActiveDirectoryConfigurationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create active directory configuration created response has a 3xx status code +func (o *CreateActiveDirectoryConfigurationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create active directory configuration created response has a 4xx status code +func (o *CreateActiveDirectoryConfigurationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create active directory configuration created response has a 5xx status code +func (o *CreateActiveDirectoryConfigurationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create active directory configuration created response a status code equal to that given +func (o *CreateActiveDirectoryConfigurationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create active directory configuration created response +func (o *CreateActiveDirectoryConfigurationCreated) Code() int { + return 201 +} + func (o *CreateActiveDirectoryConfigurationCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationCreated %+v", 201, o.Payload) } + +func (o *CreateActiveDirectoryConfigurationCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationCreated %+v", 201, o.Payload) +} + func (o *CreateActiveDirectoryConfigurationCreated) GetPayload() models.EmptyResponse { return o.Payload } @@ -132,9 +168,11 @@ func NewCreateActiveDirectoryConfigurationBadRequest() *CreateActiveDirectoryCon return &CreateActiveDirectoryConfigurationBadRequest{} } -/* CreateActiveDirectoryConfigurationBadRequest describes a response with status code 400, with default header values. +/* + CreateActiveDirectoryConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -153,9 +191,44 @@ type CreateActiveDirectoryConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create active directory configuration bad request response has a 2xx status code +func (o *CreateActiveDirectoryConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create active directory configuration bad request response has a 3xx status code +func (o *CreateActiveDirectoryConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create active directory configuration bad request response has a 4xx status code +func (o *CreateActiveDirectoryConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create active directory configuration bad request response has a 5xx status code +func (o *CreateActiveDirectoryConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create active directory configuration bad request response a status code equal to that given +func (o *CreateActiveDirectoryConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create active directory configuration bad request response +func (o *CreateActiveDirectoryConfigurationBadRequest) Code() int { + return 400 +} + func (o *CreateActiveDirectoryConfigurationBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *CreateActiveDirectoryConfigurationBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *CreateActiveDirectoryConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,7 +257,8 @@ func NewCreateActiveDirectoryConfigurationRetryWith() *CreateActiveDirectoryConf return &CreateActiveDirectoryConfigurationRetryWith{} } -/* CreateActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. +/* +CreateActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -197,9 +271,44 @@ type CreateActiveDirectoryConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create active directory configuration retry with response has a 2xx status code +func (o *CreateActiveDirectoryConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create active directory configuration retry with response has a 3xx status code +func (o *CreateActiveDirectoryConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create active directory configuration retry with response has a 4xx status code +func (o *CreateActiveDirectoryConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create active directory configuration retry with response has a 5xx status code +func (o *CreateActiveDirectoryConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create active directory configuration retry with response a status code equal to that given +func (o *CreateActiveDirectoryConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create active directory configuration retry with response +func (o *CreateActiveDirectoryConfigurationRetryWith) Code() int { + return 449 +} + func (o *CreateActiveDirectoryConfigurationRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *CreateActiveDirectoryConfigurationRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/active-directory][%d] createActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *CreateActiveDirectoryConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/create_enrollment_token_parameters.go b/pkg/client/platform_configuration_security/create_enrollment_token_parameters.go index 45a4f25c..882eceea 100644 --- a/pkg/client/platform_configuration_security/create_enrollment_token_parameters.go +++ b/pkg/client/platform_configuration_security/create_enrollment_token_parameters.go @@ -71,10 +71,12 @@ func NewCreateEnrollmentTokenParamsWithHTTPClient(client *http.Client) *CreateEn } } -/* CreateEnrollmentTokenParams contains all the parameters to send to the API endpoint - for the create enrollment token operation. +/* +CreateEnrollmentTokenParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create enrollment token operation. + + Typically these are written to a http.Request. */ type CreateEnrollmentTokenParams struct { diff --git a/pkg/client/platform_configuration_security/create_enrollment_token_responses.go b/pkg/client/platform_configuration_security/create_enrollment_token_responses.go index 69ff60c9..98cdd360 100644 --- a/pkg/client/platform_configuration_security/create_enrollment_token_responses.go +++ b/pkg/client/platform_configuration_security/create_enrollment_token_responses.go @@ -74,7 +74,8 @@ func NewCreateEnrollmentTokenOK() *CreateEnrollmentTokenOK { return &CreateEnrollmentTokenOK{} } -/* CreateEnrollmentTokenOK describes a response with status code 200, with default header values. +/* +CreateEnrollmentTokenOK describes a response with status code 200, with default header values. A token has been generated that can be used to start new servers with the requested roles */ @@ -82,9 +83,44 @@ type CreateEnrollmentTokenOK struct { Payload *models.RequestEnrollmentTokenReply } +// IsSuccess returns true when this create enrollment token o k response has a 2xx status code +func (o *CreateEnrollmentTokenOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create enrollment token o k response has a 3xx status code +func (o *CreateEnrollmentTokenOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create enrollment token o k response has a 4xx status code +func (o *CreateEnrollmentTokenOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create enrollment token o k response has a 5xx status code +func (o *CreateEnrollmentTokenOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create enrollment token o k response a status code equal to that given +func (o *CreateEnrollmentTokenOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create enrollment token o k response +func (o *CreateEnrollmentTokenOK) Code() int { + return 200 +} + func (o *CreateEnrollmentTokenOK) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenOK %+v", 200, o.Payload) } + +func (o *CreateEnrollmentTokenOK) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenOK %+v", 200, o.Payload) +} + func (o *CreateEnrollmentTokenOK) GetPayload() *models.RequestEnrollmentTokenReply { return o.Payload } @@ -106,7 +142,8 @@ func NewCreateEnrollmentTokenBadRequest() *CreateEnrollmentTokenBadRequest { return &CreateEnrollmentTokenBadRequest{} } -/* CreateEnrollmentTokenBadRequest describes a response with status code 400, with default header values. +/* +CreateEnrollmentTokenBadRequest describes a response with status code 400, with default header values. The token request format was invalid, details in the error (code: 'enrollment_tokens.invalid_token_request') */ @@ -114,9 +151,44 @@ type CreateEnrollmentTokenBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create enrollment token bad request response has a 2xx status code +func (o *CreateEnrollmentTokenBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create enrollment token bad request response has a 3xx status code +func (o *CreateEnrollmentTokenBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create enrollment token bad request response has a 4xx status code +func (o *CreateEnrollmentTokenBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create enrollment token bad request response has a 5xx status code +func (o *CreateEnrollmentTokenBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create enrollment token bad request response a status code equal to that given +func (o *CreateEnrollmentTokenBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create enrollment token bad request response +func (o *CreateEnrollmentTokenBadRequest) Code() int { + return 400 +} + func (o *CreateEnrollmentTokenBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenBadRequest %+v", 400, o.Payload) } + +func (o *CreateEnrollmentTokenBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenBadRequest %+v", 400, o.Payload) +} + func (o *CreateEnrollmentTokenBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -138,7 +210,8 @@ func NewCreateEnrollmentTokenForbidden() *CreateEnrollmentTokenForbidden { return &CreateEnrollmentTokenForbidden{} } -/* CreateEnrollmentTokenForbidden describes a response with status code 403, with default header values. +/* +CreateEnrollmentTokenForbidden describes a response with status code 403, with default header values. No signing key is available to generate a token (code: 'enrollment_tokens.signing_key_not_found') */ @@ -146,9 +219,44 @@ type CreateEnrollmentTokenForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create enrollment token forbidden response has a 2xx status code +func (o *CreateEnrollmentTokenForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create enrollment token forbidden response has a 3xx status code +func (o *CreateEnrollmentTokenForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create enrollment token forbidden response has a 4xx status code +func (o *CreateEnrollmentTokenForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this create enrollment token forbidden response has a 5xx status code +func (o *CreateEnrollmentTokenForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this create enrollment token forbidden response a status code equal to that given +func (o *CreateEnrollmentTokenForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the create enrollment token forbidden response +func (o *CreateEnrollmentTokenForbidden) Code() int { + return 403 +} + func (o *CreateEnrollmentTokenForbidden) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenForbidden %+v", 403, o.Payload) } + +func (o *CreateEnrollmentTokenForbidden) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenForbidden %+v", 403, o.Payload) +} + func (o *CreateEnrollmentTokenForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -170,7 +278,8 @@ func NewCreateEnrollmentTokenRetryWith() *CreateEnrollmentTokenRetryWith { return &CreateEnrollmentTokenRetryWith{} } -/* CreateEnrollmentTokenRetryWith describes a response with status code 449, with default header values. +/* +CreateEnrollmentTokenRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -178,9 +287,44 @@ type CreateEnrollmentTokenRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create enrollment token retry with response has a 2xx status code +func (o *CreateEnrollmentTokenRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create enrollment token retry with response has a 3xx status code +func (o *CreateEnrollmentTokenRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create enrollment token retry with response has a 4xx status code +func (o *CreateEnrollmentTokenRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create enrollment token retry with response has a 5xx status code +func (o *CreateEnrollmentTokenRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create enrollment token retry with response a status code equal to that given +func (o *CreateEnrollmentTokenRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create enrollment token retry with response +func (o *CreateEnrollmentTokenRetryWith) Code() int { + return 449 +} + func (o *CreateEnrollmentTokenRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenRetryWith %+v", 449, o.Payload) } + +func (o *CreateEnrollmentTokenRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/enrollment-tokens][%d] createEnrollmentTokenRetryWith %+v", 449, o.Payload) +} + func (o *CreateEnrollmentTokenRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/create_ldap_configuration_parameters.go b/pkg/client/platform_configuration_security/create_ldap_configuration_parameters.go index fbb57dea..89bcedab 100644 --- a/pkg/client/platform_configuration_security/create_ldap_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/create_ldap_configuration_parameters.go @@ -71,10 +71,12 @@ func NewCreateLdapConfigurationParamsWithHTTPClient(client *http.Client) *Create } } -/* CreateLdapConfigurationParams contains all the parameters to send to the API endpoint - for the create ldap configuration operation. +/* +CreateLdapConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create ldap configuration operation. + + Typically these are written to a http.Request. */ type CreateLdapConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/create_ldap_configuration_responses.go b/pkg/client/platform_configuration_security/create_ldap_configuration_responses.go index 853774c1..48c215bb 100644 --- a/pkg/client/platform_configuration_security/create_ldap_configuration_responses.go +++ b/pkg/client/platform_configuration_security/create_ldap_configuration_responses.go @@ -68,7 +68,8 @@ func NewCreateLdapConfigurationCreated() *CreateLdapConfigurationCreated { return &CreateLdapConfigurationCreated{} } -/* CreateLdapConfigurationCreated describes a response with status code 201, with default header values. +/* +CreateLdapConfigurationCreated describes a response with status code 201, with default header values. The LDAP configuration was successfully created */ @@ -89,9 +90,44 @@ type CreateLdapConfigurationCreated struct { Payload models.EmptyResponse } +// IsSuccess returns true when this create ldap configuration created response has a 2xx status code +func (o *CreateLdapConfigurationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create ldap configuration created response has a 3xx status code +func (o *CreateLdapConfigurationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create ldap configuration created response has a 4xx status code +func (o *CreateLdapConfigurationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create ldap configuration created response has a 5xx status code +func (o *CreateLdapConfigurationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create ldap configuration created response a status code equal to that given +func (o *CreateLdapConfigurationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create ldap configuration created response +func (o *CreateLdapConfigurationCreated) Code() int { + return 201 +} + func (o *CreateLdapConfigurationCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationCreated %+v", 201, o.Payload) } + +func (o *CreateLdapConfigurationCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationCreated %+v", 201, o.Payload) +} + func (o *CreateLdapConfigurationCreated) GetPayload() models.EmptyResponse { return o.Payload } @@ -132,9 +168,11 @@ func NewCreateLdapConfigurationBadRequest() *CreateLdapConfigurationBadRequest { return &CreateLdapConfigurationBadRequest{} } -/* CreateLdapConfigurationBadRequest describes a response with status code 400, with default header values. +/* + CreateLdapConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -153,9 +191,44 @@ type CreateLdapConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create ldap configuration bad request response has a 2xx status code +func (o *CreateLdapConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create ldap configuration bad request response has a 3xx status code +func (o *CreateLdapConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create ldap configuration bad request response has a 4xx status code +func (o *CreateLdapConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create ldap configuration bad request response has a 5xx status code +func (o *CreateLdapConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create ldap configuration bad request response a status code equal to that given +func (o *CreateLdapConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create ldap configuration bad request response +func (o *CreateLdapConfigurationBadRequest) Code() int { + return 400 +} + func (o *CreateLdapConfigurationBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *CreateLdapConfigurationBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *CreateLdapConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,7 +257,8 @@ func NewCreateLdapConfigurationRetryWith() *CreateLdapConfigurationRetryWith { return &CreateLdapConfigurationRetryWith{} } -/* CreateLdapConfigurationRetryWith describes a response with status code 449, with default header values. +/* +CreateLdapConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -197,9 +271,44 @@ type CreateLdapConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create ldap configuration retry with response has a 2xx status code +func (o *CreateLdapConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create ldap configuration retry with response has a 3xx status code +func (o *CreateLdapConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create ldap configuration retry with response has a 4xx status code +func (o *CreateLdapConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create ldap configuration retry with response has a 5xx status code +func (o *CreateLdapConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create ldap configuration retry with response a status code equal to that given +func (o *CreateLdapConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create ldap configuration retry with response +func (o *CreateLdapConfigurationRetryWith) Code() int { + return 449 +} + func (o *CreateLdapConfigurationRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *CreateLdapConfigurationRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/ldap][%d] createLdapConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *CreateLdapConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/create_saml_configuration_parameters.go b/pkg/client/platform_configuration_security/create_saml_configuration_parameters.go index 84d0ff8d..f1c773f9 100644 --- a/pkg/client/platform_configuration_security/create_saml_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/create_saml_configuration_parameters.go @@ -71,10 +71,12 @@ func NewCreateSamlConfigurationParamsWithHTTPClient(client *http.Client) *Create } } -/* CreateSamlConfigurationParams contains all the parameters to send to the API endpoint - for the create saml configuration operation. +/* +CreateSamlConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create saml configuration operation. + + Typically these are written to a http.Request. */ type CreateSamlConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/create_saml_configuration_responses.go b/pkg/client/platform_configuration_security/create_saml_configuration_responses.go index 34d58791..f0e0f132 100644 --- a/pkg/client/platform_configuration_security/create_saml_configuration_responses.go +++ b/pkg/client/platform_configuration_security/create_saml_configuration_responses.go @@ -68,7 +68,8 @@ func NewCreateSamlConfigurationCreated() *CreateSamlConfigurationCreated { return &CreateSamlConfigurationCreated{} } -/* CreateSamlConfigurationCreated describes a response with status code 201, with default header values. +/* +CreateSamlConfigurationCreated describes a response with status code 201, with default header values. The SAML configuration was successfully created */ @@ -89,9 +90,44 @@ type CreateSamlConfigurationCreated struct { Payload models.EmptyResponse } +// IsSuccess returns true when this create saml configuration created response has a 2xx status code +func (o *CreateSamlConfigurationCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create saml configuration created response has a 3xx status code +func (o *CreateSamlConfigurationCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create saml configuration created response has a 4xx status code +func (o *CreateSamlConfigurationCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create saml configuration created response has a 5xx status code +func (o *CreateSamlConfigurationCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create saml configuration created response a status code equal to that given +func (o *CreateSamlConfigurationCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create saml configuration created response +func (o *CreateSamlConfigurationCreated) Code() int { + return 201 +} + func (o *CreateSamlConfigurationCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationCreated %+v", 201, o.Payload) } + +func (o *CreateSamlConfigurationCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationCreated %+v", 201, o.Payload) +} + func (o *CreateSamlConfigurationCreated) GetPayload() models.EmptyResponse { return o.Payload } @@ -132,9 +168,11 @@ func NewCreateSamlConfigurationBadRequest() *CreateSamlConfigurationBadRequest { return &CreateSamlConfigurationBadRequest{} } -/* CreateSamlConfigurationBadRequest describes a response with status code 400, with default header values. +/* + CreateSamlConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -152,9 +190,44 @@ type CreateSamlConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create saml configuration bad request response has a 2xx status code +func (o *CreateSamlConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create saml configuration bad request response has a 3xx status code +func (o *CreateSamlConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create saml configuration bad request response has a 4xx status code +func (o *CreateSamlConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create saml configuration bad request response has a 5xx status code +func (o *CreateSamlConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create saml configuration bad request response a status code equal to that given +func (o *CreateSamlConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create saml configuration bad request response +func (o *CreateSamlConfigurationBadRequest) Code() int { + return 400 +} + func (o *CreateSamlConfigurationBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *CreateSamlConfigurationBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *CreateSamlConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -183,7 +256,8 @@ func NewCreateSamlConfigurationRetryWith() *CreateSamlConfigurationRetryWith { return &CreateSamlConfigurationRetryWith{} } -/* CreateSamlConfigurationRetryWith describes a response with status code 449, with default header values. +/* +CreateSamlConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -196,9 +270,44 @@ type CreateSamlConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create saml configuration retry with response has a 2xx status code +func (o *CreateSamlConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create saml configuration retry with response has a 3xx status code +func (o *CreateSamlConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create saml configuration retry with response has a 4xx status code +func (o *CreateSamlConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create saml configuration retry with response has a 5xx status code +func (o *CreateSamlConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create saml configuration retry with response a status code equal to that given +func (o *CreateSamlConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create saml configuration retry with response +func (o *CreateSamlConfigurationRetryWith) Code() int { + return 449 +} + func (o *CreateSamlConfigurationRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *CreateSamlConfigurationRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/saml][%d] createSamlConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *CreateSamlConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/create_security_deployment_parameters.go b/pkg/client/platform_configuration_security/create_security_deployment_parameters.go index daad239a..ed4852aa 100644 --- a/pkg/client/platform_configuration_security/create_security_deployment_parameters.go +++ b/pkg/client/platform_configuration_security/create_security_deployment_parameters.go @@ -71,10 +71,12 @@ func NewCreateSecurityDeploymentParamsWithHTTPClient(client *http.Client) *Creat } } -/* CreateSecurityDeploymentParams contains all the parameters to send to the API endpoint - for the create security deployment operation. +/* +CreateSecurityDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create security deployment operation. + + Typically these are written to a http.Request. */ type CreateSecurityDeploymentParams struct { diff --git a/pkg/client/platform_configuration_security/create_security_deployment_responses.go b/pkg/client/platform_configuration_security/create_security_deployment_responses.go index 43730e2d..ccb9f5e3 100644 --- a/pkg/client/platform_configuration_security/create_security_deployment_responses.go +++ b/pkg/client/platform_configuration_security/create_security_deployment_responses.go @@ -68,7 +68,8 @@ func NewCreateSecurityDeploymentCreated() *CreateSecurityDeploymentCreated { return &CreateSecurityDeploymentCreated{} } -/* CreateSecurityDeploymentCreated describes a response with status code 201, with default header values. +/* +CreateSecurityDeploymentCreated describes a response with status code 201, with default header values. The security deployment was successfully created */ @@ -89,9 +90,44 @@ type CreateSecurityDeploymentCreated struct { Payload *models.IDResponse } +// IsSuccess returns true when this create security deployment created response has a 2xx status code +func (o *CreateSecurityDeploymentCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create security deployment created response has a 3xx status code +func (o *CreateSecurityDeploymentCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create security deployment created response has a 4xx status code +func (o *CreateSecurityDeploymentCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create security deployment created response has a 5xx status code +func (o *CreateSecurityDeploymentCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create security deployment created response a status code equal to that given +func (o *CreateSecurityDeploymentCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create security deployment created response +func (o *CreateSecurityDeploymentCreated) Code() int { + return 201 +} + func (o *CreateSecurityDeploymentCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentCreated %+v", 201, o.Payload) } + +func (o *CreateSecurityDeploymentCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentCreated %+v", 201, o.Payload) +} + func (o *CreateSecurityDeploymentCreated) GetPayload() *models.IDResponse { return o.Payload } @@ -134,9 +170,11 @@ func NewCreateSecurityDeploymentConflict() *CreateSecurityDeploymentConflict { return &CreateSecurityDeploymentConflict{} } -/* CreateSecurityDeploymentConflict describes a response with status code 409, with default header values. +/* + CreateSecurityDeploymentConflict describes a response with status code 409, with default header values. + + * There is a version conflict. (code: `security_deployment.version_conflict`) - * There is a version conflict. (code: `security_deployment.version_conflict`) * There is a version conflict. (code: `security_deployment.already_exists`) */ type CreateSecurityDeploymentConflict struct { @@ -148,9 +186,44 @@ type CreateSecurityDeploymentConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create security deployment conflict response has a 2xx status code +func (o *CreateSecurityDeploymentConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create security deployment conflict response has a 3xx status code +func (o *CreateSecurityDeploymentConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create security deployment conflict response has a 4xx status code +func (o *CreateSecurityDeploymentConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this create security deployment conflict response has a 5xx status code +func (o *CreateSecurityDeploymentConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this create security deployment conflict response a status code equal to that given +func (o *CreateSecurityDeploymentConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the create security deployment conflict response +func (o *CreateSecurityDeploymentConflict) Code() int { + return 409 +} + func (o *CreateSecurityDeploymentConflict) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentConflict %+v", 409, o.Payload) } + +func (o *CreateSecurityDeploymentConflict) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentConflict %+v", 409, o.Payload) +} + func (o *CreateSecurityDeploymentConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -179,7 +252,8 @@ func NewCreateSecurityDeploymentRetryWith() *CreateSecurityDeploymentRetryWith { return &CreateSecurityDeploymentRetryWith{} } -/* CreateSecurityDeploymentRetryWith describes a response with status code 449, with default header values. +/* +CreateSecurityDeploymentRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -192,9 +266,44 @@ type CreateSecurityDeploymentRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create security deployment retry with response has a 2xx status code +func (o *CreateSecurityDeploymentRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create security deployment retry with response has a 3xx status code +func (o *CreateSecurityDeploymentRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create security deployment retry with response has a 4xx status code +func (o *CreateSecurityDeploymentRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create security deployment retry with response has a 5xx status code +func (o *CreateSecurityDeploymentRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create security deployment retry with response a status code equal to that given +func (o *CreateSecurityDeploymentRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create security deployment retry with response +func (o *CreateSecurityDeploymentRetryWith) Code() int { + return 449 +} + func (o *CreateSecurityDeploymentRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentRetryWith %+v", 449, o.Payload) } + +func (o *CreateSecurityDeploymentRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/deployment][%d] createSecurityDeploymentRetryWith %+v", 449, o.Payload) +} + func (o *CreateSecurityDeploymentRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/delete_active_directory_configuration_parameters.go b/pkg/client/platform_configuration_security/delete_active_directory_configuration_parameters.go index eeade9b2..038daba6 100644 --- a/pkg/client/platform_configuration_security/delete_active_directory_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/delete_active_directory_configuration_parameters.go @@ -69,10 +69,12 @@ func NewDeleteActiveDirectoryConfigurationParamsWithHTTPClient(client *http.Clie } } -/* DeleteActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - for the delete active directory configuration operation. +/* +DeleteActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete active directory configuration operation. + + Typically these are written to a http.Request. */ type DeleteActiveDirectoryConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/delete_active_directory_configuration_responses.go b/pkg/client/platform_configuration_security/delete_active_directory_configuration_responses.go index 939b0da1..4bb634ac 100644 --- a/pkg/client/platform_configuration_security/delete_active_directory_configuration_responses.go +++ b/pkg/client/platform_configuration_security/delete_active_directory_configuration_responses.go @@ -74,7 +74,8 @@ func NewDeleteActiveDirectoryConfigurationOK() *DeleteActiveDirectoryConfigurati return &DeleteActiveDirectoryConfigurationOK{} } -/* DeleteActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. +/* +DeleteActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. The Active Directory configuration was successfully deleted */ @@ -82,9 +83,44 @@ type DeleteActiveDirectoryConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete active directory configuration o k response has a 2xx status code +func (o *DeleteActiveDirectoryConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete active directory configuration o k response has a 3xx status code +func (o *DeleteActiveDirectoryConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete active directory configuration o k response has a 4xx status code +func (o *DeleteActiveDirectoryConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete active directory configuration o k response has a 5xx status code +func (o *DeleteActiveDirectoryConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete active directory configuration o k response a status code equal to that given +func (o *DeleteActiveDirectoryConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete active directory configuration o k response +func (o *DeleteActiveDirectoryConfigurationOK) Code() int { + return 200 +} + func (o *DeleteActiveDirectoryConfigurationOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationOK %+v", 200, o.Payload) } + +func (o *DeleteActiveDirectoryConfigurationOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationOK %+v", 200, o.Payload) +} + func (o *DeleteActiveDirectoryConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteActiveDirectoryConfigurationNotFound() *DeleteActiveDirectoryConfi return &DeleteActiveDirectoryConfigurationNotFound{} } -/* DeleteActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. +/* +DeleteActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -117,9 +154,44 @@ type DeleteActiveDirectoryConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete active directory configuration not found response has a 2xx status code +func (o *DeleteActiveDirectoryConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete active directory configuration not found response has a 3xx status code +func (o *DeleteActiveDirectoryConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete active directory configuration not found response has a 4xx status code +func (o *DeleteActiveDirectoryConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete active directory configuration not found response has a 5xx status code +func (o *DeleteActiveDirectoryConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete active directory configuration not found response a status code equal to that given +func (o *DeleteActiveDirectoryConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete active directory configuration not found response +func (o *DeleteActiveDirectoryConfigurationNotFound) Code() int { + return 404 +} + func (o *DeleteActiveDirectoryConfigurationNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) } + +func (o *DeleteActiveDirectoryConfigurationNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) +} + func (o *DeleteActiveDirectoryConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteActiveDirectoryConfigurationConflict() *DeleteActiveDirectoryConfi return &DeleteActiveDirectoryConfigurationConflict{} } -/* DeleteActiveDirectoryConfigurationConflict describes a response with status code 409, with default header values. +/* +DeleteActiveDirectoryConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -161,9 +234,44 @@ type DeleteActiveDirectoryConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete active directory configuration conflict response has a 2xx status code +func (o *DeleteActiveDirectoryConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete active directory configuration conflict response has a 3xx status code +func (o *DeleteActiveDirectoryConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete active directory configuration conflict response has a 4xx status code +func (o *DeleteActiveDirectoryConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete active directory configuration conflict response has a 5xx status code +func (o *DeleteActiveDirectoryConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete active directory configuration conflict response a status code equal to that given +func (o *DeleteActiveDirectoryConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete active directory configuration conflict response +func (o *DeleteActiveDirectoryConfigurationConflict) Code() int { + return 409 +} + func (o *DeleteActiveDirectoryConfigurationConflict) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationConflict %+v", 409, o.Payload) } + +func (o *DeleteActiveDirectoryConfigurationConflict) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationConflict %+v", 409, o.Payload) +} + func (o *DeleteActiveDirectoryConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteActiveDirectoryConfigurationRetryWith() *DeleteActiveDirectoryConf return &DeleteActiveDirectoryConfigurationRetryWith{} } -/* DeleteActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. +/* +DeleteActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteActiveDirectoryConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete active directory configuration retry with response has a 2xx status code +func (o *DeleteActiveDirectoryConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete active directory configuration retry with response has a 3xx status code +func (o *DeleteActiveDirectoryConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete active directory configuration retry with response has a 4xx status code +func (o *DeleteActiveDirectoryConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete active directory configuration retry with response has a 5xx status code +func (o *DeleteActiveDirectoryConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete active directory configuration retry with response a status code equal to that given +func (o *DeleteActiveDirectoryConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete active directory configuration retry with response +func (o *DeleteActiveDirectoryConfigurationRetryWith) Code() int { + return 449 +} + func (o *DeleteActiveDirectoryConfigurationRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *DeleteActiveDirectoryConfigurationRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/active-directory/{realm_id}][%d] deleteActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *DeleteActiveDirectoryConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/delete_enrollment_token_parameters.go b/pkg/client/platform_configuration_security/delete_enrollment_token_parameters.go index 96af4737..935e2b0b 100644 --- a/pkg/client/platform_configuration_security/delete_enrollment_token_parameters.go +++ b/pkg/client/platform_configuration_security/delete_enrollment_token_parameters.go @@ -69,10 +69,12 @@ func NewDeleteEnrollmentTokenParamsWithHTTPClient(client *http.Client) *DeleteEn } } -/* DeleteEnrollmentTokenParams contains all the parameters to send to the API endpoint - for the delete enrollment token operation. +/* +DeleteEnrollmentTokenParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete enrollment token operation. + + Typically these are written to a http.Request. */ type DeleteEnrollmentTokenParams struct { diff --git a/pkg/client/platform_configuration_security/delete_enrollment_token_responses.go b/pkg/client/platform_configuration_security/delete_enrollment_token_responses.go index 892f9b38..b5824785 100644 --- a/pkg/client/platform_configuration_security/delete_enrollment_token_responses.go +++ b/pkg/client/platform_configuration_security/delete_enrollment_token_responses.go @@ -68,7 +68,8 @@ func NewDeleteEnrollmentTokenOK() *DeleteEnrollmentTokenOK { return &DeleteEnrollmentTokenOK{} } -/* DeleteEnrollmentTokenOK describes a response with status code 200, with default header values. +/* +DeleteEnrollmentTokenOK describes a response with status code 200, with default header values. The supplied token has been revoked and can no longer be used to start services on new servers */ @@ -76,9 +77,44 @@ type DeleteEnrollmentTokenOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete enrollment token o k response has a 2xx status code +func (o *DeleteEnrollmentTokenOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete enrollment token o k response has a 3xx status code +func (o *DeleteEnrollmentTokenOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete enrollment token o k response has a 4xx status code +func (o *DeleteEnrollmentTokenOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete enrollment token o k response has a 5xx status code +func (o *DeleteEnrollmentTokenOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete enrollment token o k response a status code equal to that given +func (o *DeleteEnrollmentTokenOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete enrollment token o k response +func (o *DeleteEnrollmentTokenOK) Code() int { + return 200 +} + func (o *DeleteEnrollmentTokenOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenOK %+v", 200, o.Payload) } + +func (o *DeleteEnrollmentTokenOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenOK %+v", 200, o.Payload) +} + func (o *DeleteEnrollmentTokenOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteEnrollmentTokenNotFound() *DeleteEnrollmentTokenNotFound { return &DeleteEnrollmentTokenNotFound{} } -/* DeleteEnrollmentTokenNotFound describes a response with status code 404, with default header values. +/* +DeleteEnrollmentTokenNotFound describes a response with status code 404, with default header values. Token not found (code: 'enrollment_tokens.invalid_token_id') */ @@ -106,9 +143,44 @@ type DeleteEnrollmentTokenNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete enrollment token not found response has a 2xx status code +func (o *DeleteEnrollmentTokenNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete enrollment token not found response has a 3xx status code +func (o *DeleteEnrollmentTokenNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete enrollment token not found response has a 4xx status code +func (o *DeleteEnrollmentTokenNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete enrollment token not found response has a 5xx status code +func (o *DeleteEnrollmentTokenNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete enrollment token not found response a status code equal to that given +func (o *DeleteEnrollmentTokenNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete enrollment token not found response +func (o *DeleteEnrollmentTokenNotFound) Code() int { + return 404 +} + func (o *DeleteEnrollmentTokenNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenNotFound %+v", 404, o.Payload) } + +func (o *DeleteEnrollmentTokenNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenNotFound %+v", 404, o.Payload) +} + func (o *DeleteEnrollmentTokenNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -130,7 +202,8 @@ func NewDeleteEnrollmentTokenRetryWith() *DeleteEnrollmentTokenRetryWith { return &DeleteEnrollmentTokenRetryWith{} } -/* DeleteEnrollmentTokenRetryWith describes a response with status code 449, with default header values. +/* +DeleteEnrollmentTokenRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -138,9 +211,44 @@ type DeleteEnrollmentTokenRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete enrollment token retry with response has a 2xx status code +func (o *DeleteEnrollmentTokenRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete enrollment token retry with response has a 3xx status code +func (o *DeleteEnrollmentTokenRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete enrollment token retry with response has a 4xx status code +func (o *DeleteEnrollmentTokenRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete enrollment token retry with response has a 5xx status code +func (o *DeleteEnrollmentTokenRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete enrollment token retry with response a status code equal to that given +func (o *DeleteEnrollmentTokenRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete enrollment token retry with response +func (o *DeleteEnrollmentTokenRetryWith) Code() int { + return 449 +} + func (o *DeleteEnrollmentTokenRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenRetryWith %+v", 449, o.Payload) } + +func (o *DeleteEnrollmentTokenRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/enrollment-tokens/{token}][%d] deleteEnrollmentTokenRetryWith %+v", 449, o.Payload) +} + func (o *DeleteEnrollmentTokenRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/delete_ldap_configuration_parameters.go b/pkg/client/platform_configuration_security/delete_ldap_configuration_parameters.go index 6e132dcd..d81ad83c 100644 --- a/pkg/client/platform_configuration_security/delete_ldap_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/delete_ldap_configuration_parameters.go @@ -69,10 +69,12 @@ func NewDeleteLdapConfigurationParamsWithHTTPClient(client *http.Client) *Delete } } -/* DeleteLdapConfigurationParams contains all the parameters to send to the API endpoint - for the delete ldap configuration operation. +/* +DeleteLdapConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete ldap configuration operation. + + Typically these are written to a http.Request. */ type DeleteLdapConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/delete_ldap_configuration_responses.go b/pkg/client/platform_configuration_security/delete_ldap_configuration_responses.go index 509bed55..d0df9861 100644 --- a/pkg/client/platform_configuration_security/delete_ldap_configuration_responses.go +++ b/pkg/client/platform_configuration_security/delete_ldap_configuration_responses.go @@ -74,7 +74,8 @@ func NewDeleteLdapConfigurationOK() *DeleteLdapConfigurationOK { return &DeleteLdapConfigurationOK{} } -/* DeleteLdapConfigurationOK describes a response with status code 200, with default header values. +/* +DeleteLdapConfigurationOK describes a response with status code 200, with default header values. The LDAP configuration was successfully deleted */ @@ -82,9 +83,44 @@ type DeleteLdapConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete ldap configuration o k response has a 2xx status code +func (o *DeleteLdapConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete ldap configuration o k response has a 3xx status code +func (o *DeleteLdapConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete ldap configuration o k response has a 4xx status code +func (o *DeleteLdapConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete ldap configuration o k response has a 5xx status code +func (o *DeleteLdapConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete ldap configuration o k response a status code equal to that given +func (o *DeleteLdapConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete ldap configuration o k response +func (o *DeleteLdapConfigurationOK) Code() int { + return 200 +} + func (o *DeleteLdapConfigurationOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationOK %+v", 200, o.Payload) } + +func (o *DeleteLdapConfigurationOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationOK %+v", 200, o.Payload) +} + func (o *DeleteLdapConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteLdapConfigurationNotFound() *DeleteLdapConfigurationNotFound { return &DeleteLdapConfigurationNotFound{} } -/* DeleteLdapConfigurationNotFound describes a response with status code 404, with default header values. +/* +DeleteLdapConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -117,9 +154,44 @@ type DeleteLdapConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete ldap configuration not found response has a 2xx status code +func (o *DeleteLdapConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete ldap configuration not found response has a 3xx status code +func (o *DeleteLdapConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete ldap configuration not found response has a 4xx status code +func (o *DeleteLdapConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete ldap configuration not found response has a 5xx status code +func (o *DeleteLdapConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete ldap configuration not found response a status code equal to that given +func (o *DeleteLdapConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete ldap configuration not found response +func (o *DeleteLdapConfigurationNotFound) Code() int { + return 404 +} + func (o *DeleteLdapConfigurationNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationNotFound %+v", 404, o.Payload) } + +func (o *DeleteLdapConfigurationNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationNotFound %+v", 404, o.Payload) +} + func (o *DeleteLdapConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteLdapConfigurationConflict() *DeleteLdapConfigurationConflict { return &DeleteLdapConfigurationConflict{} } -/* DeleteLdapConfigurationConflict describes a response with status code 409, with default header values. +/* +DeleteLdapConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -161,9 +234,44 @@ type DeleteLdapConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete ldap configuration conflict response has a 2xx status code +func (o *DeleteLdapConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete ldap configuration conflict response has a 3xx status code +func (o *DeleteLdapConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete ldap configuration conflict response has a 4xx status code +func (o *DeleteLdapConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete ldap configuration conflict response has a 5xx status code +func (o *DeleteLdapConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete ldap configuration conflict response a status code equal to that given +func (o *DeleteLdapConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete ldap configuration conflict response +func (o *DeleteLdapConfigurationConflict) Code() int { + return 409 +} + func (o *DeleteLdapConfigurationConflict) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationConflict %+v", 409, o.Payload) } + +func (o *DeleteLdapConfigurationConflict) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationConflict %+v", 409, o.Payload) +} + func (o *DeleteLdapConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteLdapConfigurationRetryWith() *DeleteLdapConfigurationRetryWith { return &DeleteLdapConfigurationRetryWith{} } -/* DeleteLdapConfigurationRetryWith describes a response with status code 449, with default header values. +/* +DeleteLdapConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteLdapConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete ldap configuration retry with response has a 2xx status code +func (o *DeleteLdapConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete ldap configuration retry with response has a 3xx status code +func (o *DeleteLdapConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete ldap configuration retry with response has a 4xx status code +func (o *DeleteLdapConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete ldap configuration retry with response has a 5xx status code +func (o *DeleteLdapConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete ldap configuration retry with response a status code equal to that given +func (o *DeleteLdapConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete ldap configuration retry with response +func (o *DeleteLdapConfigurationRetryWith) Code() int { + return 449 +} + func (o *DeleteLdapConfigurationRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *DeleteLdapConfigurationRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/ldap/{realm_id}][%d] deleteLdapConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *DeleteLdapConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/delete_saml_configuration_parameters.go b/pkg/client/platform_configuration_security/delete_saml_configuration_parameters.go index 4de9b062..23dd97ce 100644 --- a/pkg/client/platform_configuration_security/delete_saml_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/delete_saml_configuration_parameters.go @@ -69,10 +69,12 @@ func NewDeleteSamlConfigurationParamsWithHTTPClient(client *http.Client) *Delete } } -/* DeleteSamlConfigurationParams contains all the parameters to send to the API endpoint - for the delete saml configuration operation. +/* +DeleteSamlConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete saml configuration operation. + + Typically these are written to a http.Request. */ type DeleteSamlConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/delete_saml_configuration_responses.go b/pkg/client/platform_configuration_security/delete_saml_configuration_responses.go index 56a2b75c..3e38b4ad 100644 --- a/pkg/client/platform_configuration_security/delete_saml_configuration_responses.go +++ b/pkg/client/platform_configuration_security/delete_saml_configuration_responses.go @@ -74,7 +74,8 @@ func NewDeleteSamlConfigurationOK() *DeleteSamlConfigurationOK { return &DeleteSamlConfigurationOK{} } -/* DeleteSamlConfigurationOK describes a response with status code 200, with default header values. +/* +DeleteSamlConfigurationOK describes a response with status code 200, with default header values. The SAML configuration was successfully deleted */ @@ -82,9 +83,44 @@ type DeleteSamlConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete saml configuration o k response has a 2xx status code +func (o *DeleteSamlConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete saml configuration o k response has a 3xx status code +func (o *DeleteSamlConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete saml configuration o k response has a 4xx status code +func (o *DeleteSamlConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete saml configuration o k response has a 5xx status code +func (o *DeleteSamlConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete saml configuration o k response a status code equal to that given +func (o *DeleteSamlConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete saml configuration o k response +func (o *DeleteSamlConfigurationOK) Code() int { + return 200 +} + func (o *DeleteSamlConfigurationOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationOK %+v", 200, o.Payload) } + +func (o *DeleteSamlConfigurationOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationOK %+v", 200, o.Payload) +} + func (o *DeleteSamlConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteSamlConfigurationNotFound() *DeleteSamlConfigurationNotFound { return &DeleteSamlConfigurationNotFound{} } -/* DeleteSamlConfigurationNotFound describes a response with status code 404, with default header values. +/* +DeleteSamlConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -117,9 +154,44 @@ type DeleteSamlConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete saml configuration not found response has a 2xx status code +func (o *DeleteSamlConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete saml configuration not found response has a 3xx status code +func (o *DeleteSamlConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete saml configuration not found response has a 4xx status code +func (o *DeleteSamlConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete saml configuration not found response has a 5xx status code +func (o *DeleteSamlConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete saml configuration not found response a status code equal to that given +func (o *DeleteSamlConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete saml configuration not found response +func (o *DeleteSamlConfigurationNotFound) Code() int { + return 404 +} + func (o *DeleteSamlConfigurationNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationNotFound %+v", 404, o.Payload) } + +func (o *DeleteSamlConfigurationNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationNotFound %+v", 404, o.Payload) +} + func (o *DeleteSamlConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteSamlConfigurationConflict() *DeleteSamlConfigurationConflict { return &DeleteSamlConfigurationConflict{} } -/* DeleteSamlConfigurationConflict describes a response with status code 409, with default header values. +/* +DeleteSamlConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -161,9 +234,44 @@ type DeleteSamlConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete saml configuration conflict response has a 2xx status code +func (o *DeleteSamlConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete saml configuration conflict response has a 3xx status code +func (o *DeleteSamlConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete saml configuration conflict response has a 4xx status code +func (o *DeleteSamlConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete saml configuration conflict response has a 5xx status code +func (o *DeleteSamlConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete saml configuration conflict response a status code equal to that given +func (o *DeleteSamlConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete saml configuration conflict response +func (o *DeleteSamlConfigurationConflict) Code() int { + return 409 +} + func (o *DeleteSamlConfigurationConflict) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationConflict %+v", 409, o.Payload) } + +func (o *DeleteSamlConfigurationConflict) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationConflict %+v", 409, o.Payload) +} + func (o *DeleteSamlConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteSamlConfigurationRetryWith() *DeleteSamlConfigurationRetryWith { return &DeleteSamlConfigurationRetryWith{} } -/* DeleteSamlConfigurationRetryWith describes a response with status code 449, with default header values. +/* +DeleteSamlConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteSamlConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete saml configuration retry with response has a 2xx status code +func (o *DeleteSamlConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete saml configuration retry with response has a 3xx status code +func (o *DeleteSamlConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete saml configuration retry with response has a 4xx status code +func (o *DeleteSamlConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete saml configuration retry with response has a 5xx status code +func (o *DeleteSamlConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete saml configuration retry with response a status code equal to that given +func (o *DeleteSamlConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete saml configuration retry with response +func (o *DeleteSamlConfigurationRetryWith) Code() int { + return 449 +} + func (o *DeleteSamlConfigurationRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *DeleteSamlConfigurationRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/security/realms/saml/{realm_id}][%d] deleteSamlConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *DeleteSamlConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_active_directory_configuration_parameters.go b/pkg/client/platform_configuration_security/get_active_directory_configuration_parameters.go index e3b80a85..3bff8f6d 100644 --- a/pkg/client/platform_configuration_security/get_active_directory_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/get_active_directory_configuration_parameters.go @@ -69,10 +69,12 @@ func NewGetActiveDirectoryConfigurationParamsWithHTTPClient(client *http.Client) } } -/* GetActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - for the get active directory configuration operation. +/* +GetActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get active directory configuration operation. + + Typically these are written to a http.Request. */ type GetActiveDirectoryConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/get_active_directory_configuration_responses.go b/pkg/client/platform_configuration_security/get_active_directory_configuration_responses.go index d5a008c1..0a282e10 100644 --- a/pkg/client/platform_configuration_security/get_active_directory_configuration_responses.go +++ b/pkg/client/platform_configuration_security/get_active_directory_configuration_responses.go @@ -62,7 +62,8 @@ func NewGetActiveDirectoryConfigurationOK() *GetActiveDirectoryConfigurationOK { return &GetActiveDirectoryConfigurationOK{} } -/* GetActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. +/* +GetActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. The Active Directory configuration was successfully retrieved */ @@ -83,9 +84,44 @@ type GetActiveDirectoryConfigurationOK struct { Payload *models.ActiveDirectorySettings } +// IsSuccess returns true when this get active directory configuration o k response has a 2xx status code +func (o *GetActiveDirectoryConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get active directory configuration o k response has a 3xx status code +func (o *GetActiveDirectoryConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get active directory configuration o k response has a 4xx status code +func (o *GetActiveDirectoryConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get active directory configuration o k response has a 5xx status code +func (o *GetActiveDirectoryConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get active directory configuration o k response a status code equal to that given +func (o *GetActiveDirectoryConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get active directory configuration o k response +func (o *GetActiveDirectoryConfigurationOK) Code() int { + return 200 +} + func (o *GetActiveDirectoryConfigurationOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/active-directory/{realm_id}][%d] getActiveDirectoryConfigurationOK %+v", 200, o.Payload) } + +func (o *GetActiveDirectoryConfigurationOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/active-directory/{realm_id}][%d] getActiveDirectoryConfigurationOK %+v", 200, o.Payload) +} + func (o *GetActiveDirectoryConfigurationOK) GetPayload() *models.ActiveDirectorySettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetActiveDirectoryConfigurationNotFound() *GetActiveDirectoryConfigurati return &GetActiveDirectoryConfigurationNotFound{} } -/* GetActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. +/* +GetActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -141,9 +178,44 @@ type GetActiveDirectoryConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get active directory configuration not found response has a 2xx status code +func (o *GetActiveDirectoryConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get active directory configuration not found response has a 3xx status code +func (o *GetActiveDirectoryConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get active directory configuration not found response has a 4xx status code +func (o *GetActiveDirectoryConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get active directory configuration not found response has a 5xx status code +func (o *GetActiveDirectoryConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get active directory configuration not found response a status code equal to that given +func (o *GetActiveDirectoryConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get active directory configuration not found response +func (o *GetActiveDirectoryConfigurationNotFound) Code() int { + return 404 +} + func (o *GetActiveDirectoryConfigurationNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/active-directory/{realm_id}][%d] getActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) } + +func (o *GetActiveDirectoryConfigurationNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/active-directory/{realm_id}][%d] getActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) +} + func (o *GetActiveDirectoryConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_enrollment_tokens_parameters.go b/pkg/client/platform_configuration_security/get_enrollment_tokens_parameters.go index c9e13cc7..8088d602 100644 --- a/pkg/client/platform_configuration_security/get_enrollment_tokens_parameters.go +++ b/pkg/client/platform_configuration_security/get_enrollment_tokens_parameters.go @@ -69,10 +69,12 @@ func NewGetEnrollmentTokensParamsWithHTTPClient(client *http.Client) *GetEnrollm } } -/* GetEnrollmentTokensParams contains all the parameters to send to the API endpoint - for the get enrollment tokens operation. +/* +GetEnrollmentTokensParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get enrollment tokens operation. + + Typically these are written to a http.Request. */ type GetEnrollmentTokensParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_security/get_enrollment_tokens_responses.go b/pkg/client/platform_configuration_security/get_enrollment_tokens_responses.go index 1089b72b..5f32c861 100644 --- a/pkg/client/platform_configuration_security/get_enrollment_tokens_responses.go +++ b/pkg/client/platform_configuration_security/get_enrollment_tokens_responses.go @@ -62,7 +62,8 @@ func NewGetEnrollmentTokensOK() *GetEnrollmentTokensOK { return &GetEnrollmentTokensOK{} } -/* GetEnrollmentTokensOK describes a response with status code 200, with default header values. +/* +GetEnrollmentTokensOK describes a response with status code 200, with default header values. A token has been generated that can be used to start new servers with the requested roles */ @@ -70,9 +71,44 @@ type GetEnrollmentTokensOK struct { Payload *models.ListEnrollmentTokenReply } +// IsSuccess returns true when this get enrollment tokens o k response has a 2xx status code +func (o *GetEnrollmentTokensOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get enrollment tokens o k response has a 3xx status code +func (o *GetEnrollmentTokensOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get enrollment tokens o k response has a 4xx status code +func (o *GetEnrollmentTokensOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get enrollment tokens o k response has a 5xx status code +func (o *GetEnrollmentTokensOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get enrollment tokens o k response a status code equal to that given +func (o *GetEnrollmentTokensOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get enrollment tokens o k response +func (o *GetEnrollmentTokensOK) Code() int { + return 200 +} + func (o *GetEnrollmentTokensOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/enrollment-tokens][%d] getEnrollmentTokensOK %+v", 200, o.Payload) } + +func (o *GetEnrollmentTokensOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/enrollment-tokens][%d] getEnrollmentTokensOK %+v", 200, o.Payload) +} + func (o *GetEnrollmentTokensOK) GetPayload() *models.ListEnrollmentTokenReply { return o.Payload } @@ -94,7 +130,8 @@ func NewGetEnrollmentTokensRetryWith() *GetEnrollmentTokensRetryWith { return &GetEnrollmentTokensRetryWith{} } -/* GetEnrollmentTokensRetryWith describes a response with status code 449, with default header values. +/* +GetEnrollmentTokensRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -102,9 +139,44 @@ type GetEnrollmentTokensRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get enrollment tokens retry with response has a 2xx status code +func (o *GetEnrollmentTokensRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get enrollment tokens retry with response has a 3xx status code +func (o *GetEnrollmentTokensRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get enrollment tokens retry with response has a 4xx status code +func (o *GetEnrollmentTokensRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this get enrollment tokens retry with response has a 5xx status code +func (o *GetEnrollmentTokensRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this get enrollment tokens retry with response a status code equal to that given +func (o *GetEnrollmentTokensRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the get enrollment tokens retry with response +func (o *GetEnrollmentTokensRetryWith) Code() int { + return 449 +} + func (o *GetEnrollmentTokensRetryWith) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/enrollment-tokens][%d] getEnrollmentTokensRetryWith %+v", 449, o.Payload) } + +func (o *GetEnrollmentTokensRetryWith) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/enrollment-tokens][%d] getEnrollmentTokensRetryWith %+v", 449, o.Payload) +} + func (o *GetEnrollmentTokensRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_ldap_configuration_parameters.go b/pkg/client/platform_configuration_security/get_ldap_configuration_parameters.go index 8b81bef9..377574cd 100644 --- a/pkg/client/platform_configuration_security/get_ldap_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/get_ldap_configuration_parameters.go @@ -69,10 +69,12 @@ func NewGetLdapConfigurationParamsWithHTTPClient(client *http.Client) *GetLdapCo } } -/* GetLdapConfigurationParams contains all the parameters to send to the API endpoint - for the get ldap configuration operation. +/* +GetLdapConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get ldap configuration operation. + + Typically these are written to a http.Request. */ type GetLdapConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/get_ldap_configuration_responses.go b/pkg/client/platform_configuration_security/get_ldap_configuration_responses.go index 72872aca..ce31991e 100644 --- a/pkg/client/platform_configuration_security/get_ldap_configuration_responses.go +++ b/pkg/client/platform_configuration_security/get_ldap_configuration_responses.go @@ -62,7 +62,8 @@ func NewGetLdapConfigurationOK() *GetLdapConfigurationOK { return &GetLdapConfigurationOK{} } -/* GetLdapConfigurationOK describes a response with status code 200, with default header values. +/* +GetLdapConfigurationOK describes a response with status code 200, with default header values. The LDAP configuration was successfully retrieved */ @@ -83,9 +84,44 @@ type GetLdapConfigurationOK struct { Payload *models.LdapSettings } +// IsSuccess returns true when this get ldap configuration o k response has a 2xx status code +func (o *GetLdapConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get ldap configuration o k response has a 3xx status code +func (o *GetLdapConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get ldap configuration o k response has a 4xx status code +func (o *GetLdapConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get ldap configuration o k response has a 5xx status code +func (o *GetLdapConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get ldap configuration o k response a status code equal to that given +func (o *GetLdapConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get ldap configuration o k response +func (o *GetLdapConfigurationOK) Code() int { + return 200 +} + func (o *GetLdapConfigurationOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/ldap/{realm_id}][%d] getLdapConfigurationOK %+v", 200, o.Payload) } + +func (o *GetLdapConfigurationOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/ldap/{realm_id}][%d] getLdapConfigurationOK %+v", 200, o.Payload) +} + func (o *GetLdapConfigurationOK) GetPayload() *models.LdapSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetLdapConfigurationNotFound() *GetLdapConfigurationNotFound { return &GetLdapConfigurationNotFound{} } -/* GetLdapConfigurationNotFound describes a response with status code 404, with default header values. +/* +GetLdapConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -141,9 +178,44 @@ type GetLdapConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get ldap configuration not found response has a 2xx status code +func (o *GetLdapConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get ldap configuration not found response has a 3xx status code +func (o *GetLdapConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get ldap configuration not found response has a 4xx status code +func (o *GetLdapConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get ldap configuration not found response has a 5xx status code +func (o *GetLdapConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get ldap configuration not found response a status code equal to that given +func (o *GetLdapConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get ldap configuration not found response +func (o *GetLdapConfigurationNotFound) Code() int { + return 404 +} + func (o *GetLdapConfigurationNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/ldap/{realm_id}][%d] getLdapConfigurationNotFound %+v", 404, o.Payload) } + +func (o *GetLdapConfigurationNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/ldap/{realm_id}][%d] getLdapConfigurationNotFound %+v", 404, o.Payload) +} + func (o *GetLdapConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_saml_configuration_parameters.go b/pkg/client/platform_configuration_security/get_saml_configuration_parameters.go index 56bcba5a..429ad04d 100644 --- a/pkg/client/platform_configuration_security/get_saml_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/get_saml_configuration_parameters.go @@ -69,10 +69,12 @@ func NewGetSamlConfigurationParamsWithHTTPClient(client *http.Client) *GetSamlCo } } -/* GetSamlConfigurationParams contains all the parameters to send to the API endpoint - for the get saml configuration operation. +/* +GetSamlConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get saml configuration operation. + + Typically these are written to a http.Request. */ type GetSamlConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/get_saml_configuration_responses.go b/pkg/client/platform_configuration_security/get_saml_configuration_responses.go index b4e955fe..452fc815 100644 --- a/pkg/client/platform_configuration_security/get_saml_configuration_responses.go +++ b/pkg/client/platform_configuration_security/get_saml_configuration_responses.go @@ -62,7 +62,8 @@ func NewGetSamlConfigurationOK() *GetSamlConfigurationOK { return &GetSamlConfigurationOK{} } -/* GetSamlConfigurationOK describes a response with status code 200, with default header values. +/* +GetSamlConfigurationOK describes a response with status code 200, with default header values. The SAML configuration was successfully retrieved */ @@ -83,9 +84,44 @@ type GetSamlConfigurationOK struct { Payload *models.SamlSettings } +// IsSuccess returns true when this get saml configuration o k response has a 2xx status code +func (o *GetSamlConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get saml configuration o k response has a 3xx status code +func (o *GetSamlConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get saml configuration o k response has a 4xx status code +func (o *GetSamlConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get saml configuration o k response has a 5xx status code +func (o *GetSamlConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get saml configuration o k response a status code equal to that given +func (o *GetSamlConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get saml configuration o k response +func (o *GetSamlConfigurationOK) Code() int { + return 200 +} + func (o *GetSamlConfigurationOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/saml/{realm_id}][%d] getSamlConfigurationOK %+v", 200, o.Payload) } + +func (o *GetSamlConfigurationOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/saml/{realm_id}][%d] getSamlConfigurationOK %+v", 200, o.Payload) +} + func (o *GetSamlConfigurationOK) GetPayload() *models.SamlSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetSamlConfigurationNotFound() *GetSamlConfigurationNotFound { return &GetSamlConfigurationNotFound{} } -/* GetSamlConfigurationNotFound describes a response with status code 404, with default header values. +/* +GetSamlConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -141,9 +178,44 @@ type GetSamlConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get saml configuration not found response has a 2xx status code +func (o *GetSamlConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get saml configuration not found response has a 3xx status code +func (o *GetSamlConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get saml configuration not found response has a 4xx status code +func (o *GetSamlConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get saml configuration not found response has a 5xx status code +func (o *GetSamlConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get saml configuration not found response a status code equal to that given +func (o *GetSamlConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get saml configuration not found response +func (o *GetSamlConfigurationNotFound) Code() int { + return 404 +} + func (o *GetSamlConfigurationNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms/saml/{realm_id}][%d] getSamlConfigurationNotFound %+v", 404, o.Payload) } + +func (o *GetSamlConfigurationNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms/saml/{realm_id}][%d] getSamlConfigurationNotFound %+v", 404, o.Payload) +} + func (o *GetSamlConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_security_deployment_parameters.go b/pkg/client/platform_configuration_security/get_security_deployment_parameters.go index 08eaa748..6d06e675 100644 --- a/pkg/client/platform_configuration_security/get_security_deployment_parameters.go +++ b/pkg/client/platform_configuration_security/get_security_deployment_parameters.go @@ -69,10 +69,12 @@ func NewGetSecurityDeploymentParamsWithHTTPClient(client *http.Client) *GetSecur } } -/* GetSecurityDeploymentParams contains all the parameters to send to the API endpoint - for the get security deployment operation. +/* +GetSecurityDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get security deployment operation. + + Typically these are written to a http.Request. */ type GetSecurityDeploymentParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_security/get_security_deployment_responses.go b/pkg/client/platform_configuration_security/get_security_deployment_responses.go index 85cc56f4..b4bea86f 100644 --- a/pkg/client/platform_configuration_security/get_security_deployment_responses.go +++ b/pkg/client/platform_configuration_security/get_security_deployment_responses.go @@ -62,7 +62,8 @@ func NewGetSecurityDeploymentOK() *GetSecurityDeploymentOK { return &GetSecurityDeploymentOK{} } -/* GetSecurityDeploymentOK describes a response with status code 200, with default header values. +/* +GetSecurityDeploymentOK describes a response with status code 200, with default header values. The security deployment was successfully returned */ @@ -83,9 +84,44 @@ type GetSecurityDeploymentOK struct { Payload *models.SecurityDeployment } +// IsSuccess returns true when this get security deployment o k response has a 2xx status code +func (o *GetSecurityDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get security deployment o k response has a 3xx status code +func (o *GetSecurityDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get security deployment o k response has a 4xx status code +func (o *GetSecurityDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get security deployment o k response has a 5xx status code +func (o *GetSecurityDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get security deployment o k response a status code equal to that given +func (o *GetSecurityDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get security deployment o k response +func (o *GetSecurityDeploymentOK) Code() int { + return 200 +} + func (o *GetSecurityDeploymentOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/deployment][%d] getSecurityDeploymentOK %+v", 200, o.Payload) } + +func (o *GetSecurityDeploymentOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/deployment][%d] getSecurityDeploymentOK %+v", 200, o.Payload) +} + func (o *GetSecurityDeploymentOK) GetPayload() *models.SecurityDeployment { return o.Payload } @@ -128,7 +164,8 @@ func NewGetSecurityDeploymentNotFound() *GetSecurityDeploymentNotFound { return &GetSecurityDeploymentNotFound{} } -/* GetSecurityDeploymentNotFound describes a response with status code 404, with default header values. +/* +GetSecurityDeploymentNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_deployment.not_found`) */ @@ -141,9 +178,44 @@ type GetSecurityDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get security deployment not found response has a 2xx status code +func (o *GetSecurityDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get security deployment not found response has a 3xx status code +func (o *GetSecurityDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get security deployment not found response has a 4xx status code +func (o *GetSecurityDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get security deployment not found response has a 5xx status code +func (o *GetSecurityDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get security deployment not found response a status code equal to that given +func (o *GetSecurityDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get security deployment not found response +func (o *GetSecurityDeploymentNotFound) Code() int { + return 404 +} + func (o *GetSecurityDeploymentNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/deployment][%d] getSecurityDeploymentNotFound %+v", 404, o.Payload) } + +func (o *GetSecurityDeploymentNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/deployment][%d] getSecurityDeploymentNotFound %+v", 404, o.Payload) +} + func (o *GetSecurityDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_security_realm_configurations_parameters.go b/pkg/client/platform_configuration_security/get_security_realm_configurations_parameters.go index 8cbcafba..20261280 100644 --- a/pkg/client/platform_configuration_security/get_security_realm_configurations_parameters.go +++ b/pkg/client/platform_configuration_security/get_security_realm_configurations_parameters.go @@ -69,10 +69,12 @@ func NewGetSecurityRealmConfigurationsParamsWithHTTPClient(client *http.Client) } } -/* GetSecurityRealmConfigurationsParams contains all the parameters to send to the API endpoint - for the get security realm configurations operation. +/* +GetSecurityRealmConfigurationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get security realm configurations operation. + + Typically these are written to a http.Request. */ type GetSecurityRealmConfigurationsParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_security/get_security_realm_configurations_responses.go b/pkg/client/platform_configuration_security/get_security_realm_configurations_responses.go index 7243ed22..dfc0daa3 100644 --- a/pkg/client/platform_configuration_security/get_security_realm_configurations_responses.go +++ b/pkg/client/platform_configuration_security/get_security_realm_configurations_responses.go @@ -56,7 +56,8 @@ func NewGetSecurityRealmConfigurationsOK() *GetSecurityRealmConfigurationsOK { return &GetSecurityRealmConfigurationsOK{} } -/* GetSecurityRealmConfigurationsOK describes a response with status code 200, with default header values. +/* +GetSecurityRealmConfigurationsOK describes a response with status code 200, with default header values. The security realm configurations were successfully returned */ @@ -64,9 +65,44 @@ type GetSecurityRealmConfigurationsOK struct { Payload *models.SecurityRealmInfoList } +// IsSuccess returns true when this get security realm configurations o k response has a 2xx status code +func (o *GetSecurityRealmConfigurationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get security realm configurations o k response has a 3xx status code +func (o *GetSecurityRealmConfigurationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get security realm configurations o k response has a 4xx status code +func (o *GetSecurityRealmConfigurationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get security realm configurations o k response has a 5xx status code +func (o *GetSecurityRealmConfigurationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get security realm configurations o k response a status code equal to that given +func (o *GetSecurityRealmConfigurationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get security realm configurations o k response +func (o *GetSecurityRealmConfigurationsOK) Code() int { + return 200 +} + func (o *GetSecurityRealmConfigurationsOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/realms][%d] getSecurityRealmConfigurationsOK %+v", 200, o.Payload) } + +func (o *GetSecurityRealmConfigurationsOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/realms][%d] getSecurityRealmConfigurationsOK %+v", 200, o.Payload) +} + func (o *GetSecurityRealmConfigurationsOK) GetPayload() *models.SecurityRealmInfoList { return o.Payload } diff --git a/pkg/client/platform_configuration_security/get_tls_certificate_parameters.go b/pkg/client/platform_configuration_security/get_tls_certificate_parameters.go index 63e2e2bd..f713dd95 100644 --- a/pkg/client/platform_configuration_security/get_tls_certificate_parameters.go +++ b/pkg/client/platform_configuration_security/get_tls_certificate_parameters.go @@ -69,10 +69,12 @@ func NewGetTLSCertificateParamsWithHTTPClient(client *http.Client) *GetTLSCertif } } -/* GetTLSCertificateParams contains all the parameters to send to the API endpoint - for the get tls certificate operation. +/* +GetTLSCertificateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get tls certificate operation. + + Typically these are written to a http.Request. */ type GetTLSCertificateParams struct { diff --git a/pkg/client/platform_configuration_security/get_tls_certificate_responses.go b/pkg/client/platform_configuration_security/get_tls_certificate_responses.go index e37434f8..7451726a 100644 --- a/pkg/client/platform_configuration_security/get_tls_certificate_responses.go +++ b/pkg/client/platform_configuration_security/get_tls_certificate_responses.go @@ -56,7 +56,8 @@ func NewGetTLSCertificateOK() *GetTLSCertificateOK { return &GetTLSCertificateOK{} } -/* GetTLSCertificateOK describes a response with status code 200, with default header values. +/* +GetTLSCertificateOK describes a response with status code 200, with default header values. The TLS certificate chain, with private key omitted, for the given service and whether it was user specified */ @@ -64,9 +65,44 @@ type GetTLSCertificateOK struct { Payload *models.TLSPublicCertChain } +// IsSuccess returns true when this get Tls certificate o k response has a 2xx status code +func (o *GetTLSCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get Tls certificate o k response has a 3xx status code +func (o *GetTLSCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Tls certificate o k response has a 4xx status code +func (o *GetTLSCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get Tls certificate o k response has a 5xx status code +func (o *GetTLSCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get Tls certificate o k response a status code equal to that given +func (o *GetTLSCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get Tls certificate o k response +func (o *GetTLSCertificateOK) Code() int { + return 200 +} + func (o *GetTLSCertificateOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/security/tls/{service_name}][%d] getTlsCertificateOK %+v", 200, o.Payload) } + +func (o *GetTLSCertificateOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/security/tls/{service_name}][%d] getTlsCertificateOK %+v", 200, o.Payload) +} + func (o *GetTLSCertificateOK) GetPayload() *models.TLSPublicCertChain { return o.Payload } diff --git a/pkg/client/platform_configuration_security/platform_configuration_security_client.go b/pkg/client/platform_configuration_security/platform_configuration_security_client.go index 0d5a0c53..f5335f97 100644 --- a/pkg/client/platform_configuration_security/platform_configuration_security_client.go +++ b/pkg/client/platform_configuration_security/platform_configuration_security_client.go @@ -95,9 +95,9 @@ type ClientService interface { } /* - CreateActiveDirectoryConfiguration creates active directory configuration +CreateActiveDirectoryConfiguration creates active directory configuration - Creates a new Active Directory configuration. +Creates a new Active Directory configuration. */ func (a *Client) CreateActiveDirectoryConfiguration(params *CreateActiveDirectoryConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateActiveDirectoryConfigurationCreated, error) { // TODO: Validate the params before sending @@ -136,9 +136,9 @@ func (a *Client) CreateActiveDirectoryConfiguration(params *CreateActiveDirector } /* - CreateEnrollmentToken creates enrollment token +CreateEnrollmentToken creates enrollment token - Creates an enrollment token. +Creates an enrollment token. */ func (a *Client) CreateEnrollmentToken(params *CreateEnrollmentTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEnrollmentTokenOK, error) { // TODO: Validate the params before sending @@ -177,9 +177,9 @@ func (a *Client) CreateEnrollmentToken(params *CreateEnrollmentTokenParams, auth } /* - CreateLdapConfiguration creates l d a p configuration +CreateLdapConfiguration creates l d a p configuration - Creates a new LDAP configuration. +Creates a new LDAP configuration. */ func (a *Client) CreateLdapConfiguration(params *CreateLdapConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLdapConfigurationCreated, error) { // TODO: Validate the params before sending @@ -218,9 +218,9 @@ func (a *Client) CreateLdapConfiguration(params *CreateLdapConfigurationParams, } /* - CreateSamlConfiguration creates s a m l configuration +CreateSamlConfiguration creates s a m l configuration - Creates a new SAML configuration. +Creates a new SAML configuration. */ func (a *Client) CreateSamlConfiguration(params *CreateSamlConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSamlConfigurationCreated, error) { // TODO: Validate the params before sending @@ -259,9 +259,9 @@ func (a *Client) CreateSamlConfiguration(params *CreateSamlConfigurationParams, } /* - CreateSecurityDeployment creates security deployment +CreateSecurityDeployment creates security deployment - Creates a new security deployment configuration. +Creates a new security deployment configuration. */ func (a *Client) CreateSecurityDeployment(params *CreateSecurityDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecurityDeploymentCreated, error) { // TODO: Validate the params before sending @@ -300,9 +300,9 @@ func (a *Client) CreateSecurityDeployment(params *CreateSecurityDeploymentParams } /* - DeleteActiveDirectoryConfiguration deletes active directory configuration +DeleteActiveDirectoryConfiguration deletes active directory configuration - Deletes a single Active Directory configuration. +Deletes a single Active Directory configuration. */ func (a *Client) DeleteActiveDirectoryConfiguration(params *DeleteActiveDirectoryConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteActiveDirectoryConfigurationOK, error) { // TODO: Validate the params before sending @@ -341,9 +341,9 @@ func (a *Client) DeleteActiveDirectoryConfiguration(params *DeleteActiveDirector } /* - DeleteEnrollmentToken deletes enrollment token +DeleteEnrollmentToken deletes enrollment token - Revokes and deletes the enrollment token. +Revokes and deletes the enrollment token. */ func (a *Client) DeleteEnrollmentToken(params *DeleteEnrollmentTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEnrollmentTokenOK, error) { // TODO: Validate the params before sending @@ -382,9 +382,9 @@ func (a *Client) DeleteEnrollmentToken(params *DeleteEnrollmentTokenParams, auth } /* - DeleteLdapConfiguration deletes l d a p configuration +DeleteLdapConfiguration deletes l d a p configuration - Deletes a single LDAP configuration. +Deletes a single LDAP configuration. */ func (a *Client) DeleteLdapConfiguration(params *DeleteLdapConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLdapConfigurationOK, error) { // TODO: Validate the params before sending @@ -423,9 +423,9 @@ func (a *Client) DeleteLdapConfiguration(params *DeleteLdapConfigurationParams, } /* - DeleteSamlConfiguration deletes s a m l configuration +DeleteSamlConfiguration deletes s a m l configuration - Deletes a single SAML configuration. +Deletes a single SAML configuration. */ func (a *Client) DeleteSamlConfiguration(params *DeleteSamlConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSamlConfigurationOK, error) { // TODO: Validate the params before sending @@ -464,9 +464,9 @@ func (a *Client) DeleteSamlConfiguration(params *DeleteSamlConfigurationParams, } /* - GetActiveDirectoryConfiguration gets active directory configuration +GetActiveDirectoryConfiguration gets active directory configuration - Retrieves a single Active Directory security realm configuration. +Retrieves a single Active Directory security realm configuration. */ func (a *Client) GetActiveDirectoryConfiguration(params *GetActiveDirectoryConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActiveDirectoryConfigurationOK, error) { // TODO: Validate the params before sending @@ -505,9 +505,9 @@ func (a *Client) GetActiveDirectoryConfiguration(params *GetActiveDirectoryConfi } /* - GetEnrollmentTokens gets enrollment tokens +GetEnrollmentTokens gets enrollment tokens - Retrieves a list of active enrollment tokens. +Retrieves a list of active enrollment tokens. */ func (a *Client) GetEnrollmentTokens(params *GetEnrollmentTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnrollmentTokensOK, error) { // TODO: Validate the params before sending @@ -546,9 +546,9 @@ func (a *Client) GetEnrollmentTokens(params *GetEnrollmentTokensParams, authInfo } /* - GetLdapConfiguration gets l d a p configuration +GetLdapConfiguration gets l d a p configuration - Retrieves a single LDAP security realm configuration. +Retrieves a single LDAP security realm configuration. */ func (a *Client) GetLdapConfiguration(params *GetLdapConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLdapConfigurationOK, error) { // TODO: Validate the params before sending @@ -587,9 +587,9 @@ func (a *Client) GetLdapConfiguration(params *GetLdapConfigurationParams, authIn } /* - GetSamlConfiguration gets s a m l configuration +GetSamlConfiguration gets s a m l configuration - Retrieves a single SAML security realm configuration. +Retrieves a single SAML security realm configuration. */ func (a *Client) GetSamlConfiguration(params *GetSamlConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSamlConfigurationOK, error) { // TODO: Validate the params before sending @@ -628,9 +628,9 @@ func (a *Client) GetSamlConfiguration(params *GetSamlConfigurationParams, authIn } /* - GetSecurityDeployment gets current security deployment +GetSecurityDeployment gets current security deployment - Retrieves the current security deployment. +Retrieves the current security deployment. */ func (a *Client) GetSecurityDeployment(params *GetSecurityDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecurityDeploymentOK, error) { // TODO: Validate the params before sending @@ -669,9 +669,9 @@ func (a *Client) GetSecurityDeployment(params *GetSecurityDeploymentParams, auth } /* - GetSecurityRealmConfigurations lists security realm configurations +GetSecurityRealmConfigurations lists security realm configurations - Retrieves a list of security realm configurations. +Retrieves a list of security realm configurations. */ func (a *Client) GetSecurityRealmConfigurations(params *GetSecurityRealmConfigurationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecurityRealmConfigurationsOK, error) { // TODO: Validate the params before sending @@ -710,9 +710,9 @@ func (a *Client) GetSecurityRealmConfigurations(params *GetSecurityRealmConfigur } /* - GetTLSCertificate gets TLS certificate +GetTLSCertificate gets TLS certificate - Retrieves a certificate in the TLS certificate chain. +Retrieves a certificate in the TLS certificate chain. */ func (a *Client) GetTLSCertificate(params *GetTLSCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTLSCertificateOK, error) { // TODO: Validate the params before sending @@ -751,9 +751,9 @@ func (a *Client) GetTLSCertificate(params *GetTLSCertificateParams, authInfo run } /* - ReorderSecurityRealms reorders security realms +ReorderSecurityRealms reorders security realms - Reorder security realms. +Reorder security realms. */ func (a *Client) ReorderSecurityRealms(params *ReorderSecurityRealmsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReorderSecurityRealmsOK, error) { // TODO: Validate the params before sending @@ -792,9 +792,9 @@ func (a *Client) ReorderSecurityRealms(params *ReorderSecurityRealmsParams, auth } /* - SetTLSCertificate sets TLS certificate +SetTLSCertificate sets TLS certificate - Creates or updates the TLS certificate chain. +Creates or updates the TLS certificate chain. */ func (a *Client) SetTLSCertificate(params *SetTLSCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTLSCertificateAccepted, error) { // TODO: Validate the params before sending @@ -833,9 +833,9 @@ func (a *Client) SetTLSCertificate(params *SetTLSCertificateParams, authInfo run } /* - UpdateActiveDirectoryConfiguration updates active directory configuration +UpdateActiveDirectoryConfiguration updates active directory configuration - Updates an existing Active Directory configuration. +Updates an existing Active Directory configuration. */ func (a *Client) UpdateActiveDirectoryConfiguration(params *UpdateActiveDirectoryConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateActiveDirectoryConfigurationOK, error) { // TODO: Validate the params before sending @@ -874,9 +874,9 @@ func (a *Client) UpdateActiveDirectoryConfiguration(params *UpdateActiveDirector } /* - UpdateLdapConfiguration updates l d a p configuration +UpdateLdapConfiguration updates l d a p configuration - Updates an existing LDAP configuration. +Updates an existing LDAP configuration. */ func (a *Client) UpdateLdapConfiguration(params *UpdateLdapConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLdapConfigurationOK, error) { // TODO: Validate the params before sending @@ -915,9 +915,9 @@ func (a *Client) UpdateLdapConfiguration(params *UpdateLdapConfigurationParams, } /* - UpdateSamlConfiguration updates s a m l configuration +UpdateSamlConfiguration updates s a m l configuration - Updates an existing SAML configuration. +Updates an existing SAML configuration. */ func (a *Client) UpdateSamlConfiguration(params *UpdateSamlConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSamlConfigurationOK, error) { // TODO: Validate the params before sending @@ -956,9 +956,9 @@ func (a *Client) UpdateSamlConfiguration(params *UpdateSamlConfigurationParams, } /* - UpdateSecurityDeployment updates security deployment +UpdateSecurityDeployment updates security deployment - Updates an existing security deployment configuration. +Updates an existing security deployment configuration. */ func (a *Client) UpdateSecurityDeployment(params *UpdateSecurityDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSecurityDeploymentOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_security/reorder_security_realms_parameters.go b/pkg/client/platform_configuration_security/reorder_security_realms_parameters.go index ac26efb3..cb1a963d 100644 --- a/pkg/client/platform_configuration_security/reorder_security_realms_parameters.go +++ b/pkg/client/platform_configuration_security/reorder_security_realms_parameters.go @@ -71,10 +71,12 @@ func NewReorderSecurityRealmsParamsWithHTTPClient(client *http.Client) *ReorderS } } -/* ReorderSecurityRealmsParams contains all the parameters to send to the API endpoint - for the reorder security realms operation. +/* +ReorderSecurityRealmsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the reorder security realms operation. + + Typically these are written to a http.Request. */ type ReorderSecurityRealmsParams struct { diff --git a/pkg/client/platform_configuration_security/reorder_security_realms_responses.go b/pkg/client/platform_configuration_security/reorder_security_realms_responses.go index 54718a6b..4cd1b312 100644 --- a/pkg/client/platform_configuration_security/reorder_security_realms_responses.go +++ b/pkg/client/platform_configuration_security/reorder_security_realms_responses.go @@ -68,7 +68,8 @@ func NewReorderSecurityRealmsOK() *ReorderSecurityRealmsOK { return &ReorderSecurityRealmsOK{} } -/* ReorderSecurityRealmsOK describes a response with status code 200, with default header values. +/* +ReorderSecurityRealmsOK describes a response with status code 200, with default header values. The reorder request was successful */ @@ -76,9 +77,44 @@ type ReorderSecurityRealmsOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this reorder security realms o k response has a 2xx status code +func (o *ReorderSecurityRealmsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this reorder security realms o k response has a 3xx status code +func (o *ReorderSecurityRealmsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reorder security realms o k response has a 4xx status code +func (o *ReorderSecurityRealmsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this reorder security realms o k response has a 5xx status code +func (o *ReorderSecurityRealmsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this reorder security realms o k response a status code equal to that given +func (o *ReorderSecurityRealmsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the reorder security realms o k response +func (o *ReorderSecurityRealmsOK) Code() int { + return 200 +} + func (o *ReorderSecurityRealmsOK) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsOK %+v", 200, o.Payload) } + +func (o *ReorderSecurityRealmsOK) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsOK %+v", 200, o.Payload) +} + func (o *ReorderSecurityRealmsOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,9 +134,11 @@ func NewReorderSecurityRealmsBadRequest() *ReorderSecurityRealmsBadRequest { return &ReorderSecurityRealmsBadRequest{} } -/* ReorderSecurityRealmsBadRequest describes a response with status code 400, with default header values. +/* + ReorderSecurityRealmsBadRequest describes a response with status code 400, with default header values. + + * Invalid ids . (code: `security_realm.invalid_ids`) - * Invalid ids . (code: `security_realm.invalid_ids`) * Missing ids . (code: `security_realm.missing_ids`) */ type ReorderSecurityRealmsBadRequest struct { @@ -112,9 +150,44 @@ type ReorderSecurityRealmsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this reorder security realms bad request response has a 2xx status code +func (o *ReorderSecurityRealmsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this reorder security realms bad request response has a 3xx status code +func (o *ReorderSecurityRealmsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reorder security realms bad request response has a 4xx status code +func (o *ReorderSecurityRealmsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this reorder security realms bad request response has a 5xx status code +func (o *ReorderSecurityRealmsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this reorder security realms bad request response a status code equal to that given +func (o *ReorderSecurityRealmsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the reorder security realms bad request response +func (o *ReorderSecurityRealmsBadRequest) Code() int { + return 400 +} + func (o *ReorderSecurityRealmsBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsBadRequest %+v", 400, o.Payload) } + +func (o *ReorderSecurityRealmsBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsBadRequest %+v", 400, o.Payload) +} + func (o *ReorderSecurityRealmsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -143,7 +216,8 @@ func NewReorderSecurityRealmsRetryWith() *ReorderSecurityRealmsRetryWith { return &ReorderSecurityRealmsRetryWith{} } -/* ReorderSecurityRealmsRetryWith describes a response with status code 449, with default header values. +/* +ReorderSecurityRealmsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -156,9 +230,44 @@ type ReorderSecurityRealmsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this reorder security realms retry with response has a 2xx status code +func (o *ReorderSecurityRealmsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this reorder security realms retry with response has a 3xx status code +func (o *ReorderSecurityRealmsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reorder security realms retry with response has a 4xx status code +func (o *ReorderSecurityRealmsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this reorder security realms retry with response has a 5xx status code +func (o *ReorderSecurityRealmsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this reorder security realms retry with response a status code equal to that given +func (o *ReorderSecurityRealmsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the reorder security realms retry with response +func (o *ReorderSecurityRealmsRetryWith) Code() int { + return 449 +} + func (o *ReorderSecurityRealmsRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsRetryWith %+v", 449, o.Payload) } + +func (o *ReorderSecurityRealmsRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/realms/_reorder][%d] reorderSecurityRealmsRetryWith %+v", 449, o.Payload) +} + func (o *ReorderSecurityRealmsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/set_tls_certificate_parameters.go b/pkg/client/platform_configuration_security/set_tls_certificate_parameters.go index e907c014..9f58b6af 100644 --- a/pkg/client/platform_configuration_security/set_tls_certificate_parameters.go +++ b/pkg/client/platform_configuration_security/set_tls_certificate_parameters.go @@ -69,10 +69,12 @@ func NewSetTLSCertificateParamsWithHTTPClient(client *http.Client) *SetTLSCertif } } -/* SetTLSCertificateParams contains all the parameters to send to the API endpoint - for the set tls certificate operation. +/* +SetTLSCertificateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set tls certificate operation. + + Typically these are written to a http.Request. */ type SetTLSCertificateParams struct { diff --git a/pkg/client/platform_configuration_security/set_tls_certificate_responses.go b/pkg/client/platform_configuration_security/set_tls_certificate_responses.go index 4ac991e4..beff3b4d 100644 --- a/pkg/client/platform_configuration_security/set_tls_certificate_responses.go +++ b/pkg/client/platform_configuration_security/set_tls_certificate_responses.go @@ -62,7 +62,8 @@ func NewSetTLSCertificateAccepted() *SetTLSCertificateAccepted { return &SetTLSCertificateAccepted{} } -/* SetTLSCertificateAccepted describes a response with status code 202, with default header values. +/* +SetTLSCertificateAccepted describes a response with status code 202, with default header values. The TLS update has been accepted for the given service and will take effect throughout the system */ @@ -70,9 +71,44 @@ type SetTLSCertificateAccepted struct { Payload *models.UpdatedTLSChain } +// IsSuccess returns true when this set Tls certificate accepted response has a 2xx status code +func (o *SetTLSCertificateAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set Tls certificate accepted response has a 3xx status code +func (o *SetTLSCertificateAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Tls certificate accepted response has a 4xx status code +func (o *SetTLSCertificateAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this set Tls certificate accepted response has a 5xx status code +func (o *SetTLSCertificateAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this set Tls certificate accepted response a status code equal to that given +func (o *SetTLSCertificateAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the set Tls certificate accepted response +func (o *SetTLSCertificateAccepted) Code() int { + return 202 +} + func (o *SetTLSCertificateAccepted) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/tls/{service_name}][%d] setTlsCertificateAccepted %+v", 202, o.Payload) } + +func (o *SetTLSCertificateAccepted) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/tls/{service_name}][%d] setTlsCertificateAccepted %+v", 202, o.Payload) +} + func (o *SetTLSCertificateAccepted) GetPayload() *models.UpdatedTLSChain { return o.Payload } @@ -94,7 +130,8 @@ func NewSetTLSCertificateRetryWith() *SetTLSCertificateRetryWith { return &SetTLSCertificateRetryWith{} } -/* SetTLSCertificateRetryWith describes a response with status code 449, with default header values. +/* +SetTLSCertificateRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -102,9 +139,44 @@ type SetTLSCertificateRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set Tls certificate retry with response has a 2xx status code +func (o *SetTLSCertificateRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set Tls certificate retry with response has a 3xx status code +func (o *SetTLSCertificateRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Tls certificate retry with response has a 4xx status code +func (o *SetTLSCertificateRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set Tls certificate retry with response has a 5xx status code +func (o *SetTLSCertificateRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set Tls certificate retry with response a status code equal to that given +func (o *SetTLSCertificateRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set Tls certificate retry with response +func (o *SetTLSCertificateRetryWith) Code() int { + return 449 +} + func (o *SetTLSCertificateRetryWith) Error() string { return fmt.Sprintf("[POST /platform/configuration/security/tls/{service_name}][%d] setTlsCertificateRetryWith %+v", 449, o.Payload) } + +func (o *SetTLSCertificateRetryWith) String() string { + return fmt.Sprintf("[POST /platform/configuration/security/tls/{service_name}][%d] setTlsCertificateRetryWith %+v", 449, o.Payload) +} + func (o *SetTLSCertificateRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/update_active_directory_configuration_parameters.go b/pkg/client/platform_configuration_security/update_active_directory_configuration_parameters.go index e1123fd4..4ea68622 100644 --- a/pkg/client/platform_configuration_security/update_active_directory_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/update_active_directory_configuration_parameters.go @@ -71,10 +71,12 @@ func NewUpdateActiveDirectoryConfigurationParamsWithHTTPClient(client *http.Clie } } -/* UpdateActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - for the update active directory configuration operation. +/* +UpdateActiveDirectoryConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update active directory configuration operation. + + Typically these are written to a http.Request. */ type UpdateActiveDirectoryConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/update_active_directory_configuration_responses.go b/pkg/client/platform_configuration_security/update_active_directory_configuration_responses.go index 193afa00..9b05537b 100644 --- a/pkg/client/platform_configuration_security/update_active_directory_configuration_responses.go +++ b/pkg/client/platform_configuration_security/update_active_directory_configuration_responses.go @@ -80,7 +80,8 @@ func NewUpdateActiveDirectoryConfigurationOK() *UpdateActiveDirectoryConfigurati return &UpdateActiveDirectoryConfigurationOK{} } -/* UpdateActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. +/* +UpdateActiveDirectoryConfigurationOK describes a response with status code 200, with default header values. The Active Directory configuration was successfully updated */ @@ -101,9 +102,44 @@ type UpdateActiveDirectoryConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this update active directory configuration o k response has a 2xx status code +func (o *UpdateActiveDirectoryConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update active directory configuration o k response has a 3xx status code +func (o *UpdateActiveDirectoryConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update active directory configuration o k response has a 4xx status code +func (o *UpdateActiveDirectoryConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update active directory configuration o k response has a 5xx status code +func (o *UpdateActiveDirectoryConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update active directory configuration o k response a status code equal to that given +func (o *UpdateActiveDirectoryConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update active directory configuration o k response +func (o *UpdateActiveDirectoryConfigurationOK) Code() int { + return 200 +} + func (o *UpdateActiveDirectoryConfigurationOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationOK %+v", 200, o.Payload) } + +func (o *UpdateActiveDirectoryConfigurationOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationOK %+v", 200, o.Payload) +} + func (o *UpdateActiveDirectoryConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -144,9 +180,11 @@ func NewUpdateActiveDirectoryConfigurationBadRequest() *UpdateActiveDirectoryCon return &UpdateActiveDirectoryConfigurationBadRequest{} } -/* UpdateActiveDirectoryConfigurationBadRequest describes a response with status code 400, with default header values. +/* + UpdateActiveDirectoryConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -165,9 +203,44 @@ type UpdateActiveDirectoryConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update active directory configuration bad request response has a 2xx status code +func (o *UpdateActiveDirectoryConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update active directory configuration bad request response has a 3xx status code +func (o *UpdateActiveDirectoryConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update active directory configuration bad request response has a 4xx status code +func (o *UpdateActiveDirectoryConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update active directory configuration bad request response has a 5xx status code +func (o *UpdateActiveDirectoryConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update active directory configuration bad request response a status code equal to that given +func (o *UpdateActiveDirectoryConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update active directory configuration bad request response +func (o *UpdateActiveDirectoryConfigurationBadRequest) Code() int { + return 400 +} + func (o *UpdateActiveDirectoryConfigurationBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *UpdateActiveDirectoryConfigurationBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *UpdateActiveDirectoryConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -196,7 +269,8 @@ func NewUpdateActiveDirectoryConfigurationNotFound() *UpdateActiveDirectoryConfi return &UpdateActiveDirectoryConfigurationNotFound{} } -/* UpdateActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. +/* +UpdateActiveDirectoryConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -209,9 +283,44 @@ type UpdateActiveDirectoryConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update active directory configuration not found response has a 2xx status code +func (o *UpdateActiveDirectoryConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update active directory configuration not found response has a 3xx status code +func (o *UpdateActiveDirectoryConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update active directory configuration not found response has a 4xx status code +func (o *UpdateActiveDirectoryConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update active directory configuration not found response has a 5xx status code +func (o *UpdateActiveDirectoryConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update active directory configuration not found response a status code equal to that given +func (o *UpdateActiveDirectoryConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update active directory configuration not found response +func (o *UpdateActiveDirectoryConfigurationNotFound) Code() int { + return 404 +} + func (o *UpdateActiveDirectoryConfigurationNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) } + +func (o *UpdateActiveDirectoryConfigurationNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationNotFound %+v", 404, o.Payload) +} + func (o *UpdateActiveDirectoryConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -240,7 +349,8 @@ func NewUpdateActiveDirectoryConfigurationConflict() *UpdateActiveDirectoryConfi return &UpdateActiveDirectoryConfigurationConflict{} } -/* UpdateActiveDirectoryConfigurationConflict describes a response with status code 409, with default header values. +/* +UpdateActiveDirectoryConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -253,9 +363,44 @@ type UpdateActiveDirectoryConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update active directory configuration conflict response has a 2xx status code +func (o *UpdateActiveDirectoryConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update active directory configuration conflict response has a 3xx status code +func (o *UpdateActiveDirectoryConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update active directory configuration conflict response has a 4xx status code +func (o *UpdateActiveDirectoryConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update active directory configuration conflict response has a 5xx status code +func (o *UpdateActiveDirectoryConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update active directory configuration conflict response a status code equal to that given +func (o *UpdateActiveDirectoryConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update active directory configuration conflict response +func (o *UpdateActiveDirectoryConfigurationConflict) Code() int { + return 409 +} + func (o *UpdateActiveDirectoryConfigurationConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationConflict %+v", 409, o.Payload) } + +func (o *UpdateActiveDirectoryConfigurationConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationConflict %+v", 409, o.Payload) +} + func (o *UpdateActiveDirectoryConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -284,7 +429,8 @@ func NewUpdateActiveDirectoryConfigurationRetryWith() *UpdateActiveDirectoryConf return &UpdateActiveDirectoryConfigurationRetryWith{} } -/* UpdateActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. +/* +UpdateActiveDirectoryConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -297,9 +443,44 @@ type UpdateActiveDirectoryConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update active directory configuration retry with response has a 2xx status code +func (o *UpdateActiveDirectoryConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update active directory configuration retry with response has a 3xx status code +func (o *UpdateActiveDirectoryConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update active directory configuration retry with response has a 4xx status code +func (o *UpdateActiveDirectoryConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update active directory configuration retry with response has a 5xx status code +func (o *UpdateActiveDirectoryConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update active directory configuration retry with response a status code equal to that given +func (o *UpdateActiveDirectoryConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update active directory configuration retry with response +func (o *UpdateActiveDirectoryConfigurationRetryWith) Code() int { + return 449 +} + func (o *UpdateActiveDirectoryConfigurationRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *UpdateActiveDirectoryConfigurationRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/active-directory/{realm_id}][%d] updateActiveDirectoryConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *UpdateActiveDirectoryConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/update_ldap_configuration_parameters.go b/pkg/client/platform_configuration_security/update_ldap_configuration_parameters.go index d5062c4d..2344e1ca 100644 --- a/pkg/client/platform_configuration_security/update_ldap_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/update_ldap_configuration_parameters.go @@ -71,10 +71,12 @@ func NewUpdateLdapConfigurationParamsWithHTTPClient(client *http.Client) *Update } } -/* UpdateLdapConfigurationParams contains all the parameters to send to the API endpoint - for the update ldap configuration operation. +/* +UpdateLdapConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update ldap configuration operation. + + Typically these are written to a http.Request. */ type UpdateLdapConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/update_ldap_configuration_responses.go b/pkg/client/platform_configuration_security/update_ldap_configuration_responses.go index bb6c71a2..188d8941 100644 --- a/pkg/client/platform_configuration_security/update_ldap_configuration_responses.go +++ b/pkg/client/platform_configuration_security/update_ldap_configuration_responses.go @@ -80,7 +80,8 @@ func NewUpdateLdapConfigurationOK() *UpdateLdapConfigurationOK { return &UpdateLdapConfigurationOK{} } -/* UpdateLdapConfigurationOK describes a response with status code 200, with default header values. +/* +UpdateLdapConfigurationOK describes a response with status code 200, with default header values. The LDAP configuration was successfully updated */ @@ -101,9 +102,44 @@ type UpdateLdapConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this update ldap configuration o k response has a 2xx status code +func (o *UpdateLdapConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update ldap configuration o k response has a 3xx status code +func (o *UpdateLdapConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ldap configuration o k response has a 4xx status code +func (o *UpdateLdapConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update ldap configuration o k response has a 5xx status code +func (o *UpdateLdapConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update ldap configuration o k response a status code equal to that given +func (o *UpdateLdapConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update ldap configuration o k response +func (o *UpdateLdapConfigurationOK) Code() int { + return 200 +} + func (o *UpdateLdapConfigurationOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationOK %+v", 200, o.Payload) } + +func (o *UpdateLdapConfigurationOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationOK %+v", 200, o.Payload) +} + func (o *UpdateLdapConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -144,9 +180,11 @@ func NewUpdateLdapConfigurationBadRequest() *UpdateLdapConfigurationBadRequest { return &UpdateLdapConfigurationBadRequest{} } -/* UpdateLdapConfigurationBadRequest describes a response with status code 400, with default header values. +/* + UpdateLdapConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -165,9 +203,44 @@ type UpdateLdapConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update ldap configuration bad request response has a 2xx status code +func (o *UpdateLdapConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update ldap configuration bad request response has a 3xx status code +func (o *UpdateLdapConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ldap configuration bad request response has a 4xx status code +func (o *UpdateLdapConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update ldap configuration bad request response has a 5xx status code +func (o *UpdateLdapConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update ldap configuration bad request response a status code equal to that given +func (o *UpdateLdapConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update ldap configuration bad request response +func (o *UpdateLdapConfigurationBadRequest) Code() int { + return 400 +} + func (o *UpdateLdapConfigurationBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *UpdateLdapConfigurationBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *UpdateLdapConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -196,7 +269,8 @@ func NewUpdateLdapConfigurationNotFound() *UpdateLdapConfigurationNotFound { return &UpdateLdapConfigurationNotFound{} } -/* UpdateLdapConfigurationNotFound describes a response with status code 404, with default header values. +/* +UpdateLdapConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -209,9 +283,44 @@ type UpdateLdapConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update ldap configuration not found response has a 2xx status code +func (o *UpdateLdapConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update ldap configuration not found response has a 3xx status code +func (o *UpdateLdapConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ldap configuration not found response has a 4xx status code +func (o *UpdateLdapConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update ldap configuration not found response has a 5xx status code +func (o *UpdateLdapConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update ldap configuration not found response a status code equal to that given +func (o *UpdateLdapConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update ldap configuration not found response +func (o *UpdateLdapConfigurationNotFound) Code() int { + return 404 +} + func (o *UpdateLdapConfigurationNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationNotFound %+v", 404, o.Payload) } + +func (o *UpdateLdapConfigurationNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationNotFound %+v", 404, o.Payload) +} + func (o *UpdateLdapConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -240,7 +349,8 @@ func NewUpdateLdapConfigurationConflict() *UpdateLdapConfigurationConflict { return &UpdateLdapConfigurationConflict{} } -/* UpdateLdapConfigurationConflict describes a response with status code 409, with default header values. +/* +UpdateLdapConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -253,9 +363,44 @@ type UpdateLdapConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update ldap configuration conflict response has a 2xx status code +func (o *UpdateLdapConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update ldap configuration conflict response has a 3xx status code +func (o *UpdateLdapConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ldap configuration conflict response has a 4xx status code +func (o *UpdateLdapConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update ldap configuration conflict response has a 5xx status code +func (o *UpdateLdapConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update ldap configuration conflict response a status code equal to that given +func (o *UpdateLdapConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update ldap configuration conflict response +func (o *UpdateLdapConfigurationConflict) Code() int { + return 409 +} + func (o *UpdateLdapConfigurationConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationConflict %+v", 409, o.Payload) } + +func (o *UpdateLdapConfigurationConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationConflict %+v", 409, o.Payload) +} + func (o *UpdateLdapConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -284,7 +429,8 @@ func NewUpdateLdapConfigurationRetryWith() *UpdateLdapConfigurationRetryWith { return &UpdateLdapConfigurationRetryWith{} } -/* UpdateLdapConfigurationRetryWith describes a response with status code 449, with default header values. +/* +UpdateLdapConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -297,9 +443,44 @@ type UpdateLdapConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update ldap configuration retry with response has a 2xx status code +func (o *UpdateLdapConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update ldap configuration retry with response has a 3xx status code +func (o *UpdateLdapConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ldap configuration retry with response has a 4xx status code +func (o *UpdateLdapConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update ldap configuration retry with response has a 5xx status code +func (o *UpdateLdapConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update ldap configuration retry with response a status code equal to that given +func (o *UpdateLdapConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update ldap configuration retry with response +func (o *UpdateLdapConfigurationRetryWith) Code() int { + return 449 +} + func (o *UpdateLdapConfigurationRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *UpdateLdapConfigurationRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/ldap/{realm_id}][%d] updateLdapConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *UpdateLdapConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/update_saml_configuration_parameters.go b/pkg/client/platform_configuration_security/update_saml_configuration_parameters.go index 4ff7317f..33b88e84 100644 --- a/pkg/client/platform_configuration_security/update_saml_configuration_parameters.go +++ b/pkg/client/platform_configuration_security/update_saml_configuration_parameters.go @@ -71,10 +71,12 @@ func NewUpdateSamlConfigurationParamsWithHTTPClient(client *http.Client) *Update } } -/* UpdateSamlConfigurationParams contains all the parameters to send to the API endpoint - for the update saml configuration operation. +/* +UpdateSamlConfigurationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update saml configuration operation. + + Typically these are written to a http.Request. */ type UpdateSamlConfigurationParams struct { diff --git a/pkg/client/platform_configuration_security/update_saml_configuration_responses.go b/pkg/client/platform_configuration_security/update_saml_configuration_responses.go index 5a703359..56720203 100644 --- a/pkg/client/platform_configuration_security/update_saml_configuration_responses.go +++ b/pkg/client/platform_configuration_security/update_saml_configuration_responses.go @@ -80,7 +80,8 @@ func NewUpdateSamlConfigurationOK() *UpdateSamlConfigurationOK { return &UpdateSamlConfigurationOK{} } -/* UpdateSamlConfigurationOK describes a response with status code 200, with default header values. +/* +UpdateSamlConfigurationOK describes a response with status code 200, with default header values. The SAML configuration was successfully updated */ @@ -101,9 +102,44 @@ type UpdateSamlConfigurationOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this update saml configuration o k response has a 2xx status code +func (o *UpdateSamlConfigurationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update saml configuration o k response has a 3xx status code +func (o *UpdateSamlConfigurationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update saml configuration o k response has a 4xx status code +func (o *UpdateSamlConfigurationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update saml configuration o k response has a 5xx status code +func (o *UpdateSamlConfigurationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update saml configuration o k response a status code equal to that given +func (o *UpdateSamlConfigurationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update saml configuration o k response +func (o *UpdateSamlConfigurationOK) Code() int { + return 200 +} + func (o *UpdateSamlConfigurationOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationOK %+v", 200, o.Payload) } + +func (o *UpdateSamlConfigurationOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationOK %+v", 200, o.Payload) +} + func (o *UpdateSamlConfigurationOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -144,9 +180,11 @@ func NewUpdateSamlConfigurationBadRequest() *UpdateSamlConfigurationBadRequest { return &UpdateSamlConfigurationBadRequest{} } -/* UpdateSamlConfigurationBadRequest describes a response with status code 400, with default header values. +/* + UpdateSamlConfigurationBadRequest describes a response with status code 400, with default header values. + + * The realm id is already in use. (code: `security_realm.id_conflict`) - * The realm id is already in use. (code: `security_realm.id_conflict`) * The selected id is not valid. (code: `security_realm.invalid_id`) * Order must be greater than zero. (code: `security_realm.invalid_order`) * Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`) @@ -164,9 +202,44 @@ type UpdateSamlConfigurationBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update saml configuration bad request response has a 2xx status code +func (o *UpdateSamlConfigurationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update saml configuration bad request response has a 3xx status code +func (o *UpdateSamlConfigurationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update saml configuration bad request response has a 4xx status code +func (o *UpdateSamlConfigurationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update saml configuration bad request response has a 5xx status code +func (o *UpdateSamlConfigurationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update saml configuration bad request response a status code equal to that given +func (o *UpdateSamlConfigurationBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update saml configuration bad request response +func (o *UpdateSamlConfigurationBadRequest) Code() int { + return 400 +} + func (o *UpdateSamlConfigurationBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationBadRequest %+v", 400, o.Payload) } + +func (o *UpdateSamlConfigurationBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationBadRequest %+v", 400, o.Payload) +} + func (o *UpdateSamlConfigurationBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +268,8 @@ func NewUpdateSamlConfigurationNotFound() *UpdateSamlConfigurationNotFound { return &UpdateSamlConfigurationNotFound{} } -/* UpdateSamlConfigurationNotFound describes a response with status code 404, with default header values. +/* +UpdateSamlConfigurationNotFound describes a response with status code 404, with default header values. The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`) */ @@ -208,9 +282,44 @@ type UpdateSamlConfigurationNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update saml configuration not found response has a 2xx status code +func (o *UpdateSamlConfigurationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update saml configuration not found response has a 3xx status code +func (o *UpdateSamlConfigurationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update saml configuration not found response has a 4xx status code +func (o *UpdateSamlConfigurationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update saml configuration not found response has a 5xx status code +func (o *UpdateSamlConfigurationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update saml configuration not found response a status code equal to that given +func (o *UpdateSamlConfigurationNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update saml configuration not found response +func (o *UpdateSamlConfigurationNotFound) Code() int { + return 404 +} + func (o *UpdateSamlConfigurationNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationNotFound %+v", 404, o.Payload) } + +func (o *UpdateSamlConfigurationNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationNotFound %+v", 404, o.Payload) +} + func (o *UpdateSamlConfigurationNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -239,7 +348,8 @@ func NewUpdateSamlConfigurationConflict() *UpdateSamlConfigurationConflict { return &UpdateSamlConfigurationConflict{} } -/* UpdateSamlConfigurationConflict describes a response with status code 409, with default header values. +/* +UpdateSamlConfigurationConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `security_realm.version_conflict`) */ @@ -252,9 +362,44 @@ type UpdateSamlConfigurationConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update saml configuration conflict response has a 2xx status code +func (o *UpdateSamlConfigurationConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update saml configuration conflict response has a 3xx status code +func (o *UpdateSamlConfigurationConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update saml configuration conflict response has a 4xx status code +func (o *UpdateSamlConfigurationConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update saml configuration conflict response has a 5xx status code +func (o *UpdateSamlConfigurationConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update saml configuration conflict response a status code equal to that given +func (o *UpdateSamlConfigurationConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update saml configuration conflict response +func (o *UpdateSamlConfigurationConflict) Code() int { + return 409 +} + func (o *UpdateSamlConfigurationConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationConflict %+v", 409, o.Payload) } + +func (o *UpdateSamlConfigurationConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationConflict %+v", 409, o.Payload) +} + func (o *UpdateSamlConfigurationConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -283,7 +428,8 @@ func NewUpdateSamlConfigurationRetryWith() *UpdateSamlConfigurationRetryWith { return &UpdateSamlConfigurationRetryWith{} } -/* UpdateSamlConfigurationRetryWith describes a response with status code 449, with default header values. +/* +UpdateSamlConfigurationRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -296,9 +442,44 @@ type UpdateSamlConfigurationRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update saml configuration retry with response has a 2xx status code +func (o *UpdateSamlConfigurationRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update saml configuration retry with response has a 3xx status code +func (o *UpdateSamlConfigurationRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update saml configuration retry with response has a 4xx status code +func (o *UpdateSamlConfigurationRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update saml configuration retry with response has a 5xx status code +func (o *UpdateSamlConfigurationRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update saml configuration retry with response a status code equal to that given +func (o *UpdateSamlConfigurationRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update saml configuration retry with response +func (o *UpdateSamlConfigurationRetryWith) Code() int { + return 449 +} + func (o *UpdateSamlConfigurationRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationRetryWith %+v", 449, o.Payload) } + +func (o *UpdateSamlConfigurationRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/realms/saml/{realm_id}][%d] updateSamlConfigurationRetryWith %+v", 449, o.Payload) +} + func (o *UpdateSamlConfigurationRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_security/update_security_deployment_parameters.go b/pkg/client/platform_configuration_security/update_security_deployment_parameters.go index 5dff5cd3..79e44435 100644 --- a/pkg/client/platform_configuration_security/update_security_deployment_parameters.go +++ b/pkg/client/platform_configuration_security/update_security_deployment_parameters.go @@ -71,10 +71,12 @@ func NewUpdateSecurityDeploymentParamsWithHTTPClient(client *http.Client) *Updat } } -/* UpdateSecurityDeploymentParams contains all the parameters to send to the API endpoint - for the update security deployment operation. +/* +UpdateSecurityDeploymentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update security deployment operation. + + Typically these are written to a http.Request. */ type UpdateSecurityDeploymentParams struct { diff --git a/pkg/client/platform_configuration_security/update_security_deployment_responses.go b/pkg/client/platform_configuration_security/update_security_deployment_responses.go index f778d0c6..0b0d7dcc 100644 --- a/pkg/client/platform_configuration_security/update_security_deployment_responses.go +++ b/pkg/client/platform_configuration_security/update_security_deployment_responses.go @@ -74,7 +74,8 @@ func NewUpdateSecurityDeploymentOK() *UpdateSecurityDeploymentOK { return &UpdateSecurityDeploymentOK{} } -/* UpdateSecurityDeploymentOK describes a response with status code 200, with default header values. +/* +UpdateSecurityDeploymentOK describes a response with status code 200, with default header values. The security deployment was successfully updated */ @@ -95,9 +96,44 @@ type UpdateSecurityDeploymentOK struct { Payload *models.IDResponse } +// IsSuccess returns true when this update security deployment o k response has a 2xx status code +func (o *UpdateSecurityDeploymentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update security deployment o k response has a 3xx status code +func (o *UpdateSecurityDeploymentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update security deployment o k response has a 4xx status code +func (o *UpdateSecurityDeploymentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update security deployment o k response has a 5xx status code +func (o *UpdateSecurityDeploymentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update security deployment o k response a status code equal to that given +func (o *UpdateSecurityDeploymentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update security deployment o k response +func (o *UpdateSecurityDeploymentOK) Code() int { + return 200 +} + func (o *UpdateSecurityDeploymentOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentOK %+v", 200, o.Payload) } + +func (o *UpdateSecurityDeploymentOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentOK %+v", 200, o.Payload) +} + func (o *UpdateSecurityDeploymentOK) GetPayload() *models.IDResponse { return o.Payload } @@ -140,7 +176,8 @@ func NewUpdateSecurityDeploymentNotFound() *UpdateSecurityDeploymentNotFound { return &UpdateSecurityDeploymentNotFound{} } -/* UpdateSecurityDeploymentNotFound describes a response with status code 404, with default header values. +/* +UpdateSecurityDeploymentNotFound describes a response with status code 404, with default header values. The security deployment was not found. (code: `security_deployment.not_found`) */ @@ -153,9 +190,44 @@ type UpdateSecurityDeploymentNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update security deployment not found response has a 2xx status code +func (o *UpdateSecurityDeploymentNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update security deployment not found response has a 3xx status code +func (o *UpdateSecurityDeploymentNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update security deployment not found response has a 4xx status code +func (o *UpdateSecurityDeploymentNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update security deployment not found response has a 5xx status code +func (o *UpdateSecurityDeploymentNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update security deployment not found response a status code equal to that given +func (o *UpdateSecurityDeploymentNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update security deployment not found response +func (o *UpdateSecurityDeploymentNotFound) Code() int { + return 404 +} + func (o *UpdateSecurityDeploymentNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentNotFound %+v", 404, o.Payload) } + +func (o *UpdateSecurityDeploymentNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentNotFound %+v", 404, o.Payload) +} + func (o *UpdateSecurityDeploymentNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,9 +256,11 @@ func NewUpdateSecurityDeploymentConflict() *UpdateSecurityDeploymentConflict { return &UpdateSecurityDeploymentConflict{} } -/* UpdateSecurityDeploymentConflict describes a response with status code 409, with default header values. +/* + UpdateSecurityDeploymentConflict describes a response with status code 409, with default header values. + + * There is a version conflict. (code: `security_deployment.version_conflict`) - * There is a version conflict. (code: `security_deployment.version_conflict`) * There is a version conflict. (code: `security_deployment.already_exists`) */ type UpdateSecurityDeploymentConflict struct { @@ -198,9 +272,44 @@ type UpdateSecurityDeploymentConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update security deployment conflict response has a 2xx status code +func (o *UpdateSecurityDeploymentConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update security deployment conflict response has a 3xx status code +func (o *UpdateSecurityDeploymentConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update security deployment conflict response has a 4xx status code +func (o *UpdateSecurityDeploymentConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update security deployment conflict response has a 5xx status code +func (o *UpdateSecurityDeploymentConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update security deployment conflict response a status code equal to that given +func (o *UpdateSecurityDeploymentConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update security deployment conflict response +func (o *UpdateSecurityDeploymentConflict) Code() int { + return 409 +} + func (o *UpdateSecurityDeploymentConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentConflict %+v", 409, o.Payload) } + +func (o *UpdateSecurityDeploymentConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentConflict %+v", 409, o.Payload) +} + func (o *UpdateSecurityDeploymentConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -229,7 +338,8 @@ func NewUpdateSecurityDeploymentRetryWith() *UpdateSecurityDeploymentRetryWith { return &UpdateSecurityDeploymentRetryWith{} } -/* UpdateSecurityDeploymentRetryWith describes a response with status code 449, with default header values. +/* +UpdateSecurityDeploymentRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -242,9 +352,44 @@ type UpdateSecurityDeploymentRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update security deployment retry with response has a 2xx status code +func (o *UpdateSecurityDeploymentRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update security deployment retry with response has a 3xx status code +func (o *UpdateSecurityDeploymentRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update security deployment retry with response has a 4xx status code +func (o *UpdateSecurityDeploymentRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update security deployment retry with response has a 5xx status code +func (o *UpdateSecurityDeploymentRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update security deployment retry with response a status code equal to that given +func (o *UpdateSecurityDeploymentRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update security deployment retry with response +func (o *UpdateSecurityDeploymentRetryWith) Code() int { + return 449 +} + func (o *UpdateSecurityDeploymentRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentRetryWith %+v", 449, o.Payload) } + +func (o *UpdateSecurityDeploymentRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/security/deployment][%d] updateSecurityDeploymentRetryWith %+v", 449, o.Payload) +} + func (o *UpdateSecurityDeploymentRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_parameters.go b/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_parameters.go index e68e000b..b3d19e3e 100644 --- a/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_parameters.go +++ b/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_parameters.go @@ -70,10 +70,12 @@ func NewDeleteSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *Delet } } -/* DeleteSnapshotRepositoryParams contains all the parameters to send to the API endpoint - for the delete snapshot repository operation. +/* +DeleteSnapshotRepositoryParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete snapshot repository operation. + + Typically these are written to a http.Request. */ type DeleteSnapshotRepositoryParams struct { diff --git a/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_responses.go b/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_responses.go index 58c2f8a7..2472ef53 100644 --- a/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_responses.go +++ b/pkg/client/platform_configuration_snapshots/delete_snapshot_repository_responses.go @@ -74,7 +74,8 @@ func NewDeleteSnapshotRepositoryOK() *DeleteSnapshotRepositoryOK { return &DeleteSnapshotRepositoryOK{} } -/* DeleteSnapshotRepositoryOK describes a response with status code 200, with default header values. +/* +DeleteSnapshotRepositoryOK describes a response with status code 200, with default header values. successful operation */ @@ -82,9 +83,44 @@ type DeleteSnapshotRepositoryOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete snapshot repository o k response has a 2xx status code +func (o *DeleteSnapshotRepositoryOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete snapshot repository o k response has a 3xx status code +func (o *DeleteSnapshotRepositoryOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete snapshot repository o k response has a 4xx status code +func (o *DeleteSnapshotRepositoryOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete snapshot repository o k response has a 5xx status code +func (o *DeleteSnapshotRepositoryOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete snapshot repository o k response a status code equal to that given +func (o *DeleteSnapshotRepositoryOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete snapshot repository o k response +func (o *DeleteSnapshotRepositoryOK) Code() int { + return 200 +} + func (o *DeleteSnapshotRepositoryOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryOK %+v", 200, o.Payload) } + +func (o *DeleteSnapshotRepositoryOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryOK %+v", 200, o.Payload) +} + func (o *DeleteSnapshotRepositoryOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteSnapshotRepositoryAccepted() *DeleteSnapshotRepositoryAccepted { return &DeleteSnapshotRepositoryAccepted{} } -/* DeleteSnapshotRepositoryAccepted describes a response with status code 202, with default header values. +/* +DeleteSnapshotRepositoryAccepted describes a response with status code 202, with default header values. Delete snapshot repository config */ @@ -112,9 +149,44 @@ type DeleteSnapshotRepositoryAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete snapshot repository accepted response has a 2xx status code +func (o *DeleteSnapshotRepositoryAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete snapshot repository accepted response has a 3xx status code +func (o *DeleteSnapshotRepositoryAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete snapshot repository accepted response has a 4xx status code +func (o *DeleteSnapshotRepositoryAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete snapshot repository accepted response has a 5xx status code +func (o *DeleteSnapshotRepositoryAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this delete snapshot repository accepted response a status code equal to that given +func (o *DeleteSnapshotRepositoryAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the delete snapshot repository accepted response +func (o *DeleteSnapshotRepositoryAccepted) Code() int { + return 202 +} + func (o *DeleteSnapshotRepositoryAccepted) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryAccepted %+v", 202, o.Payload) } + +func (o *DeleteSnapshotRepositoryAccepted) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryAccepted %+v", 202, o.Payload) +} + func (o *DeleteSnapshotRepositoryAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -134,7 +206,8 @@ func NewDeleteSnapshotRepositoryRetryWith() *DeleteSnapshotRepositoryRetryWith { return &DeleteSnapshotRepositoryRetryWith{} } -/* DeleteSnapshotRepositoryRetryWith describes a response with status code 449, with default header values. +/* +DeleteSnapshotRepositoryRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -142,9 +215,44 @@ type DeleteSnapshotRepositoryRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete snapshot repository retry with response has a 2xx status code +func (o *DeleteSnapshotRepositoryRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete snapshot repository retry with response has a 3xx status code +func (o *DeleteSnapshotRepositoryRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete snapshot repository retry with response has a 4xx status code +func (o *DeleteSnapshotRepositoryRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete snapshot repository retry with response has a 5xx status code +func (o *DeleteSnapshotRepositoryRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete snapshot repository retry with response a status code equal to that given +func (o *DeleteSnapshotRepositoryRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete snapshot repository retry with response +func (o *DeleteSnapshotRepositoryRetryWith) Code() int { + return 449 +} + func (o *DeleteSnapshotRepositoryRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryRetryWith %+v", 449, o.Payload) } + +func (o *DeleteSnapshotRepositoryRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryRetryWith %+v", 449, o.Payload) +} + func (o *DeleteSnapshotRepositoryRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -166,7 +274,8 @@ func NewDeleteSnapshotRepositoryInternalServerError() *DeleteSnapshotRepositoryI return &DeleteSnapshotRepositoryInternalServerError{} } -/* DeleteSnapshotRepositoryInternalServerError describes a response with status code 500, with default header values. +/* +DeleteSnapshotRepositoryInternalServerError describes a response with status code 500, with default header values. Failed to delete references and disable snapshots in one or more referencing clusters. */ @@ -174,9 +283,44 @@ type DeleteSnapshotRepositoryInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete snapshot repository internal server error response has a 2xx status code +func (o *DeleteSnapshotRepositoryInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete snapshot repository internal server error response has a 3xx status code +func (o *DeleteSnapshotRepositoryInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete snapshot repository internal server error response has a 4xx status code +func (o *DeleteSnapshotRepositoryInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete snapshot repository internal server error response has a 5xx status code +func (o *DeleteSnapshotRepositoryInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this delete snapshot repository internal server error response a status code equal to that given +func (o *DeleteSnapshotRepositoryInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the delete snapshot repository internal server error response +func (o *DeleteSnapshotRepositoryInternalServerError) Code() int { + return 500 +} + func (o *DeleteSnapshotRepositoryInternalServerError) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryInternalServerError %+v", 500, o.Payload) } + +func (o *DeleteSnapshotRepositoryInternalServerError) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/snapshots/repositories/{repository_name}][%d] deleteSnapshotRepositoryInternalServerError %+v", 500, o.Payload) +} + func (o *DeleteSnapshotRepositoryInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_parameters.go b/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_parameters.go index 714e9475..6048c509 100644 --- a/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_parameters.go +++ b/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_parameters.go @@ -69,10 +69,12 @@ func NewGetSnapshotRepositoriesParamsWithHTTPClient(client *http.Client) *GetSna } } -/* GetSnapshotRepositoriesParams contains all the parameters to send to the API endpoint - for the get snapshot repositories operation. +/* +GetSnapshotRepositoriesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get snapshot repositories operation. + + Typically these are written to a http.Request. */ type GetSnapshotRepositoriesParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_responses.go b/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_responses.go index 3ce741a0..84de0952 100644 --- a/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_responses.go +++ b/pkg/client/platform_configuration_snapshots/get_snapshot_repositories_responses.go @@ -56,7 +56,8 @@ func NewGetSnapshotRepositoriesOK() *GetSnapshotRepositoriesOK { return &GetSnapshotRepositoriesOK{} } -/* GetSnapshotRepositoriesOK describes a response with status code 200, with default header values. +/* +GetSnapshotRepositoriesOK describes a response with status code 200, with default header values. List of snapshot repository configs */ @@ -64,9 +65,44 @@ type GetSnapshotRepositoriesOK struct { Payload *models.RepositoryConfigs } +// IsSuccess returns true when this get snapshot repositories o k response has a 2xx status code +func (o *GetSnapshotRepositoriesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get snapshot repositories o k response has a 3xx status code +func (o *GetSnapshotRepositoriesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get snapshot repositories o k response has a 4xx status code +func (o *GetSnapshotRepositoriesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get snapshot repositories o k response has a 5xx status code +func (o *GetSnapshotRepositoriesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get snapshot repositories o k response a status code equal to that given +func (o *GetSnapshotRepositoriesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get snapshot repositories o k response +func (o *GetSnapshotRepositoriesOK) Code() int { + return 200 +} + func (o *GetSnapshotRepositoriesOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/snapshots/repositories][%d] getSnapshotRepositoriesOK %+v", 200, o.Payload) } + +func (o *GetSnapshotRepositoriesOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/snapshots/repositories][%d] getSnapshotRepositoriesOK %+v", 200, o.Payload) +} + func (o *GetSnapshotRepositoriesOK) GetPayload() *models.RepositoryConfigs { return o.Payload } diff --git a/pkg/client/platform_configuration_snapshots/get_snapshot_repository_parameters.go b/pkg/client/platform_configuration_snapshots/get_snapshot_repository_parameters.go index f4897c86..33cda4aa 100644 --- a/pkg/client/platform_configuration_snapshots/get_snapshot_repository_parameters.go +++ b/pkg/client/platform_configuration_snapshots/get_snapshot_repository_parameters.go @@ -69,10 +69,12 @@ func NewGetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *GetSnaps } } -/* GetSnapshotRepositoryParams contains all the parameters to send to the API endpoint - for the get snapshot repository operation. +/* +GetSnapshotRepositoryParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get snapshot repository operation. + + Typically these are written to a http.Request. */ type GetSnapshotRepositoryParams struct { diff --git a/pkg/client/platform_configuration_snapshots/get_snapshot_repository_responses.go b/pkg/client/platform_configuration_snapshots/get_snapshot_repository_responses.go index 3c1b7156..a2116fdf 100644 --- a/pkg/client/platform_configuration_snapshots/get_snapshot_repository_responses.go +++ b/pkg/client/platform_configuration_snapshots/get_snapshot_repository_responses.go @@ -56,7 +56,8 @@ func NewGetSnapshotRepositoryOK() *GetSnapshotRepositoryOK { return &GetSnapshotRepositoryOK{} } -/* GetSnapshotRepositoryOK describes a response with status code 200, with default header values. +/* +GetSnapshotRepositoryOK describes a response with status code 200, with default header values. Retrieve snapshot repository config */ @@ -64,9 +65,44 @@ type GetSnapshotRepositoryOK struct { Payload *models.RepositoryConfig } +// IsSuccess returns true when this get snapshot repository o k response has a 2xx status code +func (o *GetSnapshotRepositoryOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get snapshot repository o k response has a 3xx status code +func (o *GetSnapshotRepositoryOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get snapshot repository o k response has a 4xx status code +func (o *GetSnapshotRepositoryOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get snapshot repository o k response has a 5xx status code +func (o *GetSnapshotRepositoryOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get snapshot repository o k response a status code equal to that given +func (o *GetSnapshotRepositoryOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get snapshot repository o k response +func (o *GetSnapshotRepositoryOK) Code() int { + return 200 +} + func (o *GetSnapshotRepositoryOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/snapshots/repositories/{repository_name}][%d] getSnapshotRepositoryOK %+v", 200, o.Payload) } + +func (o *GetSnapshotRepositoryOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/snapshots/repositories/{repository_name}][%d] getSnapshotRepositoryOK %+v", 200, o.Payload) +} + func (o *GetSnapshotRepositoryOK) GetPayload() *models.RepositoryConfig { return o.Payload } diff --git a/pkg/client/platform_configuration_snapshots/platform_configuration_snapshots_client.go b/pkg/client/platform_configuration_snapshots/platform_configuration_snapshots_client.go index fbb2b797..147f81b8 100644 --- a/pkg/client/platform_configuration_snapshots/platform_configuration_snapshots_client.go +++ b/pkg/client/platform_configuration_snapshots/platform_configuration_snapshots_client.go @@ -59,9 +59,9 @@ type ClientService interface { } /* - DeleteSnapshotRepository deletes snapshot repository +DeleteSnapshotRepository deletes snapshot repository - Deletes the snapshot repository configuration. +Deletes the snapshot repository configuration. */ func (a *Client) DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapshotRepositoryOK, *DeleteSnapshotRepositoryAccepted, error) { // TODO: Validate the params before sending @@ -101,9 +101,9 @@ func (a *Client) DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams } /* - GetSnapshotRepositories gets snapshot repositories +GetSnapshotRepositories gets snapshot repositories - Retrieves a list of available snapshot repository configurations. To access the configuration contents, you must have privileged permissions. +Retrieves a list of available snapshot repository configurations. To access the configuration contents, you must have privileged permissions. */ func (a *Client) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoriesOK, error) { // TODO: Validate the params before sending @@ -142,9 +142,9 @@ func (a *Client) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, } /* - GetSnapshotRepository gets snapshot repository +GetSnapshotRepository gets snapshot repository - Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions. +Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions. */ func (a *Client) GetSnapshotRepository(params *GetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoryOK, error) { // TODO: Validate the params before sending @@ -183,9 +183,9 @@ func (a *Client) GetSnapshotRepository(params *GetSnapshotRepositoryParams, auth } /* - SetSnapshotRepository sets snapshot repository +SetSnapshotRepository sets snapshot repository - Creates or updates the snapshot repository configuration. +Creates or updates the snapshot repository configuration. */ func (a *Client) SetSnapshotRepository(params *SetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetSnapshotRepositoryOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_snapshots/set_snapshot_repository_parameters.go b/pkg/client/platform_configuration_snapshots/set_snapshot_repository_parameters.go index a940c615..d0c5e3ed 100644 --- a/pkg/client/platform_configuration_snapshots/set_snapshot_repository_parameters.go +++ b/pkg/client/platform_configuration_snapshots/set_snapshot_repository_parameters.go @@ -72,10 +72,12 @@ func NewSetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *SetSnaps } } -/* SetSnapshotRepositoryParams contains all the parameters to send to the API endpoint - for the set snapshot repository operation. +/* +SetSnapshotRepositoryParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set snapshot repository operation. + + Typically these are written to a http.Request. */ type SetSnapshotRepositoryParams struct { diff --git a/pkg/client/platform_configuration_snapshots/set_snapshot_repository_responses.go b/pkg/client/platform_configuration_snapshots/set_snapshot_repository_responses.go index e8e4b6cc..a3dedcdb 100644 --- a/pkg/client/platform_configuration_snapshots/set_snapshot_repository_responses.go +++ b/pkg/client/platform_configuration_snapshots/set_snapshot_repository_responses.go @@ -62,7 +62,8 @@ func NewSetSnapshotRepositoryOK() *SetSnapshotRepositoryOK { return &SetSnapshotRepositoryOK{} } -/* SetSnapshotRepositoryOK describes a response with status code 200, with default header values. +/* +SetSnapshotRepositoryOK describes a response with status code 200, with default header values. New snapshot repository config */ @@ -70,9 +71,44 @@ type SetSnapshotRepositoryOK struct { Payload *models.RepositoryConfig } +// IsSuccess returns true when this set snapshot repository o k response has a 2xx status code +func (o *SetSnapshotRepositoryOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set snapshot repository o k response has a 3xx status code +func (o *SetSnapshotRepositoryOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set snapshot repository o k response has a 4xx status code +func (o *SetSnapshotRepositoryOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set snapshot repository o k response has a 5xx status code +func (o *SetSnapshotRepositoryOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set snapshot repository o k response a status code equal to that given +func (o *SetSnapshotRepositoryOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set snapshot repository o k response +func (o *SetSnapshotRepositoryOK) Code() int { + return 200 +} + func (o *SetSnapshotRepositoryOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/snapshots/repositories/{repository_name}][%d] setSnapshotRepositoryOK %+v", 200, o.Payload) } + +func (o *SetSnapshotRepositoryOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/snapshots/repositories/{repository_name}][%d] setSnapshotRepositoryOK %+v", 200, o.Payload) +} + func (o *SetSnapshotRepositoryOK) GetPayload() *models.RepositoryConfig { return o.Payload } @@ -94,7 +130,8 @@ func NewSetSnapshotRepositoryRetryWith() *SetSnapshotRepositoryRetryWith { return &SetSnapshotRepositoryRetryWith{} } -/* SetSnapshotRepositoryRetryWith describes a response with status code 449, with default header values. +/* +SetSnapshotRepositoryRetryWith describes a response with status code 449, with default header values. elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"') */ @@ -102,9 +139,44 @@ type SetSnapshotRepositoryRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set snapshot repository retry with response has a 2xx status code +func (o *SetSnapshotRepositoryRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set snapshot repository retry with response has a 3xx status code +func (o *SetSnapshotRepositoryRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set snapshot repository retry with response has a 4xx status code +func (o *SetSnapshotRepositoryRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set snapshot repository retry with response has a 5xx status code +func (o *SetSnapshotRepositoryRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set snapshot repository retry with response a status code equal to that given +func (o *SetSnapshotRepositoryRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set snapshot repository retry with response +func (o *SetSnapshotRepositoryRetryWith) Code() int { + return 449 +} + func (o *SetSnapshotRepositoryRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/configuration/snapshots/repositories/{repository_name}][%d] setSnapshotRepositoryRetryWith %+v", 449, o.Payload) } + +func (o *SetSnapshotRepositoryRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/configuration/snapshots/repositories/{repository_name}][%d] setSnapshotRepositoryRetryWith %+v", 449, o.Payload) +} + func (o *SetSnapshotRepositoryRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_templates/get_global_deployment_templates_parameters.go b/pkg/client/platform_configuration_templates/get_global_deployment_templates_parameters.go index 5ed02a00..74c36c7e 100644 --- a/pkg/client/platform_configuration_templates/get_global_deployment_templates_parameters.go +++ b/pkg/client/platform_configuration_templates/get_global_deployment_templates_parameters.go @@ -69,10 +69,12 @@ func NewGetGlobalDeploymentTemplatesParamsWithHTTPClient(client *http.Client) *G } } -/* GetGlobalDeploymentTemplatesParams contains all the parameters to send to the API endpoint - for the get global deployment templates operation. +/* +GetGlobalDeploymentTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get global deployment templates operation. + + Typically these are written to a http.Request. */ type GetGlobalDeploymentTemplatesParams struct { timeout time.Duration diff --git a/pkg/client/platform_configuration_templates/get_global_deployment_templates_responses.go b/pkg/client/platform_configuration_templates/get_global_deployment_templates_responses.go index 3952f4f9..df72a3c8 100644 --- a/pkg/client/platform_configuration_templates/get_global_deployment_templates_responses.go +++ b/pkg/client/platform_configuration_templates/get_global_deployment_templates_responses.go @@ -56,7 +56,8 @@ func NewGetGlobalDeploymentTemplatesOK() *GetGlobalDeploymentTemplatesOK { return &GetGlobalDeploymentTemplatesOK{} } -/* GetGlobalDeploymentTemplatesOK describes a response with status code 200, with default header values. +/* +GetGlobalDeploymentTemplatesOK describes a response with status code 200, with default header values. The deployment templates were returned successfully. */ @@ -64,9 +65,44 @@ type GetGlobalDeploymentTemplatesOK struct { Payload []*models.GlobalDeploymentTemplateInfo } +// IsSuccess returns true when this get global deployment templates o k response has a 2xx status code +func (o *GetGlobalDeploymentTemplatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get global deployment templates o k response has a 3xx status code +func (o *GetGlobalDeploymentTemplatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get global deployment templates o k response has a 4xx status code +func (o *GetGlobalDeploymentTemplatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get global deployment templates o k response has a 5xx status code +func (o *GetGlobalDeploymentTemplatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get global deployment templates o k response a status code equal to that given +func (o *GetGlobalDeploymentTemplatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get global deployment templates o k response +func (o *GetGlobalDeploymentTemplatesOK) Code() int { + return 200 +} + func (o *GetGlobalDeploymentTemplatesOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/templates/deployments/global][%d] getGlobalDeploymentTemplatesOK %+v", 200, o.Payload) } + +func (o *GetGlobalDeploymentTemplatesOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/templates/deployments/global][%d] getGlobalDeploymentTemplatesOK %+v", 200, o.Payload) +} + func (o *GetGlobalDeploymentTemplatesOK) GetPayload() []*models.GlobalDeploymentTemplateInfo { return o.Payload } diff --git a/pkg/client/platform_configuration_templates/platform_configuration_templates_client.go b/pkg/client/platform_configuration_templates/platform_configuration_templates_client.go index b64b5de0..54e18389 100644 --- a/pkg/client/platform_configuration_templates/platform_configuration_templates_client.go +++ b/pkg/client/platform_configuration_templates/platform_configuration_templates_client.go @@ -53,9 +53,9 @@ type ClientService interface { } /* - GetGlobalDeploymentTemplates gets all templates cross region +GetGlobalDeploymentTemplates gets all templates cross region - Global deployment template endpoint which fetches the deployment templates across all region services. +Global deployment template endpoint which fetches the deployment templates across all region services. */ func (a *Client) GetGlobalDeploymentTemplates(params *GetGlobalDeploymentTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalDeploymentTemplatesOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_parameters.go b/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_parameters.go index a7c88f01..2d426e81 100644 --- a/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_parameters.go +++ b/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_parameters.go @@ -71,10 +71,12 @@ func NewCreateTrustRelationshipParamsWithHTTPClient(client *http.Client) *Create } } -/* CreateTrustRelationshipParams contains all the parameters to send to the API endpoint - for the create trust relationship operation. +/* +CreateTrustRelationshipParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create trust relationship operation. + + Typically these are written to a http.Request. */ type CreateTrustRelationshipParams struct { diff --git a/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_responses.go b/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_responses.go index f39be6a0..d26e7b34 100644 --- a/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_responses.go +++ b/pkg/client/platform_configuration_trust_relationships/create_trust_relationship_responses.go @@ -68,7 +68,8 @@ func NewCreateTrustRelationshipCreated() *CreateTrustRelationshipCreated { return &CreateTrustRelationshipCreated{} } -/* CreateTrustRelationshipCreated describes a response with status code 201, with default header values. +/* +CreateTrustRelationshipCreated describes a response with status code 201, with default header values. The request was valid and a new trust relationship was created */ @@ -89,9 +90,44 @@ type CreateTrustRelationshipCreated struct { Payload *models.TrustRelationshipCreateResponse } +// IsSuccess returns true when this create trust relationship created response has a 2xx status code +func (o *CreateTrustRelationshipCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create trust relationship created response has a 3xx status code +func (o *CreateTrustRelationshipCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create trust relationship created response has a 4xx status code +func (o *CreateTrustRelationshipCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create trust relationship created response has a 5xx status code +func (o *CreateTrustRelationshipCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create trust relationship created response a status code equal to that given +func (o *CreateTrustRelationshipCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create trust relationship created response +func (o *CreateTrustRelationshipCreated) Code() int { + return 201 +} + func (o *CreateTrustRelationshipCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipCreated %+v", 201, o.Payload) } + +func (o *CreateTrustRelationshipCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipCreated %+v", 201, o.Payload) +} + func (o *CreateTrustRelationshipCreated) GetPayload() *models.TrustRelationshipCreateResponse { return o.Payload } @@ -134,7 +170,8 @@ func NewCreateTrustRelationshipBadRequest() *CreateTrustRelationshipBadRequest { return &CreateTrustRelationshipBadRequest{} } -/* CreateTrustRelationshipBadRequest describes a response with status code 400, with default header values. +/* +CreateTrustRelationshipBadRequest describes a response with status code 400, with default header values. The trust relationship request had errors. */ @@ -142,9 +179,44 @@ type CreateTrustRelationshipBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create trust relationship bad request response has a 2xx status code +func (o *CreateTrustRelationshipBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create trust relationship bad request response has a 3xx status code +func (o *CreateTrustRelationshipBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create trust relationship bad request response has a 4xx status code +func (o *CreateTrustRelationshipBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create trust relationship bad request response has a 5xx status code +func (o *CreateTrustRelationshipBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create trust relationship bad request response a status code equal to that given +func (o *CreateTrustRelationshipBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create trust relationship bad request response +func (o *CreateTrustRelationshipBadRequest) Code() int { + return 400 +} + func (o *CreateTrustRelationshipBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipBadRequest %+v", 400, o.Payload) } + +func (o *CreateTrustRelationshipBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipBadRequest %+v", 400, o.Payload) +} + func (o *CreateTrustRelationshipBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -166,7 +238,8 @@ func NewCreateTrustRelationshipUnauthorized() *CreateTrustRelationshipUnauthoriz return &CreateTrustRelationshipUnauthorized{} } -/* CreateTrustRelationshipUnauthorized describes a response with status code 401, with default header values. +/* +CreateTrustRelationshipUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -174,9 +247,44 @@ type CreateTrustRelationshipUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create trust relationship unauthorized response has a 2xx status code +func (o *CreateTrustRelationshipUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create trust relationship unauthorized response has a 3xx status code +func (o *CreateTrustRelationshipUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create trust relationship unauthorized response has a 4xx status code +func (o *CreateTrustRelationshipUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this create trust relationship unauthorized response has a 5xx status code +func (o *CreateTrustRelationshipUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this create trust relationship unauthorized response a status code equal to that given +func (o *CreateTrustRelationshipUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the create trust relationship unauthorized response +func (o *CreateTrustRelationshipUnauthorized) Code() int { + return 401 +} + func (o *CreateTrustRelationshipUnauthorized) Error() string { return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipUnauthorized %+v", 401, o.Payload) } + +func (o *CreateTrustRelationshipUnauthorized) String() string { + return fmt.Sprintf("[POST /platform/configuration/trust-relationships][%d] createTrustRelationshipUnauthorized %+v", 401, o.Payload) +} + func (o *CreateTrustRelationshipUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_parameters.go b/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_parameters.go index 7931adb7..a1799789 100644 --- a/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_parameters.go +++ b/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_parameters.go @@ -70,10 +70,12 @@ func NewDeleteTrustRelationshipParamsWithHTTPClient(client *http.Client) *Delete } } -/* DeleteTrustRelationshipParams contains all the parameters to send to the API endpoint - for the delete trust relationship operation. +/* +DeleteTrustRelationshipParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete trust relationship operation. + + Typically these are written to a http.Request. */ type DeleteTrustRelationshipParams struct { diff --git a/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_responses.go b/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_responses.go index ba05bec0..0fc41dce 100644 --- a/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_responses.go +++ b/pkg/client/platform_configuration_trust_relationships/delete_trust_relationship_responses.go @@ -68,7 +68,8 @@ func NewDeleteTrustRelationshipOK() *DeleteTrustRelationshipOK { return &DeleteTrustRelationshipOK{} } -/* DeleteTrustRelationshipOK describes a response with status code 200, with default header values. +/* +DeleteTrustRelationshipOK describes a response with status code 200, with default header values. The request was valid and the trust relationship was deleted. */ @@ -76,9 +77,44 @@ type DeleteTrustRelationshipOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete trust relationship o k response has a 2xx status code +func (o *DeleteTrustRelationshipOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete trust relationship o k response has a 3xx status code +func (o *DeleteTrustRelationshipOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete trust relationship o k response has a 4xx status code +func (o *DeleteTrustRelationshipOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete trust relationship o k response has a 5xx status code +func (o *DeleteTrustRelationshipOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete trust relationship o k response a status code equal to that given +func (o *DeleteTrustRelationshipOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete trust relationship o k response +func (o *DeleteTrustRelationshipOK) Code() int { + return 200 +} + func (o *DeleteTrustRelationshipOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipOK %+v", 200, o.Payload) } + +func (o *DeleteTrustRelationshipOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipOK %+v", 200, o.Payload) +} + func (o *DeleteTrustRelationshipOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteTrustRelationshipUnauthorized() *DeleteTrustRelationshipUnauthoriz return &DeleteTrustRelationshipUnauthorized{} } -/* DeleteTrustRelationshipUnauthorized describes a response with status code 401, with default header values. +/* +DeleteTrustRelationshipUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -106,9 +143,44 @@ type DeleteTrustRelationshipUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete trust relationship unauthorized response has a 2xx status code +func (o *DeleteTrustRelationshipUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete trust relationship unauthorized response has a 3xx status code +func (o *DeleteTrustRelationshipUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete trust relationship unauthorized response has a 4xx status code +func (o *DeleteTrustRelationshipUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete trust relationship unauthorized response has a 5xx status code +func (o *DeleteTrustRelationshipUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete trust relationship unauthorized response a status code equal to that given +func (o *DeleteTrustRelationshipUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete trust relationship unauthorized response +func (o *DeleteTrustRelationshipUnauthorized) Code() int { + return 401 +} + func (o *DeleteTrustRelationshipUnauthorized) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipUnauthorized %+v", 401, o.Payload) } + +func (o *DeleteTrustRelationshipUnauthorized) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipUnauthorized %+v", 401, o.Payload) +} + func (o *DeleteTrustRelationshipUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -130,7 +202,8 @@ func NewDeleteTrustRelationshipNotFound() *DeleteTrustRelationshipNotFound { return &DeleteTrustRelationshipNotFound{} } -/* DeleteTrustRelationshipNotFound describes a response with status code 404, with default header values. +/* +DeleteTrustRelationshipNotFound describes a response with status code 404, with default header values. The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`) */ @@ -143,9 +216,44 @@ type DeleteTrustRelationshipNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete trust relationship not found response has a 2xx status code +func (o *DeleteTrustRelationshipNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete trust relationship not found response has a 3xx status code +func (o *DeleteTrustRelationshipNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete trust relationship not found response has a 4xx status code +func (o *DeleteTrustRelationshipNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete trust relationship not found response has a 5xx status code +func (o *DeleteTrustRelationshipNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete trust relationship not found response a status code equal to that given +func (o *DeleteTrustRelationshipNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete trust relationship not found response +func (o *DeleteTrustRelationshipNotFound) Code() int { + return 404 +} + func (o *DeleteTrustRelationshipNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipNotFound %+v", 404, o.Payload) } + +func (o *DeleteTrustRelationshipNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/trust-relationships/{trust_relationship_id}][%d] deleteTrustRelationshipNotFound %+v", 404, o.Payload) +} + func (o *DeleteTrustRelationshipNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_parameters.go b/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_parameters.go index a02ec496..d97f2d21 100644 --- a/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_parameters.go +++ b/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_parameters.go @@ -70,10 +70,12 @@ func NewGetTrustRelationshipParamsWithHTTPClient(client *http.Client) *GetTrustR } } -/* GetTrustRelationshipParams contains all the parameters to send to the API endpoint - for the get trust relationship operation. +/* +GetTrustRelationshipParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get trust relationship operation. + + Typically these are written to a http.Request. */ type GetTrustRelationshipParams struct { diff --git a/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_responses.go b/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_responses.go index b81886a1..a34232ba 100644 --- a/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_responses.go +++ b/pkg/client/platform_configuration_trust_relationships/get_trust_relationship_responses.go @@ -68,7 +68,8 @@ func NewGetTrustRelationshipOK() *GetTrustRelationshipOK { return &GetTrustRelationshipOK{} } -/* GetTrustRelationshipOK describes a response with status code 200, with default header values. +/* +GetTrustRelationshipOK describes a response with status code 200, with default header values. The trust relationship info response */ @@ -89,9 +90,44 @@ type GetTrustRelationshipOK struct { Payload *models.TrustRelationshipGetResponse } +// IsSuccess returns true when this get trust relationship o k response has a 2xx status code +func (o *GetTrustRelationshipOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get trust relationship o k response has a 3xx status code +func (o *GetTrustRelationshipOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trust relationship o k response has a 4xx status code +func (o *GetTrustRelationshipOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get trust relationship o k response has a 5xx status code +func (o *GetTrustRelationshipOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get trust relationship o k response a status code equal to that given +func (o *GetTrustRelationshipOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get trust relationship o k response +func (o *GetTrustRelationshipOK) Code() int { + return 200 +} + func (o *GetTrustRelationshipOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipOK %+v", 200, o.Payload) } + +func (o *GetTrustRelationshipOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipOK %+v", 200, o.Payload) +} + func (o *GetTrustRelationshipOK) GetPayload() *models.TrustRelationshipGetResponse { return o.Payload } @@ -134,7 +170,8 @@ func NewGetTrustRelationshipUnauthorized() *GetTrustRelationshipUnauthorized { return &GetTrustRelationshipUnauthorized{} } -/* GetTrustRelationshipUnauthorized describes a response with status code 401, with default header values. +/* +GetTrustRelationshipUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -142,9 +179,44 @@ type GetTrustRelationshipUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get trust relationship unauthorized response has a 2xx status code +func (o *GetTrustRelationshipUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get trust relationship unauthorized response has a 3xx status code +func (o *GetTrustRelationshipUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trust relationship unauthorized response has a 4xx status code +func (o *GetTrustRelationshipUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get trust relationship unauthorized response has a 5xx status code +func (o *GetTrustRelationshipUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get trust relationship unauthorized response a status code equal to that given +func (o *GetTrustRelationshipUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get trust relationship unauthorized response +func (o *GetTrustRelationshipUnauthorized) Code() int { + return 401 +} + func (o *GetTrustRelationshipUnauthorized) Error() string { return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipUnauthorized %+v", 401, o.Payload) } + +func (o *GetTrustRelationshipUnauthorized) String() string { + return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipUnauthorized %+v", 401, o.Payload) +} + func (o *GetTrustRelationshipUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -166,7 +238,8 @@ func NewGetTrustRelationshipNotFound() *GetTrustRelationshipNotFound { return &GetTrustRelationshipNotFound{} } -/* GetTrustRelationshipNotFound describes a response with status code 404, with default header values. +/* +GetTrustRelationshipNotFound describes a response with status code 404, with default header values. The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`) */ @@ -179,9 +252,44 @@ type GetTrustRelationshipNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get trust relationship not found response has a 2xx status code +func (o *GetTrustRelationshipNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get trust relationship not found response has a 3xx status code +func (o *GetTrustRelationshipNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trust relationship not found response has a 4xx status code +func (o *GetTrustRelationshipNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get trust relationship not found response has a 5xx status code +func (o *GetTrustRelationshipNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get trust relationship not found response a status code equal to that given +func (o *GetTrustRelationshipNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get trust relationship not found response +func (o *GetTrustRelationshipNotFound) Code() int { + return 404 +} + func (o *GetTrustRelationshipNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipNotFound %+v", 404, o.Payload) } + +func (o *GetTrustRelationshipNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/trust-relationships/{trust_relationship_id}][%d] getTrustRelationshipNotFound %+v", 404, o.Payload) +} + func (o *GetTrustRelationshipNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_parameters.go b/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_parameters.go index 7a54734c..e73fd2da 100644 --- a/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_parameters.go +++ b/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_parameters.go @@ -70,10 +70,12 @@ func NewGetTrustRelationshipsParamsWithHTTPClient(client *http.Client) *GetTrust } } -/* GetTrustRelationshipsParams contains all the parameters to send to the API endpoint - for the get trust relationships operation. +/* +GetTrustRelationshipsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get trust relationships operation. + + Typically these are written to a http.Request. */ type GetTrustRelationshipsParams struct { diff --git a/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_responses.go b/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_responses.go index cb50de1a..6ebefaaa 100644 --- a/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_responses.go +++ b/pkg/client/platform_configuration_trust_relationships/get_trust_relationships_responses.go @@ -62,7 +62,8 @@ func NewGetTrustRelationshipsOK() *GetTrustRelationshipsOK { return &GetTrustRelationshipsOK{} } -/* GetTrustRelationshipsOK describes a response with status code 200, with default header values. +/* +GetTrustRelationshipsOK describes a response with status code 200, with default header values. The list of trust relationships. */ @@ -70,9 +71,44 @@ type GetTrustRelationshipsOK struct { Payload *models.TrustRelationshipsListResponse } +// IsSuccess returns true when this get trust relationships o k response has a 2xx status code +func (o *GetTrustRelationshipsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get trust relationships o k response has a 3xx status code +func (o *GetTrustRelationshipsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trust relationships o k response has a 4xx status code +func (o *GetTrustRelationshipsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get trust relationships o k response has a 5xx status code +func (o *GetTrustRelationshipsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get trust relationships o k response a status code equal to that given +func (o *GetTrustRelationshipsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get trust relationships o k response +func (o *GetTrustRelationshipsOK) Code() int { + return 200 +} + func (o *GetTrustRelationshipsOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/trust-relationships][%d] getTrustRelationshipsOK %+v", 200, o.Payload) } + +func (o *GetTrustRelationshipsOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/trust-relationships][%d] getTrustRelationshipsOK %+v", 200, o.Payload) +} + func (o *GetTrustRelationshipsOK) GetPayload() *models.TrustRelationshipsListResponse { return o.Payload } @@ -94,7 +130,8 @@ func NewGetTrustRelationshipsUnauthorized() *GetTrustRelationshipsUnauthorized { return &GetTrustRelationshipsUnauthorized{} } -/* GetTrustRelationshipsUnauthorized describes a response with status code 401, with default header values. +/* +GetTrustRelationshipsUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -102,9 +139,44 @@ type GetTrustRelationshipsUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get trust relationships unauthorized response has a 2xx status code +func (o *GetTrustRelationshipsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get trust relationships unauthorized response has a 3xx status code +func (o *GetTrustRelationshipsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trust relationships unauthorized response has a 4xx status code +func (o *GetTrustRelationshipsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get trust relationships unauthorized response has a 5xx status code +func (o *GetTrustRelationshipsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get trust relationships unauthorized response a status code equal to that given +func (o *GetTrustRelationshipsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get trust relationships unauthorized response +func (o *GetTrustRelationshipsUnauthorized) Code() int { + return 401 +} + func (o *GetTrustRelationshipsUnauthorized) Error() string { return fmt.Sprintf("[GET /platform/configuration/trust-relationships][%d] getTrustRelationshipsUnauthorized %+v", 401, o.Payload) } + +func (o *GetTrustRelationshipsUnauthorized) String() string { + return fmt.Sprintf("[GET /platform/configuration/trust-relationships][%d] getTrustRelationshipsUnauthorized %+v", 401, o.Payload) +} + func (o *GetTrustRelationshipsUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_configuration_trust_relationships/platform_configuration_trust_relationships_client.go b/pkg/client/platform_configuration_trust_relationships/platform_configuration_trust_relationships_client.go index 1ceceb7a..3d752a2f 100644 --- a/pkg/client/platform_configuration_trust_relationships/platform_configuration_trust_relationships_client.go +++ b/pkg/client/platform_configuration_trust_relationships/platform_configuration_trust_relationships_client.go @@ -61,9 +61,9 @@ type ClientService interface { } /* - CreateTrustRelationship creates trust relationship +CreateTrustRelationship creates trust relationship - Creates a trust relationship. +Creates a trust relationship. */ func (a *Client) CreateTrustRelationship(params *CreateTrustRelationshipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTrustRelationshipCreated, error) { // TODO: Validate the params before sending @@ -102,9 +102,9 @@ func (a *Client) CreateTrustRelationship(params *CreateTrustRelationshipParams, } /* - DeleteTrustRelationship deletes trust relationship +DeleteTrustRelationship deletes trust relationship - Deletes a trust relationship. +Deletes a trust relationship. */ func (a *Client) DeleteTrustRelationship(params *DeleteTrustRelationshipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTrustRelationshipOK, error) { // TODO: Validate the params before sending @@ -143,9 +143,9 @@ func (a *Client) DeleteTrustRelationship(params *DeleteTrustRelationshipParams, } /* - GetTrustRelationship gets trust relationship +GetTrustRelationship gets trust relationship - Retrieves information about a trust relationship. `local` can be used as the ID to obtain the local trust relationship. +Retrieves information about a trust relationship. `local` can be used as the ID to obtain the local trust relationship. */ func (a *Client) GetTrustRelationship(params *GetTrustRelationshipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrustRelationshipOK, error) { // TODO: Validate the params before sending @@ -184,9 +184,9 @@ func (a *Client) GetTrustRelationship(params *GetTrustRelationshipParams, authIn } /* - GetTrustRelationships lists trust relationships +GetTrustRelationships lists trust relationships - List trust relationships. +List trust relationships. */ func (a *Client) GetTrustRelationships(params *GetTrustRelationshipsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrustRelationshipsOK, error) { // TODO: Validate the params before sending @@ -225,9 +225,9 @@ func (a *Client) GetTrustRelationships(params *GetTrustRelationshipsParams, auth } /* - UpdateTrustRelationship updates trust relationship +UpdateTrustRelationship updates trust relationship - Updates a trust relationship. +Updates a trust relationship. */ func (a *Client) UpdateTrustRelationship(params *UpdateTrustRelationshipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTrustRelationshipOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_parameters.go b/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_parameters.go index 370cbb51..588e570f 100644 --- a/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_parameters.go +++ b/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_parameters.go @@ -71,10 +71,12 @@ func NewUpdateTrustRelationshipParamsWithHTTPClient(client *http.Client) *Update } } -/* UpdateTrustRelationshipParams contains all the parameters to send to the API endpoint - for the update trust relationship operation. +/* +UpdateTrustRelationshipParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update trust relationship operation. + + Typically these are written to a http.Request. */ type UpdateTrustRelationshipParams struct { diff --git a/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_responses.go b/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_responses.go index b9a6f421..7665ec4b 100644 --- a/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_responses.go +++ b/pkg/client/platform_configuration_trust_relationships/update_trust_relationship_responses.go @@ -74,7 +74,8 @@ func NewUpdateTrustRelationshipOK() *UpdateTrustRelationshipOK { return &UpdateTrustRelationshipOK{} } -/* UpdateTrustRelationshipOK describes a response with status code 200, with default header values. +/* +UpdateTrustRelationshipOK describes a response with status code 200, with default header values. The request was valid and the trust relationship was updated. */ @@ -95,9 +96,44 @@ type UpdateTrustRelationshipOK struct { Payload *models.TrustRelationshipUpdateResponse } +// IsSuccess returns true when this update trust relationship o k response has a 2xx status code +func (o *UpdateTrustRelationshipOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update trust relationship o k response has a 3xx status code +func (o *UpdateTrustRelationshipOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update trust relationship o k response has a 4xx status code +func (o *UpdateTrustRelationshipOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update trust relationship o k response has a 5xx status code +func (o *UpdateTrustRelationshipOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update trust relationship o k response a status code equal to that given +func (o *UpdateTrustRelationshipOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update trust relationship o k response +func (o *UpdateTrustRelationshipOK) Code() int { + return 200 +} + func (o *UpdateTrustRelationshipOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipOK %+v", 200, o.Payload) } + +func (o *UpdateTrustRelationshipOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipOK %+v", 200, o.Payload) +} + func (o *UpdateTrustRelationshipOK) GetPayload() *models.TrustRelationshipUpdateResponse { return o.Payload } @@ -140,7 +176,8 @@ func NewUpdateTrustRelationshipBadRequest() *UpdateTrustRelationshipBadRequest { return &UpdateTrustRelationshipBadRequest{} } -/* UpdateTrustRelationshipBadRequest describes a response with status code 400, with default header values. +/* +UpdateTrustRelationshipBadRequest describes a response with status code 400, with default header values. The trust relationship request had errors. */ @@ -148,9 +185,44 @@ type UpdateTrustRelationshipBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update trust relationship bad request response has a 2xx status code +func (o *UpdateTrustRelationshipBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update trust relationship bad request response has a 3xx status code +func (o *UpdateTrustRelationshipBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update trust relationship bad request response has a 4xx status code +func (o *UpdateTrustRelationshipBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update trust relationship bad request response has a 5xx status code +func (o *UpdateTrustRelationshipBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update trust relationship bad request response a status code equal to that given +func (o *UpdateTrustRelationshipBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update trust relationship bad request response +func (o *UpdateTrustRelationshipBadRequest) Code() int { + return 400 +} + func (o *UpdateTrustRelationshipBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipBadRequest %+v", 400, o.Payload) } + +func (o *UpdateTrustRelationshipBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipBadRequest %+v", 400, o.Payload) +} + func (o *UpdateTrustRelationshipBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -172,7 +244,8 @@ func NewUpdateTrustRelationshipUnauthorized() *UpdateTrustRelationshipUnauthoriz return &UpdateTrustRelationshipUnauthorized{} } -/* UpdateTrustRelationshipUnauthorized describes a response with status code 401, with default header values. +/* +UpdateTrustRelationshipUnauthorized describes a response with status code 401, with default header values. You are not authorized to perform this action. */ @@ -180,9 +253,44 @@ type UpdateTrustRelationshipUnauthorized struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update trust relationship unauthorized response has a 2xx status code +func (o *UpdateTrustRelationshipUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update trust relationship unauthorized response has a 3xx status code +func (o *UpdateTrustRelationshipUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update trust relationship unauthorized response has a 4xx status code +func (o *UpdateTrustRelationshipUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this update trust relationship unauthorized response has a 5xx status code +func (o *UpdateTrustRelationshipUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this update trust relationship unauthorized response a status code equal to that given +func (o *UpdateTrustRelationshipUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the update trust relationship unauthorized response +func (o *UpdateTrustRelationshipUnauthorized) Code() int { + return 401 +} + func (o *UpdateTrustRelationshipUnauthorized) Error() string { return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipUnauthorized %+v", 401, o.Payload) } + +func (o *UpdateTrustRelationshipUnauthorized) String() string { + return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipUnauthorized %+v", 401, o.Payload) +} + func (o *UpdateTrustRelationshipUnauthorized) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -204,7 +312,8 @@ func NewUpdateTrustRelationshipNotFound() *UpdateTrustRelationshipNotFound { return &UpdateTrustRelationshipNotFound{} } -/* UpdateTrustRelationshipNotFound describes a response with status code 404, with default header values. +/* +UpdateTrustRelationshipNotFound describes a response with status code 404, with default header values. The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`) */ @@ -217,9 +326,44 @@ type UpdateTrustRelationshipNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update trust relationship not found response has a 2xx status code +func (o *UpdateTrustRelationshipNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update trust relationship not found response has a 3xx status code +func (o *UpdateTrustRelationshipNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update trust relationship not found response has a 4xx status code +func (o *UpdateTrustRelationshipNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update trust relationship not found response has a 5xx status code +func (o *UpdateTrustRelationshipNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update trust relationship not found response a status code equal to that given +func (o *UpdateTrustRelationshipNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update trust relationship not found response +func (o *UpdateTrustRelationshipNotFound) Code() int { + return 404 +} + func (o *UpdateTrustRelationshipNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipNotFound %+v", 404, o.Payload) } + +func (o *UpdateTrustRelationshipNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/trust-relationships/{trust_relationship_id}][%d] updateTrustRelationshipNotFound %+v", 404, o.Payload) +} + func (o *UpdateTrustRelationshipNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/add_blueprinter_blessing_parameters.go b/pkg/client/platform_infrastructure/add_blueprinter_blessing_parameters.go index 934fac2a..def483dd 100644 --- a/pkg/client/platform_infrastructure/add_blueprinter_blessing_parameters.go +++ b/pkg/client/platform_infrastructure/add_blueprinter_blessing_parameters.go @@ -72,10 +72,12 @@ func NewAddBlueprinterBlessingParamsWithHTTPClient(client *http.Client) *AddBlue } } -/* AddBlueprinterBlessingParams contains all the parameters to send to the API endpoint - for the add blueprinter blessing operation. +/* +AddBlueprinterBlessingParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add blueprinter blessing operation. + + Typically these are written to a http.Request. */ type AddBlueprinterBlessingParams struct { diff --git a/pkg/client/platform_infrastructure/add_blueprinter_blessing_responses.go b/pkg/client/platform_infrastructure/add_blueprinter_blessing_responses.go index eaa66532..dbb39526 100644 --- a/pkg/client/platform_infrastructure/add_blueprinter_blessing_responses.go +++ b/pkg/client/platform_infrastructure/add_blueprinter_blessing_responses.go @@ -68,7 +68,8 @@ func NewAddBlueprinterBlessingOK() *AddBlueprinterBlessingOK { return &AddBlueprinterBlessingOK{} } -/* AddBlueprinterBlessingOK describes a response with status code 200, with default header values. +/* +AddBlueprinterBlessingOK describes a response with status code 200, with default header values. Blessing added successfully. */ @@ -76,9 +77,44 @@ type AddBlueprinterBlessingOK struct { Payload *models.RoleAggregate } +// IsSuccess returns true when this add blueprinter blessing o k response has a 2xx status code +func (o *AddBlueprinterBlessingOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this add blueprinter blessing o k response has a 3xx status code +func (o *AddBlueprinterBlessingOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this add blueprinter blessing o k response has a 4xx status code +func (o *AddBlueprinterBlessingOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this add blueprinter blessing o k response has a 5xx status code +func (o *AddBlueprinterBlessingOK) IsServerError() bool { + return false +} + +// IsCode returns true when this add blueprinter blessing o k response a status code equal to that given +func (o *AddBlueprinterBlessingOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the add blueprinter blessing o k response +func (o *AddBlueprinterBlessingOK) Code() int { + return 200 +} + func (o *AddBlueprinterBlessingOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingOK %+v", 200, o.Payload) } + +func (o *AddBlueprinterBlessingOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingOK %+v", 200, o.Payload) +} + func (o *AddBlueprinterBlessingOK) GetPayload() *models.RoleAggregate { return o.Payload } @@ -100,7 +136,8 @@ func NewAddBlueprinterBlessingNotFound() *AddBlueprinterBlessingNotFound { return &AddBlueprinterBlessingNotFound{} } -/* AddBlueprinterBlessingNotFound describes a response with status code 404, with default header values. +/* +AddBlueprinterBlessingNotFound describes a response with status code 404, with default header values. The role can't be found. (code: `roles.not_found`) */ @@ -113,9 +150,44 @@ type AddBlueprinterBlessingNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this add blueprinter blessing not found response has a 2xx status code +func (o *AddBlueprinterBlessingNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this add blueprinter blessing not found response has a 3xx status code +func (o *AddBlueprinterBlessingNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this add blueprinter blessing not found response has a 4xx status code +func (o *AddBlueprinterBlessingNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this add blueprinter blessing not found response has a 5xx status code +func (o *AddBlueprinterBlessingNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this add blueprinter blessing not found response a status code equal to that given +func (o *AddBlueprinterBlessingNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the add blueprinter blessing not found response +func (o *AddBlueprinterBlessingNotFound) Code() int { + return 404 +} + func (o *AddBlueprinterBlessingNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingNotFound %+v", 404, o.Payload) } + +func (o *AddBlueprinterBlessingNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingNotFound %+v", 404, o.Payload) +} + func (o *AddBlueprinterBlessingNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewAddBlueprinterBlessingConflict() *AddBlueprinterBlessingConflict { return &AddBlueprinterBlessingConflict{} } -/* AddBlueprinterBlessingConflict describes a response with status code 409, with default header values. +/* +AddBlueprinterBlessingConflict describes a response with status code 409, with default header values. Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`) */ @@ -157,9 +230,44 @@ type AddBlueprinterBlessingConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this add blueprinter blessing conflict response has a 2xx status code +func (o *AddBlueprinterBlessingConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this add blueprinter blessing conflict response has a 3xx status code +func (o *AddBlueprinterBlessingConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this add blueprinter blessing conflict response has a 4xx status code +func (o *AddBlueprinterBlessingConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this add blueprinter blessing conflict response has a 5xx status code +func (o *AddBlueprinterBlessingConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this add blueprinter blessing conflict response a status code equal to that given +func (o *AddBlueprinterBlessingConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the add blueprinter blessing conflict response +func (o *AddBlueprinterBlessingConflict) Code() int { + return 409 +} + func (o *AddBlueprinterBlessingConflict) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingConflict %+v", 409, o.Payload) } + +func (o *AddBlueprinterBlessingConflict) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}][%d] addBlueprinterBlessingConflict %+v", 409, o.Payload) +} + func (o *AddBlueprinterBlessingConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/create_blueprinter_role_parameters.go b/pkg/client/platform_infrastructure/create_blueprinter_role_parameters.go index e9cb8890..4bf721d9 100644 --- a/pkg/client/platform_infrastructure/create_blueprinter_role_parameters.go +++ b/pkg/client/platform_infrastructure/create_blueprinter_role_parameters.go @@ -71,10 +71,12 @@ func NewCreateBlueprinterRoleParamsWithHTTPClient(client *http.Client) *CreateBl } } -/* CreateBlueprinterRoleParams contains all the parameters to send to the API endpoint - for the create blueprinter role operation. +/* +CreateBlueprinterRoleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create blueprinter role operation. + + Typically these are written to a http.Request. */ type CreateBlueprinterRoleParams struct { diff --git a/pkg/client/platform_infrastructure/create_blueprinter_role_responses.go b/pkg/client/platform_infrastructure/create_blueprinter_role_responses.go index 2d714dbc..b5cf25c9 100644 --- a/pkg/client/platform_infrastructure/create_blueprinter_role_responses.go +++ b/pkg/client/platform_infrastructure/create_blueprinter_role_responses.go @@ -62,7 +62,8 @@ func NewCreateBlueprinterRoleCreated() *CreateBlueprinterRoleCreated { return &CreateBlueprinterRoleCreated{} } -/* CreateBlueprinterRoleCreated describes a response with status code 201, with default header values. +/* +CreateBlueprinterRoleCreated describes a response with status code 201, with default header values. The role aggregate that was just created. */ @@ -70,9 +71,44 @@ type CreateBlueprinterRoleCreated struct { Payload *models.RoleAggregate } +// IsSuccess returns true when this create blueprinter role created response has a 2xx status code +func (o *CreateBlueprinterRoleCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create blueprinter role created response has a 3xx status code +func (o *CreateBlueprinterRoleCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create blueprinter role created response has a 4xx status code +func (o *CreateBlueprinterRoleCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create blueprinter role created response has a 5xx status code +func (o *CreateBlueprinterRoleCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create blueprinter role created response a status code equal to that given +func (o *CreateBlueprinterRoleCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create blueprinter role created response +func (o *CreateBlueprinterRoleCreated) Code() int { + return 201 +} + func (o *CreateBlueprinterRoleCreated) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/blueprinter/roles][%d] createBlueprinterRoleCreated %+v", 201, o.Payload) } + +func (o *CreateBlueprinterRoleCreated) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/blueprinter/roles][%d] createBlueprinterRoleCreated %+v", 201, o.Payload) +} + func (o *CreateBlueprinterRoleCreated) GetPayload() *models.RoleAggregate { return o.Payload } @@ -94,7 +130,8 @@ func NewCreateBlueprinterRoleConflict() *CreateBlueprinterRoleConflict { return &CreateBlueprinterRoleConflict{} } -/* CreateBlueprinterRoleConflict describes a response with status code 409, with default header values. +/* +CreateBlueprinterRoleConflict describes a response with status code 409, with default header values. The role ID you specified is already in use. (code: `roles.already_exists`) */ @@ -107,9 +144,44 @@ type CreateBlueprinterRoleConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create blueprinter role conflict response has a 2xx status code +func (o *CreateBlueprinterRoleConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create blueprinter role conflict response has a 3xx status code +func (o *CreateBlueprinterRoleConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create blueprinter role conflict response has a 4xx status code +func (o *CreateBlueprinterRoleConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this create blueprinter role conflict response has a 5xx status code +func (o *CreateBlueprinterRoleConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this create blueprinter role conflict response a status code equal to that given +func (o *CreateBlueprinterRoleConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the create blueprinter role conflict response +func (o *CreateBlueprinterRoleConflict) Code() int { + return 409 +} + func (o *CreateBlueprinterRoleConflict) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/blueprinter/roles][%d] createBlueprinterRoleConflict %+v", 409, o.Payload) } + +func (o *CreateBlueprinterRoleConflict) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/blueprinter/roles][%d] createBlueprinterRoleConflict %+v", 409, o.Payload) +} + func (o *CreateBlueprinterRoleConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/create_config_store_option_parameters.go b/pkg/client/platform_infrastructure/create_config_store_option_parameters.go index e0527785..9690fe23 100644 --- a/pkg/client/platform_infrastructure/create_config_store_option_parameters.go +++ b/pkg/client/platform_infrastructure/create_config_store_option_parameters.go @@ -71,10 +71,12 @@ func NewCreateConfigStoreOptionParamsWithHTTPClient(client *http.Client) *Create } } -/* CreateConfigStoreOptionParams contains all the parameters to send to the API endpoint - for the create config store option operation. +/* +CreateConfigStoreOptionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create config store option operation. + + Typically these are written to a http.Request. */ type CreateConfigStoreOptionParams struct { diff --git a/pkg/client/platform_infrastructure/create_config_store_option_responses.go b/pkg/client/platform_infrastructure/create_config_store_option_responses.go index 237e9387..d9636f77 100644 --- a/pkg/client/platform_infrastructure/create_config_store_option_responses.go +++ b/pkg/client/platform_infrastructure/create_config_store_option_responses.go @@ -62,7 +62,8 @@ func NewCreateConfigStoreOptionCreated() *CreateConfigStoreOptionCreated { return &CreateConfigStoreOptionCreated{} } -/* CreateConfigStoreOptionCreated describes a response with status code 201, with default header values. +/* +CreateConfigStoreOptionCreated describes a response with status code 201, with default header values. The Config Store Option was inserted successfully */ @@ -83,9 +84,44 @@ type CreateConfigStoreOptionCreated struct { Payload *models.ConfigStoreOption } +// IsSuccess returns true when this create config store option created response has a 2xx status code +func (o *CreateConfigStoreOptionCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create config store option created response has a 3xx status code +func (o *CreateConfigStoreOptionCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create config store option created response has a 4xx status code +func (o *CreateConfigStoreOptionCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create config store option created response has a 5xx status code +func (o *CreateConfigStoreOptionCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create config store option created response a status code equal to that given +func (o *CreateConfigStoreOptionCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create config store option created response +func (o *CreateConfigStoreOptionCreated) Code() int { + return 201 +} + func (o *CreateConfigStoreOptionCreated) Error() string { return fmt.Sprintf("[POST /platform/configuration/store/{config_option_id}][%d] createConfigStoreOptionCreated %+v", 201, o.Payload) } + +func (o *CreateConfigStoreOptionCreated) String() string { + return fmt.Sprintf("[POST /platform/configuration/store/{config_option_id}][%d] createConfigStoreOptionCreated %+v", 201, o.Payload) +} + func (o *CreateConfigStoreOptionCreated) GetPayload() *models.ConfigStoreOption { return o.Payload } @@ -128,7 +164,8 @@ func NewCreateConfigStoreOptionBadRequest() *CreateConfigStoreOptionBadRequest { return &CreateConfigStoreOptionBadRequest{} } -/* CreateConfigStoreOptionBadRequest describes a response with status code 400, with default header values. +/* +CreateConfigStoreOptionBadRequest describes a response with status code 400, with default header values. Config Store Option data already exists for the given name. (code: `platform.config.store.already_exists`) */ @@ -141,9 +178,44 @@ type CreateConfigStoreOptionBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create config store option bad request response has a 2xx status code +func (o *CreateConfigStoreOptionBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create config store option bad request response has a 3xx status code +func (o *CreateConfigStoreOptionBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create config store option bad request response has a 4xx status code +func (o *CreateConfigStoreOptionBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create config store option bad request response has a 5xx status code +func (o *CreateConfigStoreOptionBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create config store option bad request response a status code equal to that given +func (o *CreateConfigStoreOptionBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create config store option bad request response +func (o *CreateConfigStoreOptionBadRequest) Code() int { + return 400 +} + func (o *CreateConfigStoreOptionBadRequest) Error() string { return fmt.Sprintf("[POST /platform/configuration/store/{config_option_id}][%d] createConfigStoreOptionBadRequest %+v", 400, o.Payload) } + +func (o *CreateConfigStoreOptionBadRequest) String() string { + return fmt.Sprintf("[POST /platform/configuration/store/{config_option_id}][%d] createConfigStoreOptionBadRequest %+v", 400, o.Payload) +} + func (o *CreateConfigStoreOptionBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/create_proxies_filtered_group_parameters.go b/pkg/client/platform_infrastructure/create_proxies_filtered_group_parameters.go index 934ed511..6625f428 100644 --- a/pkg/client/platform_infrastructure/create_proxies_filtered_group_parameters.go +++ b/pkg/client/platform_infrastructure/create_proxies_filtered_group_parameters.go @@ -71,10 +71,12 @@ func NewCreateProxiesFilteredGroupParamsWithHTTPClient(client *http.Client) *Cre } } -/* CreateProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - for the create proxies filtered group operation. +/* +CreateProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create proxies filtered group operation. + + Typically these are written to a http.Request. */ type CreateProxiesFilteredGroupParams struct { diff --git a/pkg/client/platform_infrastructure/create_proxies_filtered_group_responses.go b/pkg/client/platform_infrastructure/create_proxies_filtered_group_responses.go index 958bfcf4..3256daf5 100644 --- a/pkg/client/platform_infrastructure/create_proxies_filtered_group_responses.go +++ b/pkg/client/platform_infrastructure/create_proxies_filtered_group_responses.go @@ -68,7 +68,8 @@ func NewCreateProxiesFilteredGroupOK() *CreateProxiesFilteredGroupOK { return &CreateProxiesFilteredGroupOK{} } -/* CreateProxiesFilteredGroupOK describes a response with status code 200, with default header values. +/* +CreateProxiesFilteredGroupOK describes a response with status code 200, with default header values. Returns the created or updated filtered group of proxies */ @@ -89,9 +90,44 @@ type CreateProxiesFilteredGroupOK struct { Payload *models.ProxiesFilteredGroup } +// IsSuccess returns true when this create proxies filtered group o k response has a 2xx status code +func (o *CreateProxiesFilteredGroupOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create proxies filtered group o k response has a 3xx status code +func (o *CreateProxiesFilteredGroupOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create proxies filtered group o k response has a 4xx status code +func (o *CreateProxiesFilteredGroupOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create proxies filtered group o k response has a 5xx status code +func (o *CreateProxiesFilteredGroupOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create proxies filtered group o k response a status code equal to that given +func (o *CreateProxiesFilteredGroupOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create proxies filtered group o k response +func (o *CreateProxiesFilteredGroupOK) Code() int { + return 200 +} + func (o *CreateProxiesFilteredGroupOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupOK %+v", 200, o.Payload) } + +func (o *CreateProxiesFilteredGroupOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupOK %+v", 200, o.Payload) +} + func (o *CreateProxiesFilteredGroupOK) GetPayload() *models.ProxiesFilteredGroup { return o.Payload } @@ -134,9 +170,11 @@ func NewCreateProxiesFilteredGroupBadRequest() *CreateProxiesFilteredGroupBadReq return &CreateProxiesFilteredGroupBadRequest{} } -/* CreateProxiesFilteredGroupBadRequest describes a response with status code 400, with default header values. +/* + CreateProxiesFilteredGroupBadRequest describes a response with status code 400, with default header values. + + * The filtered group of proxies has empty id. (code: `proxies.proxies_filtered_group_empty_id`) - * The filtered group of proxies has empty id. (code: `proxies.proxies_filtered_group_empty_id`) * A filtered group of proxies with the same identifier already exists. (code: `proxies.proxies_filtered_group_already_exists`) */ type CreateProxiesFilteredGroupBadRequest struct { @@ -148,9 +186,44 @@ type CreateProxiesFilteredGroupBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create proxies filtered group bad request response has a 2xx status code +func (o *CreateProxiesFilteredGroupBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create proxies filtered group bad request response has a 3xx status code +func (o *CreateProxiesFilteredGroupBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create proxies filtered group bad request response has a 4xx status code +func (o *CreateProxiesFilteredGroupBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create proxies filtered group bad request response has a 5xx status code +func (o *CreateProxiesFilteredGroupBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create proxies filtered group bad request response a status code equal to that given +func (o *CreateProxiesFilteredGroupBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create proxies filtered group bad request response +func (o *CreateProxiesFilteredGroupBadRequest) Code() int { + return 400 +} + func (o *CreateProxiesFilteredGroupBadRequest) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupBadRequest %+v", 400, o.Payload) } + +func (o *CreateProxiesFilteredGroupBadRequest) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupBadRequest %+v", 400, o.Payload) +} + func (o *CreateProxiesFilteredGroupBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -179,7 +252,8 @@ func NewCreateProxiesFilteredGroupRetryWith() *CreateProxiesFilteredGroupRetryWi return &CreateProxiesFilteredGroupRetryWith{} } -/* CreateProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. +/* +CreateProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -192,9 +266,44 @@ type CreateProxiesFilteredGroupRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create proxies filtered group retry with response has a 2xx status code +func (o *CreateProxiesFilteredGroupRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create proxies filtered group retry with response has a 3xx status code +func (o *CreateProxiesFilteredGroupRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create proxies filtered group retry with response has a 4xx status code +func (o *CreateProxiesFilteredGroupRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create proxies filtered group retry with response has a 5xx status code +func (o *CreateProxiesFilteredGroupRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create proxies filtered group retry with response a status code equal to that given +func (o *CreateProxiesFilteredGroupRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create proxies filtered group retry with response +func (o *CreateProxiesFilteredGroupRetryWith) Code() int { + return 449 +} + func (o *CreateProxiesFilteredGroupRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupRetryWith %+v", 449, o.Payload) } + +func (o *CreateProxiesFilteredGroupRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/proxies/filtered-groups][%d] createProxiesFilteredGroupRetryWith %+v", 449, o.Payload) +} + func (o *CreateProxiesFilteredGroupRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_parameters.go b/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_parameters.go index 32d01ee8..7df8aa6f 100644 --- a/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewDeleteAdminconsoleLoggingSettingsParamsWithHTTPClient(client *http.Clien } } -/* DeleteAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - for the delete adminconsole logging settings operation. +/* +DeleteAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete adminconsole logging settings operation. + + Typically these are written to a http.Request. */ type DeleteAdminconsoleLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_responses.go b/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_responses.go index 1a9ba29f..641209ec 100644 --- a/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/delete_adminconsole_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewDeleteAdminconsoleLoggingSettingsOK() *DeleteAdminconsoleLoggingSettings return &DeleteAdminconsoleLoggingSettingsOK{} } -/* DeleteAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. +/* +DeleteAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the adminconsole instance */ @@ -83,9 +84,44 @@ type DeleteAdminconsoleLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this delete adminconsole logging settings o k response has a 2xx status code +func (o *DeleteAdminconsoleLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete adminconsole logging settings o k response has a 3xx status code +func (o *DeleteAdminconsoleLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete adminconsole logging settings o k response has a 4xx status code +func (o *DeleteAdminconsoleLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete adminconsole logging settings o k response has a 5xx status code +func (o *DeleteAdminconsoleLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete adminconsole logging settings o k response a status code equal to that given +func (o *DeleteAdminconsoleLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete adminconsole logging settings o k response +func (o *DeleteAdminconsoleLoggingSettingsOK) Code() int { + return 200 +} + func (o *DeleteAdminconsoleLoggingSettingsOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] deleteAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *DeleteAdminconsoleLoggingSettingsOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] deleteAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *DeleteAdminconsoleLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewDeleteAdminconsoleLoggingSettingsNotFound() *DeleteAdminconsoleLoggingSe return &DeleteAdminconsoleLoggingSettingsNotFound{} } -/* DeleteAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +DeleteAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type DeleteAdminconsoleLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete adminconsole logging settings not found response has a 2xx status code +func (o *DeleteAdminconsoleLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete adminconsole logging settings not found response has a 3xx status code +func (o *DeleteAdminconsoleLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete adminconsole logging settings not found response has a 4xx status code +func (o *DeleteAdminconsoleLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete adminconsole logging settings not found response has a 5xx status code +func (o *DeleteAdminconsoleLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete adminconsole logging settings not found response a status code equal to that given +func (o *DeleteAdminconsoleLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete adminconsole logging settings not found response +func (o *DeleteAdminconsoleLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *DeleteAdminconsoleLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] deleteAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *DeleteAdminconsoleLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] deleteAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *DeleteAdminconsoleLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_allocator_logging_settings_parameters.go b/pkg/client/platform_infrastructure/delete_allocator_logging_settings_parameters.go index 7910c757..e82c045c 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/delete_allocator_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewDeleteAllocatorLoggingSettingsParamsWithHTTPClient(client *http.Client) } } -/* DeleteAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the delete allocator logging settings operation. +/* +DeleteAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete allocator logging settings operation. + + Typically these are written to a http.Request. */ type DeleteAllocatorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/delete_allocator_logging_settings_responses.go b/pkg/client/platform_infrastructure/delete_allocator_logging_settings_responses.go index d4d823c4..a2791ba4 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/delete_allocator_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewDeleteAllocatorLoggingSettingsOK() *DeleteAllocatorLoggingSettingsOK { return &DeleteAllocatorLoggingSettingsOK{} } -/* DeleteAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +DeleteAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the allocator instance */ @@ -83,9 +84,44 @@ type DeleteAllocatorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this delete allocator logging settings o k response has a 2xx status code +func (o *DeleteAllocatorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete allocator logging settings o k response has a 3xx status code +func (o *DeleteAllocatorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator logging settings o k response has a 4xx status code +func (o *DeleteAllocatorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete allocator logging settings o k response has a 5xx status code +func (o *DeleteAllocatorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator logging settings o k response a status code equal to that given +func (o *DeleteAllocatorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete allocator logging settings o k response +func (o *DeleteAllocatorLoggingSettingsOK) Code() int { + return 200 +} + func (o *DeleteAllocatorLoggingSettingsOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] deleteAllocatorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *DeleteAllocatorLoggingSettingsOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] deleteAllocatorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *DeleteAllocatorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewDeleteAllocatorLoggingSettingsNotFound() *DeleteAllocatorLoggingSettings return &DeleteAllocatorLoggingSettingsNotFound{} } -/* DeleteAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +DeleteAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type DeleteAllocatorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator logging settings not found response has a 2xx status code +func (o *DeleteAllocatorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator logging settings not found response has a 3xx status code +func (o *DeleteAllocatorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator logging settings not found response has a 4xx status code +func (o *DeleteAllocatorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator logging settings not found response has a 5xx status code +func (o *DeleteAllocatorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator logging settings not found response a status code equal to that given +func (o *DeleteAllocatorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete allocator logging settings not found response +func (o *DeleteAllocatorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *DeleteAllocatorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] deleteAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *DeleteAllocatorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] deleteAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *DeleteAllocatorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_allocator_metadata_item_parameters.go b/pkg/client/platform_infrastructure/delete_allocator_metadata_item_parameters.go index c18fe766..88ab2e46 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_metadata_item_parameters.go +++ b/pkg/client/platform_infrastructure/delete_allocator_metadata_item_parameters.go @@ -69,10 +69,12 @@ func NewDeleteAllocatorMetadataItemParamsWithHTTPClient(client *http.Client) *De } } -/* DeleteAllocatorMetadataItemParams contains all the parameters to send to the API endpoint - for the delete allocator metadata item operation. +/* +DeleteAllocatorMetadataItemParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete allocator metadata item operation. + + Typically these are written to a http.Request. */ type DeleteAllocatorMetadataItemParams struct { diff --git a/pkg/client/platform_infrastructure/delete_allocator_metadata_item_responses.go b/pkg/client/platform_infrastructure/delete_allocator_metadata_item_responses.go index a9550208..5207cc12 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_metadata_item_responses.go +++ b/pkg/client/platform_infrastructure/delete_allocator_metadata_item_responses.go @@ -68,7 +68,8 @@ func NewDeleteAllocatorMetadataItemOK() *DeleteAllocatorMetadataItemOK { return &DeleteAllocatorMetadataItemOK{} } -/* DeleteAllocatorMetadataItemOK describes a response with status code 200, with default header values. +/* +DeleteAllocatorMetadataItemOK describes a response with status code 200, with default header values. The allocator metadata was successfully changed (the updated JSON is returned) */ @@ -76,9 +77,44 @@ type DeleteAllocatorMetadataItemOK struct { Payload []*models.MetadataItem } +// IsSuccess returns true when this delete allocator metadata item o k response has a 2xx status code +func (o *DeleteAllocatorMetadataItemOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete allocator metadata item o k response has a 3xx status code +func (o *DeleteAllocatorMetadataItemOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator metadata item o k response has a 4xx status code +func (o *DeleteAllocatorMetadataItemOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete allocator metadata item o k response has a 5xx status code +func (o *DeleteAllocatorMetadataItemOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator metadata item o k response a status code equal to that given +func (o *DeleteAllocatorMetadataItemOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete allocator metadata item o k response +func (o *DeleteAllocatorMetadataItemOK) Code() int { + return 200 +} + func (o *DeleteAllocatorMetadataItemOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemOK %+v", 200, o.Payload) } + +func (o *DeleteAllocatorMetadataItemOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemOK %+v", 200, o.Payload) +} + func (o *DeleteAllocatorMetadataItemOK) GetPayload() []*models.MetadataItem { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteAllocatorMetadataItemNotFound() *DeleteAllocatorMetadataItemNotFou return &DeleteAllocatorMetadataItemNotFound{} } -/* DeleteAllocatorMetadataItemNotFound describes a response with status code 404, with default header values. +/* +DeleteAllocatorMetadataItemNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -111,9 +148,44 @@ type DeleteAllocatorMetadataItemNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator metadata item not found response has a 2xx status code +func (o *DeleteAllocatorMetadataItemNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator metadata item not found response has a 3xx status code +func (o *DeleteAllocatorMetadataItemNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator metadata item not found response has a 4xx status code +func (o *DeleteAllocatorMetadataItemNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator metadata item not found response has a 5xx status code +func (o *DeleteAllocatorMetadataItemNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator metadata item not found response a status code equal to that given +func (o *DeleteAllocatorMetadataItemNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete allocator metadata item not found response +func (o *DeleteAllocatorMetadataItemNotFound) Code() int { + return 404 +} + func (o *DeleteAllocatorMetadataItemNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemNotFound %+v", 404, o.Payload) } + +func (o *DeleteAllocatorMetadataItemNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemNotFound %+v", 404, o.Payload) +} + func (o *DeleteAllocatorMetadataItemNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteAllocatorMetadataItemRetryWith() *DeleteAllocatorMetadataItemRetry return &DeleteAllocatorMetadataItemRetryWith{} } -/* DeleteAllocatorMetadataItemRetryWith describes a response with status code 449, with default header values. +/* +DeleteAllocatorMetadataItemRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteAllocatorMetadataItemRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator metadata item retry with response has a 2xx status code +func (o *DeleteAllocatorMetadataItemRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator metadata item retry with response has a 3xx status code +func (o *DeleteAllocatorMetadataItemRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator metadata item retry with response has a 4xx status code +func (o *DeleteAllocatorMetadataItemRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator metadata item retry with response has a 5xx status code +func (o *DeleteAllocatorMetadataItemRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator metadata item retry with response a status code equal to that given +func (o *DeleteAllocatorMetadataItemRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete allocator metadata item retry with response +func (o *DeleteAllocatorMetadataItemRetryWith) Code() int { + return 449 +} + func (o *DeleteAllocatorMetadataItemRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemRetryWith %+v", 449, o.Payload) } + +func (o *DeleteAllocatorMetadataItemRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] deleteAllocatorMetadataItemRetryWith %+v", 449, o.Payload) +} + func (o *DeleteAllocatorMetadataItemRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_allocator_parameters.go b/pkg/client/platform_infrastructure/delete_allocator_parameters.go index 03aed5b4..cb14bbe6 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_parameters.go +++ b/pkg/client/platform_infrastructure/delete_allocator_parameters.go @@ -70,10 +70,12 @@ func NewDeleteAllocatorParamsWithHTTPClient(client *http.Client) *DeleteAllocato } } -/* DeleteAllocatorParams contains all the parameters to send to the API endpoint - for the delete allocator operation. +/* +DeleteAllocatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete allocator operation. + + Typically these are written to a http.Request. */ type DeleteAllocatorParams struct { diff --git a/pkg/client/platform_infrastructure/delete_allocator_responses.go b/pkg/client/platform_infrastructure/delete_allocator_responses.go index 8c83c2db..0e024c50 100644 --- a/pkg/client/platform_infrastructure/delete_allocator_responses.go +++ b/pkg/client/platform_infrastructure/delete_allocator_responses.go @@ -74,7 +74,8 @@ func NewDeleteAllocatorOK() *DeleteAllocatorOK { return &DeleteAllocatorOK{} } -/* DeleteAllocatorOK describes a response with status code 200, with default header values. +/* +DeleteAllocatorOK describes a response with status code 200, with default header values. The allocator specified by {allocator_id} was successfully deleted */ @@ -82,9 +83,44 @@ type DeleteAllocatorOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete allocator o k response has a 2xx status code +func (o *DeleteAllocatorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete allocator o k response has a 3xx status code +func (o *DeleteAllocatorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator o k response has a 4xx status code +func (o *DeleteAllocatorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete allocator o k response has a 5xx status code +func (o *DeleteAllocatorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator o k response a status code equal to that given +func (o *DeleteAllocatorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete allocator o k response +func (o *DeleteAllocatorOK) Code() int { + return 200 +} + func (o *DeleteAllocatorOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorOK %+v", 200, o.Payload) } + +func (o *DeleteAllocatorOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorOK %+v", 200, o.Payload) +} + func (o *DeleteAllocatorOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,9 +140,11 @@ func NewDeleteAllocatorBadRequest() *DeleteAllocatorBadRequest { return &DeleteAllocatorBadRequest{} } -/* DeleteAllocatorBadRequest describes a response with status code 400, with default header values. +/* + DeleteAllocatorBadRequest describes a response with status code 400, with default header values. + + * The allocator specified by {allocator_id} could not be deleted. (code: `allocators.delete_connected_allocator_attempt`) - * The allocator specified by {allocator_id} could not be deleted. (code: `allocators.delete_connected_allocator_attempt`) * The allocator specified by {allocator_id} could not be deleted. (code: `allocators.delete_allocator_with_instances_attempt`) */ type DeleteAllocatorBadRequest struct { @@ -118,9 +156,44 @@ type DeleteAllocatorBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator bad request response has a 2xx status code +func (o *DeleteAllocatorBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator bad request response has a 3xx status code +func (o *DeleteAllocatorBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator bad request response has a 4xx status code +func (o *DeleteAllocatorBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator bad request response has a 5xx status code +func (o *DeleteAllocatorBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator bad request response a status code equal to that given +func (o *DeleteAllocatorBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete allocator bad request response +func (o *DeleteAllocatorBadRequest) Code() int { + return 400 +} + func (o *DeleteAllocatorBadRequest) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorBadRequest %+v", 400, o.Payload) } + +func (o *DeleteAllocatorBadRequest) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorBadRequest %+v", 400, o.Payload) +} + func (o *DeleteAllocatorBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -149,7 +222,8 @@ func NewDeleteAllocatorNotFound() *DeleteAllocatorNotFound { return &DeleteAllocatorNotFound{} } -/* DeleteAllocatorNotFound describes a response with status code 404, with default header values. +/* +DeleteAllocatorNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -162,9 +236,44 @@ type DeleteAllocatorNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator not found response has a 2xx status code +func (o *DeleteAllocatorNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator not found response has a 3xx status code +func (o *DeleteAllocatorNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator not found response has a 4xx status code +func (o *DeleteAllocatorNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator not found response has a 5xx status code +func (o *DeleteAllocatorNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator not found response a status code equal to that given +func (o *DeleteAllocatorNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete allocator not found response +func (o *DeleteAllocatorNotFound) Code() int { + return 404 +} + func (o *DeleteAllocatorNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorNotFound %+v", 404, o.Payload) } + +func (o *DeleteAllocatorNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorNotFound %+v", 404, o.Payload) +} + func (o *DeleteAllocatorNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -193,7 +302,8 @@ func NewDeleteAllocatorRetryWith() *DeleteAllocatorRetryWith { return &DeleteAllocatorRetryWith{} } -/* DeleteAllocatorRetryWith describes a response with status code 449, with default header values. +/* +DeleteAllocatorRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -206,9 +316,44 @@ type DeleteAllocatorRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete allocator retry with response has a 2xx status code +func (o *DeleteAllocatorRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete allocator retry with response has a 3xx status code +func (o *DeleteAllocatorRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete allocator retry with response has a 4xx status code +func (o *DeleteAllocatorRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete allocator retry with response has a 5xx status code +func (o *DeleteAllocatorRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete allocator retry with response a status code equal to that given +func (o *DeleteAllocatorRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete allocator retry with response +func (o *DeleteAllocatorRetryWith) Code() int { + return 449 +} + func (o *DeleteAllocatorRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorRetryWith %+v", 449, o.Payload) } + +func (o *DeleteAllocatorRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/allocators/{allocator_id}][%d] deleteAllocatorRetryWith %+v", 449, o.Payload) +} + func (o *DeleteAllocatorRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_blueprinter_role_parameters.go b/pkg/client/platform_infrastructure/delete_blueprinter_role_parameters.go index f21bfdf3..9893d591 100644 --- a/pkg/client/platform_infrastructure/delete_blueprinter_role_parameters.go +++ b/pkg/client/platform_infrastructure/delete_blueprinter_role_parameters.go @@ -70,10 +70,12 @@ func NewDeleteBlueprinterRoleParamsWithHTTPClient(client *http.Client) *DeleteBl } } -/* DeleteBlueprinterRoleParams contains all the parameters to send to the API endpoint - for the delete blueprinter role operation. +/* +DeleteBlueprinterRoleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete blueprinter role operation. + + Typically these are written to a http.Request. */ type DeleteBlueprinterRoleParams struct { diff --git a/pkg/client/platform_infrastructure/delete_blueprinter_role_responses.go b/pkg/client/platform_infrastructure/delete_blueprinter_role_responses.go index 671aa39e..a21334b6 100644 --- a/pkg/client/platform_infrastructure/delete_blueprinter_role_responses.go +++ b/pkg/client/platform_infrastructure/delete_blueprinter_role_responses.go @@ -74,7 +74,8 @@ func NewDeleteBlueprinterRoleOK() *DeleteBlueprinterRoleOK { return &DeleteBlueprinterRoleOK{} } -/* DeleteBlueprinterRoleOK describes a response with status code 200, with default header values. +/* +DeleteBlueprinterRoleOK describes a response with status code 200, with default header values. The role was successfully deleted. */ @@ -82,9 +83,44 @@ type DeleteBlueprinterRoleOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete blueprinter role o k response has a 2xx status code +func (o *DeleteBlueprinterRoleOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete blueprinter role o k response has a 3xx status code +func (o *DeleteBlueprinterRoleOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete blueprinter role o k response has a 4xx status code +func (o *DeleteBlueprinterRoleOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete blueprinter role o k response has a 5xx status code +func (o *DeleteBlueprinterRoleOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete blueprinter role o k response a status code equal to that given +func (o *DeleteBlueprinterRoleOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete blueprinter role o k response +func (o *DeleteBlueprinterRoleOK) Code() int { + return 200 +} + func (o *DeleteBlueprinterRoleOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleOK %+v", 200, o.Payload) } + +func (o *DeleteBlueprinterRoleOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleOK %+v", 200, o.Payload) +} + func (o *DeleteBlueprinterRoleOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteBlueprinterRoleBadRequest() *DeleteBlueprinterRoleBadRequest { return &DeleteBlueprinterRoleBadRequest{} } -/* DeleteBlueprinterRoleBadRequest describes a response with status code 400, with default header values. +/* +DeleteBlueprinterRoleBadRequest describes a response with status code 400, with default header values. The role is currently running container sets. (code: `roles.in_use`) */ @@ -117,9 +154,44 @@ type DeleteBlueprinterRoleBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete blueprinter role bad request response has a 2xx status code +func (o *DeleteBlueprinterRoleBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete blueprinter role bad request response has a 3xx status code +func (o *DeleteBlueprinterRoleBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete blueprinter role bad request response has a 4xx status code +func (o *DeleteBlueprinterRoleBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete blueprinter role bad request response has a 5xx status code +func (o *DeleteBlueprinterRoleBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete blueprinter role bad request response a status code equal to that given +func (o *DeleteBlueprinterRoleBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete blueprinter role bad request response +func (o *DeleteBlueprinterRoleBadRequest) Code() int { + return 400 +} + func (o *DeleteBlueprinterRoleBadRequest) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleBadRequest %+v", 400, o.Payload) } + +func (o *DeleteBlueprinterRoleBadRequest) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleBadRequest %+v", 400, o.Payload) +} + func (o *DeleteBlueprinterRoleBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteBlueprinterRoleNotFound() *DeleteBlueprinterRoleNotFound { return &DeleteBlueprinterRoleNotFound{} } -/* DeleteBlueprinterRoleNotFound describes a response with status code 404, with default header values. +/* +DeleteBlueprinterRoleNotFound describes a response with status code 404, with default header values. The role can't be found. (code: `roles.not_found`) */ @@ -161,9 +234,44 @@ type DeleteBlueprinterRoleNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete blueprinter role not found response has a 2xx status code +func (o *DeleteBlueprinterRoleNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete blueprinter role not found response has a 3xx status code +func (o *DeleteBlueprinterRoleNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete blueprinter role not found response has a 4xx status code +func (o *DeleteBlueprinterRoleNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete blueprinter role not found response has a 5xx status code +func (o *DeleteBlueprinterRoleNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete blueprinter role not found response a status code equal to that given +func (o *DeleteBlueprinterRoleNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete blueprinter role not found response +func (o *DeleteBlueprinterRoleNotFound) Code() int { + return 404 +} + func (o *DeleteBlueprinterRoleNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleNotFound %+v", 404, o.Payload) } + +func (o *DeleteBlueprinterRoleNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleNotFound %+v", 404, o.Payload) +} + func (o *DeleteBlueprinterRoleNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteBlueprinterRoleConflict() *DeleteBlueprinterRoleConflict { return &DeleteBlueprinterRoleConflict{} } -/* DeleteBlueprinterRoleConflict describes a response with status code 409, with default header values. +/* +DeleteBlueprinterRoleConflict describes a response with status code 409, with default header values. Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`) */ @@ -205,9 +314,44 @@ type DeleteBlueprinterRoleConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete blueprinter role conflict response has a 2xx status code +func (o *DeleteBlueprinterRoleConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete blueprinter role conflict response has a 3xx status code +func (o *DeleteBlueprinterRoleConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete blueprinter role conflict response has a 4xx status code +func (o *DeleteBlueprinterRoleConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete blueprinter role conflict response has a 5xx status code +func (o *DeleteBlueprinterRoleConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete blueprinter role conflict response a status code equal to that given +func (o *DeleteBlueprinterRoleConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete blueprinter role conflict response +func (o *DeleteBlueprinterRoleConflict) Code() int { + return 409 +} + func (o *DeleteBlueprinterRoleConflict) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleConflict %+v", 409, o.Payload) } + +func (o *DeleteBlueprinterRoleConflict) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] deleteBlueprinterRoleConflict %+v", 409, o.Payload) +} + func (o *DeleteBlueprinterRoleConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_config_store_option_parameters.go b/pkg/client/platform_infrastructure/delete_config_store_option_parameters.go index 22eab29c..9c458829 100644 --- a/pkg/client/platform_infrastructure/delete_config_store_option_parameters.go +++ b/pkg/client/platform_infrastructure/delete_config_store_option_parameters.go @@ -69,10 +69,12 @@ func NewDeleteConfigStoreOptionParamsWithHTTPClient(client *http.Client) *Delete } } -/* DeleteConfigStoreOptionParams contains all the parameters to send to the API endpoint - for the delete config store option operation. +/* +DeleteConfigStoreOptionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete config store option operation. + + Typically these are written to a http.Request. */ type DeleteConfigStoreOptionParams struct { diff --git a/pkg/client/platform_infrastructure/delete_config_store_option_responses.go b/pkg/client/platform_infrastructure/delete_config_store_option_responses.go index c58dbcb1..1ed6b651 100644 --- a/pkg/client/platform_infrastructure/delete_config_store_option_responses.go +++ b/pkg/client/platform_infrastructure/delete_config_store_option_responses.go @@ -62,7 +62,8 @@ func NewDeleteConfigStoreOptionOK() *DeleteConfigStoreOptionOK { return &DeleteConfigStoreOptionOK{} } -/* DeleteConfigStoreOptionOK describes a response with status code 200, with default header values. +/* +DeleteConfigStoreOptionOK describes a response with status code 200, with default header values. Config Store Option deleted successfully */ @@ -83,9 +84,44 @@ type DeleteConfigStoreOptionOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete config store option o k response has a 2xx status code +func (o *DeleteConfigStoreOptionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete config store option o k response has a 3xx status code +func (o *DeleteConfigStoreOptionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete config store option o k response has a 4xx status code +func (o *DeleteConfigStoreOptionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete config store option o k response has a 5xx status code +func (o *DeleteConfigStoreOptionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete config store option o k response a status code equal to that given +func (o *DeleteConfigStoreOptionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete config store option o k response +func (o *DeleteConfigStoreOptionOK) Code() int { + return 200 +} + func (o *DeleteConfigStoreOptionOK) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/store/{config_option_id}][%d] deleteConfigStoreOptionOK %+v", 200, o.Payload) } + +func (o *DeleteConfigStoreOptionOK) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/store/{config_option_id}][%d] deleteConfigStoreOptionOK %+v", 200, o.Payload) +} + func (o *DeleteConfigStoreOptionOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -126,7 +162,8 @@ func NewDeleteConfigStoreOptionNotFound() *DeleteConfigStoreOptionNotFound { return &DeleteConfigStoreOptionNotFound{} } -/* DeleteConfigStoreOptionNotFound describes a response with status code 404, with default header values. +/* +DeleteConfigStoreOptionNotFound describes a response with status code 404, with default header values. Config Store Option do not exist by that name. (code: `platform.config.store.not_found`) */ @@ -139,9 +176,44 @@ type DeleteConfigStoreOptionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete config store option not found response has a 2xx status code +func (o *DeleteConfigStoreOptionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete config store option not found response has a 3xx status code +func (o *DeleteConfigStoreOptionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete config store option not found response has a 4xx status code +func (o *DeleteConfigStoreOptionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete config store option not found response has a 5xx status code +func (o *DeleteConfigStoreOptionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete config store option not found response a status code equal to that given +func (o *DeleteConfigStoreOptionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete config store option not found response +func (o *DeleteConfigStoreOptionNotFound) Code() int { + return 404 +} + func (o *DeleteConfigStoreOptionNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/configuration/store/{config_option_id}][%d] deleteConfigStoreOptionNotFound %+v", 404, o.Payload) } + +func (o *DeleteConfigStoreOptionNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/configuration/store/{config_option_id}][%d] deleteConfigStoreOptionNotFound %+v", 404, o.Payload) +} + func (o *DeleteConfigStoreOptionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_constructor_logging_settings_parameters.go b/pkg/client/platform_infrastructure/delete_constructor_logging_settings_parameters.go index 030fda6c..8cd9c3c0 100644 --- a/pkg/client/platform_infrastructure/delete_constructor_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/delete_constructor_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewDeleteConstructorLoggingSettingsParamsWithHTTPClient(client *http.Client } } -/* DeleteConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the delete constructor logging settings operation. +/* +DeleteConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete constructor logging settings operation. + + Typically these are written to a http.Request. */ type DeleteConstructorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/delete_constructor_logging_settings_responses.go b/pkg/client/platform_infrastructure/delete_constructor_logging_settings_responses.go index a0142435..b723fdd1 100644 --- a/pkg/client/platform_infrastructure/delete_constructor_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/delete_constructor_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewDeleteConstructorLoggingSettingsOK() *DeleteConstructorLoggingSettingsOK return &DeleteConstructorLoggingSettingsOK{} } -/* DeleteConstructorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +DeleteConstructorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the constructor instance */ @@ -83,9 +84,44 @@ type DeleteConstructorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this delete constructor logging settings o k response has a 2xx status code +func (o *DeleteConstructorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete constructor logging settings o k response has a 3xx status code +func (o *DeleteConstructorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete constructor logging settings o k response has a 4xx status code +func (o *DeleteConstructorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete constructor logging settings o k response has a 5xx status code +func (o *DeleteConstructorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete constructor logging settings o k response a status code equal to that given +func (o *DeleteConstructorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete constructor logging settings o k response +func (o *DeleteConstructorLoggingSettingsOK) Code() int { + return 200 +} + func (o *DeleteConstructorLoggingSettingsOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] deleteConstructorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *DeleteConstructorLoggingSettingsOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] deleteConstructorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *DeleteConstructorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewDeleteConstructorLoggingSettingsNotFound() *DeleteConstructorLoggingSett return &DeleteConstructorLoggingSettingsNotFound{} } -/* DeleteConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +DeleteConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type DeleteConstructorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete constructor logging settings not found response has a 2xx status code +func (o *DeleteConstructorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete constructor logging settings not found response has a 3xx status code +func (o *DeleteConstructorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete constructor logging settings not found response has a 4xx status code +func (o *DeleteConstructorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete constructor logging settings not found response has a 5xx status code +func (o *DeleteConstructorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete constructor logging settings not found response a status code equal to that given +func (o *DeleteConstructorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete constructor logging settings not found response +func (o *DeleteConstructorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *DeleteConstructorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] deleteConstructorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *DeleteConstructorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] deleteConstructorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *DeleteConstructorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_coordinator_candidate_parameters.go b/pkg/client/platform_infrastructure/delete_coordinator_candidate_parameters.go index 9f35681a..ce8c8584 100644 --- a/pkg/client/platform_infrastructure/delete_coordinator_candidate_parameters.go +++ b/pkg/client/platform_infrastructure/delete_coordinator_candidate_parameters.go @@ -69,10 +69,12 @@ func NewDeleteCoordinatorCandidateParamsWithHTTPClient(client *http.Client) *Del } } -/* DeleteCoordinatorCandidateParams contains all the parameters to send to the API endpoint - for the delete coordinator candidate operation. +/* +DeleteCoordinatorCandidateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete coordinator candidate operation. + + Typically these are written to a http.Request. */ type DeleteCoordinatorCandidateParams struct { diff --git a/pkg/client/platform_infrastructure/delete_coordinator_candidate_responses.go b/pkg/client/platform_infrastructure/delete_coordinator_candidate_responses.go index e55d038b..feca2bdb 100644 --- a/pkg/client/platform_infrastructure/delete_coordinator_candidate_responses.go +++ b/pkg/client/platform_infrastructure/delete_coordinator_candidate_responses.go @@ -74,7 +74,8 @@ func NewDeleteCoordinatorCandidateOK() *DeleteCoordinatorCandidateOK { return &DeleteCoordinatorCandidateOK{} } -/* DeleteCoordinatorCandidateOK describes a response with status code 200, with default header values. +/* +DeleteCoordinatorCandidateOK describes a response with status code 200, with default header values. The coordinator candidate specified by {coordinator_candidate_id} was deleted. */ @@ -82,9 +83,44 @@ type DeleteCoordinatorCandidateOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete coordinator candidate o k response has a 2xx status code +func (o *DeleteCoordinatorCandidateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete coordinator candidate o k response has a 3xx status code +func (o *DeleteCoordinatorCandidateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete coordinator candidate o k response has a 4xx status code +func (o *DeleteCoordinatorCandidateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete coordinator candidate o k response has a 5xx status code +func (o *DeleteCoordinatorCandidateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete coordinator candidate o k response a status code equal to that given +func (o *DeleteCoordinatorCandidateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete coordinator candidate o k response +func (o *DeleteCoordinatorCandidateOK) Code() int { + return 200 +} + func (o *DeleteCoordinatorCandidateOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateOK %+v", 200, o.Payload) } + +func (o *DeleteCoordinatorCandidateOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateOK %+v", 200, o.Payload) +} + func (o *DeleteCoordinatorCandidateOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteCoordinatorCandidateBadRequest() *DeleteCoordinatorCandidateBadReq return &DeleteCoordinatorCandidateBadRequest{} } -/* DeleteCoordinatorCandidateBadRequest describes a response with status code 400, with default header values. +/* +DeleteCoordinatorCandidateBadRequest describes a response with status code 400, with default header values. The coordinator specified by {coordinator_candidate_id} could not be deleted. (code: `coordinators.candidate_deletion_failed`) */ @@ -117,9 +154,44 @@ type DeleteCoordinatorCandidateBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete coordinator candidate bad request response has a 2xx status code +func (o *DeleteCoordinatorCandidateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete coordinator candidate bad request response has a 3xx status code +func (o *DeleteCoordinatorCandidateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete coordinator candidate bad request response has a 4xx status code +func (o *DeleteCoordinatorCandidateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete coordinator candidate bad request response has a 5xx status code +func (o *DeleteCoordinatorCandidateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete coordinator candidate bad request response a status code equal to that given +func (o *DeleteCoordinatorCandidateBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete coordinator candidate bad request response +func (o *DeleteCoordinatorCandidateBadRequest) Code() int { + return 400 +} + func (o *DeleteCoordinatorCandidateBadRequest) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateBadRequest %+v", 400, o.Payload) } + +func (o *DeleteCoordinatorCandidateBadRequest) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateBadRequest %+v", 400, o.Payload) +} + func (o *DeleteCoordinatorCandidateBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteCoordinatorCandidateNotFound() *DeleteCoordinatorCandidateNotFound return &DeleteCoordinatorCandidateNotFound{} } -/* DeleteCoordinatorCandidateNotFound describes a response with status code 404, with default header values. +/* +DeleteCoordinatorCandidateNotFound describes a response with status code 404, with default header values. The coordinator candidate specified by {coordinator_candidate_id} cannot be found. (code: `coordinators.candidate_not_found`) */ @@ -161,9 +234,44 @@ type DeleteCoordinatorCandidateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete coordinator candidate not found response has a 2xx status code +func (o *DeleteCoordinatorCandidateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete coordinator candidate not found response has a 3xx status code +func (o *DeleteCoordinatorCandidateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete coordinator candidate not found response has a 4xx status code +func (o *DeleteCoordinatorCandidateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete coordinator candidate not found response has a 5xx status code +func (o *DeleteCoordinatorCandidateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete coordinator candidate not found response a status code equal to that given +func (o *DeleteCoordinatorCandidateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete coordinator candidate not found response +func (o *DeleteCoordinatorCandidateNotFound) Code() int { + return 404 +} + func (o *DeleteCoordinatorCandidateNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateNotFound %+v", 404, o.Payload) } + +func (o *DeleteCoordinatorCandidateNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateNotFound %+v", 404, o.Payload) +} + func (o *DeleteCoordinatorCandidateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteCoordinatorCandidateRetryWith() *DeleteCoordinatorCandidateRetryWi return &DeleteCoordinatorCandidateRetryWith{} } -/* DeleteCoordinatorCandidateRetryWith describes a response with status code 449, with default header values. +/* +DeleteCoordinatorCandidateRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteCoordinatorCandidateRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete coordinator candidate retry with response has a 2xx status code +func (o *DeleteCoordinatorCandidateRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete coordinator candidate retry with response has a 3xx status code +func (o *DeleteCoordinatorCandidateRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete coordinator candidate retry with response has a 4xx status code +func (o *DeleteCoordinatorCandidateRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete coordinator candidate retry with response has a 5xx status code +func (o *DeleteCoordinatorCandidateRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete coordinator candidate retry with response a status code equal to that given +func (o *DeleteCoordinatorCandidateRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete coordinator candidate retry with response +func (o *DeleteCoordinatorCandidateRetryWith) Code() int { + return 449 +} + func (o *DeleteCoordinatorCandidateRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateRetryWith %+v", 449, o.Payload) } + +func (o *DeleteCoordinatorCandidateRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] deleteCoordinatorCandidateRetryWith %+v", 449, o.Payload) +} + func (o *DeleteCoordinatorCandidateRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_license_parameters.go b/pkg/client/platform_infrastructure/delete_license_parameters.go index 1d93ae6f..fc2de999 100644 --- a/pkg/client/platform_infrastructure/delete_license_parameters.go +++ b/pkg/client/platform_infrastructure/delete_license_parameters.go @@ -69,10 +69,12 @@ func NewDeleteLicenseParamsWithHTTPClient(client *http.Client) *DeleteLicensePar } } -/* DeleteLicenseParams contains all the parameters to send to the API endpoint - for the delete license operation. +/* +DeleteLicenseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete license operation. + + Typically these are written to a http.Request. */ type DeleteLicenseParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/delete_license_responses.go b/pkg/client/platform_infrastructure/delete_license_responses.go index b3b672c2..950e322b 100644 --- a/pkg/client/platform_infrastructure/delete_license_responses.go +++ b/pkg/client/platform_infrastructure/delete_license_responses.go @@ -68,7 +68,8 @@ func NewDeleteLicenseOK() *DeleteLicenseOK { return &DeleteLicenseOK{} } -/* DeleteLicenseOK describes a response with status code 200, with default header values. +/* +DeleteLicenseOK describes a response with status code 200, with default header values. The license was deleted. */ @@ -76,9 +77,44 @@ type DeleteLicenseOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete license o k response has a 2xx status code +func (o *DeleteLicenseOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete license o k response has a 3xx status code +func (o *DeleteLicenseOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete license o k response has a 4xx status code +func (o *DeleteLicenseOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete license o k response has a 5xx status code +func (o *DeleteLicenseOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete license o k response a status code equal to that given +func (o *DeleteLicenseOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete license o k response +func (o *DeleteLicenseOK) Code() int { + return 200 +} + func (o *DeleteLicenseOK) Error() string { return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseOK %+v", 200, o.Payload) } + +func (o *DeleteLicenseOK) String() string { + return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseOK %+v", 200, o.Payload) +} + func (o *DeleteLicenseOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteLicenseNotFound() *DeleteLicenseNotFound { return &DeleteLicenseNotFound{} } -/* DeleteLicenseNotFound describes a response with status code 404, with default header values. +/* +DeleteLicenseNotFound describes a response with status code 404, with default header values. The license cannot be found. (code: `license.license_not_found`) */ @@ -111,9 +148,44 @@ type DeleteLicenseNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete license not found response has a 2xx status code +func (o *DeleteLicenseNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete license not found response has a 3xx status code +func (o *DeleteLicenseNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete license not found response has a 4xx status code +func (o *DeleteLicenseNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete license not found response has a 5xx status code +func (o *DeleteLicenseNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete license not found response a status code equal to that given +func (o *DeleteLicenseNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete license not found response +func (o *DeleteLicenseNotFound) Code() int { + return 404 +} + func (o *DeleteLicenseNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseNotFound %+v", 404, o.Payload) } + +func (o *DeleteLicenseNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseNotFound %+v", 404, o.Payload) +} + func (o *DeleteLicenseNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteLicenseRetryWith() *DeleteLicenseRetryWith { return &DeleteLicenseRetryWith{} } -/* DeleteLicenseRetryWith describes a response with status code 449, with default header values. +/* +DeleteLicenseRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteLicenseRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete license retry with response has a 2xx status code +func (o *DeleteLicenseRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete license retry with response has a 3xx status code +func (o *DeleteLicenseRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete license retry with response has a 4xx status code +func (o *DeleteLicenseRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete license retry with response has a 5xx status code +func (o *DeleteLicenseRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete license retry with response a status code equal to that given +func (o *DeleteLicenseRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete license retry with response +func (o *DeleteLicenseRetryWith) Code() int { + return 449 +} + func (o *DeleteLicenseRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseRetryWith %+v", 449, o.Payload) } + +func (o *DeleteLicenseRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/license][%d] deleteLicenseRetryWith %+v", 449, o.Payload) +} + func (o *DeleteLicenseRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_proxies_filtered_group_parameters.go b/pkg/client/platform_infrastructure/delete_proxies_filtered_group_parameters.go index 806e9d67..6182203d 100644 --- a/pkg/client/platform_infrastructure/delete_proxies_filtered_group_parameters.go +++ b/pkg/client/platform_infrastructure/delete_proxies_filtered_group_parameters.go @@ -69,10 +69,12 @@ func NewDeleteProxiesFilteredGroupParamsWithHTTPClient(client *http.Client) *Del } } -/* DeleteProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - for the delete proxies filtered group operation. +/* +DeleteProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete proxies filtered group operation. + + Typically these are written to a http.Request. */ type DeleteProxiesFilteredGroupParams struct { diff --git a/pkg/client/platform_infrastructure/delete_proxies_filtered_group_responses.go b/pkg/client/platform_infrastructure/delete_proxies_filtered_group_responses.go index a3175e1e..2279e656 100644 --- a/pkg/client/platform_infrastructure/delete_proxies_filtered_group_responses.go +++ b/pkg/client/platform_infrastructure/delete_proxies_filtered_group_responses.go @@ -74,7 +74,8 @@ func NewDeleteProxiesFilteredGroupOK() *DeleteProxiesFilteredGroupOK { return &DeleteProxiesFilteredGroupOK{} } -/* DeleteProxiesFilteredGroupOK describes a response with status code 200, with default header values. +/* +DeleteProxiesFilteredGroupOK describes a response with status code 200, with default header values. The filtered group of proxies was successfully deleted */ @@ -82,9 +83,44 @@ type DeleteProxiesFilteredGroupOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete proxies filtered group o k response has a 2xx status code +func (o *DeleteProxiesFilteredGroupOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete proxies filtered group o k response has a 3xx status code +func (o *DeleteProxiesFilteredGroupOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete proxies filtered group o k response has a 4xx status code +func (o *DeleteProxiesFilteredGroupOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete proxies filtered group o k response has a 5xx status code +func (o *DeleteProxiesFilteredGroupOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete proxies filtered group o k response a status code equal to that given +func (o *DeleteProxiesFilteredGroupOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete proxies filtered group o k response +func (o *DeleteProxiesFilteredGroupOK) Code() int { + return 200 +} + func (o *DeleteProxiesFilteredGroupOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupOK %+v", 200, o.Payload) } + +func (o *DeleteProxiesFilteredGroupOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupOK %+v", 200, o.Payload) +} + func (o *DeleteProxiesFilteredGroupOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteProxiesFilteredGroupNotFound() *DeleteProxiesFilteredGroupNotFound return &DeleteProxiesFilteredGroupNotFound{} } -/* DeleteProxiesFilteredGroupNotFound describes a response with status code 404, with default header values. +/* +DeleteProxiesFilteredGroupNotFound describes a response with status code 404, with default header values. Unable to find the {proxies_filtered_group_id} specified filtered group of proxies. Edit your request, then try again. (code: `proxies.proxies_filtered_group_not_found`) */ @@ -117,9 +154,44 @@ type DeleteProxiesFilteredGroupNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete proxies filtered group not found response has a 2xx status code +func (o *DeleteProxiesFilteredGroupNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete proxies filtered group not found response has a 3xx status code +func (o *DeleteProxiesFilteredGroupNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete proxies filtered group not found response has a 4xx status code +func (o *DeleteProxiesFilteredGroupNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete proxies filtered group not found response has a 5xx status code +func (o *DeleteProxiesFilteredGroupNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete proxies filtered group not found response a status code equal to that given +func (o *DeleteProxiesFilteredGroupNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete proxies filtered group not found response +func (o *DeleteProxiesFilteredGroupNotFound) Code() int { + return 404 +} + func (o *DeleteProxiesFilteredGroupNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupNotFound %+v", 404, o.Payload) } + +func (o *DeleteProxiesFilteredGroupNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupNotFound %+v", 404, o.Payload) +} + func (o *DeleteProxiesFilteredGroupNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteProxiesFilteredGroupConflict() *DeleteProxiesFilteredGroupConflict return &DeleteProxiesFilteredGroupConflict{} } -/* DeleteProxiesFilteredGroupConflict describes a response with status code 409, with default header values. +/* +DeleteProxiesFilteredGroupConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `proxies.proxies_filtered_group_version_conflict`) */ @@ -161,9 +234,44 @@ type DeleteProxiesFilteredGroupConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete proxies filtered group conflict response has a 2xx status code +func (o *DeleteProxiesFilteredGroupConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete proxies filtered group conflict response has a 3xx status code +func (o *DeleteProxiesFilteredGroupConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete proxies filtered group conflict response has a 4xx status code +func (o *DeleteProxiesFilteredGroupConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete proxies filtered group conflict response has a 5xx status code +func (o *DeleteProxiesFilteredGroupConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this delete proxies filtered group conflict response a status code equal to that given +func (o *DeleteProxiesFilteredGroupConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the delete proxies filtered group conflict response +func (o *DeleteProxiesFilteredGroupConflict) Code() int { + return 409 +} + func (o *DeleteProxiesFilteredGroupConflict) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupConflict %+v", 409, o.Payload) } + +func (o *DeleteProxiesFilteredGroupConflict) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupConflict %+v", 409, o.Payload) +} + func (o *DeleteProxiesFilteredGroupConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteProxiesFilteredGroupRetryWith() *DeleteProxiesFilteredGroupRetryWi return &DeleteProxiesFilteredGroupRetryWith{} } -/* DeleteProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. +/* +DeleteProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteProxiesFilteredGroupRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete proxies filtered group retry with response has a 2xx status code +func (o *DeleteProxiesFilteredGroupRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete proxies filtered group retry with response has a 3xx status code +func (o *DeleteProxiesFilteredGroupRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete proxies filtered group retry with response has a 4xx status code +func (o *DeleteProxiesFilteredGroupRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete proxies filtered group retry with response has a 5xx status code +func (o *DeleteProxiesFilteredGroupRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete proxies filtered group retry with response a status code equal to that given +func (o *DeleteProxiesFilteredGroupRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete proxies filtered group retry with response +func (o *DeleteProxiesFilteredGroupRetryWith) Code() int { + return 449 +} + func (o *DeleteProxiesFilteredGroupRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupRetryWith %+v", 449, o.Payload) } + +func (o *DeleteProxiesFilteredGroupRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] deleteProxiesFilteredGroupRetryWith %+v", 449, o.Payload) +} + func (o *DeleteProxiesFilteredGroupRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_runner_logging_settings_parameters.go b/pkg/client/platform_infrastructure/delete_runner_logging_settings_parameters.go index c887eb73..a6e500b9 100644 --- a/pkg/client/platform_infrastructure/delete_runner_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/delete_runner_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewDeleteRunnerLoggingSettingsParamsWithHTTPClient(client *http.Client) *De } } -/* DeleteRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - for the delete runner logging settings operation. +/* +DeleteRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete runner logging settings operation. + + Typically these are written to a http.Request. */ type DeleteRunnerLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/delete_runner_logging_settings_responses.go b/pkg/client/platform_infrastructure/delete_runner_logging_settings_responses.go index 4b50ecf2..0f7847bf 100644 --- a/pkg/client/platform_infrastructure/delete_runner_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/delete_runner_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewDeleteRunnerLoggingSettingsOK() *DeleteRunnerLoggingSettingsOK { return &DeleteRunnerLoggingSettingsOK{} } -/* DeleteRunnerLoggingSettingsOK describes a response with status code 200, with default header values. +/* +DeleteRunnerLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the runner instance */ @@ -83,9 +84,44 @@ type DeleteRunnerLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this delete runner logging settings o k response has a 2xx status code +func (o *DeleteRunnerLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete runner logging settings o k response has a 3xx status code +func (o *DeleteRunnerLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner logging settings o k response has a 4xx status code +func (o *DeleteRunnerLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete runner logging settings o k response has a 5xx status code +func (o *DeleteRunnerLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner logging settings o k response a status code equal to that given +func (o *DeleteRunnerLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete runner logging settings o k response +func (o *DeleteRunnerLoggingSettingsOK) Code() int { + return 200 +} + func (o *DeleteRunnerLoggingSettingsOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}/logging_settings][%d] deleteRunnerLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *DeleteRunnerLoggingSettingsOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}/logging_settings][%d] deleteRunnerLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *DeleteRunnerLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewDeleteRunnerLoggingSettingsNotFound() *DeleteRunnerLoggingSettingsNotFou return &DeleteRunnerLoggingSettingsNotFound{} } -/* DeleteRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +DeleteRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type DeleteRunnerLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete runner logging settings not found response has a 2xx status code +func (o *DeleteRunnerLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete runner logging settings not found response has a 3xx status code +func (o *DeleteRunnerLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner logging settings not found response has a 4xx status code +func (o *DeleteRunnerLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete runner logging settings not found response has a 5xx status code +func (o *DeleteRunnerLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner logging settings not found response a status code equal to that given +func (o *DeleteRunnerLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete runner logging settings not found response +func (o *DeleteRunnerLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *DeleteRunnerLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}/logging_settings][%d] deleteRunnerLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *DeleteRunnerLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}/logging_settings][%d] deleteRunnerLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *DeleteRunnerLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/delete_runner_parameters.go b/pkg/client/platform_infrastructure/delete_runner_parameters.go index bed594de..f84879fb 100644 --- a/pkg/client/platform_infrastructure/delete_runner_parameters.go +++ b/pkg/client/platform_infrastructure/delete_runner_parameters.go @@ -69,10 +69,12 @@ func NewDeleteRunnerParamsWithHTTPClient(client *http.Client) *DeleteRunnerParam } } -/* DeleteRunnerParams contains all the parameters to send to the API endpoint - for the delete runner operation. +/* +DeleteRunnerParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete runner operation. + + Typically these are written to a http.Request. */ type DeleteRunnerParams struct { diff --git a/pkg/client/platform_infrastructure/delete_runner_responses.go b/pkg/client/platform_infrastructure/delete_runner_responses.go index c9984560..6203a33f 100644 --- a/pkg/client/platform_infrastructure/delete_runner_responses.go +++ b/pkg/client/platform_infrastructure/delete_runner_responses.go @@ -74,7 +74,8 @@ func NewDeleteRunnerOK() *DeleteRunnerOK { return &DeleteRunnerOK{} } -/* DeleteRunnerOK describes a response with status code 200, with default header values. +/* +DeleteRunnerOK describes a response with status code 200, with default header values. The runner specified by {runner_id} was deleted. */ @@ -82,9 +83,44 @@ type DeleteRunnerOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete runner o k response has a 2xx status code +func (o *DeleteRunnerOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete runner o k response has a 3xx status code +func (o *DeleteRunnerOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner o k response has a 4xx status code +func (o *DeleteRunnerOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete runner o k response has a 5xx status code +func (o *DeleteRunnerOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner o k response a status code equal to that given +func (o *DeleteRunnerOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete runner o k response +func (o *DeleteRunnerOK) Code() int { + return 200 +} + func (o *DeleteRunnerOK) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerOK %+v", 200, o.Payload) } + +func (o *DeleteRunnerOK) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerOK %+v", 200, o.Payload) +} + func (o *DeleteRunnerOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDeleteRunnerBadRequest() *DeleteRunnerBadRequest { return &DeleteRunnerBadRequest{} } -/* DeleteRunnerBadRequest describes a response with status code 400, with default header values. +/* +DeleteRunnerBadRequest describes a response with status code 400, with default header values. The runner specified by {runner_id} could not be deleted. (code: `runners.runner_deletion_failed`) */ @@ -117,9 +154,44 @@ type DeleteRunnerBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete runner bad request response has a 2xx status code +func (o *DeleteRunnerBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete runner bad request response has a 3xx status code +func (o *DeleteRunnerBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner bad request response has a 4xx status code +func (o *DeleteRunnerBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete runner bad request response has a 5xx status code +func (o *DeleteRunnerBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner bad request response a status code equal to that given +func (o *DeleteRunnerBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete runner bad request response +func (o *DeleteRunnerBadRequest) Code() int { + return 400 +} + func (o *DeleteRunnerBadRequest) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerBadRequest %+v", 400, o.Payload) } + +func (o *DeleteRunnerBadRequest) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerBadRequest %+v", 400, o.Payload) +} + func (o *DeleteRunnerBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDeleteRunnerNotFound() *DeleteRunnerNotFound { return &DeleteRunnerNotFound{} } -/* DeleteRunnerNotFound describes a response with status code 404, with default header values. +/* +DeleteRunnerNotFound describes a response with status code 404, with default header values. The runner specified by {runner_id} cannot be found. (code: `runners.runner_not_found`) */ @@ -161,9 +234,44 @@ type DeleteRunnerNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete runner not found response has a 2xx status code +func (o *DeleteRunnerNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete runner not found response has a 3xx status code +func (o *DeleteRunnerNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner not found response has a 4xx status code +func (o *DeleteRunnerNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete runner not found response has a 5xx status code +func (o *DeleteRunnerNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner not found response a status code equal to that given +func (o *DeleteRunnerNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete runner not found response +func (o *DeleteRunnerNotFound) Code() int { + return 404 +} + func (o *DeleteRunnerNotFound) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerNotFound %+v", 404, o.Payload) } + +func (o *DeleteRunnerNotFound) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerNotFound %+v", 404, o.Payload) +} + func (o *DeleteRunnerNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDeleteRunnerRetryWith() *DeleteRunnerRetryWith { return &DeleteRunnerRetryWith{} } -/* DeleteRunnerRetryWith describes a response with status code 449, with default header values. +/* +DeleteRunnerRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DeleteRunnerRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete runner retry with response has a 2xx status code +func (o *DeleteRunnerRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete runner retry with response has a 3xx status code +func (o *DeleteRunnerRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete runner retry with response has a 4xx status code +func (o *DeleteRunnerRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete runner retry with response has a 5xx status code +func (o *DeleteRunnerRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete runner retry with response a status code equal to that given +func (o *DeleteRunnerRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete runner retry with response +func (o *DeleteRunnerRetryWith) Code() int { + return 449 +} + func (o *DeleteRunnerRetryWith) Error() string { return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerRetryWith %+v", 449, o.Payload) } + +func (o *DeleteRunnerRetryWith) String() string { + return fmt.Sprintf("[DELETE /platform/infrastructure/runners/{runner_id}][%d] deleteRunnerRetryWith %+v", 449, o.Payload) +} + func (o *DeleteRunnerRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/demote_coordinator_parameters.go b/pkg/client/platform_infrastructure/demote_coordinator_parameters.go index 9f3e0fa8..c0ac24cb 100644 --- a/pkg/client/platform_infrastructure/demote_coordinator_parameters.go +++ b/pkg/client/platform_infrastructure/demote_coordinator_parameters.go @@ -69,10 +69,12 @@ func NewDemoteCoordinatorParamsWithHTTPClient(client *http.Client) *DemoteCoordi } } -/* DemoteCoordinatorParams contains all the parameters to send to the API endpoint - for the demote coordinator operation. +/* +DemoteCoordinatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the demote coordinator operation. + + Typically these are written to a http.Request. */ type DemoteCoordinatorParams struct { diff --git a/pkg/client/platform_infrastructure/demote_coordinator_responses.go b/pkg/client/platform_infrastructure/demote_coordinator_responses.go index b20780f4..5932f814 100644 --- a/pkg/client/platform_infrastructure/demote_coordinator_responses.go +++ b/pkg/client/platform_infrastructure/demote_coordinator_responses.go @@ -74,7 +74,8 @@ func NewDemoteCoordinatorOK() *DemoteCoordinatorOK { return &DemoteCoordinatorOK{} } -/* DemoteCoordinatorOK describes a response with status code 200, with default header values. +/* +DemoteCoordinatorOK describes a response with status code 200, with default header values. Accepted demote of coordinator. */ @@ -82,9 +83,44 @@ type DemoteCoordinatorOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this demote coordinator o k response has a 2xx status code +func (o *DemoteCoordinatorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this demote coordinator o k response has a 3xx status code +func (o *DemoteCoordinatorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this demote coordinator o k response has a 4xx status code +func (o *DemoteCoordinatorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this demote coordinator o k response has a 5xx status code +func (o *DemoteCoordinatorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this demote coordinator o k response a status code equal to that given +func (o *DemoteCoordinatorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the demote coordinator o k response +func (o *DemoteCoordinatorOK) Code() int { + return 200 +} + func (o *DemoteCoordinatorOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorOK %+v", 200, o.Payload) } + +func (o *DemoteCoordinatorOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorOK %+v", 200, o.Payload) +} + func (o *DemoteCoordinatorOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewDemoteCoordinatorBadRequest() *DemoteCoordinatorBadRequest { return &DemoteCoordinatorBadRequest{} } -/* DemoteCoordinatorBadRequest describes a response with status code 400, with default header values. +/* +DemoteCoordinatorBadRequest describes a response with status code 400, with default header values. The coordinator specified by {coordinator_id} could not be demoted. (code: `coordinators.coordinator_demote_failed`) */ @@ -117,9 +154,44 @@ type DemoteCoordinatorBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this demote coordinator bad request response has a 2xx status code +func (o *DemoteCoordinatorBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this demote coordinator bad request response has a 3xx status code +func (o *DemoteCoordinatorBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this demote coordinator bad request response has a 4xx status code +func (o *DemoteCoordinatorBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this demote coordinator bad request response has a 5xx status code +func (o *DemoteCoordinatorBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this demote coordinator bad request response a status code equal to that given +func (o *DemoteCoordinatorBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the demote coordinator bad request response +func (o *DemoteCoordinatorBadRequest) Code() int { + return 400 +} + func (o *DemoteCoordinatorBadRequest) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorBadRequest %+v", 400, o.Payload) } + +func (o *DemoteCoordinatorBadRequest) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorBadRequest %+v", 400, o.Payload) +} + func (o *DemoteCoordinatorBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewDemoteCoordinatorNotFound() *DemoteCoordinatorNotFound { return &DemoteCoordinatorNotFound{} } -/* DemoteCoordinatorNotFound describes a response with status code 404, with default header values. +/* +DemoteCoordinatorNotFound describes a response with status code 404, with default header values. Unable to find the coordinator {coordinator_id}. Edit your request, then try again. (code: `coordinators.coordinator_not_found`) */ @@ -161,9 +234,44 @@ type DemoteCoordinatorNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this demote coordinator not found response has a 2xx status code +func (o *DemoteCoordinatorNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this demote coordinator not found response has a 3xx status code +func (o *DemoteCoordinatorNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this demote coordinator not found response has a 4xx status code +func (o *DemoteCoordinatorNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this demote coordinator not found response has a 5xx status code +func (o *DemoteCoordinatorNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this demote coordinator not found response a status code equal to that given +func (o *DemoteCoordinatorNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the demote coordinator not found response +func (o *DemoteCoordinatorNotFound) Code() int { + return 404 +} + func (o *DemoteCoordinatorNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorNotFound %+v", 404, o.Payload) } + +func (o *DemoteCoordinatorNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorNotFound %+v", 404, o.Payload) +} + func (o *DemoteCoordinatorNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewDemoteCoordinatorRetryWith() *DemoteCoordinatorRetryWith { return &DemoteCoordinatorRetryWith{} } -/* DemoteCoordinatorRetryWith describes a response with status code 449, with default header values. +/* +DemoteCoordinatorRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type DemoteCoordinatorRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this demote coordinator retry with response has a 2xx status code +func (o *DemoteCoordinatorRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this demote coordinator retry with response has a 3xx status code +func (o *DemoteCoordinatorRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this demote coordinator retry with response has a 4xx status code +func (o *DemoteCoordinatorRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this demote coordinator retry with response has a 5xx status code +func (o *DemoteCoordinatorRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this demote coordinator retry with response a status code equal to that given +func (o *DemoteCoordinatorRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the demote coordinator retry with response +func (o *DemoteCoordinatorRetryWith) Code() int { + return 449 +} + func (o *DemoteCoordinatorRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorRetryWith %+v", 449, o.Payload) } + +func (o *DemoteCoordinatorRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/{coordinator_id}/_demote][%d] demoteCoordinatorRetryWith %+v", 449, o.Payload) +} + func (o *DemoteCoordinatorRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_parameters.go b/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_parameters.go index ced2858b..e4e10984 100644 --- a/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetAdminconsoleLoggingSettingsParamsWithHTTPClient(client *http.Client) } } -/* GetAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - for the get adminconsole logging settings operation. +/* +GetAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get adminconsole logging settings operation. + + Typically these are written to a http.Request. */ type GetAdminconsoleLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_responses.go b/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_responses.go index ebeb1aea..09c29689 100644 --- a/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_adminconsole_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewGetAdminconsoleLoggingSettingsOK() *GetAdminconsoleLoggingSettingsOK { return &GetAdminconsoleLoggingSettingsOK{} } -/* GetAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. +/* +GetAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. The logging settings for the adminconsole instance */ @@ -83,9 +84,44 @@ type GetAdminconsoleLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this get adminconsole logging settings o k response has a 2xx status code +func (o *GetAdminconsoleLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get adminconsole logging settings o k response has a 3xx status code +func (o *GetAdminconsoleLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get adminconsole logging settings o k response has a 4xx status code +func (o *GetAdminconsoleLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get adminconsole logging settings o k response has a 5xx status code +func (o *GetAdminconsoleLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get adminconsole logging settings o k response a status code equal to that given +func (o *GetAdminconsoleLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get adminconsole logging settings o k response +func (o *GetAdminconsoleLoggingSettingsOK) Code() int { + return 200 +} + func (o *GetAdminconsoleLoggingSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] getAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *GetAdminconsoleLoggingSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] getAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *GetAdminconsoleLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetAdminconsoleLoggingSettingsNotFound() *GetAdminconsoleLoggingSettings return &GetAdminconsoleLoggingSettingsNotFound{} } -/* GetAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +GetAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type GetAdminconsoleLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get adminconsole logging settings not found response has a 2xx status code +func (o *GetAdminconsoleLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get adminconsole logging settings not found response has a 3xx status code +func (o *GetAdminconsoleLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get adminconsole logging settings not found response has a 4xx status code +func (o *GetAdminconsoleLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get adminconsole logging settings not found response has a 5xx status code +func (o *GetAdminconsoleLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get adminconsole logging settings not found response a status code equal to that given +func (o *GetAdminconsoleLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get adminconsole logging settings not found response +func (o *GetAdminconsoleLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *GetAdminconsoleLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] getAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *GetAdminconsoleLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] getAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *GetAdminconsoleLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_adminconsoles_parameters.go b/pkg/client/platform_infrastructure/get_adminconsoles_parameters.go index 075ea89b..57869de3 100644 --- a/pkg/client/platform_infrastructure/get_adminconsoles_parameters.go +++ b/pkg/client/platform_infrastructure/get_adminconsoles_parameters.go @@ -69,10 +69,12 @@ func NewGetAdminconsolesParamsWithHTTPClient(client *http.Client) *GetAdminconso } } -/* GetAdminconsolesParams contains all the parameters to send to the API endpoint - for the get adminconsoles operation. +/* +GetAdminconsolesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get adminconsoles operation. + + Typically these are written to a http.Request. */ type GetAdminconsolesParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_adminconsoles_responses.go b/pkg/client/platform_infrastructure/get_adminconsoles_responses.go index 577e3a9f..5263e52a 100644 --- a/pkg/client/platform_infrastructure/get_adminconsoles_responses.go +++ b/pkg/client/platform_infrastructure/get_adminconsoles_responses.go @@ -56,7 +56,8 @@ func NewGetAdminconsolesOK() *GetAdminconsolesOK { return &GetAdminconsolesOK{} } -/* GetAdminconsolesOK describes a response with status code 200, with default header values. +/* +GetAdminconsolesOK describes a response with status code 200, with default header values. An overview of all adminconsoles. */ @@ -77,9 +78,44 @@ type GetAdminconsolesOK struct { Payload *models.AdminconsolesOverview } +// IsSuccess returns true when this get adminconsoles o k response has a 2xx status code +func (o *GetAdminconsolesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get adminconsoles o k response has a 3xx status code +func (o *GetAdminconsolesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get adminconsoles o k response has a 4xx status code +func (o *GetAdminconsolesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get adminconsoles o k response has a 5xx status code +func (o *GetAdminconsolesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get adminconsoles o k response a status code equal to that given +func (o *GetAdminconsolesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get adminconsoles o k response +func (o *GetAdminconsolesOK) Code() int { + return 200 +} + func (o *GetAdminconsolesOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles][%d] getAdminconsolesOK %+v", 200, o.Payload) } + +func (o *GetAdminconsolesOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/adminconsoles][%d] getAdminconsolesOK %+v", 200, o.Payload) +} + func (o *GetAdminconsolesOK) GetPayload() *models.AdminconsolesOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_allocator_logging_settings_parameters.go b/pkg/client/platform_infrastructure/get_allocator_logging_settings_parameters.go index 2c77313a..7bfaaf56 100644 --- a/pkg/client/platform_infrastructure/get_allocator_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_allocator_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetAllocatorLoggingSettingsParamsWithHTTPClient(client *http.Client) *Ge } } -/* GetAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the get allocator logging settings operation. +/* +GetAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get allocator logging settings operation. + + Typically these are written to a http.Request. */ type GetAllocatorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/get_allocator_logging_settings_responses.go b/pkg/client/platform_infrastructure/get_allocator_logging_settings_responses.go index 562ab3fb..4b16b287 100644 --- a/pkg/client/platform_infrastructure/get_allocator_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_allocator_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewGetAllocatorLoggingSettingsOK() *GetAllocatorLoggingSettingsOK { return &GetAllocatorLoggingSettingsOK{} } -/* GetAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +GetAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. The logging settings for the allocator instance */ @@ -83,9 +84,44 @@ type GetAllocatorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this get allocator logging settings o k response has a 2xx status code +func (o *GetAllocatorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get allocator logging settings o k response has a 3xx status code +func (o *GetAllocatorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator logging settings o k response has a 4xx status code +func (o *GetAllocatorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get allocator logging settings o k response has a 5xx status code +func (o *GetAllocatorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator logging settings o k response a status code equal to that given +func (o *GetAllocatorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get allocator logging settings o k response +func (o *GetAllocatorLoggingSettingsOK) Code() int { + return 200 +} + func (o *GetAllocatorLoggingSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] getAllocatorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *GetAllocatorLoggingSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] getAllocatorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *GetAllocatorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetAllocatorLoggingSettingsNotFound() *GetAllocatorLoggingSettingsNotFou return &GetAllocatorLoggingSettingsNotFound{} } -/* GetAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +GetAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type GetAllocatorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get allocator logging settings not found response has a 2xx status code +func (o *GetAllocatorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get allocator logging settings not found response has a 3xx status code +func (o *GetAllocatorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator logging settings not found response has a 4xx status code +func (o *GetAllocatorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get allocator logging settings not found response has a 5xx status code +func (o *GetAllocatorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator logging settings not found response a status code equal to that given +func (o *GetAllocatorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get allocator logging settings not found response +func (o *GetAllocatorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *GetAllocatorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] getAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *GetAllocatorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] getAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *GetAllocatorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_allocator_metadata_parameters.go b/pkg/client/platform_infrastructure/get_allocator_metadata_parameters.go index 2af20708..eb53b0d0 100644 --- a/pkg/client/platform_infrastructure/get_allocator_metadata_parameters.go +++ b/pkg/client/platform_infrastructure/get_allocator_metadata_parameters.go @@ -69,10 +69,12 @@ func NewGetAllocatorMetadataParamsWithHTTPClient(client *http.Client) *GetAlloca } } -/* GetAllocatorMetadataParams contains all the parameters to send to the API endpoint - for the get allocator metadata operation. +/* +GetAllocatorMetadataParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get allocator metadata operation. + + Typically these are written to a http.Request. */ type GetAllocatorMetadataParams struct { diff --git a/pkg/client/platform_infrastructure/get_allocator_metadata_responses.go b/pkg/client/platform_infrastructure/get_allocator_metadata_responses.go index 3ae3dc02..7a65533d 100644 --- a/pkg/client/platform_infrastructure/get_allocator_metadata_responses.go +++ b/pkg/client/platform_infrastructure/get_allocator_metadata_responses.go @@ -62,7 +62,8 @@ func NewGetAllocatorMetadataOK() *GetAllocatorMetadataOK { return &GetAllocatorMetadataOK{} } -/* GetAllocatorMetadataOK describes a response with status code 200, with default header values. +/* +GetAllocatorMetadataOK describes a response with status code 200, with default header values. The allocator metadata was successfully returned */ @@ -83,9 +84,44 @@ type GetAllocatorMetadataOK struct { Payload []*models.MetadataItem } +// IsSuccess returns true when this get allocator metadata o k response has a 2xx status code +func (o *GetAllocatorMetadataOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get allocator metadata o k response has a 3xx status code +func (o *GetAllocatorMetadataOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator metadata o k response has a 4xx status code +func (o *GetAllocatorMetadataOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get allocator metadata o k response has a 5xx status code +func (o *GetAllocatorMetadataOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator metadata o k response a status code equal to that given +func (o *GetAllocatorMetadataOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get allocator metadata o k response +func (o *GetAllocatorMetadataOK) Code() int { + return 200 +} + func (o *GetAllocatorMetadataOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/metadata][%d] getAllocatorMetadataOK %+v", 200, o.Payload) } + +func (o *GetAllocatorMetadataOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/metadata][%d] getAllocatorMetadataOK %+v", 200, o.Payload) +} + func (o *GetAllocatorMetadataOK) GetPayload() []*models.MetadataItem { return o.Payload } @@ -126,7 +162,8 @@ func NewGetAllocatorMetadataNotFound() *GetAllocatorMetadataNotFound { return &GetAllocatorMetadataNotFound{} } -/* GetAllocatorMetadataNotFound describes a response with status code 404, with default header values. +/* +GetAllocatorMetadataNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -139,9 +176,44 @@ type GetAllocatorMetadataNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get allocator metadata not found response has a 2xx status code +func (o *GetAllocatorMetadataNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get allocator metadata not found response has a 3xx status code +func (o *GetAllocatorMetadataNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator metadata not found response has a 4xx status code +func (o *GetAllocatorMetadataNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get allocator metadata not found response has a 5xx status code +func (o *GetAllocatorMetadataNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator metadata not found response a status code equal to that given +func (o *GetAllocatorMetadataNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get allocator metadata not found response +func (o *GetAllocatorMetadataNotFound) Code() int { + return 404 +} + func (o *GetAllocatorMetadataNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/metadata][%d] getAllocatorMetadataNotFound %+v", 404, o.Payload) } + +func (o *GetAllocatorMetadataNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/metadata][%d] getAllocatorMetadataNotFound %+v", 404, o.Payload) +} + func (o *GetAllocatorMetadataNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_allocator_parameters.go b/pkg/client/platform_infrastructure/get_allocator_parameters.go index bbf1f97b..da87151f 100644 --- a/pkg/client/platform_infrastructure/get_allocator_parameters.go +++ b/pkg/client/platform_infrastructure/get_allocator_parameters.go @@ -69,10 +69,12 @@ func NewGetAllocatorParamsWithHTTPClient(client *http.Client) *GetAllocatorParam } } -/* GetAllocatorParams contains all the parameters to send to the API endpoint - for the get allocator operation. +/* +GetAllocatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get allocator operation. + + Typically these are written to a http.Request. */ type GetAllocatorParams struct { diff --git a/pkg/client/platform_infrastructure/get_allocator_responses.go b/pkg/client/platform_infrastructure/get_allocator_responses.go index 95fc068a..11d69db6 100644 --- a/pkg/client/platform_infrastructure/get_allocator_responses.go +++ b/pkg/client/platform_infrastructure/get_allocator_responses.go @@ -62,7 +62,8 @@ func NewGetAllocatorOK() *GetAllocatorOK { return &GetAllocatorOK{} } -/* GetAllocatorOK describes a response with status code 200, with default header values. +/* +GetAllocatorOK describes a response with status code 200, with default header values. The information for the allocator specified by {allocator_id} */ @@ -70,9 +71,44 @@ type GetAllocatorOK struct { Payload *models.AllocatorInfo } +// IsSuccess returns true when this get allocator o k response has a 2xx status code +func (o *GetAllocatorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get allocator o k response has a 3xx status code +func (o *GetAllocatorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator o k response has a 4xx status code +func (o *GetAllocatorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get allocator o k response has a 5xx status code +func (o *GetAllocatorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator o k response a status code equal to that given +func (o *GetAllocatorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get allocator o k response +func (o *GetAllocatorOK) Code() int { + return 200 +} + func (o *GetAllocatorOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}][%d] getAllocatorOK %+v", 200, o.Payload) } + +func (o *GetAllocatorOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}][%d] getAllocatorOK %+v", 200, o.Payload) +} + func (o *GetAllocatorOK) GetPayload() *models.AllocatorInfo { return o.Payload } @@ -94,7 +130,8 @@ func NewGetAllocatorNotFound() *GetAllocatorNotFound { return &GetAllocatorNotFound{} } -/* GetAllocatorNotFound describes a response with status code 404, with default header values. +/* +GetAllocatorNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -107,9 +144,44 @@ type GetAllocatorNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get allocator not found response has a 2xx status code +func (o *GetAllocatorNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get allocator not found response has a 3xx status code +func (o *GetAllocatorNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator not found response has a 4xx status code +func (o *GetAllocatorNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get allocator not found response has a 5xx status code +func (o *GetAllocatorNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator not found response a status code equal to that given +func (o *GetAllocatorNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get allocator not found response +func (o *GetAllocatorNotFound) Code() int { + return 404 +} + func (o *GetAllocatorNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}][%d] getAllocatorNotFound %+v", 404, o.Payload) } + +func (o *GetAllocatorNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}][%d] getAllocatorNotFound %+v", 404, o.Payload) +} + func (o *GetAllocatorNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_allocator_settings_parameters.go b/pkg/client/platform_infrastructure/get_allocator_settings_parameters.go index c1cbebc3..432dd7f1 100644 --- a/pkg/client/platform_infrastructure/get_allocator_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_allocator_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetAllocatorSettingsParamsWithHTTPClient(client *http.Client) *GetAlloca } } -/* GetAllocatorSettingsParams contains all the parameters to send to the API endpoint - for the get allocator settings operation. +/* +GetAllocatorSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get allocator settings operation. + + Typically these are written to a http.Request. */ type GetAllocatorSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/get_allocator_settings_responses.go b/pkg/client/platform_infrastructure/get_allocator_settings_responses.go index be53709d..728abf6f 100644 --- a/pkg/client/platform_infrastructure/get_allocator_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_allocator_settings_responses.go @@ -62,7 +62,8 @@ func NewGetAllocatorSettingsOK() *GetAllocatorSettingsOK { return &GetAllocatorSettingsOK{} } -/* GetAllocatorSettingsOK describes a response with status code 200, with default header values. +/* +GetAllocatorSettingsOK describes a response with status code 200, with default header values. Returns the settings for the specified Allocator */ @@ -83,9 +84,44 @@ type GetAllocatorSettingsOK struct { Payload *models.AllocatorSettings } +// IsSuccess returns true when this get allocator settings o k response has a 2xx status code +func (o *GetAllocatorSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get allocator settings o k response has a 3xx status code +func (o *GetAllocatorSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator settings o k response has a 4xx status code +func (o *GetAllocatorSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get allocator settings o k response has a 5xx status code +func (o *GetAllocatorSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator settings o k response a status code equal to that given +func (o *GetAllocatorSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get allocator settings o k response +func (o *GetAllocatorSettingsOK) Code() int { + return 200 +} + func (o *GetAllocatorSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/settings][%d] getAllocatorSettingsOK %+v", 200, o.Payload) } + +func (o *GetAllocatorSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/settings][%d] getAllocatorSettingsOK %+v", 200, o.Payload) +} + func (o *GetAllocatorSettingsOK) GetPayload() *models.AllocatorSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetAllocatorSettingsNotFound() *GetAllocatorSettingsNotFound { return &GetAllocatorSettingsNotFound{} } -/* GetAllocatorSettingsNotFound describes a response with status code 404, with default header values. +/* +GetAllocatorSettingsNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -141,9 +178,44 @@ type GetAllocatorSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get allocator settings not found response has a 2xx status code +func (o *GetAllocatorSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get allocator settings not found response has a 3xx status code +func (o *GetAllocatorSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocator settings not found response has a 4xx status code +func (o *GetAllocatorSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get allocator settings not found response has a 5xx status code +func (o *GetAllocatorSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocator settings not found response a status code equal to that given +func (o *GetAllocatorSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get allocator settings not found response +func (o *GetAllocatorSettingsNotFound) Code() int { + return 404 +} + func (o *GetAllocatorSettingsNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/settings][%d] getAllocatorSettingsNotFound %+v", 404, o.Payload) } + +func (o *GetAllocatorSettingsNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators/{allocator_id}/settings][%d] getAllocatorSettingsNotFound %+v", 404, o.Payload) +} + func (o *GetAllocatorSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_allocators_parameters.go b/pkg/client/platform_infrastructure/get_allocators_parameters.go index 04799a36..57e33683 100644 --- a/pkg/client/platform_infrastructure/get_allocators_parameters.go +++ b/pkg/client/platform_infrastructure/get_allocators_parameters.go @@ -70,10 +70,12 @@ func NewGetAllocatorsParamsWithHTTPClient(client *http.Client) *GetAllocatorsPar } } -/* GetAllocatorsParams contains all the parameters to send to the API endpoint - for the get allocators operation. +/* +GetAllocatorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get allocators operation. + + Typically these are written to a http.Request. */ type GetAllocatorsParams struct { diff --git a/pkg/client/platform_infrastructure/get_allocators_responses.go b/pkg/client/platform_infrastructure/get_allocators_responses.go index ac5b2dc1..1bbc0fc5 100644 --- a/pkg/client/platform_infrastructure/get_allocators_responses.go +++ b/pkg/client/platform_infrastructure/get_allocators_responses.go @@ -56,7 +56,8 @@ func NewGetAllocatorsOK() *GetAllocatorsOK { return &GetAllocatorsOK{} } -/* GetAllocatorsOK describes a response with status code 200, with default header values. +/* +GetAllocatorsOK describes a response with status code 200, with default header values. An overview of all allocators */ @@ -64,9 +65,44 @@ type GetAllocatorsOK struct { Payload *models.AllocatorOverview } +// IsSuccess returns true when this get allocators o k response has a 2xx status code +func (o *GetAllocatorsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get allocators o k response has a 3xx status code +func (o *GetAllocatorsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get allocators o k response has a 4xx status code +func (o *GetAllocatorsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get allocators o k response has a 5xx status code +func (o *GetAllocatorsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get allocators o k response a status code equal to that given +func (o *GetAllocatorsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get allocators o k response +func (o *GetAllocatorsOK) Code() int { + return 200 +} + func (o *GetAllocatorsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/allocators][%d] getAllocatorsOK %+v", 200, o.Payload) } + +func (o *GetAllocatorsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/allocators][%d] getAllocatorsOK %+v", 200, o.Payload) +} + func (o *GetAllocatorsOK) GetPayload() *models.AllocatorOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_api_base_url_parameters.go b/pkg/client/platform_infrastructure/get_api_base_url_parameters.go index f2ba754f..c4628c2d 100644 --- a/pkg/client/platform_infrastructure/get_api_base_url_parameters.go +++ b/pkg/client/platform_infrastructure/get_api_base_url_parameters.go @@ -69,10 +69,12 @@ func NewGetAPIBaseURLParamsWithHTTPClient(client *http.Client) *GetAPIBaseURLPar } } -/* GetAPIBaseURLParams contains all the parameters to send to the API endpoint - for the get api base url operation. +/* +GetAPIBaseURLParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get api base url operation. + + Typically these are written to a http.Request. */ type GetAPIBaseURLParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_api_base_url_responses.go b/pkg/client/platform_infrastructure/get_api_base_url_responses.go index 378b7f72..080d3253 100644 --- a/pkg/client/platform_infrastructure/get_api_base_url_responses.go +++ b/pkg/client/platform_infrastructure/get_api_base_url_responses.go @@ -68,7 +68,8 @@ func NewGetAPIBaseURLOK() *GetAPIBaseURLOK { return &GetAPIBaseURLOK{} } -/* GetAPIBaseURLOK describes a response with status code 200, with default header values. +/* +GetAPIBaseURLOK describes a response with status code 200, with default header values. The API base Url was successfully retrieved */ @@ -89,9 +90,44 @@ type GetAPIBaseURLOK struct { Payload *models.APIBaseURLData } +// IsSuccess returns true when this get Api base Url o k response has a 2xx status code +func (o *GetAPIBaseURLOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get Api base Url o k response has a 3xx status code +func (o *GetAPIBaseURLOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api base Url o k response has a 4xx status code +func (o *GetAPIBaseURLOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get Api base Url o k response has a 5xx status code +func (o *GetAPIBaseURLOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get Api base Url o k response a status code equal to that given +func (o *GetAPIBaseURLOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get Api base Url o k response +func (o *GetAPIBaseURLOK) Code() int { + return 200 +} + func (o *GetAPIBaseURLOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlOK %+v", 200, o.Payload) } + +func (o *GetAPIBaseURLOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlOK %+v", 200, o.Payload) +} + func (o *GetAPIBaseURLOK) GetPayload() *models.APIBaseURLData { return o.Payload } @@ -134,7 +170,8 @@ func NewGetAPIBaseURLNotFound() *GetAPIBaseURLNotFound { return &GetAPIBaseURLNotFound{} } -/* GetAPIBaseURLNotFound describes a response with status code 404, with default header values. +/* +GetAPIBaseURLNotFound describes a response with status code 404, with default header values. There is no configured API base value but optimistic locking was sent. (code: `adminconsole.base_url.not_found`) */ @@ -147,9 +184,44 @@ type GetAPIBaseURLNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get Api base Url not found response has a 2xx status code +func (o *GetAPIBaseURLNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get Api base Url not found response has a 3xx status code +func (o *GetAPIBaseURLNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api base Url not found response has a 4xx status code +func (o *GetAPIBaseURLNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get Api base Url not found response has a 5xx status code +func (o *GetAPIBaseURLNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get Api base Url not found response a status code equal to that given +func (o *GetAPIBaseURLNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get Api base Url not found response +func (o *GetAPIBaseURLNotFound) Code() int { + return 404 +} + func (o *GetAPIBaseURLNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlNotFound %+v", 404, o.Payload) } + +func (o *GetAPIBaseURLNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlNotFound %+v", 404, o.Payload) +} + func (o *GetAPIBaseURLNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewGetAPIBaseURLInternalServerError() *GetAPIBaseURLInternalServerError { return &GetAPIBaseURLInternalServerError{} } -/* GetAPIBaseURLInternalServerError describes a response with status code 500, with default header values. +/* +GetAPIBaseURLInternalServerError describes a response with status code 500, with default header values. The persisted Url is malformed. (code: `adminconsole.base_url.invalid_persisted_data`) */ @@ -191,9 +264,44 @@ type GetAPIBaseURLInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get Api base Url internal server error response has a 2xx status code +func (o *GetAPIBaseURLInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get Api base Url internal server error response has a 3xx status code +func (o *GetAPIBaseURLInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get Api base Url internal server error response has a 4xx status code +func (o *GetAPIBaseURLInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get Api base Url internal server error response has a 5xx status code +func (o *GetAPIBaseURLInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get Api base Url internal server error response a status code equal to that given +func (o *GetAPIBaseURLInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get Api base Url internal server error response +func (o *GetAPIBaseURLInternalServerError) Code() int { + return 500 +} + func (o *GetAPIBaseURLInternalServerError) Error() string { return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlInternalServerError %+v", 500, o.Payload) } + +func (o *GetAPIBaseURLInternalServerError) String() string { + return fmt.Sprintf("[GET /platform/configuration/api_base_url][%d] getApiBaseUrlInternalServerError %+v", 500, o.Payload) +} + func (o *GetAPIBaseURLInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_blueprinter_role_parameters.go b/pkg/client/platform_infrastructure/get_blueprinter_role_parameters.go index 5ffde45e..a7e3c20f 100644 --- a/pkg/client/platform_infrastructure/get_blueprinter_role_parameters.go +++ b/pkg/client/platform_infrastructure/get_blueprinter_role_parameters.go @@ -69,10 +69,12 @@ func NewGetBlueprinterRoleParamsWithHTTPClient(client *http.Client) *GetBlueprin } } -/* GetBlueprinterRoleParams contains all the parameters to send to the API endpoint - for the get blueprinter role operation. +/* +GetBlueprinterRoleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get blueprinter role operation. + + Typically these are written to a http.Request. */ type GetBlueprinterRoleParams struct { diff --git a/pkg/client/platform_infrastructure/get_blueprinter_role_responses.go b/pkg/client/platform_infrastructure/get_blueprinter_role_responses.go index 525e13cf..7a5f645f 100644 --- a/pkg/client/platform_infrastructure/get_blueprinter_role_responses.go +++ b/pkg/client/platform_infrastructure/get_blueprinter_role_responses.go @@ -62,7 +62,8 @@ func NewGetBlueprinterRoleOK() *GetBlueprinterRoleOK { return &GetBlueprinterRoleOK{} } -/* GetBlueprinterRoleOK describes a response with status code 200, with default header values. +/* +GetBlueprinterRoleOK describes a response with status code 200, with default header values. The role aggregate definition. */ @@ -70,9 +71,44 @@ type GetBlueprinterRoleOK struct { Payload *models.RoleAggregate } +// IsSuccess returns true when this get blueprinter role o k response has a 2xx status code +func (o *GetBlueprinterRoleOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get blueprinter role o k response has a 3xx status code +func (o *GetBlueprinterRoleOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get blueprinter role o k response has a 4xx status code +func (o *GetBlueprinterRoleOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get blueprinter role o k response has a 5xx status code +func (o *GetBlueprinterRoleOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get blueprinter role o k response a status code equal to that given +func (o *GetBlueprinterRoleOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get blueprinter role o k response +func (o *GetBlueprinterRoleOK) Code() int { + return 200 +} + func (o *GetBlueprinterRoleOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] getBlueprinterRoleOK %+v", 200, o.Payload) } + +func (o *GetBlueprinterRoleOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] getBlueprinterRoleOK %+v", 200, o.Payload) +} + func (o *GetBlueprinterRoleOK) GetPayload() *models.RoleAggregate { return o.Payload } @@ -94,7 +130,8 @@ func NewGetBlueprinterRoleNotFound() *GetBlueprinterRoleNotFound { return &GetBlueprinterRoleNotFound{} } -/* GetBlueprinterRoleNotFound describes a response with status code 404, with default header values. +/* +GetBlueprinterRoleNotFound describes a response with status code 404, with default header values. The role can't be found. (code: `roles.not_found`) */ @@ -107,9 +144,44 @@ type GetBlueprinterRoleNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get blueprinter role not found response has a 2xx status code +func (o *GetBlueprinterRoleNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get blueprinter role not found response has a 3xx status code +func (o *GetBlueprinterRoleNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get blueprinter role not found response has a 4xx status code +func (o *GetBlueprinterRoleNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get blueprinter role not found response has a 5xx status code +func (o *GetBlueprinterRoleNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get blueprinter role not found response a status code equal to that given +func (o *GetBlueprinterRoleNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get blueprinter role not found response +func (o *GetBlueprinterRoleNotFound) Code() int { + return 404 +} + func (o *GetBlueprinterRoleNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] getBlueprinterRoleNotFound %+v", 404, o.Payload) } + +func (o *GetBlueprinterRoleNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] getBlueprinterRoleNotFound %+v", 404, o.Payload) +} + func (o *GetBlueprinterRoleNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_config_store_option_parameters.go b/pkg/client/platform_infrastructure/get_config_store_option_parameters.go index e505b7fb..91a4b7d5 100644 --- a/pkg/client/platform_infrastructure/get_config_store_option_parameters.go +++ b/pkg/client/platform_infrastructure/get_config_store_option_parameters.go @@ -69,10 +69,12 @@ func NewGetConfigStoreOptionParamsWithHTTPClient(client *http.Client) *GetConfig } } -/* GetConfigStoreOptionParams contains all the parameters to send to the API endpoint - for the get config store option operation. +/* +GetConfigStoreOptionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get config store option operation. + + Typically these are written to a http.Request. */ type GetConfigStoreOptionParams struct { diff --git a/pkg/client/platform_infrastructure/get_config_store_option_responses.go b/pkg/client/platform_infrastructure/get_config_store_option_responses.go index 5a490aa3..9131026c 100644 --- a/pkg/client/platform_infrastructure/get_config_store_option_responses.go +++ b/pkg/client/platform_infrastructure/get_config_store_option_responses.go @@ -62,7 +62,8 @@ func NewGetConfigStoreOptionOK() *GetConfigStoreOptionOK { return &GetConfigStoreOptionOK{} } -/* GetConfigStoreOptionOK describes a response with status code 200, with default header values. +/* +GetConfigStoreOptionOK describes a response with status code 200, with default header values. Config Store Option retrieved successfully */ @@ -83,9 +84,44 @@ type GetConfigStoreOptionOK struct { Payload *models.ConfigStoreOption } +// IsSuccess returns true when this get config store option o k response has a 2xx status code +func (o *GetConfigStoreOptionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get config store option o k response has a 3xx status code +func (o *GetConfigStoreOptionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get config store option o k response has a 4xx status code +func (o *GetConfigStoreOptionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get config store option o k response has a 5xx status code +func (o *GetConfigStoreOptionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get config store option o k response a status code equal to that given +func (o *GetConfigStoreOptionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get config store option o k response +func (o *GetConfigStoreOptionOK) Code() int { + return 200 +} + func (o *GetConfigStoreOptionOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/store/{config_option_id}][%d] getConfigStoreOptionOK %+v", 200, o.Payload) } + +func (o *GetConfigStoreOptionOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/store/{config_option_id}][%d] getConfigStoreOptionOK %+v", 200, o.Payload) +} + func (o *GetConfigStoreOptionOK) GetPayload() *models.ConfigStoreOption { return o.Payload } @@ -128,7 +164,8 @@ func NewGetConfigStoreOptionNotFound() *GetConfigStoreOptionNotFound { return &GetConfigStoreOptionNotFound{} } -/* GetConfigStoreOptionNotFound describes a response with status code 404, with default header values. +/* +GetConfigStoreOptionNotFound describes a response with status code 404, with default header values. Config Store Option do not exist by that name. (code: `platform.config.store.not_found`) */ @@ -141,9 +178,44 @@ type GetConfigStoreOptionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get config store option not found response has a 2xx status code +func (o *GetConfigStoreOptionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get config store option not found response has a 3xx status code +func (o *GetConfigStoreOptionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get config store option not found response has a 4xx status code +func (o *GetConfigStoreOptionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get config store option not found response has a 5xx status code +func (o *GetConfigStoreOptionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get config store option not found response a status code equal to that given +func (o *GetConfigStoreOptionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get config store option not found response +func (o *GetConfigStoreOptionNotFound) Code() int { + return 404 +} + func (o *GetConfigStoreOptionNotFound) Error() string { return fmt.Sprintf("[GET /platform/configuration/store/{config_option_id}][%d] getConfigStoreOptionNotFound %+v", 404, o.Payload) } + +func (o *GetConfigStoreOptionNotFound) String() string { + return fmt.Sprintf("[GET /platform/configuration/store/{config_option_id}][%d] getConfigStoreOptionNotFound %+v", 404, o.Payload) +} + func (o *GetConfigStoreOptionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_constructor_logging_settings_parameters.go b/pkg/client/platform_infrastructure/get_constructor_logging_settings_parameters.go index ca7d6a9e..02186922 100644 --- a/pkg/client/platform_infrastructure/get_constructor_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_constructor_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetConstructorLoggingSettingsParamsWithHTTPClient(client *http.Client) * } } -/* GetConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the get constructor logging settings operation. +/* +GetConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get constructor logging settings operation. + + Typically these are written to a http.Request. */ type GetConstructorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/get_constructor_logging_settings_responses.go b/pkg/client/platform_infrastructure/get_constructor_logging_settings_responses.go index 7bf29d72..1901af7f 100644 --- a/pkg/client/platform_infrastructure/get_constructor_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_constructor_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewGetConstructorLoggingSettingsOK() *GetConstructorLoggingSettingsOK { return &GetConstructorLoggingSettingsOK{} } -/* GetConstructorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +GetConstructorLoggingSettingsOK describes a response with status code 200, with default header values. The logging settings for the constructor instance */ @@ -83,9 +84,44 @@ type GetConstructorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this get constructor logging settings o k response has a 2xx status code +func (o *GetConstructorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get constructor logging settings o k response has a 3xx status code +func (o *GetConstructorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get constructor logging settings o k response has a 4xx status code +func (o *GetConstructorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get constructor logging settings o k response has a 5xx status code +func (o *GetConstructorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get constructor logging settings o k response a status code equal to that given +func (o *GetConstructorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get constructor logging settings o k response +func (o *GetConstructorLoggingSettingsOK) Code() int { + return 200 +} + func (o *GetConstructorLoggingSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] getConstructorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *GetConstructorLoggingSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] getConstructorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *GetConstructorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetConstructorLoggingSettingsNotFound() *GetConstructorLoggingSettingsNo return &GetConstructorLoggingSettingsNotFound{} } -/* GetConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +GetConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type GetConstructorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get constructor logging settings not found response has a 2xx status code +func (o *GetConstructorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get constructor logging settings not found response has a 3xx status code +func (o *GetConstructorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get constructor logging settings not found response has a 4xx status code +func (o *GetConstructorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get constructor logging settings not found response has a 5xx status code +func (o *GetConstructorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get constructor logging settings not found response a status code equal to that given +func (o *GetConstructorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get constructor logging settings not found response +func (o *GetConstructorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *GetConstructorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] getConstructorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *GetConstructorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] getConstructorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *GetConstructorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_constructor_parameters.go b/pkg/client/platform_infrastructure/get_constructor_parameters.go index 0659e6f3..d299daa5 100644 --- a/pkg/client/platform_infrastructure/get_constructor_parameters.go +++ b/pkg/client/platform_infrastructure/get_constructor_parameters.go @@ -69,10 +69,12 @@ func NewGetConstructorParamsWithHTTPClient(client *http.Client) *GetConstructorP } } -/* GetConstructorParams contains all the parameters to send to the API endpoint - for the get constructor operation. +/* +GetConstructorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get constructor operation. + + Typically these are written to a http.Request. */ type GetConstructorParams struct { diff --git a/pkg/client/platform_infrastructure/get_constructor_responses.go b/pkg/client/platform_infrastructure/get_constructor_responses.go index bac5abb7..dd4d8496 100644 --- a/pkg/client/platform_infrastructure/get_constructor_responses.go +++ b/pkg/client/platform_infrastructure/get_constructor_responses.go @@ -62,7 +62,8 @@ func NewGetConstructorOK() *GetConstructorOK { return &GetConstructorOK{} } -/* GetConstructorOK describes a response with status code 200, with default header values. +/* +GetConstructorOK describes a response with status code 200, with default header values. The information for the constructor specified by {constructor_id}. */ @@ -70,9 +71,44 @@ type GetConstructorOK struct { Payload *models.ConstructorInfo } +// IsSuccess returns true when this get constructor o k response has a 2xx status code +func (o *GetConstructorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get constructor o k response has a 3xx status code +func (o *GetConstructorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get constructor o k response has a 4xx status code +func (o *GetConstructorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get constructor o k response has a 5xx status code +func (o *GetConstructorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get constructor o k response a status code equal to that given +func (o *GetConstructorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get constructor o k response +func (o *GetConstructorOK) Code() int { + return 200 +} + func (o *GetConstructorOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}][%d] getConstructorOK %+v", 200, o.Payload) } + +func (o *GetConstructorOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}][%d] getConstructorOK %+v", 200, o.Payload) +} + func (o *GetConstructorOK) GetPayload() *models.ConstructorInfo { return o.Payload } @@ -94,7 +130,8 @@ func NewGetConstructorNotFound() *GetConstructorNotFound { return &GetConstructorNotFound{} } -/* GetConstructorNotFound describes a response with status code 404, with default header values. +/* +GetConstructorNotFound describes a response with status code 404, with default header values. The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`) */ @@ -107,9 +144,44 @@ type GetConstructorNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get constructor not found response has a 2xx status code +func (o *GetConstructorNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get constructor not found response has a 3xx status code +func (o *GetConstructorNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get constructor not found response has a 4xx status code +func (o *GetConstructorNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get constructor not found response has a 5xx status code +func (o *GetConstructorNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get constructor not found response a status code equal to that given +func (o *GetConstructorNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get constructor not found response +func (o *GetConstructorNotFound) Code() int { + return 404 +} + func (o *GetConstructorNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}][%d] getConstructorNotFound %+v", 404, o.Payload) } + +func (o *GetConstructorNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/constructors/{constructor_id}][%d] getConstructorNotFound %+v", 404, o.Payload) +} + func (o *GetConstructorNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_constructors_parameters.go b/pkg/client/platform_infrastructure/get_constructors_parameters.go index 87390265..d11c06b0 100644 --- a/pkg/client/platform_infrastructure/get_constructors_parameters.go +++ b/pkg/client/platform_infrastructure/get_constructors_parameters.go @@ -69,10 +69,12 @@ func NewGetConstructorsParamsWithHTTPClient(client *http.Client) *GetConstructor } } -/* GetConstructorsParams contains all the parameters to send to the API endpoint - for the get constructors operation. +/* +GetConstructorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get constructors operation. + + Typically these are written to a http.Request. */ type GetConstructorsParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_constructors_responses.go b/pkg/client/platform_infrastructure/get_constructors_responses.go index 4d40ed10..5beb5b87 100644 --- a/pkg/client/platform_infrastructure/get_constructors_responses.go +++ b/pkg/client/platform_infrastructure/get_constructors_responses.go @@ -56,7 +56,8 @@ func NewGetConstructorsOK() *GetConstructorsOK { return &GetConstructorsOK{} } -/* GetConstructorsOK describes a response with status code 200, with default header values. +/* +GetConstructorsOK describes a response with status code 200, with default header values. An overview of all constructors. */ @@ -64,9 +65,44 @@ type GetConstructorsOK struct { Payload *models.ConstructorOverview } +// IsSuccess returns true when this get constructors o k response has a 2xx status code +func (o *GetConstructorsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get constructors o k response has a 3xx status code +func (o *GetConstructorsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get constructors o k response has a 4xx status code +func (o *GetConstructorsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get constructors o k response has a 5xx status code +func (o *GetConstructorsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get constructors o k response a status code equal to that given +func (o *GetConstructorsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get constructors o k response +func (o *GetConstructorsOK) Code() int { + return 200 +} + func (o *GetConstructorsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/constructors][%d] getConstructorsOK %+v", 200, o.Payload) } + +func (o *GetConstructorsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/constructors][%d] getConstructorsOK %+v", 200, o.Payload) +} + func (o *GetConstructorsOK) GetPayload() *models.ConstructorOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_coordinator_candidate_parameters.go b/pkg/client/platform_infrastructure/get_coordinator_candidate_parameters.go index 859ae409..47d8f8da 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_candidate_parameters.go +++ b/pkg/client/platform_infrastructure/get_coordinator_candidate_parameters.go @@ -69,10 +69,12 @@ func NewGetCoordinatorCandidateParamsWithHTTPClient(client *http.Client) *GetCoo } } -/* GetCoordinatorCandidateParams contains all the parameters to send to the API endpoint - for the get coordinator candidate operation. +/* +GetCoordinatorCandidateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get coordinator candidate operation. + + Typically these are written to a http.Request. */ type GetCoordinatorCandidateParams struct { diff --git a/pkg/client/platform_infrastructure/get_coordinator_candidate_responses.go b/pkg/client/platform_infrastructure/get_coordinator_candidate_responses.go index 0b547916..8e5c86d9 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_candidate_responses.go +++ b/pkg/client/platform_infrastructure/get_coordinator_candidate_responses.go @@ -62,7 +62,8 @@ func NewGetCoordinatorCandidateOK() *GetCoordinatorCandidateOK { return &GetCoordinatorCandidateOK{} } -/* GetCoordinatorCandidateOK describes a response with status code 200, with default header values. +/* +GetCoordinatorCandidateOK describes a response with status code 200, with default header values. Info about a coordinator candidate. */ @@ -70,9 +71,44 @@ type GetCoordinatorCandidateOK struct { Payload *models.CoordinatorCandidateInfo } +// IsSuccess returns true when this get coordinator candidate o k response has a 2xx status code +func (o *GetCoordinatorCandidateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get coordinator candidate o k response has a 3xx status code +func (o *GetCoordinatorCandidateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinator candidate o k response has a 4xx status code +func (o *GetCoordinatorCandidateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get coordinator candidate o k response has a 5xx status code +func (o *GetCoordinatorCandidateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinator candidate o k response a status code equal to that given +func (o *GetCoordinatorCandidateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get coordinator candidate o k response +func (o *GetCoordinatorCandidateOK) Code() int { + return 200 +} + func (o *GetCoordinatorCandidateOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] getCoordinatorCandidateOK %+v", 200, o.Payload) } + +func (o *GetCoordinatorCandidateOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] getCoordinatorCandidateOK %+v", 200, o.Payload) +} + func (o *GetCoordinatorCandidateOK) GetPayload() *models.CoordinatorCandidateInfo { return o.Payload } @@ -94,7 +130,8 @@ func NewGetCoordinatorCandidateNotFound() *GetCoordinatorCandidateNotFound { return &GetCoordinatorCandidateNotFound{} } -/* GetCoordinatorCandidateNotFound describes a response with status code 404, with default header values. +/* +GetCoordinatorCandidateNotFound describes a response with status code 404, with default header values. Unable to find coordinator candidate {coordinator_candidate_id}. Edit your request, then try again. (code: `coordinators.candidate_not_found`) */ @@ -107,9 +144,44 @@ type GetCoordinatorCandidateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get coordinator candidate not found response has a 2xx status code +func (o *GetCoordinatorCandidateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get coordinator candidate not found response has a 3xx status code +func (o *GetCoordinatorCandidateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinator candidate not found response has a 4xx status code +func (o *GetCoordinatorCandidateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get coordinator candidate not found response has a 5xx status code +func (o *GetCoordinatorCandidateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinator candidate not found response a status code equal to that given +func (o *GetCoordinatorCandidateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get coordinator candidate not found response +func (o *GetCoordinatorCandidateNotFound) Code() int { + return 404 +} + func (o *GetCoordinatorCandidateNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] getCoordinatorCandidateNotFound %+v", 404, o.Payload) } + +func (o *GetCoordinatorCandidateNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}][%d] getCoordinatorCandidateNotFound %+v", 404, o.Payload) +} + func (o *GetCoordinatorCandidateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_coordinator_candidates_parameters.go b/pkg/client/platform_infrastructure/get_coordinator_candidates_parameters.go index a40810b9..a33e9117 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_candidates_parameters.go +++ b/pkg/client/platform_infrastructure/get_coordinator_candidates_parameters.go @@ -69,10 +69,12 @@ func NewGetCoordinatorCandidatesParamsWithHTTPClient(client *http.Client) *GetCo } } -/* GetCoordinatorCandidatesParams contains all the parameters to send to the API endpoint - for the get coordinator candidates operation. +/* +GetCoordinatorCandidatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get coordinator candidates operation. + + Typically these are written to a http.Request. */ type GetCoordinatorCandidatesParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_coordinator_candidates_responses.go b/pkg/client/platform_infrastructure/get_coordinator_candidates_responses.go index d77e12aa..b7f05618 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_candidates_responses.go +++ b/pkg/client/platform_infrastructure/get_coordinator_candidates_responses.go @@ -56,7 +56,8 @@ func NewGetCoordinatorCandidatesOK() *GetCoordinatorCandidatesOK { return &GetCoordinatorCandidatesOK{} } -/* GetCoordinatorCandidatesOK describes a response with status code 200, with default header values. +/* +GetCoordinatorCandidatesOK describes a response with status code 200, with default header values. A list of all coordinator candidates. */ @@ -64,9 +65,44 @@ type GetCoordinatorCandidatesOK struct { Payload *models.CoordinatorCandidatesSummary } +// IsSuccess returns true when this get coordinator candidates o k response has a 2xx status code +func (o *GetCoordinatorCandidatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get coordinator candidates o k response has a 3xx status code +func (o *GetCoordinatorCandidatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinator candidates o k response has a 4xx status code +func (o *GetCoordinatorCandidatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get coordinator candidates o k response has a 5xx status code +func (o *GetCoordinatorCandidatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinator candidates o k response a status code equal to that given +func (o *GetCoordinatorCandidatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get coordinator candidates o k response +func (o *GetCoordinatorCandidatesOK) Code() int { + return 200 +} + func (o *GetCoordinatorCandidatesOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates][%d] getCoordinatorCandidatesOK %+v", 200, o.Payload) } + +func (o *GetCoordinatorCandidatesOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators/candidates][%d] getCoordinatorCandidatesOK %+v", 200, o.Payload) +} + func (o *GetCoordinatorCandidatesOK) GetPayload() *models.CoordinatorCandidatesSummary { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_coordinator_parameters.go b/pkg/client/platform_infrastructure/get_coordinator_parameters.go index e7c46f87..3cec54a3 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_parameters.go +++ b/pkg/client/platform_infrastructure/get_coordinator_parameters.go @@ -69,10 +69,12 @@ func NewGetCoordinatorParamsWithHTTPClient(client *http.Client) *GetCoordinatorP } } -/* GetCoordinatorParams contains all the parameters to send to the API endpoint - for the get coordinator operation. +/* +GetCoordinatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get coordinator operation. + + Typically these are written to a http.Request. */ type GetCoordinatorParams struct { diff --git a/pkg/client/platform_infrastructure/get_coordinator_responses.go b/pkg/client/platform_infrastructure/get_coordinator_responses.go index d1100e2b..07dc6723 100644 --- a/pkg/client/platform_infrastructure/get_coordinator_responses.go +++ b/pkg/client/platform_infrastructure/get_coordinator_responses.go @@ -62,7 +62,8 @@ func NewGetCoordinatorOK() *GetCoordinatorOK { return &GetCoordinatorOK{} } -/* GetCoordinatorOK describes a response with status code 200, with default header values. +/* +GetCoordinatorOK describes a response with status code 200, with default header values. An overview of a coordinator instance. */ @@ -70,9 +71,44 @@ type GetCoordinatorOK struct { Payload *models.CoordinatorSummary } +// IsSuccess returns true when this get coordinator o k response has a 2xx status code +func (o *GetCoordinatorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get coordinator o k response has a 3xx status code +func (o *GetCoordinatorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinator o k response has a 4xx status code +func (o *GetCoordinatorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get coordinator o k response has a 5xx status code +func (o *GetCoordinatorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinator o k response a status code equal to that given +func (o *GetCoordinatorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get coordinator o k response +func (o *GetCoordinatorOK) Code() int { + return 200 +} + func (o *GetCoordinatorOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators/{coordinator_id}][%d] getCoordinatorOK %+v", 200, o.Payload) } + +func (o *GetCoordinatorOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators/{coordinator_id}][%d] getCoordinatorOK %+v", 200, o.Payload) +} + func (o *GetCoordinatorOK) GetPayload() *models.CoordinatorSummary { return o.Payload } @@ -94,7 +130,8 @@ func NewGetCoordinatorNotFound() *GetCoordinatorNotFound { return &GetCoordinatorNotFound{} } -/* GetCoordinatorNotFound describes a response with status code 404, with default header values. +/* +GetCoordinatorNotFound describes a response with status code 404, with default header values. Unable to find coordinator {coordinator_id}. Edit your request, then try again. (code: `coordinators.coordinator_not_found`) */ @@ -107,9 +144,44 @@ type GetCoordinatorNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get coordinator not found response has a 2xx status code +func (o *GetCoordinatorNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get coordinator not found response has a 3xx status code +func (o *GetCoordinatorNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinator not found response has a 4xx status code +func (o *GetCoordinatorNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get coordinator not found response has a 5xx status code +func (o *GetCoordinatorNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinator not found response a status code equal to that given +func (o *GetCoordinatorNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get coordinator not found response +func (o *GetCoordinatorNotFound) Code() int { + return 404 +} + func (o *GetCoordinatorNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators/{coordinator_id}][%d] getCoordinatorNotFound %+v", 404, o.Payload) } + +func (o *GetCoordinatorNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators/{coordinator_id}][%d] getCoordinatorNotFound %+v", 404, o.Payload) +} + func (o *GetCoordinatorNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_coordinators_parameters.go b/pkg/client/platform_infrastructure/get_coordinators_parameters.go index 02ebde0e..2e77f6d7 100644 --- a/pkg/client/platform_infrastructure/get_coordinators_parameters.go +++ b/pkg/client/platform_infrastructure/get_coordinators_parameters.go @@ -69,10 +69,12 @@ func NewGetCoordinatorsParamsWithHTTPClient(client *http.Client) *GetCoordinator } } -/* GetCoordinatorsParams contains all the parameters to send to the API endpoint - for the get coordinators operation. +/* +GetCoordinatorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get coordinators operation. + + Typically these are written to a http.Request. */ type GetCoordinatorsParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_coordinators_responses.go b/pkg/client/platform_infrastructure/get_coordinators_responses.go index cea3204e..0ed57864 100644 --- a/pkg/client/platform_infrastructure/get_coordinators_responses.go +++ b/pkg/client/platform_infrastructure/get_coordinators_responses.go @@ -56,7 +56,8 @@ func NewGetCoordinatorsOK() *GetCoordinatorsOK { return &GetCoordinatorsOK{} } -/* GetCoordinatorsOK describes a response with status code 200, with default header values. +/* +GetCoordinatorsOK describes a response with status code 200, with default header values. An overview of all coordinators. */ @@ -64,9 +65,44 @@ type GetCoordinatorsOK struct { Payload *models.CoordinatorsSummary } +// IsSuccess returns true when this get coordinators o k response has a 2xx status code +func (o *GetCoordinatorsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get coordinators o k response has a 3xx status code +func (o *GetCoordinatorsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get coordinators o k response has a 4xx status code +func (o *GetCoordinatorsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get coordinators o k response has a 5xx status code +func (o *GetCoordinatorsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get coordinators o k response a status code equal to that given +func (o *GetCoordinatorsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get coordinators o k response +func (o *GetCoordinatorsOK) Code() int { + return 200 +} + func (o *GetCoordinatorsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/coordinators][%d] getCoordinatorsOK %+v", 200, o.Payload) } + +func (o *GetCoordinatorsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/coordinators][%d] getCoordinatorsOK %+v", 200, o.Payload) +} + func (o *GetCoordinatorsOK) GetPayload() *models.CoordinatorsSummary { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_license_parameters.go b/pkg/client/platform_infrastructure/get_license_parameters.go index 9bcf1d3b..c7b82207 100644 --- a/pkg/client/platform_infrastructure/get_license_parameters.go +++ b/pkg/client/platform_infrastructure/get_license_parameters.go @@ -69,10 +69,12 @@ func NewGetLicenseParamsWithHTTPClient(client *http.Client) *GetLicenseParams { } } -/* GetLicenseParams contains all the parameters to send to the API endpoint - for the get license operation. +/* +GetLicenseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get license operation. + + Typically these are written to a http.Request. */ type GetLicenseParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_license_responses.go b/pkg/client/platform_infrastructure/get_license_responses.go index b05bd795..3f97d08a 100644 --- a/pkg/client/platform_infrastructure/get_license_responses.go +++ b/pkg/client/platform_infrastructure/get_license_responses.go @@ -62,7 +62,8 @@ func NewGetLicenseOK() *GetLicenseOK { return &GetLicenseOK{} } -/* GetLicenseOK describes a response with status code 200, with default header values. +/* +GetLicenseOK describes a response with status code 200, with default header values. The information for the license. */ @@ -70,9 +71,44 @@ type GetLicenseOK struct { Payload *models.LicenseObject } +// IsSuccess returns true when this get license o k response has a 2xx status code +func (o *GetLicenseOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get license o k response has a 3xx status code +func (o *GetLicenseOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get license o k response has a 4xx status code +func (o *GetLicenseOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get license o k response has a 5xx status code +func (o *GetLicenseOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get license o k response a status code equal to that given +func (o *GetLicenseOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get license o k response +func (o *GetLicenseOK) Code() int { + return 200 +} + func (o *GetLicenseOK) Error() string { return fmt.Sprintf("[GET /platform/license][%d] getLicenseOK %+v", 200, o.Payload) } + +func (o *GetLicenseOK) String() string { + return fmt.Sprintf("[GET /platform/license][%d] getLicenseOK %+v", 200, o.Payload) +} + func (o *GetLicenseOK) GetPayload() *models.LicenseObject { return o.Payload } @@ -94,7 +130,8 @@ func NewGetLicenseNotFound() *GetLicenseNotFound { return &GetLicenseNotFound{} } -/* GetLicenseNotFound describes a response with status code 404, with default header values. +/* +GetLicenseNotFound describes a response with status code 404, with default header values. The license cannot be found. (code: `license.license_not_found`) */ @@ -107,9 +144,44 @@ type GetLicenseNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get license not found response has a 2xx status code +func (o *GetLicenseNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get license not found response has a 3xx status code +func (o *GetLicenseNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get license not found response has a 4xx status code +func (o *GetLicenseNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get license not found response has a 5xx status code +func (o *GetLicenseNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get license not found response a status code equal to that given +func (o *GetLicenseNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get license not found response +func (o *GetLicenseNotFound) Code() int { + return 404 +} + func (o *GetLicenseNotFound) Error() string { return fmt.Sprintf("[GET /platform/license][%d] getLicenseNotFound %+v", 404, o.Payload) } + +func (o *GetLicenseNotFound) String() string { + return fmt.Sprintf("[GET /platform/license][%d] getLicenseNotFound %+v", 404, o.Payload) +} + func (o *GetLicenseNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_parameters.go b/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_parameters.go index 28b51a1a..890a3108 100644 --- a/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_parameters.go @@ -69,10 +69,12 @@ func NewGetProxiesFilteredGroupHealthParamsWithHTTPClient(client *http.Client) * } } -/* GetProxiesFilteredGroupHealthParams contains all the parameters to send to the API endpoint - for the get proxies filtered group health operation. +/* +GetProxiesFilteredGroupHealthParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxies filtered group health operation. + + Typically these are written to a http.Request. */ type GetProxiesFilteredGroupHealthParams struct { diff --git a/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_responses.go b/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_responses.go index fb01ddb4..3ef3ba49 100644 --- a/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_responses.go +++ b/pkg/client/platform_infrastructure/get_proxies_filtered_group_health_responses.go @@ -68,7 +68,8 @@ func NewGetProxiesFilteredGroupHealthOK() *GetProxiesFilteredGroupHealthOK { return &GetProxiesFilteredGroupHealthOK{} } -/* GetProxiesFilteredGroupHealthOK describes a response with status code 200, with default header values. +/* +GetProxiesFilteredGroupHealthOK describes a response with status code 200, with default header values. Returns health information on a filtered group of proxies */ @@ -76,9 +77,44 @@ type GetProxiesFilteredGroupHealthOK struct { Payload *models.ProxiesFilteredGroupHealth } +// IsSuccess returns true when this get proxies filtered group health o k response has a 2xx status code +func (o *GetProxiesFilteredGroupHealthOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxies filtered group health o k response has a 3xx status code +func (o *GetProxiesFilteredGroupHealthOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies filtered group health o k response has a 4xx status code +func (o *GetProxiesFilteredGroupHealthOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxies filtered group health o k response has a 5xx status code +func (o *GetProxiesFilteredGroupHealthOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies filtered group health o k response a status code equal to that given +func (o *GetProxiesFilteredGroupHealthOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxies filtered group health o k response +func (o *GetProxiesFilteredGroupHealthOK) Code() int { + return 200 +} + func (o *GetProxiesFilteredGroupHealthOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthOK %+v", 200, o.Payload) } + +func (o *GetProxiesFilteredGroupHealthOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthOK %+v", 200, o.Payload) +} + func (o *GetProxiesFilteredGroupHealthOK) GetPayload() *models.ProxiesFilteredGroupHealth { return o.Payload } @@ -100,7 +136,8 @@ func NewGetProxiesFilteredGroupHealthExpectationFailed() *GetProxiesFilteredGrou return &GetProxiesFilteredGroupHealthExpectationFailed{} } -/* GetProxiesFilteredGroupHealthExpectationFailed describes a response with status code 417, with default header values. +/* +GetProxiesFilteredGroupHealthExpectationFailed describes a response with status code 417, with default header values. The health status is worse than the expected one. */ @@ -108,9 +145,44 @@ type GetProxiesFilteredGroupHealthExpectationFailed struct { Payload *models.ProxiesFilteredGroupHealth } +// IsSuccess returns true when this get proxies filtered group health expectation failed response has a 2xx status code +func (o *GetProxiesFilteredGroupHealthExpectationFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxies filtered group health expectation failed response has a 3xx status code +func (o *GetProxiesFilteredGroupHealthExpectationFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies filtered group health expectation failed response has a 4xx status code +func (o *GetProxiesFilteredGroupHealthExpectationFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxies filtered group health expectation failed response has a 5xx status code +func (o *GetProxiesFilteredGroupHealthExpectationFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies filtered group health expectation failed response a status code equal to that given +func (o *GetProxiesFilteredGroupHealthExpectationFailed) IsCode(code int) bool { + return code == 417 +} + +// Code gets the status code for the get proxies filtered group health expectation failed response +func (o *GetProxiesFilteredGroupHealthExpectationFailed) Code() int { + return 417 +} + func (o *GetProxiesFilteredGroupHealthExpectationFailed) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthExpectationFailed %+v", 417, o.Payload) } + +func (o *GetProxiesFilteredGroupHealthExpectationFailed) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthExpectationFailed %+v", 417, o.Payload) +} + func (o *GetProxiesFilteredGroupHealthExpectationFailed) GetPayload() *models.ProxiesFilteredGroupHealth { return o.Payload } @@ -132,7 +204,8 @@ func NewGetProxiesFilteredGroupHealthRetryWith() *GetProxiesFilteredGroupHealthR return &GetProxiesFilteredGroupHealthRetryWith{} } -/* GetProxiesFilteredGroupHealthRetryWith describes a response with status code 449, with default header values. +/* +GetProxiesFilteredGroupHealthRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -145,9 +218,44 @@ type GetProxiesFilteredGroupHealthRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get proxies filtered group health retry with response has a 2xx status code +func (o *GetProxiesFilteredGroupHealthRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxies filtered group health retry with response has a 3xx status code +func (o *GetProxiesFilteredGroupHealthRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies filtered group health retry with response has a 4xx status code +func (o *GetProxiesFilteredGroupHealthRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxies filtered group health retry with response has a 5xx status code +func (o *GetProxiesFilteredGroupHealthRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies filtered group health retry with response a status code equal to that given +func (o *GetProxiesFilteredGroupHealthRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the get proxies filtered group health retry with response +func (o *GetProxiesFilteredGroupHealthRetryWith) Code() int { + return 449 +} + func (o *GetProxiesFilteredGroupHealthRetryWith) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthRetryWith %+v", 449, o.Payload) } + +func (o *GetProxiesFilteredGroupHealthRetryWith) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health][%d] getProxiesFilteredGroupHealthRetryWith %+v", 449, o.Payload) +} + func (o *GetProxiesFilteredGroupHealthRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxies_filtered_group_parameters.go b/pkg/client/platform_infrastructure/get_proxies_filtered_group_parameters.go index e5f18ee0..c246bc38 100644 --- a/pkg/client/platform_infrastructure/get_proxies_filtered_group_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxies_filtered_group_parameters.go @@ -69,10 +69,12 @@ func NewGetProxiesFilteredGroupParamsWithHTTPClient(client *http.Client) *GetPro } } -/* GetProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - for the get proxies filtered group operation. +/* +GetProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxies filtered group operation. + + Typically these are written to a http.Request. */ type GetProxiesFilteredGroupParams struct { diff --git a/pkg/client/platform_infrastructure/get_proxies_filtered_group_responses.go b/pkg/client/platform_infrastructure/get_proxies_filtered_group_responses.go index d29c52b6..aeffab5c 100644 --- a/pkg/client/platform_infrastructure/get_proxies_filtered_group_responses.go +++ b/pkg/client/platform_infrastructure/get_proxies_filtered_group_responses.go @@ -62,7 +62,8 @@ func NewGetProxiesFilteredGroupOK() *GetProxiesFilteredGroupOK { return &GetProxiesFilteredGroupOK{} } -/* GetProxiesFilteredGroupOK describes a response with status code 200, with default header values. +/* +GetProxiesFilteredGroupOK describes a response with status code 200, with default header values. Data for the filtered group of proxies identified by {proxies_filtered_group_id} */ @@ -83,9 +84,44 @@ type GetProxiesFilteredGroupOK struct { Payload *models.ProxiesFilteredGroup } +// IsSuccess returns true when this get proxies filtered group o k response has a 2xx status code +func (o *GetProxiesFilteredGroupOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxies filtered group o k response has a 3xx status code +func (o *GetProxiesFilteredGroupOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies filtered group o k response has a 4xx status code +func (o *GetProxiesFilteredGroupOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxies filtered group o k response has a 5xx status code +func (o *GetProxiesFilteredGroupOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies filtered group o k response a status code equal to that given +func (o *GetProxiesFilteredGroupOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxies filtered group o k response +func (o *GetProxiesFilteredGroupOK) Code() int { + return 200 +} + func (o *GetProxiesFilteredGroupOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] getProxiesFilteredGroupOK %+v", 200, o.Payload) } + +func (o *GetProxiesFilteredGroupOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] getProxiesFilteredGroupOK %+v", 200, o.Payload) +} + func (o *GetProxiesFilteredGroupOK) GetPayload() *models.ProxiesFilteredGroup { return o.Payload } @@ -128,7 +164,8 @@ func NewGetProxiesFilteredGroupNotFound() *GetProxiesFilteredGroupNotFound { return &GetProxiesFilteredGroupNotFound{} } -/* GetProxiesFilteredGroupNotFound describes a response with status code 404, with default header values. +/* +GetProxiesFilteredGroupNotFound describes a response with status code 404, with default header values. Unable to find the {proxies_filtered_group_id} specified filtered group of proxies. Edit your request, then try again. (code: `proxies.proxies_filtered_group_not_found`) */ @@ -141,9 +178,44 @@ type GetProxiesFilteredGroupNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get proxies filtered group not found response has a 2xx status code +func (o *GetProxiesFilteredGroupNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxies filtered group not found response has a 3xx status code +func (o *GetProxiesFilteredGroupNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies filtered group not found response has a 4xx status code +func (o *GetProxiesFilteredGroupNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxies filtered group not found response has a 5xx status code +func (o *GetProxiesFilteredGroupNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies filtered group not found response a status code equal to that given +func (o *GetProxiesFilteredGroupNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get proxies filtered group not found response +func (o *GetProxiesFilteredGroupNotFound) Code() int { + return 404 +} + func (o *GetProxiesFilteredGroupNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] getProxiesFilteredGroupNotFound %+v", 404, o.Payload) } + +func (o *GetProxiesFilteredGroupNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] getProxiesFilteredGroupNotFound %+v", 404, o.Payload) +} + func (o *GetProxiesFilteredGroupNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxies_health_parameters.go b/pkg/client/platform_infrastructure/get_proxies_health_parameters.go index ea591c9d..3c312e0b 100644 --- a/pkg/client/platform_infrastructure/get_proxies_health_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxies_health_parameters.go @@ -69,10 +69,12 @@ func NewGetProxiesHealthParamsWithHTTPClient(client *http.Client) *GetProxiesHea } } -/* GetProxiesHealthParams contains all the parameters to send to the API endpoint - for the get proxies health operation. +/* +GetProxiesHealthParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxies health operation. + + Typically these are written to a http.Request. */ type GetProxiesHealthParams struct { diff --git a/pkg/client/platform_infrastructure/get_proxies_health_responses.go b/pkg/client/platform_infrastructure/get_proxies_health_responses.go index c66aed05..409b0be3 100644 --- a/pkg/client/platform_infrastructure/get_proxies_health_responses.go +++ b/pkg/client/platform_infrastructure/get_proxies_health_responses.go @@ -68,7 +68,8 @@ func NewGetProxiesHealthOK() *GetProxiesHealthOK { return &GetProxiesHealthOK{} } -/* GetProxiesHealthOK describes a response with status code 200, with default header values. +/* +GetProxiesHealthOK describes a response with status code 200, with default header values. Returns health information on all the proxies */ @@ -76,9 +77,44 @@ type GetProxiesHealthOK struct { Payload *models.ProxiesHealth } +// IsSuccess returns true when this get proxies health o k response has a 2xx status code +func (o *GetProxiesHealthOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxies health o k response has a 3xx status code +func (o *GetProxiesHealthOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies health o k response has a 4xx status code +func (o *GetProxiesHealthOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxies health o k response has a 5xx status code +func (o *GetProxiesHealthOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies health o k response a status code equal to that given +func (o *GetProxiesHealthOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxies health o k response +func (o *GetProxiesHealthOK) Code() int { + return 200 +} + func (o *GetProxiesHealthOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthOK %+v", 200, o.Payload) } + +func (o *GetProxiesHealthOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthOK %+v", 200, o.Payload) +} + func (o *GetProxiesHealthOK) GetPayload() *models.ProxiesHealth { return o.Payload } @@ -100,7 +136,8 @@ func NewGetProxiesHealthExpectationFailed() *GetProxiesHealthExpectationFailed { return &GetProxiesHealthExpectationFailed{} } -/* GetProxiesHealthExpectationFailed describes a response with status code 417, with default header values. +/* +GetProxiesHealthExpectationFailed describes a response with status code 417, with default header values. The health status is worse than the expected one. */ @@ -108,9 +145,44 @@ type GetProxiesHealthExpectationFailed struct { Payload *models.ProxiesHealth } +// IsSuccess returns true when this get proxies health expectation failed response has a 2xx status code +func (o *GetProxiesHealthExpectationFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxies health expectation failed response has a 3xx status code +func (o *GetProxiesHealthExpectationFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies health expectation failed response has a 4xx status code +func (o *GetProxiesHealthExpectationFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxies health expectation failed response has a 5xx status code +func (o *GetProxiesHealthExpectationFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies health expectation failed response a status code equal to that given +func (o *GetProxiesHealthExpectationFailed) IsCode(code int) bool { + return code == 417 +} + +// Code gets the status code for the get proxies health expectation failed response +func (o *GetProxiesHealthExpectationFailed) Code() int { + return 417 +} + func (o *GetProxiesHealthExpectationFailed) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthExpectationFailed %+v", 417, o.Payload) } + +func (o *GetProxiesHealthExpectationFailed) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthExpectationFailed %+v", 417, o.Payload) +} + func (o *GetProxiesHealthExpectationFailed) GetPayload() *models.ProxiesHealth { return o.Payload } @@ -132,7 +204,8 @@ func NewGetProxiesHealthRetryWith() *GetProxiesHealthRetryWith { return &GetProxiesHealthRetryWith{} } -/* GetProxiesHealthRetryWith describes a response with status code 449, with default header values. +/* +GetProxiesHealthRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -145,9 +218,44 @@ type GetProxiesHealthRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get proxies health retry with response has a 2xx status code +func (o *GetProxiesHealthRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxies health retry with response has a 3xx status code +func (o *GetProxiesHealthRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies health retry with response has a 4xx status code +func (o *GetProxiesHealthRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxies health retry with response has a 5xx status code +func (o *GetProxiesHealthRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies health retry with response a status code equal to that given +func (o *GetProxiesHealthRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the get proxies health retry with response +func (o *GetProxiesHealthRetryWith) Code() int { + return 449 +} + func (o *GetProxiesHealthRetryWith) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthRetryWith %+v", 449, o.Payload) } + +func (o *GetProxiesHealthRetryWith) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/health][%d] getProxiesHealthRetryWith %+v", 449, o.Payload) +} + func (o *GetProxiesHealthRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxies_parameters.go b/pkg/client/platform_infrastructure/get_proxies_parameters.go index 0e796715..bd67c4d6 100644 --- a/pkg/client/platform_infrastructure/get_proxies_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxies_parameters.go @@ -69,10 +69,12 @@ func NewGetProxiesParamsWithHTTPClient(client *http.Client) *GetProxiesParams { } } -/* GetProxiesParams contains all the parameters to send to the API endpoint - for the get proxies operation. +/* +GetProxiesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxies operation. + + Typically these are written to a http.Request. */ type GetProxiesParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_proxies_responses.go b/pkg/client/platform_infrastructure/get_proxies_responses.go index e24cd165..d5fde452 100644 --- a/pkg/client/platform_infrastructure/get_proxies_responses.go +++ b/pkg/client/platform_infrastructure/get_proxies_responses.go @@ -56,7 +56,8 @@ func NewGetProxiesOK() *GetProxiesOK { return &GetProxiesOK{} } -/* GetProxiesOK describes a response with status code 200, with default header values. +/* +GetProxiesOK describes a response with status code 200, with default header values. An overview of all proxies. */ @@ -64,9 +65,44 @@ type GetProxiesOK struct { Payload *models.ProxyOverview } +// IsSuccess returns true when this get proxies o k response has a 2xx status code +func (o *GetProxiesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxies o k response has a 3xx status code +func (o *GetProxiesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies o k response has a 4xx status code +func (o *GetProxiesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxies o k response has a 5xx status code +func (o *GetProxiesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies o k response a status code equal to that given +func (o *GetProxiesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxies o k response +func (o *GetProxiesOK) Code() int { + return 200 +} + func (o *GetProxiesOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies][%d] getProxiesOK %+v", 200, o.Payload) } + +func (o *GetProxiesOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies][%d] getProxiesOK %+v", 200, o.Payload) +} + func (o *GetProxiesOK) GetPayload() *models.ProxyOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxies_settings_parameters.go b/pkg/client/platform_infrastructure/get_proxies_settings_parameters.go index 9391a66a..f5947706 100644 --- a/pkg/client/platform_infrastructure/get_proxies_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxies_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetProxiesSettingsParamsWithHTTPClient(client *http.Client) *GetProxiesS } } -/* GetProxiesSettingsParams contains all the parameters to send to the API endpoint - for the get proxies settings operation. +/* +GetProxiesSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxies settings operation. + + Typically these are written to a http.Request. */ type GetProxiesSettingsParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/get_proxies_settings_responses.go b/pkg/client/platform_infrastructure/get_proxies_settings_responses.go index d28d2b0d..e61fba12 100644 --- a/pkg/client/platform_infrastructure/get_proxies_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_proxies_settings_responses.go @@ -56,7 +56,8 @@ func NewGetProxiesSettingsOK() *GetProxiesSettingsOK { return &GetProxiesSettingsOK{} } -/* GetProxiesSettingsOK describes a response with status code 200, with default header values. +/* +GetProxiesSettingsOK describes a response with status code 200, with default header values. Settings for all proxies. */ @@ -64,9 +65,44 @@ type GetProxiesSettingsOK struct { Payload *models.ProxiesSettings } +// IsSuccess returns true when this get proxies settings o k response has a 2xx status code +func (o *GetProxiesSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxies settings o k response has a 3xx status code +func (o *GetProxiesSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxies settings o k response has a 4xx status code +func (o *GetProxiesSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxies settings o k response has a 5xx status code +func (o *GetProxiesSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxies settings o k response a status code equal to that given +func (o *GetProxiesSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxies settings o k response +func (o *GetProxiesSettingsOK) Code() int { + return 200 +} + func (o *GetProxiesSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/settings][%d] getProxiesSettingsOK %+v", 200, o.Payload) } + +func (o *GetProxiesSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/settings][%d] getProxiesSettingsOK %+v", 200, o.Payload) +} + func (o *GetProxiesSettingsOK) GetPayload() *models.ProxiesSettings { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_proxy_parameters.go b/pkg/client/platform_infrastructure/get_proxy_parameters.go index 3100d587..a8d8a2d2 100644 --- a/pkg/client/platform_infrastructure/get_proxy_parameters.go +++ b/pkg/client/platform_infrastructure/get_proxy_parameters.go @@ -69,10 +69,12 @@ func NewGetProxyParamsWithHTTPClient(client *http.Client) *GetProxyParams { } } -/* GetProxyParams contains all the parameters to send to the API endpoint - for the get proxy operation. +/* +GetProxyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get proxy operation. + + Typically these are written to a http.Request. */ type GetProxyParams struct { diff --git a/pkg/client/platform_infrastructure/get_proxy_responses.go b/pkg/client/platform_infrastructure/get_proxy_responses.go index 2042b789..f3f2befa 100644 --- a/pkg/client/platform_infrastructure/get_proxy_responses.go +++ b/pkg/client/platform_infrastructure/get_proxy_responses.go @@ -62,7 +62,8 @@ func NewGetProxyOK() *GetProxyOK { return &GetProxyOK{} } -/* GetProxyOK describes a response with status code 200, with default header values. +/* +GetProxyOK describes a response with status code 200, with default header values. The information for the proxy specified by {proxy_id}. */ @@ -70,9 +71,44 @@ type GetProxyOK struct { Payload *models.ProxyInfo } +// IsSuccess returns true when this get proxy o k response has a 2xx status code +func (o *GetProxyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get proxy o k response has a 3xx status code +func (o *GetProxyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxy o k response has a 4xx status code +func (o *GetProxyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get proxy o k response has a 5xx status code +func (o *GetProxyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxy o k response a status code equal to that given +func (o *GetProxyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get proxy o k response +func (o *GetProxyOK) Code() int { + return 200 +} + func (o *GetProxyOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/{proxy_id}][%d] getProxyOK %+v", 200, o.Payload) } + +func (o *GetProxyOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/{proxy_id}][%d] getProxyOK %+v", 200, o.Payload) +} + func (o *GetProxyOK) GetPayload() *models.ProxyInfo { return o.Payload } @@ -94,7 +130,8 @@ func NewGetProxyNotFound() *GetProxyNotFound { return &GetProxyNotFound{} } -/* GetProxyNotFound describes a response with status code 404, with default header values. +/* +GetProxyNotFound describes a response with status code 404, with default header values. Unable to find the {proxy_id} specified proxy. Edit your request, then try again. (code: `proxies.proxy_not_found`) */ @@ -107,9 +144,44 @@ type GetProxyNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get proxy not found response has a 2xx status code +func (o *GetProxyNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get proxy not found response has a 3xx status code +func (o *GetProxyNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get proxy not found response has a 4xx status code +func (o *GetProxyNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get proxy not found response has a 5xx status code +func (o *GetProxyNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get proxy not found response a status code equal to that given +func (o *GetProxyNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get proxy not found response +func (o *GetProxyNotFound) Code() int { + return 404 +} + func (o *GetProxyNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/proxies/{proxy_id}][%d] getProxyNotFound %+v", 404, o.Payload) } + +func (o *GetProxyNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/proxies/{proxy_id}][%d] getProxyNotFound %+v", 404, o.Payload) +} + func (o *GetProxyNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_runner_logging_settings_parameters.go b/pkg/client/platform_infrastructure/get_runner_logging_settings_parameters.go index 45f2df36..ff5c6c8a 100644 --- a/pkg/client/platform_infrastructure/get_runner_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/get_runner_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewGetRunnerLoggingSettingsParamsWithHTTPClient(client *http.Client) *GetRu } } -/* GetRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - for the get runner logging settings operation. +/* +GetRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get runner logging settings operation. + + Typically these are written to a http.Request. */ type GetRunnerLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/get_runner_logging_settings_responses.go b/pkg/client/platform_infrastructure/get_runner_logging_settings_responses.go index 678667bc..71ddd9d8 100644 --- a/pkg/client/platform_infrastructure/get_runner_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/get_runner_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewGetRunnerLoggingSettingsOK() *GetRunnerLoggingSettingsOK { return &GetRunnerLoggingSettingsOK{} } -/* GetRunnerLoggingSettingsOK describes a response with status code 200, with default header values. +/* +GetRunnerLoggingSettingsOK describes a response with status code 200, with default header values. The logging settings for the runner instance */ @@ -83,9 +84,44 @@ type GetRunnerLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this get runner logging settings o k response has a 2xx status code +func (o *GetRunnerLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get runner logging settings o k response has a 3xx status code +func (o *GetRunnerLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get runner logging settings o k response has a 4xx status code +func (o *GetRunnerLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get runner logging settings o k response has a 5xx status code +func (o *GetRunnerLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get runner logging settings o k response a status code equal to that given +func (o *GetRunnerLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get runner logging settings o k response +func (o *GetRunnerLoggingSettingsOK) Code() int { + return 200 +} + func (o *GetRunnerLoggingSettingsOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}/logging_settings][%d] getRunnerLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *GetRunnerLoggingSettingsOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}/logging_settings][%d] getRunnerLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *GetRunnerLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewGetRunnerLoggingSettingsNotFound() *GetRunnerLoggingSettingsNotFound { return &GetRunnerLoggingSettingsNotFound{} } -/* GetRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +GetRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type GetRunnerLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get runner logging settings not found response has a 2xx status code +func (o *GetRunnerLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get runner logging settings not found response has a 3xx status code +func (o *GetRunnerLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get runner logging settings not found response has a 4xx status code +func (o *GetRunnerLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get runner logging settings not found response has a 5xx status code +func (o *GetRunnerLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get runner logging settings not found response a status code equal to that given +func (o *GetRunnerLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get runner logging settings not found response +func (o *GetRunnerLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *GetRunnerLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}/logging_settings][%d] getRunnerLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *GetRunnerLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}/logging_settings][%d] getRunnerLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *GetRunnerLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_runner_parameters.go b/pkg/client/platform_infrastructure/get_runner_parameters.go index 2dfb8ae7..e4aead31 100644 --- a/pkg/client/platform_infrastructure/get_runner_parameters.go +++ b/pkg/client/platform_infrastructure/get_runner_parameters.go @@ -69,10 +69,12 @@ func NewGetRunnerParamsWithHTTPClient(client *http.Client) *GetRunnerParams { } } -/* GetRunnerParams contains all the parameters to send to the API endpoint - for the get runner operation. +/* +GetRunnerParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get runner operation. + + Typically these are written to a http.Request. */ type GetRunnerParams struct { diff --git a/pkg/client/platform_infrastructure/get_runner_responses.go b/pkg/client/platform_infrastructure/get_runner_responses.go index 001d8643..bbb1d4a9 100644 --- a/pkg/client/platform_infrastructure/get_runner_responses.go +++ b/pkg/client/platform_infrastructure/get_runner_responses.go @@ -62,7 +62,8 @@ func NewGetRunnerOK() *GetRunnerOK { return &GetRunnerOK{} } -/* GetRunnerOK describes a response with status code 200, with default header values. +/* +GetRunnerOK describes a response with status code 200, with default header values. The information for the runner specified by {runner_id}. */ @@ -70,9 +71,44 @@ type GetRunnerOK struct { Payload *models.RunnerInfo } +// IsSuccess returns true when this get runner o k response has a 2xx status code +func (o *GetRunnerOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get runner o k response has a 3xx status code +func (o *GetRunnerOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get runner o k response has a 4xx status code +func (o *GetRunnerOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get runner o k response has a 5xx status code +func (o *GetRunnerOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get runner o k response a status code equal to that given +func (o *GetRunnerOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get runner o k response +func (o *GetRunnerOK) Code() int { + return 200 +} + func (o *GetRunnerOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}][%d] getRunnerOK %+v", 200, o.Payload) } + +func (o *GetRunnerOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}][%d] getRunnerOK %+v", 200, o.Payload) +} + func (o *GetRunnerOK) GetPayload() *models.RunnerInfo { return o.Payload } @@ -94,7 +130,8 @@ func NewGetRunnerNotFound() *GetRunnerNotFound { return &GetRunnerNotFound{} } -/* GetRunnerNotFound describes a response with status code 404, with default header values. +/* +GetRunnerNotFound describes a response with status code 404, with default header values. Unable to find the {runner_id} specified runner. Edit your request, then try again. (code: `runners.runner_not_found`) */ @@ -107,9 +144,44 @@ type GetRunnerNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get runner not found response has a 2xx status code +func (o *GetRunnerNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get runner not found response has a 3xx status code +func (o *GetRunnerNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get runner not found response has a 4xx status code +func (o *GetRunnerNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get runner not found response has a 5xx status code +func (o *GetRunnerNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get runner not found response a status code equal to that given +func (o *GetRunnerNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get runner not found response +func (o *GetRunnerNotFound) Code() int { + return 404 +} + func (o *GetRunnerNotFound) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}][%d] getRunnerNotFound %+v", 404, o.Payload) } + +func (o *GetRunnerNotFound) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/runners/{runner_id}][%d] getRunnerNotFound %+v", 404, o.Payload) +} + func (o *GetRunnerNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/get_runners_parameters.go b/pkg/client/platform_infrastructure/get_runners_parameters.go index 98cc38e0..4e6b273a 100644 --- a/pkg/client/platform_infrastructure/get_runners_parameters.go +++ b/pkg/client/platform_infrastructure/get_runners_parameters.go @@ -69,10 +69,12 @@ func NewGetRunnersParamsWithHTTPClient(client *http.Client) *GetRunnersParams { } } -/* GetRunnersParams contains all the parameters to send to the API endpoint - for the get runners operation. +/* +GetRunnersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get runners operation. + + Typically these are written to a http.Request. */ type GetRunnersParams struct { diff --git a/pkg/client/platform_infrastructure/get_runners_responses.go b/pkg/client/platform_infrastructure/get_runners_responses.go index a489b9af..0bb4d82c 100644 --- a/pkg/client/platform_infrastructure/get_runners_responses.go +++ b/pkg/client/platform_infrastructure/get_runners_responses.go @@ -56,7 +56,8 @@ func NewGetRunnersOK() *GetRunnersOK { return &GetRunnersOK{} } -/* GetRunnersOK describes a response with status code 200, with default header values. +/* +GetRunnersOK describes a response with status code 200, with default header values. An overview of all runners. */ @@ -64,9 +65,44 @@ type GetRunnersOK struct { Payload *models.RunnerOverview } +// IsSuccess returns true when this get runners o k response has a 2xx status code +func (o *GetRunnersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get runners o k response has a 3xx status code +func (o *GetRunnersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get runners o k response has a 4xx status code +func (o *GetRunnersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get runners o k response has a 5xx status code +func (o *GetRunnersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get runners o k response a status code equal to that given +func (o *GetRunnersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get runners o k response +func (o *GetRunnersOK) Code() int { + return 200 +} + func (o *GetRunnersOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/runners][%d] getRunnersOK %+v", 200, o.Payload) } + +func (o *GetRunnersOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/runners][%d] getRunnersOK %+v", 200, o.Payload) +} + func (o *GetRunnersOK) GetPayload() *models.RunnerOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/list_blueprinter_roles_parameters.go b/pkg/client/platform_infrastructure/list_blueprinter_roles_parameters.go index 3b3e52f3..41c34917 100644 --- a/pkg/client/platform_infrastructure/list_blueprinter_roles_parameters.go +++ b/pkg/client/platform_infrastructure/list_blueprinter_roles_parameters.go @@ -69,10 +69,12 @@ func NewListBlueprinterRolesParamsWithHTTPClient(client *http.Client) *ListBluep } } -/* ListBlueprinterRolesParams contains all the parameters to send to the API endpoint - for the list blueprinter roles operation. +/* +ListBlueprinterRolesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list blueprinter roles operation. + + Typically these are written to a http.Request. */ type ListBlueprinterRolesParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/list_blueprinter_roles_responses.go b/pkg/client/platform_infrastructure/list_blueprinter_roles_responses.go index d22e7cd0..28abfb58 100644 --- a/pkg/client/platform_infrastructure/list_blueprinter_roles_responses.go +++ b/pkg/client/platform_infrastructure/list_blueprinter_roles_responses.go @@ -56,7 +56,8 @@ func NewListBlueprinterRolesOK() *ListBlueprinterRolesOK { return &ListBlueprinterRolesOK{} } -/* ListBlueprinterRolesOK describes a response with status code 200, with default header values. +/* +ListBlueprinterRolesOK describes a response with status code 200, with default header values. The role aggregates. */ @@ -64,9 +65,44 @@ type ListBlueprinterRolesOK struct { Payload *models.RoleAggregates } +// IsSuccess returns true when this list blueprinter roles o k response has a 2xx status code +func (o *ListBlueprinterRolesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list blueprinter roles o k response has a 3xx status code +func (o *ListBlueprinterRolesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list blueprinter roles o k response has a 4xx status code +func (o *ListBlueprinterRolesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list blueprinter roles o k response has a 5xx status code +func (o *ListBlueprinterRolesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list blueprinter roles o k response a status code equal to that given +func (o *ListBlueprinterRolesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list blueprinter roles o k response +func (o *ListBlueprinterRolesOK) Code() int { + return 200 +} + func (o *ListBlueprinterRolesOK) Error() string { return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles][%d] listBlueprinterRolesOK %+v", 200, o.Payload) } + +func (o *ListBlueprinterRolesOK) String() string { + return fmt.Sprintf("[GET /platform/infrastructure/blueprinter/roles][%d] listBlueprinterRolesOK %+v", 200, o.Payload) +} + func (o *ListBlueprinterRolesOK) GetPayload() *models.RoleAggregates { return o.Payload } diff --git a/pkg/client/platform_infrastructure/list_config_store_option_parameters.go b/pkg/client/platform_infrastructure/list_config_store_option_parameters.go index 4c561b25..bc8de20a 100644 --- a/pkg/client/platform_infrastructure/list_config_store_option_parameters.go +++ b/pkg/client/platform_infrastructure/list_config_store_option_parameters.go @@ -69,10 +69,12 @@ func NewListConfigStoreOptionParamsWithHTTPClient(client *http.Client) *ListConf } } -/* ListConfigStoreOptionParams contains all the parameters to send to the API endpoint - for the list config store option operation. +/* +ListConfigStoreOptionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list config store option operation. + + Typically these are written to a http.Request. */ type ListConfigStoreOptionParams struct { timeout time.Duration diff --git a/pkg/client/platform_infrastructure/list_config_store_option_responses.go b/pkg/client/platform_infrastructure/list_config_store_option_responses.go index bcc0ddc9..8e22df3d 100644 --- a/pkg/client/platform_infrastructure/list_config_store_option_responses.go +++ b/pkg/client/platform_infrastructure/list_config_store_option_responses.go @@ -56,7 +56,8 @@ func NewListConfigStoreOptionOK() *ListConfigStoreOptionOK { return &ListConfigStoreOptionOK{} } -/* ListConfigStoreOptionOK describes a response with status code 200, with default header values. +/* +ListConfigStoreOptionOK describes a response with status code 200, with default header values. List of existing Config Store Option */ @@ -64,9 +65,44 @@ type ListConfigStoreOptionOK struct { Payload *models.ConfigStoreOptionList } +// IsSuccess returns true when this list config store option o k response has a 2xx status code +func (o *ListConfigStoreOptionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list config store option o k response has a 3xx status code +func (o *ListConfigStoreOptionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list config store option o k response has a 4xx status code +func (o *ListConfigStoreOptionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list config store option o k response has a 5xx status code +func (o *ListConfigStoreOptionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list config store option o k response a status code equal to that given +func (o *ListConfigStoreOptionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list config store option o k response +func (o *ListConfigStoreOptionOK) Code() int { + return 200 +} + func (o *ListConfigStoreOptionOK) Error() string { return fmt.Sprintf("[GET /platform/configuration/store][%d] listConfigStoreOptionOK %+v", 200, o.Payload) } + +func (o *ListConfigStoreOptionOK) String() string { + return fmt.Sprintf("[GET /platform/configuration/store][%d] listConfigStoreOptionOK %+v", 200, o.Payload) +} + func (o *ListConfigStoreOptionOK) GetPayload() *models.ConfigStoreOptionList { return o.Payload } diff --git a/pkg/client/platform_infrastructure/move_clusters_by_type_parameters.go b/pkg/client/platform_infrastructure/move_clusters_by_type_parameters.go index ec5c516b..c41312a1 100644 --- a/pkg/client/platform_infrastructure/move_clusters_by_type_parameters.go +++ b/pkg/client/platform_infrastructure/move_clusters_by_type_parameters.go @@ -72,10 +72,12 @@ func NewMoveClustersByTypeParamsWithHTTPClient(client *http.Client) *MoveCluster } } -/* MoveClustersByTypeParams contains all the parameters to send to the API endpoint - for the move clusters by type operation. +/* +MoveClustersByTypeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the move clusters by type operation. + + Typically these are written to a http.Request. */ type MoveClustersByTypeParams struct { diff --git a/pkg/client/platform_infrastructure/move_clusters_by_type_responses.go b/pkg/client/platform_infrastructure/move_clusters_by_type_responses.go index ee4398e3..97ce2815 100644 --- a/pkg/client/platform_infrastructure/move_clusters_by_type_responses.go +++ b/pkg/client/platform_infrastructure/move_clusters_by_type_responses.go @@ -74,7 +74,8 @@ func NewMoveClustersByTypeAccepted() *MoveClustersByTypeAccepted { return &MoveClustersByTypeAccepted{} } -/* MoveClustersByTypeAccepted describes a response with status code 202, with default header values. +/* +MoveClustersByTypeAccepted describes a response with status code 202, with default header values. The move command was issued successfully, use the "GET" command on each /{cluster_id} resource to monitor progress */ @@ -82,9 +83,44 @@ type MoveClustersByTypeAccepted struct { Payload *models.MoveClustersCommandResponse } +// IsSuccess returns true when this move clusters by type accepted response has a 2xx status code +func (o *MoveClustersByTypeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this move clusters by type accepted response has a 3xx status code +func (o *MoveClustersByTypeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters by type accepted response has a 4xx status code +func (o *MoveClustersByTypeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this move clusters by type accepted response has a 5xx status code +func (o *MoveClustersByTypeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters by type accepted response a status code equal to that given +func (o *MoveClustersByTypeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the move clusters by type accepted response +func (o *MoveClustersByTypeAccepted) Code() int { + return 202 +} + func (o *MoveClustersByTypeAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeAccepted %+v", 202, o.Payload) } + +func (o *MoveClustersByTypeAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeAccepted %+v", 202, o.Payload) +} + func (o *MoveClustersByTypeAccepted) GetPayload() *models.MoveClustersCommandResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewMoveClustersByTypeBadRequest() *MoveClustersByTypeBadRequest { return &MoveClustersByTypeBadRequest{} } -/* MoveClustersByTypeBadRequest describes a response with status code 400, with default header values. +/* + MoveClustersByTypeBadRequest describes a response with status code 400, with default header values. + + * The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`) - * The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`) * The cluster definition contained errors. (code: `clusters.plan_feature_not_implemented`) */ type MoveClustersByTypeBadRequest struct { @@ -120,9 +158,44 @@ type MoveClustersByTypeBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters by type bad request response has a 2xx status code +func (o *MoveClustersByTypeBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters by type bad request response has a 3xx status code +func (o *MoveClustersByTypeBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters by type bad request response has a 4xx status code +func (o *MoveClustersByTypeBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters by type bad request response has a 5xx status code +func (o *MoveClustersByTypeBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters by type bad request response a status code equal to that given +func (o *MoveClustersByTypeBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the move clusters by type bad request response +func (o *MoveClustersByTypeBadRequest) Code() int { + return 400 +} + func (o *MoveClustersByTypeBadRequest) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeBadRequest %+v", 400, o.Payload) } + +func (o *MoveClustersByTypeBadRequest) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeBadRequest %+v", 400, o.Payload) +} + func (o *MoveClustersByTypeBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewMoveClustersByTypeForbidden() *MoveClustersByTypeForbidden { return &MoveClustersByTypeForbidden{} } -/* MoveClustersByTypeForbidden describes a response with status code 403, with default header values. +/* +MoveClustersByTypeForbidden describes a response with status code 403, with default header values. The move command was prohibited for the given cluster. (code: `clusters.command_prohibited`) */ @@ -164,9 +238,44 @@ type MoveClustersByTypeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters by type forbidden response has a 2xx status code +func (o *MoveClustersByTypeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters by type forbidden response has a 3xx status code +func (o *MoveClustersByTypeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters by type forbidden response has a 4xx status code +func (o *MoveClustersByTypeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters by type forbidden response has a 5xx status code +func (o *MoveClustersByTypeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters by type forbidden response a status code equal to that given +func (o *MoveClustersByTypeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the move clusters by type forbidden response +func (o *MoveClustersByTypeForbidden) Code() int { + return 403 +} + func (o *MoveClustersByTypeForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeForbidden %+v", 403, o.Payload) } + +func (o *MoveClustersByTypeForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeForbidden %+v", 403, o.Payload) +} + func (o *MoveClustersByTypeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewMoveClustersByTypeRetryWith() *MoveClustersByTypeRetryWith { return &MoveClustersByTypeRetryWith{} } -/* MoveClustersByTypeRetryWith describes a response with status code 449, with default header values. +/* +MoveClustersByTypeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -208,9 +318,44 @@ type MoveClustersByTypeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters by type retry with response has a 2xx status code +func (o *MoveClustersByTypeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters by type retry with response has a 3xx status code +func (o *MoveClustersByTypeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters by type retry with response has a 4xx status code +func (o *MoveClustersByTypeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters by type retry with response has a 5xx status code +func (o *MoveClustersByTypeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters by type retry with response a status code equal to that given +func (o *MoveClustersByTypeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the move clusters by type retry with response +func (o *MoveClustersByTypeRetryWith) Code() int { + return 449 +} + func (o *MoveClustersByTypeRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeRetryWith %+v", 449, o.Payload) } + +func (o *MoveClustersByTypeRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move][%d] moveClustersByTypeRetryWith %+v", 449, o.Payload) +} + func (o *MoveClustersByTypeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/move_clusters_parameters.go b/pkg/client/platform_infrastructure/move_clusters_parameters.go index ffaa9984..c3a50f1c 100644 --- a/pkg/client/platform_infrastructure/move_clusters_parameters.go +++ b/pkg/client/platform_infrastructure/move_clusters_parameters.go @@ -72,10 +72,12 @@ func NewMoveClustersParamsWithHTTPClient(client *http.Client) *MoveClustersParam } } -/* MoveClustersParams contains all the parameters to send to the API endpoint - for the move clusters operation. +/* +MoveClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the move clusters operation. + + Typically these are written to a http.Request. */ type MoveClustersParams struct { diff --git a/pkg/client/platform_infrastructure/move_clusters_responses.go b/pkg/client/platform_infrastructure/move_clusters_responses.go index cc7a3792..07923f5a 100644 --- a/pkg/client/platform_infrastructure/move_clusters_responses.go +++ b/pkg/client/platform_infrastructure/move_clusters_responses.go @@ -74,7 +74,8 @@ func NewMoveClustersAccepted() *MoveClustersAccepted { return &MoveClustersAccepted{} } -/* MoveClustersAccepted describes a response with status code 202, with default header values. +/* +MoveClustersAccepted describes a response with status code 202, with default header values. The move command was issued successfully, use the "GET" command on each /{cluster_id} resource to monitor progress */ @@ -82,9 +83,44 @@ type MoveClustersAccepted struct { Payload *models.MoveClustersCommandResponse } +// IsSuccess returns true when this move clusters accepted response has a 2xx status code +func (o *MoveClustersAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this move clusters accepted response has a 3xx status code +func (o *MoveClustersAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters accepted response has a 4xx status code +func (o *MoveClustersAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this move clusters accepted response has a 5xx status code +func (o *MoveClustersAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters accepted response a status code equal to that given +func (o *MoveClustersAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the move clusters accepted response +func (o *MoveClustersAccepted) Code() int { + return 202 +} + func (o *MoveClustersAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersAccepted %+v", 202, o.Payload) } + +func (o *MoveClustersAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersAccepted %+v", 202, o.Payload) +} + func (o *MoveClustersAccepted) GetPayload() *models.MoveClustersCommandResponse { return o.Payload } @@ -106,9 +142,11 @@ func NewMoveClustersBadRequest() *MoveClustersBadRequest { return &MoveClustersBadRequest{} } -/* MoveClustersBadRequest describes a response with status code 400, with default header values. +/* + MoveClustersBadRequest describes a response with status code 400, with default header values. + + * The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`) - * The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`) * The cluster definition contained errors. (code: `clusters.plan_feature_not_implemented`) */ type MoveClustersBadRequest struct { @@ -120,9 +158,44 @@ type MoveClustersBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters bad request response has a 2xx status code +func (o *MoveClustersBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters bad request response has a 3xx status code +func (o *MoveClustersBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters bad request response has a 4xx status code +func (o *MoveClustersBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters bad request response has a 5xx status code +func (o *MoveClustersBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters bad request response a status code equal to that given +func (o *MoveClustersBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the move clusters bad request response +func (o *MoveClustersBadRequest) Code() int { + return 400 +} + func (o *MoveClustersBadRequest) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersBadRequest %+v", 400, o.Payload) } + +func (o *MoveClustersBadRequest) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersBadRequest %+v", 400, o.Payload) +} + func (o *MoveClustersBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -151,7 +224,8 @@ func NewMoveClustersForbidden() *MoveClustersForbidden { return &MoveClustersForbidden{} } -/* MoveClustersForbidden describes a response with status code 403, with default header values. +/* +MoveClustersForbidden describes a response with status code 403, with default header values. The move command was prohibited for the given cluster. (code: `clusters.command_prohibited`) */ @@ -164,9 +238,44 @@ type MoveClustersForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters forbidden response has a 2xx status code +func (o *MoveClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters forbidden response has a 3xx status code +func (o *MoveClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters forbidden response has a 4xx status code +func (o *MoveClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters forbidden response has a 5xx status code +func (o *MoveClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters forbidden response a status code equal to that given +func (o *MoveClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the move clusters forbidden response +func (o *MoveClustersForbidden) Code() int { + return 403 +} + func (o *MoveClustersForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersForbidden %+v", 403, o.Payload) } + +func (o *MoveClustersForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersForbidden %+v", 403, o.Payload) +} + func (o *MoveClustersForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -195,7 +304,8 @@ func NewMoveClustersRetryWith() *MoveClustersRetryWith { return &MoveClustersRetryWith{} } -/* MoveClustersRetryWith describes a response with status code 449, with default header values. +/* +MoveClustersRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -208,9 +318,44 @@ type MoveClustersRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this move clusters retry with response has a 2xx status code +func (o *MoveClustersRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this move clusters retry with response has a 3xx status code +func (o *MoveClustersRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this move clusters retry with response has a 4xx status code +func (o *MoveClustersRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this move clusters retry with response has a 5xx status code +func (o *MoveClustersRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this move clusters retry with response a status code equal to that given +func (o *MoveClustersRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the move clusters retry with response +func (o *MoveClustersRetryWith) Code() int { + return 449 +} + func (o *MoveClustersRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersRetryWith %+v", 449, o.Payload) } + +func (o *MoveClustersRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/clusters/_move][%d] moveClustersRetryWith %+v", 449, o.Payload) +} + func (o *MoveClustersRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/platform_infrastructure_client.go b/pkg/client/platform_infrastructure/platform_infrastructure_client.go index f97302a3..30223282 100644 --- a/pkg/client/platform_infrastructure/platform_infrastructure_client.go +++ b/pkg/client/platform_infrastructure/platform_infrastructure_client.go @@ -215,9 +215,9 @@ type ClientService interface { } /* - AddBlueprinterBlessing adds blessing +AddBlueprinterBlessing adds blessing - Add a Blessing for a runner to a role. +Add a Blessing for a runner to a role. */ func (a *Client) AddBlueprinterBlessing(params *AddBlueprinterBlessingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddBlueprinterBlessingOK, error) { // TODO: Validate the params before sending @@ -256,9 +256,9 @@ func (a *Client) AddBlueprinterBlessing(params *AddBlueprinterBlessingParams, au } /* - CreateBlueprinterRole creates a role +CreateBlueprinterRole creates a role - Create a Blueprinter role. +Create a Blueprinter role. */ func (a *Client) CreateBlueprinterRole(params *CreateBlueprinterRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBlueprinterRoleCreated, error) { // TODO: Validate the params before sending @@ -297,9 +297,9 @@ func (a *Client) CreateBlueprinterRole(params *CreateBlueprinterRoleParams, auth } /* - CreateConfigStoreOption creates config store option +CreateConfigStoreOption creates config store option - Inserts new Config Store Option. +Inserts new Config Store Option. */ func (a *Client) CreateConfigStoreOption(params *CreateConfigStoreOptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigStoreOptionCreated, error) { // TODO: Validate the params before sending @@ -338,9 +338,9 @@ func (a *Client) CreateConfigStoreOption(params *CreateConfigStoreOptionParams, } /* - CreateProxiesFilteredGroup creates filtered group of proxies +CreateProxiesFilteredGroup creates filtered group of proxies - Create the settings for a filtered group of proxies. +Create the settings for a filtered group of proxies. */ func (a *Client) CreateProxiesFilteredGroup(params *CreateProxiesFilteredGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProxiesFilteredGroupOK, error) { // TODO: Validate the params before sending @@ -379,9 +379,9 @@ func (a *Client) CreateProxiesFilteredGroup(params *CreateProxiesFilteredGroupPa } /* - DeleteAdminconsoleLoggingSettings deletes adminconsole logging settings +DeleteAdminconsoleLoggingSettings deletes adminconsole logging settings - Reset the default logging settings for this adminconsole instance. +Reset the default logging settings for this adminconsole instance. */ func (a *Client) DeleteAdminconsoleLoggingSettings(params *DeleteAdminconsoleLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAdminconsoleLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -420,9 +420,9 @@ func (a *Client) DeleteAdminconsoleLoggingSettings(params *DeleteAdminconsoleLog } /* - DeleteAllocator deletes allocator +DeleteAllocator deletes allocator - Deletes the allocator. +Deletes the allocator. */ func (a *Client) DeleteAllocator(params *DeleteAllocatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAllocatorOK, error) { // TODO: Validate the params before sending @@ -461,9 +461,9 @@ func (a *Client) DeleteAllocator(params *DeleteAllocatorParams, authInfo runtime } /* - DeleteAllocatorLoggingSettings deletes allocator logging settings +DeleteAllocatorLoggingSettings deletes allocator logging settings - Reset the default logging settings for this allocator instance. +Reset the default logging settings for this allocator instance. */ func (a *Client) DeleteAllocatorLoggingSettings(params *DeleteAllocatorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAllocatorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -502,9 +502,9 @@ func (a *Client) DeleteAllocatorLoggingSettings(params *DeleteAllocatorLoggingSe } /* - DeleteAllocatorMetadataItem deletes allocator metadata item +DeleteAllocatorMetadataItem deletes allocator metadata item - Removes a single item from the allocator metadata. +Removes a single item from the allocator metadata. */ func (a *Client) DeleteAllocatorMetadataItem(params *DeleteAllocatorMetadataItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAllocatorMetadataItemOK, error) { // TODO: Validate the params before sending @@ -543,9 +543,9 @@ func (a *Client) DeleteAllocatorMetadataItem(params *DeleteAllocatorMetadataItem } /* - DeleteBlueprinterRole deletes role +DeleteBlueprinterRole deletes role - Delete a role. +Delete a role. */ func (a *Client) DeleteBlueprinterRole(params *DeleteBlueprinterRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBlueprinterRoleOK, error) { // TODO: Validate the params before sending @@ -584,9 +584,9 @@ func (a *Client) DeleteBlueprinterRole(params *DeleteBlueprinterRoleParams, auth } /* - DeleteConfigStoreOption deletes config store option by name +DeleteConfigStoreOption deletes config store option by name - Delete Config Store Option by name. +Delete Config Store Option by name. */ func (a *Client) DeleteConfigStoreOption(params *DeleteConfigStoreOptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigStoreOptionOK, error) { // TODO: Validate the params before sending @@ -625,9 +625,9 @@ func (a *Client) DeleteConfigStoreOption(params *DeleteConfigStoreOptionParams, } /* - DeleteConstructorLoggingSettings deletes constructor logging settings +DeleteConstructorLoggingSettings deletes constructor logging settings - Reset the default logging settings for this constructor instance. +Reset the default logging settings for this constructor instance. */ func (a *Client) DeleteConstructorLoggingSettings(params *DeleteConstructorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConstructorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -666,9 +666,9 @@ func (a *Client) DeleteConstructorLoggingSettings(params *DeleteConstructorLoggi } /* - DeleteCoordinatorCandidate deletes coordinator candidate +DeleteCoordinatorCandidate deletes coordinator candidate - Delete a coordinator candidate by id. +Delete a coordinator candidate by id. */ func (a *Client) DeleteCoordinatorCandidate(params *DeleteCoordinatorCandidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCoordinatorCandidateOK, error) { // TODO: Validate the params before sending @@ -707,9 +707,9 @@ func (a *Client) DeleteCoordinatorCandidate(params *DeleteCoordinatorCandidatePa } /* - DeleteLicense deletes license +DeleteLicense deletes license - Deletes the license. +Deletes the license. */ func (a *Client) DeleteLicense(params *DeleteLicenseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLicenseOK, error) { // TODO: Validate the params before sending @@ -748,9 +748,9 @@ func (a *Client) DeleteLicense(params *DeleteLicenseParams, authInfo runtime.Cli } /* - DeleteProxiesFilteredGroup deletes filtered group of proxies +DeleteProxiesFilteredGroup deletes filtered group of proxies - Deletes a filtered group of proxies by ID. +Deletes a filtered group of proxies by ID. */ func (a *Client) DeleteProxiesFilteredGroup(params *DeleteProxiesFilteredGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProxiesFilteredGroupOK, error) { // TODO: Validate the params before sending @@ -789,9 +789,9 @@ func (a *Client) DeleteProxiesFilteredGroup(params *DeleteProxiesFilteredGroupPa } /* - DeleteRunner deletes runner +DeleteRunner deletes runner - Delete a runner by id. +Delete a runner by id. */ func (a *Client) DeleteRunner(params *DeleteRunnerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRunnerOK, error) { // TODO: Validate the params before sending @@ -830,9 +830,9 @@ func (a *Client) DeleteRunner(params *DeleteRunnerParams, authInfo runtime.Clien } /* - DeleteRunnerLoggingSettings deletes runner logging settings +DeleteRunnerLoggingSettings deletes runner logging settings - Reset the default logging settings for this runner instance. +Reset the default logging settings for this runner instance. */ func (a *Client) DeleteRunnerLoggingSettings(params *DeleteRunnerLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRunnerLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -871,9 +871,9 @@ func (a *Client) DeleteRunnerLoggingSettings(params *DeleteRunnerLoggingSettings } /* - DemoteCoordinator demotes a coordinator +DemoteCoordinator demotes a coordinator - Demotes a coordinator. +Demotes a coordinator. */ func (a *Client) DemoteCoordinator(params *DemoteCoordinatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DemoteCoordinatorOK, error) { // TODO: Validate the params before sending @@ -912,9 +912,9 @@ func (a *Client) DemoteCoordinator(params *DemoteCoordinatorParams, authInfo run } /* - GetAdminconsoleLoggingSettings gets adminconsole logging settings +GetAdminconsoleLoggingSettings gets adminconsole logging settings - Get the logging settings for this adminconsole instance. +Get the logging settings for this adminconsole instance. */ func (a *Client) GetAdminconsoleLoggingSettings(params *GetAdminconsoleLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAdminconsoleLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -953,9 +953,9 @@ func (a *Client) GetAdminconsoleLoggingSettings(params *GetAdminconsoleLoggingSe } /* - GetAdminconsoles gets adminconsoles +GetAdminconsoles gets adminconsoles - Retrieves an overview of all adminconsoles. +Retrieves an overview of all adminconsoles. */ func (a *Client) GetAdminconsoles(params *GetAdminconsolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAdminconsolesOK, error) { // TODO: Validate the params before sending @@ -994,9 +994,9 @@ func (a *Client) GetAdminconsoles(params *GetAdminconsolesParams, authInfo runti } /* - GetAllocator gets allocator +GetAllocator gets allocator - Retrieves the allocator by the ID. +Retrieves the allocator by the ID. */ func (a *Client) GetAllocator(params *GetAllocatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllocatorOK, error) { // TODO: Validate the params before sending @@ -1035,9 +1035,9 @@ func (a *Client) GetAllocator(params *GetAllocatorParams, authInfo runtime.Clien } /* - GetAllocatorLoggingSettings gets allocator logging settings +GetAllocatorLoggingSettings gets allocator logging settings - Get the logging settings for this allocator instance. +Get the logging settings for this allocator instance. */ func (a *Client) GetAllocatorLoggingSettings(params *GetAllocatorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllocatorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -1076,9 +1076,9 @@ func (a *Client) GetAllocatorLoggingSettings(params *GetAllocatorLoggingSettings } /* - GetAllocatorMetadata gets allocator metadata +GetAllocatorMetadata gets allocator metadata - Retrieves the allocator metadata. +Retrieves the allocator metadata. */ func (a *Client) GetAllocatorMetadata(params *GetAllocatorMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllocatorMetadataOK, error) { // TODO: Validate the params before sending @@ -1117,9 +1117,9 @@ func (a *Client) GetAllocatorMetadata(params *GetAllocatorMetadataParams, authIn } /* - GetAllocatorSettings gets allocator settings +GetAllocatorSettings gets allocator settings - Retrieves the allocator override settings. +Retrieves the allocator override settings. */ func (a *Client) GetAllocatorSettings(params *GetAllocatorSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllocatorSettingsOK, error) { // TODO: Validate the params before sending @@ -1158,9 +1158,9 @@ func (a *Client) GetAllocatorSettings(params *GetAllocatorSettingsParams, authIn } /* - GetAllocators gets allocators +GetAllocators gets allocators - Retrieves the information for all of the allocators in the platform. +Retrieves the information for all of the allocators in the platform. */ func (a *Client) GetAllocators(params *GetAllocatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllocatorsOK, error) { // TODO: Validate the params before sending @@ -1199,9 +1199,9 @@ func (a *Client) GetAllocators(params *GetAllocatorsParams, authInfo runtime.Cli } /* - GetAPIBaseURL gets API base Url +GetAPIBaseURL gets API base Url - Gets the API base Url configuration value. +Gets the API base Url configuration value. */ func (a *Client) GetAPIBaseURL(params *GetAPIBaseURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIBaseURLOK, error) { // TODO: Validate the params before sending @@ -1240,9 +1240,9 @@ func (a *Client) GetAPIBaseURL(params *GetAPIBaseURLParams, authInfo runtime.Cli } /* - GetBlueprinterRole gets role +GetBlueprinterRole gets role - Retrieve a role. +Retrieve a role. */ func (a *Client) GetBlueprinterRole(params *GetBlueprinterRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBlueprinterRoleOK, error) { // TODO: Validate the params before sending @@ -1281,9 +1281,9 @@ func (a *Client) GetBlueprinterRole(params *GetBlueprinterRoleParams, authInfo r } /* - GetConfigStoreOption finds config store option by name +GetConfigStoreOption finds config store option by name - Find Config Store Option by name. +Find Config Store Option by name. */ func (a *Client) GetConfigStoreOption(params *GetConfigStoreOptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigStoreOptionOK, error) { // TODO: Validate the params before sending @@ -1322,9 +1322,9 @@ func (a *Client) GetConfigStoreOption(params *GetConfigStoreOptionParams, authIn } /* - GetConstructor gets constructor +GetConstructor gets constructor - Retrieves a constructor by id. +Retrieves a constructor by id. */ func (a *Client) GetConstructor(params *GetConstructorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConstructorOK, error) { // TODO: Validate the params before sending @@ -1363,9 +1363,9 @@ func (a *Client) GetConstructor(params *GetConstructorParams, authInfo runtime.C } /* - GetConstructorLoggingSettings gets constructor logging settings +GetConstructorLoggingSettings gets constructor logging settings - Get the logging settings for this constructor instance. +Get the logging settings for this constructor instance. */ func (a *Client) GetConstructorLoggingSettings(params *GetConstructorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConstructorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -1404,9 +1404,9 @@ func (a *Client) GetConstructorLoggingSettings(params *GetConstructorLoggingSett } /* - GetConstructors gets constructors +GetConstructors gets constructors - Retrieves an overview of all constructors in an ECE installation. +Retrieves an overview of all constructors in an ECE installation. */ func (a *Client) GetConstructors(params *GetConstructorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConstructorsOK, error) { // TODO: Validate the params before sending @@ -1445,9 +1445,9 @@ func (a *Client) GetConstructors(params *GetConstructorsParams, authInfo runtime } /* - GetCoordinator gets a coordinator +GetCoordinator gets a coordinator - Retrieve overview of a single coordinator. +Retrieve overview of a single coordinator. */ func (a *Client) GetCoordinator(params *GetCoordinatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCoordinatorOK, error) { // TODO: Validate the params before sending @@ -1486,9 +1486,9 @@ func (a *Client) GetCoordinator(params *GetCoordinatorParams, authInfo runtime.C } /* - GetCoordinatorCandidate gets a coordinator candidate +GetCoordinatorCandidate gets a coordinator candidate - Retrieve a coordinator candidate. +Retrieve a coordinator candidate. */ func (a *Client) GetCoordinatorCandidate(params *GetCoordinatorCandidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCoordinatorCandidateOK, error) { // TODO: Validate the params before sending @@ -1527,9 +1527,9 @@ func (a *Client) GetCoordinatorCandidate(params *GetCoordinatorCandidateParams, } /* - GetCoordinatorCandidates gets coordinator candidates +GetCoordinatorCandidates gets coordinator candidates - Retrieve a list of all coordinator candidates. +Retrieve a list of all coordinator candidates. */ func (a *Client) GetCoordinatorCandidates(params *GetCoordinatorCandidatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCoordinatorCandidatesOK, error) { // TODO: Validate the params before sending @@ -1568,9 +1568,9 @@ func (a *Client) GetCoordinatorCandidates(params *GetCoordinatorCandidatesParams } /* - GetCoordinators gets coordinators +GetCoordinators gets coordinators - Retrieves an overview of all coordinators. +Retrieves an overview of all coordinators. */ func (a *Client) GetCoordinators(params *GetCoordinatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCoordinatorsOK, error) { // TODO: Validate the params before sending @@ -1609,9 +1609,9 @@ func (a *Client) GetCoordinators(params *GetCoordinatorsParams, authInfo runtime } /* - GetLicense gets license +GetLicense gets license - Retrieves the license. +Retrieves the license. */ func (a *Client) GetLicense(params *GetLicenseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLicenseOK, error) { // TODO: Validate the params before sending @@ -1650,9 +1650,9 @@ func (a *Client) GetLicense(params *GetLicenseParams, authInfo runtime.ClientAut } /* - GetProxies gets proxies +GetProxies gets proxies - Retrieves an overview of all proxies. +Retrieves an overview of all proxies. */ func (a *Client) GetProxies(params *GetProxiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxiesOK, error) { // TODO: Validate the params before sending @@ -1691,9 +1691,9 @@ func (a *Client) GetProxies(params *GetProxiesParams, authInfo runtime.ClientAut } /* - GetProxiesFilteredGroup gets filtered group of proxies +GetProxiesFilteredGroup gets filtered group of proxies - Get data for a filtered group of proxies. +Get data for a filtered group of proxies. */ func (a *Client) GetProxiesFilteredGroup(params *GetProxiesFilteredGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxiesFilteredGroupOK, error) { // TODO: Validate the params before sending @@ -1732,9 +1732,9 @@ func (a *Client) GetProxiesFilteredGroup(params *GetProxiesFilteredGroupParams, } /* - GetProxiesFilteredGroupHealth gets health for a filtered group of proxies +GetProxiesFilteredGroupHealth gets health for a filtered group of proxies - Get the health status of a filtered group of proxies. +Get the health status of a filtered group of proxies. */ func (a *Client) GetProxiesFilteredGroupHealth(params *GetProxiesFilteredGroupHealthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxiesFilteredGroupHealthOK, error) { // TODO: Validate the params before sending @@ -1773,9 +1773,9 @@ func (a *Client) GetProxiesFilteredGroupHealth(params *GetProxiesFilteredGroupHe } /* - GetProxiesHealth gets proxy health +GetProxiesHealth gets proxy health - Get the health status of all proxies. +Get the health status of all proxies. */ func (a *Client) GetProxiesHealth(params *GetProxiesHealthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxiesHealthOK, error) { // TODO: Validate the params before sending @@ -1814,9 +1814,10 @@ func (a *Client) GetProxiesHealth(params *GetProxiesHealthParams, authInfo runti } /* - GetProxiesSettings gets proxies settings + GetProxiesSettings gets proxies settings + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Retrieves the settings for all proxies. @@ -1858,9 +1859,9 @@ func (a *Client) GetProxiesSettings(params *GetProxiesSettingsParams, authInfo r } /* - GetProxy gets proxy +GetProxy gets proxy - Retrieves a single proxy by ID. +Retrieves a single proxy by ID. */ func (a *Client) GetProxy(params *GetProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxyOK, error) { // TODO: Validate the params before sending @@ -1899,9 +1900,9 @@ func (a *Client) GetProxy(params *GetProxyParams, authInfo runtime.ClientAuthInf } /* - GetRunner gets runner +GetRunner gets runner - Retrieves a runner by id. +Retrieves a runner by id. */ func (a *Client) GetRunner(params *GetRunnerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRunnerOK, error) { // TODO: Validate the params before sending @@ -1940,9 +1941,9 @@ func (a *Client) GetRunner(params *GetRunnerParams, authInfo runtime.ClientAuthI } /* - GetRunnerLoggingSettings gets runner logging settings +GetRunnerLoggingSettings gets runner logging settings - Get the logging settings for this runner instance. +Get the logging settings for this runner instance. */ func (a *Client) GetRunnerLoggingSettings(params *GetRunnerLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRunnerLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -1981,9 +1982,9 @@ func (a *Client) GetRunnerLoggingSettings(params *GetRunnerLoggingSettingsParams } /* - GetRunners gets runners +GetRunners gets runners - Retrieves an overview of all runners. +Retrieves an overview of all runners. */ func (a *Client) GetRunners(params *GetRunnersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRunnersOK, error) { // TODO: Validate the params before sending @@ -2022,9 +2023,9 @@ func (a *Client) GetRunners(params *GetRunnersParams, authInfo runtime.ClientAut } /* - ListBlueprinterRoles lists roles +ListBlueprinterRoles lists roles - Retrieve all persisted roles. +Retrieve all persisted roles. */ func (a *Client) ListBlueprinterRoles(params *ListBlueprinterRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListBlueprinterRolesOK, error) { // TODO: Validate the params before sending @@ -2063,9 +2064,9 @@ func (a *Client) ListBlueprinterRoles(params *ListBlueprinterRolesParams, authIn } /* - ListConfigStoreOption lists config store option +ListConfigStoreOption lists config store option - List all existing Config Store Option. +List all existing Config Store Option. */ func (a *Client) ListConfigStoreOption(params *ListConfigStoreOptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListConfigStoreOptionOK, error) { // TODO: Validate the params before sending @@ -2104,9 +2105,9 @@ func (a *Client) ListConfigStoreOption(params *ListConfigStoreOptionParams, auth } /* - MoveClusters moves clusters +MoveClusters moves clusters - Moves the clusters to a different allocator. +Moves the clusters to a different allocator. */ func (a *Client) MoveClusters(params *MoveClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveClustersAccepted, error) { // TODO: Validate the params before sending @@ -2145,9 +2146,9 @@ func (a *Client) MoveClusters(params *MoveClustersParams, authInfo runtime.Clien } /* - MoveClustersByType moves clusters by type +MoveClustersByType moves clusters by type - Moves the clusters, by type, to a different allocator. +Moves the clusters, by type, to a different allocator. */ func (a *Client) MoveClustersByType(params *MoveClustersByTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveClustersByTypeAccepted, error) { // TODO: Validate the params before sending @@ -2186,9 +2187,9 @@ func (a *Client) MoveClustersByType(params *MoveClustersByTypeParams, authInfo r } /* - PromoteCoordinatorCandidate promotes a coordinator candidate +PromoteCoordinatorCandidate promotes a coordinator candidate - Promotes a coordinator candidate. +Promotes a coordinator candidate. */ func (a *Client) PromoteCoordinatorCandidate(params *PromoteCoordinatorCandidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PromoteCoordinatorCandidateAccepted, error) { // TODO: Validate the params before sending @@ -2227,9 +2228,9 @@ func (a *Client) PromoteCoordinatorCandidate(params *PromoteCoordinatorCandidate } /* - PutConfigStoreOption updates config store option +PutConfigStoreOption updates config store option - Update existing Config Store Option. +Update existing Config Store Option. */ func (a *Client) PutConfigStoreOption(params *PutConfigStoreOptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutConfigStoreOptionOK, error) { // TODO: Validate the params before sending @@ -2268,9 +2269,9 @@ func (a *Client) PutConfigStoreOption(params *PutConfigStoreOptionParams, authIn } /* - ResyncAllocator resynchronizes allocator +ResyncAllocator resynchronizes allocator - Immediately synchronizes the allocator information in the back-end search index and caches. +Immediately synchronizes the allocator information in the back-end search index and caches. */ func (a *Client) ResyncAllocator(params *ResyncAllocatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncAllocatorOK, error) { // TODO: Validate the params before sending @@ -2309,9 +2310,9 @@ func (a *Client) ResyncAllocator(params *ResyncAllocatorParams, authInfo runtime } /* - ResyncAllocators resynchronizes allocators +ResyncAllocators resynchronizes allocators - Asynchronously synchronizes all allocator information in the back-end search index. +Asynchronously synchronizes all allocator information in the back-end search index. */ func (a *Client) ResyncAllocators(params *ResyncAllocatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncAllocatorsAccepted, error) { // TODO: Validate the params before sending @@ -2350,9 +2351,9 @@ func (a *Client) ResyncAllocators(params *ResyncAllocatorsParams, authInfo runti } /* - ResyncConstructor resynchronizes constructor +ResyncConstructor resynchronizes constructor - Immediately resynchronizes the search index and cache for the selected constructor. +Immediately resynchronizes the search index and cache for the selected constructor. */ func (a *Client) ResyncConstructor(params *ResyncConstructorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncConstructorOK, error) { // TODO: Validate the params before sending @@ -2391,9 +2392,9 @@ func (a *Client) ResyncConstructor(params *ResyncConstructorParams, authInfo run } /* - ResyncConstructors resynchronizes constructors +ResyncConstructors resynchronizes constructors - Asynchronously synchronizes all constructor information in the back-end search index. +Asynchronously synchronizes all constructor information in the back-end search index. */ func (a *Client) ResyncConstructors(params *ResyncConstructorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncConstructorsAccepted, error) { // TODO: Validate the params before sending @@ -2432,9 +2433,9 @@ func (a *Client) ResyncConstructors(params *ResyncConstructorsParams, authInfo r } /* - ResyncRunner resynchronizes runner +ResyncRunner resynchronizes runner - Immediately resynchronizes the search index and cache for the selected runner. +Immediately resynchronizes the search index and cache for the selected runner. */ func (a *Client) ResyncRunner(params *ResyncRunnerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncRunnerOK, error) { // TODO: Validate the params before sending @@ -2473,9 +2474,9 @@ func (a *Client) ResyncRunner(params *ResyncRunnerParams, authInfo runtime.Clien } /* - ResyncRunners resynchronizes runners +ResyncRunners resynchronizes runners - Asynchronously synchronizes all runner information in the search index. +Asynchronously synchronizes all runner information in the search index. */ func (a *Client) ResyncRunners(params *ResyncRunnersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResyncRunnersAccepted, error) { // TODO: Validate the params before sending @@ -2514,9 +2515,9 @@ func (a *Client) ResyncRunners(params *ResyncRunnersParams, authInfo runtime.Cli } /* - SearchAllocators searches allocators +SearchAllocators searches allocators - Retrieves the information for all the allocators in the platform that match a specified query. +Retrieves the information for all the allocators in the platform that match a specified query. */ func (a *Client) SearchAllocators(params *SearchAllocatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchAllocatorsOK, error) { // TODO: Validate the params before sending @@ -2555,9 +2556,9 @@ func (a *Client) SearchAllocators(params *SearchAllocatorsParams, authInfo runti } /* - SearchRunners searches runners +SearchRunners searches runners - Retrieves runners that match a given query. +Retrieves runners that match a given query. */ func (a *Client) SearchRunners(params *SearchRunnersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchRunnersOK, error) { // TODO: Validate the params before sending @@ -2596,9 +2597,9 @@ func (a *Client) SearchRunners(params *SearchRunnersParams, authInfo runtime.Cli } /* - SetAdminconsoleLoggingSettings sets adminconsole logging settings +SetAdminconsoleLoggingSettings sets adminconsole logging settings - Set the logging settings for this adminconsole instance. +Set the logging settings for this adminconsole instance. */ func (a *Client) SetAdminconsoleLoggingSettings(params *SetAdminconsoleLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAdminconsoleLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -2637,9 +2638,9 @@ func (a *Client) SetAdminconsoleLoggingSettings(params *SetAdminconsoleLoggingSe } /* - SetAllocatorLoggingSettings sets allocator logging settings +SetAllocatorLoggingSettings sets allocator logging settings - Set the logging settings for this allocator instance. +Set the logging settings for this allocator instance. */ func (a *Client) SetAllocatorLoggingSettings(params *SetAllocatorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAllocatorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -2678,9 +2679,9 @@ func (a *Client) SetAllocatorLoggingSettings(params *SetAllocatorLoggingSettings } /* - SetAllocatorMetadata sets allocator metadata +SetAllocatorMetadata sets allocator metadata - Sets the allocator metadata. +Sets the allocator metadata. */ func (a *Client) SetAllocatorMetadata(params *SetAllocatorMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAllocatorMetadataOK, error) { // TODO: Validate the params before sending @@ -2719,9 +2720,9 @@ func (a *Client) SetAllocatorMetadata(params *SetAllocatorMetadataParams, authIn } /* - SetAllocatorMetadataItem sets allocator metadata item +SetAllocatorMetadataItem sets allocator metadata item - Adds or updates a single item in the allocator metadata. +Adds or updates a single item in the allocator metadata. */ func (a *Client) SetAllocatorMetadataItem(params *SetAllocatorMetadataItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAllocatorMetadataItemOK, error) { // TODO: Validate the params before sending @@ -2760,9 +2761,9 @@ func (a *Client) SetAllocatorMetadataItem(params *SetAllocatorMetadataItemParams } /* - SetAllocatorSettings sets allocator settings +SetAllocatorSettings sets allocator settings - Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted. +Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted. */ func (a *Client) SetAllocatorSettings(params *SetAllocatorSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAllocatorSettingsOK, error) { // TODO: Validate the params before sending @@ -2801,9 +2802,9 @@ func (a *Client) SetAllocatorSettings(params *SetAllocatorSettingsParams, authIn } /* - SetAPIBaseURL sets API base Url +SetAPIBaseURL sets API base Url - Saves the API base Url configuration value. +Saves the API base Url configuration value. */ func (a *Client) SetAPIBaseURL(params *SetAPIBaseURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetAPIBaseURLOK, error) { // TODO: Validate the params before sending @@ -2842,9 +2843,9 @@ func (a *Client) SetAPIBaseURL(params *SetAPIBaseURLParams, authInfo runtime.Cli } /* - SetBlueprinterBlessings sets blessings +SetBlueprinterBlessings sets blessings - Set blessings for a role. +Set blessings for a role. */ func (a *Client) SetBlueprinterBlessings(params *SetBlueprinterBlessingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetBlueprinterBlessingsOK, error) { // TODO: Validate the params before sending @@ -2883,9 +2884,9 @@ func (a *Client) SetBlueprinterBlessings(params *SetBlueprinterBlessingsParams, } /* - SetConstructorLoggingSettings sets constructor logging settings +SetConstructorLoggingSettings sets constructor logging settings - Set the logging settings for this constructor instance. +Set the logging settings for this constructor instance. */ func (a *Client) SetConstructorLoggingSettings(params *SetConstructorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetConstructorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -2924,9 +2925,9 @@ func (a *Client) SetConstructorLoggingSettings(params *SetConstructorLoggingSett } /* - SetLicense adds or update license +SetLicense adds or update license - Adds a new or updates an existing license. +Adds a new or updates an existing license. */ func (a *Client) SetLicense(params *SetLicenseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetLicenseOK, error) { // TODO: Validate the params before sending @@ -2965,9 +2966,10 @@ func (a *Client) SetLicense(params *SetLicenseParams, authInfo runtime.ClientAut } /* - SetProxiesSettings sets proxy settings + SetProxiesSettings sets proxy settings + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Overwrites the proxy settings. All unspecified fields are deleted. @@ -3009,9 +3011,9 @@ func (a *Client) SetProxiesSettings(params *SetProxiesSettingsParams, authInfo r } /* - SetRunnerLoggingSettings sets runner logging settings +SetRunnerLoggingSettings sets runner logging settings - Set the logging settings for this runner instance. +Set the logging settings for this runner instance. */ func (a *Client) SetRunnerLoggingSettings(params *SetRunnerLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRunnerLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -3050,9 +3052,9 @@ func (a *Client) SetRunnerLoggingSettings(params *SetRunnerLoggingSettingsParams } /* - SetRunnerRoles sets runner roles +SetRunnerRoles sets runner roles - Set runner roles. +Set runner roles. */ func (a *Client) SetRunnerRoles(params *SetRunnerRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRunnerRolesOK, error) { // TODO: Validate the params before sending @@ -3091,9 +3093,9 @@ func (a *Client) SetRunnerRoles(params *SetRunnerRolesParams, authInfo runtime.C } /* - StartAllocatorMaintenanceMode starts maintenance mode +StartAllocatorMaintenanceMode starts maintenance mode - Starts maintenance mode on the allocator. +Starts maintenance mode on the allocator. */ func (a *Client) StartAllocatorMaintenanceMode(params *StartAllocatorMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartAllocatorMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -3132,9 +3134,9 @@ func (a *Client) StartAllocatorMaintenanceMode(params *StartAllocatorMaintenance } /* - StartConstructorMaintenanceMode starts maintenance mode +StartConstructorMaintenanceMode starts maintenance mode - Start maintenance mode of a constructor. It will stop constructing new plans while continuing with on-going ones. +Start maintenance mode of a constructor. It will stop constructing new plans while continuing with on-going ones. */ func (a *Client) StartConstructorMaintenanceMode(params *StartConstructorMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StartConstructorMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -3173,9 +3175,9 @@ func (a *Client) StartConstructorMaintenanceMode(params *StartConstructorMainten } /* - StopAllocatorMaintenanceMode stops maintenance mode +StopAllocatorMaintenanceMode stops maintenance mode - Stops maintenance mode on the allocator. +Stops maintenance mode on the allocator. */ func (a *Client) StopAllocatorMaintenanceMode(params *StopAllocatorMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopAllocatorMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -3214,9 +3216,9 @@ func (a *Client) StopAllocatorMaintenanceMode(params *StopAllocatorMaintenanceMo } /* - StopConstructorMaintenanceMode stops maintenance mode +StopConstructorMaintenanceMode stops maintenance mode - Stop maintenance mode of a constructor. It will resume the construction of submitted plans. +Stop maintenance mode of a constructor. It will resume the construction of submitted plans. */ func (a *Client) StopConstructorMaintenanceMode(params *StopConstructorMaintenanceModeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopConstructorMaintenanceModeAccepted, error) { // TODO: Validate the params before sending @@ -3255,9 +3257,9 @@ func (a *Client) StopConstructorMaintenanceMode(params *StopConstructorMaintenan } /* - UpdateAdminconsoleLoggingSettings updates adminconsole logging settings +UpdateAdminconsoleLoggingSettings updates adminconsole logging settings - All changes in the specified object are applied to the logging settings for this adminconsole instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. +All changes in the specified object are applied to the logging settings for this adminconsole instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. */ func (a *Client) UpdateAdminconsoleLoggingSettings(params *UpdateAdminconsoleLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAdminconsoleLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -3296,9 +3298,9 @@ func (a *Client) UpdateAdminconsoleLoggingSettings(params *UpdateAdminconsoleLog } /* - UpdateAllocatorLoggingSettings updates allocator logging settings +UpdateAllocatorLoggingSettings updates allocator logging settings - All changes in the specified object are applied to the logging settings for this allocator instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. +All changes in the specified object are applied to the logging settings for this allocator instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. */ func (a *Client) UpdateAllocatorLoggingSettings(params *UpdateAllocatorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAllocatorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -3337,9 +3339,9 @@ func (a *Client) UpdateAllocatorLoggingSettings(params *UpdateAllocatorLoggingSe } /* - UpdateAllocatorSettings updates allocator settings +UpdateAllocatorSettings updates allocator settings - Applies the settings as a patch. Only the fields that are referenced in the update are altered. +Applies the settings as a patch. Only the fields that are referenced in the update are altered. */ func (a *Client) UpdateAllocatorSettings(params *UpdateAllocatorSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAllocatorSettingsOK, error) { // TODO: Validate the params before sending @@ -3378,9 +3380,9 @@ func (a *Client) UpdateAllocatorSettings(params *UpdateAllocatorSettingsParams, } /* - UpdateBlueprinterRole updates role +UpdateBlueprinterRole updates role - Update a role. +Update a role. */ func (a *Client) UpdateBlueprinterRole(params *UpdateBlueprinterRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBlueprinterRoleOK, error) { // TODO: Validate the params before sending @@ -3419,9 +3421,9 @@ func (a *Client) UpdateBlueprinterRole(params *UpdateBlueprinterRoleParams, auth } /* - UpdateConstructorLoggingSettings updates constructor logging settings +UpdateConstructorLoggingSettings updates constructor logging settings - All changes in the specified object are applied to the logging settings for this constructor instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. +All changes in the specified object are applied to the logging settings for this constructor instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. */ func (a *Client) UpdateConstructorLoggingSettings(params *UpdateConstructorLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateConstructorLoggingSettingsOK, error) { // TODO: Validate the params before sending @@ -3460,9 +3462,9 @@ func (a *Client) UpdateConstructorLoggingSettings(params *UpdateConstructorLoggi } /* - UpdateProxiesFilteredGroup updates filtered group of proxies +UpdateProxiesFilteredGroup updates filtered group of proxies - Update the settings for a filtered group of proxies. +Update the settings for a filtered group of proxies. */ func (a *Client) UpdateProxiesFilteredGroup(params *UpdateProxiesFilteredGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProxiesFilteredGroupOK, error) { // TODO: Validate the params before sending @@ -3501,9 +3503,10 @@ func (a *Client) UpdateProxiesFilteredGroup(params *UpdateProxiesFilteredGroupPa } /* - UpdateProxiesSettings updates proxy settings + UpdateProxiesSettings updates proxy settings + + > WARNING - > WARNING > This endpoint is deprecated and scheduled to be removed in the next major version. Applies the settings as a patch. Only the fields that are referenced in the update are changed. @@ -3545,9 +3548,9 @@ func (a *Client) UpdateProxiesSettings(params *UpdateProxiesSettingsParams, auth } /* - UpdateRunnerLoggingSettings updates runner logging settings +UpdateRunnerLoggingSettings updates runner logging settings - All changes in the specified object are applied to the logging settings for this runner instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. +All changes in the specified object are applied to the logging settings for this runner instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists. */ func (a *Client) UpdateRunnerLoggingSettings(params *UpdateRunnerLoggingSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRunnerLoggingSettingsOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/platform_infrastructure/promote_coordinator_candidate_parameters.go b/pkg/client/platform_infrastructure/promote_coordinator_candidate_parameters.go index 556086ee..3a901e31 100644 --- a/pkg/client/platform_infrastructure/promote_coordinator_candidate_parameters.go +++ b/pkg/client/platform_infrastructure/promote_coordinator_candidate_parameters.go @@ -69,10 +69,12 @@ func NewPromoteCoordinatorCandidateParamsWithHTTPClient(client *http.Client) *Pr } } -/* PromoteCoordinatorCandidateParams contains all the parameters to send to the API endpoint - for the promote coordinator candidate operation. +/* +PromoteCoordinatorCandidateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the promote coordinator candidate operation. + + Typically these are written to a http.Request. */ type PromoteCoordinatorCandidateParams struct { diff --git a/pkg/client/platform_infrastructure/promote_coordinator_candidate_responses.go b/pkg/client/platform_infrastructure/promote_coordinator_candidate_responses.go index 30365ccb..b81b048c 100644 --- a/pkg/client/platform_infrastructure/promote_coordinator_candidate_responses.go +++ b/pkg/client/platform_infrastructure/promote_coordinator_candidate_responses.go @@ -68,7 +68,8 @@ func NewPromoteCoordinatorCandidateAccepted() *PromoteCoordinatorCandidateAccept return &PromoteCoordinatorCandidateAccepted{} } -/* PromoteCoordinatorCandidateAccepted describes a response with status code 202, with default header values. +/* +PromoteCoordinatorCandidateAccepted describes a response with status code 202, with default header values. Accepted promote of coordinator candidate. */ @@ -76,9 +77,44 @@ type PromoteCoordinatorCandidateAccepted struct { Payload *models.CoordinatorCandidateInfo } +// IsSuccess returns true when this promote coordinator candidate accepted response has a 2xx status code +func (o *PromoteCoordinatorCandidateAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this promote coordinator candidate accepted response has a 3xx status code +func (o *PromoteCoordinatorCandidateAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this promote coordinator candidate accepted response has a 4xx status code +func (o *PromoteCoordinatorCandidateAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this promote coordinator candidate accepted response has a 5xx status code +func (o *PromoteCoordinatorCandidateAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this promote coordinator candidate accepted response a status code equal to that given +func (o *PromoteCoordinatorCandidateAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the promote coordinator candidate accepted response +func (o *PromoteCoordinatorCandidateAccepted) Code() int { + return 202 +} + func (o *PromoteCoordinatorCandidateAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateAccepted %+v", 202, o.Payload) } + +func (o *PromoteCoordinatorCandidateAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateAccepted %+v", 202, o.Payload) +} + func (o *PromoteCoordinatorCandidateAccepted) GetPayload() *models.CoordinatorCandidateInfo { return o.Payload } @@ -100,7 +136,8 @@ func NewPromoteCoordinatorCandidateNotFound() *PromoteCoordinatorCandidateNotFou return &PromoteCoordinatorCandidateNotFound{} } -/* PromoteCoordinatorCandidateNotFound describes a response with status code 404, with default header values. +/* +PromoteCoordinatorCandidateNotFound describes a response with status code 404, with default header values. Unable to find coordinator candidate {coordinator_id}. Edit your request, then try again. (code: `coordinators.candidate_not_found`) */ @@ -113,9 +150,44 @@ type PromoteCoordinatorCandidateNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this promote coordinator candidate not found response has a 2xx status code +func (o *PromoteCoordinatorCandidateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this promote coordinator candidate not found response has a 3xx status code +func (o *PromoteCoordinatorCandidateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this promote coordinator candidate not found response has a 4xx status code +func (o *PromoteCoordinatorCandidateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this promote coordinator candidate not found response has a 5xx status code +func (o *PromoteCoordinatorCandidateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this promote coordinator candidate not found response a status code equal to that given +func (o *PromoteCoordinatorCandidateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the promote coordinator candidate not found response +func (o *PromoteCoordinatorCandidateNotFound) Code() int { + return 404 +} + func (o *PromoteCoordinatorCandidateNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateNotFound %+v", 404, o.Payload) } + +func (o *PromoteCoordinatorCandidateNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateNotFound %+v", 404, o.Payload) +} + func (o *PromoteCoordinatorCandidateNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewPromoteCoordinatorCandidateRetryWith() *PromoteCoordinatorCandidateRetry return &PromoteCoordinatorCandidateRetryWith{} } -/* PromoteCoordinatorCandidateRetryWith describes a response with status code 449, with default header values. +/* +PromoteCoordinatorCandidateRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type PromoteCoordinatorCandidateRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this promote coordinator candidate retry with response has a 2xx status code +func (o *PromoteCoordinatorCandidateRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this promote coordinator candidate retry with response has a 3xx status code +func (o *PromoteCoordinatorCandidateRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this promote coordinator candidate retry with response has a 4xx status code +func (o *PromoteCoordinatorCandidateRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this promote coordinator candidate retry with response has a 5xx status code +func (o *PromoteCoordinatorCandidateRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this promote coordinator candidate retry with response a status code equal to that given +func (o *PromoteCoordinatorCandidateRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the promote coordinator candidate retry with response +func (o *PromoteCoordinatorCandidateRetryWith) Code() int { + return 449 +} + func (o *PromoteCoordinatorCandidateRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateRetryWith %+v", 449, o.Payload) } + +func (o *PromoteCoordinatorCandidateRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote][%d] promoteCoordinatorCandidateRetryWith %+v", 449, o.Payload) +} + func (o *PromoteCoordinatorCandidateRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/put_config_store_option_parameters.go b/pkg/client/platform_infrastructure/put_config_store_option_parameters.go index ff610e2a..723c3191 100644 --- a/pkg/client/platform_infrastructure/put_config_store_option_parameters.go +++ b/pkg/client/platform_infrastructure/put_config_store_option_parameters.go @@ -71,10 +71,12 @@ func NewPutConfigStoreOptionParamsWithHTTPClient(client *http.Client) *PutConfig } } -/* PutConfigStoreOptionParams contains all the parameters to send to the API endpoint - for the put config store option operation. +/* +PutConfigStoreOptionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put config store option operation. + + Typically these are written to a http.Request. */ type PutConfigStoreOptionParams struct { diff --git a/pkg/client/platform_infrastructure/put_config_store_option_responses.go b/pkg/client/platform_infrastructure/put_config_store_option_responses.go index aaac4dd8..79fccb21 100644 --- a/pkg/client/platform_infrastructure/put_config_store_option_responses.go +++ b/pkg/client/platform_infrastructure/put_config_store_option_responses.go @@ -68,7 +68,8 @@ func NewPutConfigStoreOptionOK() *PutConfigStoreOptionOK { return &PutConfigStoreOptionOK{} } -/* PutConfigStoreOptionOK describes a response with status code 200, with default header values. +/* +PutConfigStoreOptionOK describes a response with status code 200, with default header values. Config Store Option retrieved successfully */ @@ -89,9 +90,44 @@ type PutConfigStoreOptionOK struct { Payload *models.ConfigStoreOption } +// IsSuccess returns true when this put config store option o k response has a 2xx status code +func (o *PutConfigStoreOptionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put config store option o k response has a 3xx status code +func (o *PutConfigStoreOptionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put config store option o k response has a 4xx status code +func (o *PutConfigStoreOptionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put config store option o k response has a 5xx status code +func (o *PutConfigStoreOptionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put config store option o k response a status code equal to that given +func (o *PutConfigStoreOptionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put config store option o k response +func (o *PutConfigStoreOptionOK) Code() int { + return 200 +} + func (o *PutConfigStoreOptionOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionOK %+v", 200, o.Payload) } + +func (o *PutConfigStoreOptionOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionOK %+v", 200, o.Payload) +} + func (o *PutConfigStoreOptionOK) GetPayload() *models.ConfigStoreOption { return o.Payload } @@ -134,7 +170,8 @@ func NewPutConfigStoreOptionNotFound() *PutConfigStoreOptionNotFound { return &PutConfigStoreOptionNotFound{} } -/* PutConfigStoreOptionNotFound describes a response with status code 404, with default header values. +/* +PutConfigStoreOptionNotFound describes a response with status code 404, with default header values. There was no existing data for the given Config Store Id. (code: `platform.config.store.not_found`) */ @@ -147,9 +184,44 @@ type PutConfigStoreOptionNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this put config store option not found response has a 2xx status code +func (o *PutConfigStoreOptionNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put config store option not found response has a 3xx status code +func (o *PutConfigStoreOptionNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put config store option not found response has a 4xx status code +func (o *PutConfigStoreOptionNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put config store option not found response has a 5xx status code +func (o *PutConfigStoreOptionNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put config store option not found response a status code equal to that given +func (o *PutConfigStoreOptionNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put config store option not found response +func (o *PutConfigStoreOptionNotFound) Code() int { + return 404 +} + func (o *PutConfigStoreOptionNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionNotFound %+v", 404, o.Payload) } + +func (o *PutConfigStoreOptionNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionNotFound %+v", 404, o.Payload) +} + func (o *PutConfigStoreOptionNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewPutConfigStoreOptionConflict() *PutConfigStoreOptionConflict { return &PutConfigStoreOptionConflict{} } -/* PutConfigStoreOptionConflict describes a response with status code 409, with default header values. +/* +PutConfigStoreOptionConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `platform.config.store.version_conflict`) */ @@ -191,9 +264,44 @@ type PutConfigStoreOptionConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this put config store option conflict response has a 2xx status code +func (o *PutConfigStoreOptionConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put config store option conflict response has a 3xx status code +func (o *PutConfigStoreOptionConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put config store option conflict response has a 4xx status code +func (o *PutConfigStoreOptionConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this put config store option conflict response has a 5xx status code +func (o *PutConfigStoreOptionConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this put config store option conflict response a status code equal to that given +func (o *PutConfigStoreOptionConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the put config store option conflict response +func (o *PutConfigStoreOptionConflict) Code() int { + return 409 +} + func (o *PutConfigStoreOptionConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionConflict %+v", 409, o.Payload) } + +func (o *PutConfigStoreOptionConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/store/{config_option_id}][%d] putConfigStoreOptionConflict %+v", 409, o.Payload) +} + func (o *PutConfigStoreOptionConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_allocator_parameters.go b/pkg/client/platform_infrastructure/resync_allocator_parameters.go index 8974e45d..6845db8d 100644 --- a/pkg/client/platform_infrastructure/resync_allocator_parameters.go +++ b/pkg/client/platform_infrastructure/resync_allocator_parameters.go @@ -69,10 +69,12 @@ func NewResyncAllocatorParamsWithHTTPClient(client *http.Client) *ResyncAllocato } } -/* ResyncAllocatorParams contains all the parameters to send to the API endpoint - for the resync allocator operation. +/* +ResyncAllocatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync allocator operation. + + Typically these are written to a http.Request. */ type ResyncAllocatorParams struct { diff --git a/pkg/client/platform_infrastructure/resync_allocator_responses.go b/pkg/client/platform_infrastructure/resync_allocator_responses.go index f02e34b4..b948fc00 100644 --- a/pkg/client/platform_infrastructure/resync_allocator_responses.go +++ b/pkg/client/platform_infrastructure/resync_allocator_responses.go @@ -68,7 +68,8 @@ func NewResyncAllocatorOK() *ResyncAllocatorOK { return &ResyncAllocatorOK{} } -/* ResyncAllocatorOK describes a response with status code 200, with default header values. +/* +ResyncAllocatorOK describes a response with status code 200, with default header values. The allocator resync operation executed successfully */ @@ -76,9 +77,44 @@ type ResyncAllocatorOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this resync allocator o k response has a 2xx status code +func (o *ResyncAllocatorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync allocator o k response has a 3xx status code +func (o *ResyncAllocatorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync allocator o k response has a 4xx status code +func (o *ResyncAllocatorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync allocator o k response has a 5xx status code +func (o *ResyncAllocatorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this resync allocator o k response a status code equal to that given +func (o *ResyncAllocatorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the resync allocator o k response +func (o *ResyncAllocatorOK) Code() int { + return 200 +} + func (o *ResyncAllocatorOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorOK %+v", 200, o.Payload) } + +func (o *ResyncAllocatorOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorOK %+v", 200, o.Payload) +} + func (o *ResyncAllocatorOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewResyncAllocatorRetryWith() *ResyncAllocatorRetryWith { return &ResyncAllocatorRetryWith{} } -/* ResyncAllocatorRetryWith describes a response with status code 449, with default header values. +/* +ResyncAllocatorRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -111,9 +148,44 @@ type ResyncAllocatorRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync allocator retry with response has a 2xx status code +func (o *ResyncAllocatorRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync allocator retry with response has a 3xx status code +func (o *ResyncAllocatorRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync allocator retry with response has a 4xx status code +func (o *ResyncAllocatorRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync allocator retry with response has a 5xx status code +func (o *ResyncAllocatorRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync allocator retry with response a status code equal to that given +func (o *ResyncAllocatorRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync allocator retry with response +func (o *ResyncAllocatorRetryWith) Code() int { + return 449 +} + func (o *ResyncAllocatorRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorRetryWith %+v", 449, o.Payload) } + +func (o *ResyncAllocatorRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorRetryWith %+v", 449, o.Payload) +} + func (o *ResyncAllocatorRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewResyncAllocatorInternalServerError() *ResyncAllocatorInternalServerError return &ResyncAllocatorInternalServerError{} } -/* ResyncAllocatorInternalServerError describes a response with status code 500, with default header values. +/* +ResyncAllocatorInternalServerError describes a response with status code 500, with default header values. The allocator resync operation failed for allocator {allocator_id}. (code: `allocators.resync_failed`) */ @@ -155,9 +228,44 @@ type ResyncAllocatorInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync allocator internal server error response has a 2xx status code +func (o *ResyncAllocatorInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync allocator internal server error response has a 3xx status code +func (o *ResyncAllocatorInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync allocator internal server error response has a 4xx status code +func (o *ResyncAllocatorInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync allocator internal server error response has a 5xx status code +func (o *ResyncAllocatorInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this resync allocator internal server error response a status code equal to that given +func (o *ResyncAllocatorInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the resync allocator internal server error response +func (o *ResyncAllocatorInternalServerError) Code() int { + return 500 +} + func (o *ResyncAllocatorInternalServerError) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorInternalServerError %+v", 500, o.Payload) } + +func (o *ResyncAllocatorInternalServerError) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/_resync][%d] resyncAllocatorInternalServerError %+v", 500, o.Payload) +} + func (o *ResyncAllocatorInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_allocators_parameters.go b/pkg/client/platform_infrastructure/resync_allocators_parameters.go index 5ec6e25c..8a6dadef 100644 --- a/pkg/client/platform_infrastructure/resync_allocators_parameters.go +++ b/pkg/client/platform_infrastructure/resync_allocators_parameters.go @@ -70,10 +70,12 @@ func NewResyncAllocatorsParamsWithHTTPClient(client *http.Client) *ResyncAllocat } } -/* ResyncAllocatorsParams contains all the parameters to send to the API endpoint - for the resync allocators operation. +/* +ResyncAllocatorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync allocators operation. + + Typically these are written to a http.Request. */ type ResyncAllocatorsParams struct { diff --git a/pkg/client/platform_infrastructure/resync_allocators_responses.go b/pkg/client/platform_infrastructure/resync_allocators_responses.go index dcfdedcf..5966e754 100644 --- a/pkg/client/platform_infrastructure/resync_allocators_responses.go +++ b/pkg/client/platform_infrastructure/resync_allocators_responses.go @@ -62,7 +62,8 @@ func NewResyncAllocatorsAccepted() *ResyncAllocatorsAccepted { return &ResyncAllocatorsAccepted{} } -/* ResyncAllocatorsAccepted describes a response with status code 202, with default header values. +/* +ResyncAllocatorsAccepted describes a response with status code 202, with default header values. The ids of documents, organized by model version, that will be synchronized. */ @@ -70,9 +71,44 @@ type ResyncAllocatorsAccepted struct { Payload *models.ModelVersionIndexSynchronizationResults } +// IsSuccess returns true when this resync allocators accepted response has a 2xx status code +func (o *ResyncAllocatorsAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync allocators accepted response has a 3xx status code +func (o *ResyncAllocatorsAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync allocators accepted response has a 4xx status code +func (o *ResyncAllocatorsAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync allocators accepted response has a 5xx status code +func (o *ResyncAllocatorsAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this resync allocators accepted response a status code equal to that given +func (o *ResyncAllocatorsAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the resync allocators accepted response +func (o *ResyncAllocatorsAccepted) Code() int { + return 202 +} + func (o *ResyncAllocatorsAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/_resync][%d] resyncAllocatorsAccepted %+v", 202, o.Payload) } + +func (o *ResyncAllocatorsAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/_resync][%d] resyncAllocatorsAccepted %+v", 202, o.Payload) +} + func (o *ResyncAllocatorsAccepted) GetPayload() *models.ModelVersionIndexSynchronizationResults { return o.Payload } @@ -94,7 +130,8 @@ func NewResyncAllocatorsRetryWith() *ResyncAllocatorsRetryWith { return &ResyncAllocatorsRetryWith{} } -/* ResyncAllocatorsRetryWith describes a response with status code 449, with default header values. +/* +ResyncAllocatorsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -107,9 +144,44 @@ type ResyncAllocatorsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync allocators retry with response has a 2xx status code +func (o *ResyncAllocatorsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync allocators retry with response has a 3xx status code +func (o *ResyncAllocatorsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync allocators retry with response has a 4xx status code +func (o *ResyncAllocatorsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync allocators retry with response has a 5xx status code +func (o *ResyncAllocatorsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync allocators retry with response a status code equal to that given +func (o *ResyncAllocatorsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync allocators retry with response +func (o *ResyncAllocatorsRetryWith) Code() int { + return 449 +} + func (o *ResyncAllocatorsRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/_resync][%d] resyncAllocatorsRetryWith %+v", 449, o.Payload) } + +func (o *ResyncAllocatorsRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/_resync][%d] resyncAllocatorsRetryWith %+v", 449, o.Payload) +} + func (o *ResyncAllocatorsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_constructor_parameters.go b/pkg/client/platform_infrastructure/resync_constructor_parameters.go index dca3764d..2f0601c4 100644 --- a/pkg/client/platform_infrastructure/resync_constructor_parameters.go +++ b/pkg/client/platform_infrastructure/resync_constructor_parameters.go @@ -69,10 +69,12 @@ func NewResyncConstructorParamsWithHTTPClient(client *http.Client) *ResyncConstr } } -/* ResyncConstructorParams contains all the parameters to send to the API endpoint - for the resync constructor operation. +/* +ResyncConstructorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync constructor operation. + + Typically these are written to a http.Request. */ type ResyncConstructorParams struct { diff --git a/pkg/client/platform_infrastructure/resync_constructor_responses.go b/pkg/client/platform_infrastructure/resync_constructor_responses.go index 26a1322e..c1f65665 100644 --- a/pkg/client/platform_infrastructure/resync_constructor_responses.go +++ b/pkg/client/platform_infrastructure/resync_constructor_responses.go @@ -68,7 +68,8 @@ func NewResyncConstructorOK() *ResyncConstructorOK { return &ResyncConstructorOK{} } -/* ResyncConstructorOK describes a response with status code 200, with default header values. +/* +ResyncConstructorOK describes a response with status code 200, with default header values. The constructor resync operation executed successfully */ @@ -76,9 +77,44 @@ type ResyncConstructorOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this resync constructor o k response has a 2xx status code +func (o *ResyncConstructorOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync constructor o k response has a 3xx status code +func (o *ResyncConstructorOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync constructor o k response has a 4xx status code +func (o *ResyncConstructorOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync constructor o k response has a 5xx status code +func (o *ResyncConstructorOK) IsServerError() bool { + return false +} + +// IsCode returns true when this resync constructor o k response a status code equal to that given +func (o *ResyncConstructorOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the resync constructor o k response +func (o *ResyncConstructorOK) Code() int { + return 200 +} + func (o *ResyncConstructorOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorOK %+v", 200, o.Payload) } + +func (o *ResyncConstructorOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorOK %+v", 200, o.Payload) +} + func (o *ResyncConstructorOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewResyncConstructorRetryWith() *ResyncConstructorRetryWith { return &ResyncConstructorRetryWith{} } -/* ResyncConstructorRetryWith describes a response with status code 449, with default header values. +/* +ResyncConstructorRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -111,9 +148,44 @@ type ResyncConstructorRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync constructor retry with response has a 2xx status code +func (o *ResyncConstructorRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync constructor retry with response has a 3xx status code +func (o *ResyncConstructorRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync constructor retry with response has a 4xx status code +func (o *ResyncConstructorRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync constructor retry with response has a 5xx status code +func (o *ResyncConstructorRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync constructor retry with response a status code equal to that given +func (o *ResyncConstructorRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync constructor retry with response +func (o *ResyncConstructorRetryWith) Code() int { + return 449 +} + func (o *ResyncConstructorRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorRetryWith %+v", 449, o.Payload) } + +func (o *ResyncConstructorRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorRetryWith %+v", 449, o.Payload) +} + func (o *ResyncConstructorRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewResyncConstructorInternalServerError() *ResyncConstructorInternalServerE return &ResyncConstructorInternalServerError{} } -/* ResyncConstructorInternalServerError describes a response with status code 500, with default header values. +/* +ResyncConstructorInternalServerError describes a response with status code 500, with default header values. The constructor resync operation failed for allocator {constructor_id}. (code: `constructors.resync_failed`) */ @@ -155,9 +228,44 @@ type ResyncConstructorInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync constructor internal server error response has a 2xx status code +func (o *ResyncConstructorInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync constructor internal server error response has a 3xx status code +func (o *ResyncConstructorInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync constructor internal server error response has a 4xx status code +func (o *ResyncConstructorInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync constructor internal server error response has a 5xx status code +func (o *ResyncConstructorInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this resync constructor internal server error response a status code equal to that given +func (o *ResyncConstructorInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the resync constructor internal server error response +func (o *ResyncConstructorInternalServerError) Code() int { + return 500 +} + func (o *ResyncConstructorInternalServerError) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorInternalServerError %+v", 500, o.Payload) } + +func (o *ResyncConstructorInternalServerError) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/_resync][%d] resyncConstructorInternalServerError %+v", 500, o.Payload) +} + func (o *ResyncConstructorInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_constructors_parameters.go b/pkg/client/platform_infrastructure/resync_constructors_parameters.go index 825d2252..bb45b44a 100644 --- a/pkg/client/platform_infrastructure/resync_constructors_parameters.go +++ b/pkg/client/platform_infrastructure/resync_constructors_parameters.go @@ -70,10 +70,12 @@ func NewResyncConstructorsParamsWithHTTPClient(client *http.Client) *ResyncConst } } -/* ResyncConstructorsParams contains all the parameters to send to the API endpoint - for the resync constructors operation. +/* +ResyncConstructorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync constructors operation. + + Typically these are written to a http.Request. */ type ResyncConstructorsParams struct { diff --git a/pkg/client/platform_infrastructure/resync_constructors_responses.go b/pkg/client/platform_infrastructure/resync_constructors_responses.go index aebc227f..c13364b5 100644 --- a/pkg/client/platform_infrastructure/resync_constructors_responses.go +++ b/pkg/client/platform_infrastructure/resync_constructors_responses.go @@ -62,7 +62,8 @@ func NewResyncConstructorsAccepted() *ResyncConstructorsAccepted { return &ResyncConstructorsAccepted{} } -/* ResyncConstructorsAccepted describes a response with status code 202, with default header values. +/* +ResyncConstructorsAccepted describes a response with status code 202, with default header values. The ids of documents, organized by model version, that will be synchronized. */ @@ -70,9 +71,44 @@ type ResyncConstructorsAccepted struct { Payload *models.ModelVersionIndexSynchronizationResults } +// IsSuccess returns true when this resync constructors accepted response has a 2xx status code +func (o *ResyncConstructorsAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync constructors accepted response has a 3xx status code +func (o *ResyncConstructorsAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync constructors accepted response has a 4xx status code +func (o *ResyncConstructorsAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync constructors accepted response has a 5xx status code +func (o *ResyncConstructorsAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this resync constructors accepted response a status code equal to that given +func (o *ResyncConstructorsAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the resync constructors accepted response +func (o *ResyncConstructorsAccepted) Code() int { + return 202 +} + func (o *ResyncConstructorsAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/_resync][%d] resyncConstructorsAccepted %+v", 202, o.Payload) } + +func (o *ResyncConstructorsAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/_resync][%d] resyncConstructorsAccepted %+v", 202, o.Payload) +} + func (o *ResyncConstructorsAccepted) GetPayload() *models.ModelVersionIndexSynchronizationResults { return o.Payload } @@ -94,7 +130,8 @@ func NewResyncConstructorsRetryWith() *ResyncConstructorsRetryWith { return &ResyncConstructorsRetryWith{} } -/* ResyncConstructorsRetryWith describes a response with status code 449, with default header values. +/* +ResyncConstructorsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -107,9 +144,44 @@ type ResyncConstructorsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync constructors retry with response has a 2xx status code +func (o *ResyncConstructorsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync constructors retry with response has a 3xx status code +func (o *ResyncConstructorsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync constructors retry with response has a 4xx status code +func (o *ResyncConstructorsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync constructors retry with response has a 5xx status code +func (o *ResyncConstructorsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync constructors retry with response a status code equal to that given +func (o *ResyncConstructorsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync constructors retry with response +func (o *ResyncConstructorsRetryWith) Code() int { + return 449 +} + func (o *ResyncConstructorsRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/_resync][%d] resyncConstructorsRetryWith %+v", 449, o.Payload) } + +func (o *ResyncConstructorsRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/_resync][%d] resyncConstructorsRetryWith %+v", 449, o.Payload) +} + func (o *ResyncConstructorsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_runner_parameters.go b/pkg/client/platform_infrastructure/resync_runner_parameters.go index f31b3185..a94f1755 100644 --- a/pkg/client/platform_infrastructure/resync_runner_parameters.go +++ b/pkg/client/platform_infrastructure/resync_runner_parameters.go @@ -69,10 +69,12 @@ func NewResyncRunnerParamsWithHTTPClient(client *http.Client) *ResyncRunnerParam } } -/* ResyncRunnerParams contains all the parameters to send to the API endpoint - for the resync runner operation. +/* +ResyncRunnerParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync runner operation. + + Typically these are written to a http.Request. */ type ResyncRunnerParams struct { diff --git a/pkg/client/platform_infrastructure/resync_runner_responses.go b/pkg/client/platform_infrastructure/resync_runner_responses.go index 3d0a0c0e..c1b39b35 100644 --- a/pkg/client/platform_infrastructure/resync_runner_responses.go +++ b/pkg/client/platform_infrastructure/resync_runner_responses.go @@ -68,7 +68,8 @@ func NewResyncRunnerOK() *ResyncRunnerOK { return &ResyncRunnerOK{} } -/* ResyncRunnerOK describes a response with status code 200, with default header values. +/* +ResyncRunnerOK describes a response with status code 200, with default header values. The runner resync operation executed successfully */ @@ -76,9 +77,44 @@ type ResyncRunnerOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this resync runner o k response has a 2xx status code +func (o *ResyncRunnerOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync runner o k response has a 3xx status code +func (o *ResyncRunnerOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync runner o k response has a 4xx status code +func (o *ResyncRunnerOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync runner o k response has a 5xx status code +func (o *ResyncRunnerOK) IsServerError() bool { + return false +} + +// IsCode returns true when this resync runner o k response a status code equal to that given +func (o *ResyncRunnerOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the resync runner o k response +func (o *ResyncRunnerOK) Code() int { + return 200 +} + func (o *ResyncRunnerOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerOK %+v", 200, o.Payload) } + +func (o *ResyncRunnerOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerOK %+v", 200, o.Payload) +} + func (o *ResyncRunnerOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewResyncRunnerRetryWith() *ResyncRunnerRetryWith { return &ResyncRunnerRetryWith{} } -/* ResyncRunnerRetryWith describes a response with status code 449, with default header values. +/* +ResyncRunnerRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -111,9 +148,44 @@ type ResyncRunnerRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync runner retry with response has a 2xx status code +func (o *ResyncRunnerRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync runner retry with response has a 3xx status code +func (o *ResyncRunnerRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync runner retry with response has a 4xx status code +func (o *ResyncRunnerRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync runner retry with response has a 5xx status code +func (o *ResyncRunnerRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync runner retry with response a status code equal to that given +func (o *ResyncRunnerRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync runner retry with response +func (o *ResyncRunnerRetryWith) Code() int { + return 449 +} + func (o *ResyncRunnerRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerRetryWith %+v", 449, o.Payload) } + +func (o *ResyncRunnerRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerRetryWith %+v", 449, o.Payload) +} + func (o *ResyncRunnerRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewResyncRunnerInternalServerError() *ResyncRunnerInternalServerError { return &ResyncRunnerInternalServerError{} } -/* ResyncRunnerInternalServerError describes a response with status code 500, with default header values. +/* +ResyncRunnerInternalServerError describes a response with status code 500, with default header values. The runner resync operation failed for runner {runner_id}. (code: `runners.resync_failed`) */ @@ -155,9 +228,44 @@ type ResyncRunnerInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync runner internal server error response has a 2xx status code +func (o *ResyncRunnerInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync runner internal server error response has a 3xx status code +func (o *ResyncRunnerInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync runner internal server error response has a 4xx status code +func (o *ResyncRunnerInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync runner internal server error response has a 5xx status code +func (o *ResyncRunnerInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this resync runner internal server error response a status code equal to that given +func (o *ResyncRunnerInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the resync runner internal server error response +func (o *ResyncRunnerInternalServerError) Code() int { + return 500 +} + func (o *ResyncRunnerInternalServerError) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerInternalServerError %+v", 500, o.Payload) } + +func (o *ResyncRunnerInternalServerError) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/{runner_id}/_resync][%d] resyncRunnerInternalServerError %+v", 500, o.Payload) +} + func (o *ResyncRunnerInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/resync_runners_parameters.go b/pkg/client/platform_infrastructure/resync_runners_parameters.go index ed574706..3224aa06 100644 --- a/pkg/client/platform_infrastructure/resync_runners_parameters.go +++ b/pkg/client/platform_infrastructure/resync_runners_parameters.go @@ -70,10 +70,12 @@ func NewResyncRunnersParamsWithHTTPClient(client *http.Client) *ResyncRunnersPar } } -/* ResyncRunnersParams contains all the parameters to send to the API endpoint - for the resync runners operation. +/* +ResyncRunnersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the resync runners operation. + + Typically these are written to a http.Request. */ type ResyncRunnersParams struct { diff --git a/pkg/client/platform_infrastructure/resync_runners_responses.go b/pkg/client/platform_infrastructure/resync_runners_responses.go index 1bc4223c..6a89b52d 100644 --- a/pkg/client/platform_infrastructure/resync_runners_responses.go +++ b/pkg/client/platform_infrastructure/resync_runners_responses.go @@ -62,7 +62,8 @@ func NewResyncRunnersAccepted() *ResyncRunnersAccepted { return &ResyncRunnersAccepted{} } -/* ResyncRunnersAccepted describes a response with status code 202, with default header values. +/* +ResyncRunnersAccepted describes a response with status code 202, with default header values. The ids of documents, organized by model version, that will be synchronized. */ @@ -70,9 +71,44 @@ type ResyncRunnersAccepted struct { Payload *models.ModelVersionIndexSynchronizationResults } +// IsSuccess returns true when this resync runners accepted response has a 2xx status code +func (o *ResyncRunnersAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this resync runners accepted response has a 3xx status code +func (o *ResyncRunnersAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync runners accepted response has a 4xx status code +func (o *ResyncRunnersAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this resync runners accepted response has a 5xx status code +func (o *ResyncRunnersAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this resync runners accepted response a status code equal to that given +func (o *ResyncRunnersAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the resync runners accepted response +func (o *ResyncRunnersAccepted) Code() int { + return 202 +} + func (o *ResyncRunnersAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/_resync][%d] resyncRunnersAccepted %+v", 202, o.Payload) } + +func (o *ResyncRunnersAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/_resync][%d] resyncRunnersAccepted %+v", 202, o.Payload) +} + func (o *ResyncRunnersAccepted) GetPayload() *models.ModelVersionIndexSynchronizationResults { return o.Payload } @@ -94,7 +130,8 @@ func NewResyncRunnersRetryWith() *ResyncRunnersRetryWith { return &ResyncRunnersRetryWith{} } -/* ResyncRunnersRetryWith describes a response with status code 449, with default header values. +/* +ResyncRunnersRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -107,9 +144,44 @@ type ResyncRunnersRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this resync runners retry with response has a 2xx status code +func (o *ResyncRunnersRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this resync runners retry with response has a 3xx status code +func (o *ResyncRunnersRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this resync runners retry with response has a 4xx status code +func (o *ResyncRunnersRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this resync runners retry with response has a 5xx status code +func (o *ResyncRunnersRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this resync runners retry with response a status code equal to that given +func (o *ResyncRunnersRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the resync runners retry with response +func (o *ResyncRunnersRetryWith) Code() int { + return 449 +} + func (o *ResyncRunnersRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/_resync][%d] resyncRunnersRetryWith %+v", 449, o.Payload) } + +func (o *ResyncRunnersRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/_resync][%d] resyncRunnersRetryWith %+v", 449, o.Payload) +} + func (o *ResyncRunnersRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/search_allocators_parameters.go b/pkg/client/platform_infrastructure/search_allocators_parameters.go index ddb6512b..06a8a506 100644 --- a/pkg/client/platform_infrastructure/search_allocators_parameters.go +++ b/pkg/client/platform_infrastructure/search_allocators_parameters.go @@ -71,10 +71,12 @@ func NewSearchAllocatorsParamsWithHTTPClient(client *http.Client) *SearchAllocat } } -/* SearchAllocatorsParams contains all the parameters to send to the API endpoint - for the search allocators operation. +/* +SearchAllocatorsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search allocators operation. + + Typically these are written to a http.Request. */ type SearchAllocatorsParams struct { diff --git a/pkg/client/platform_infrastructure/search_allocators_responses.go b/pkg/client/platform_infrastructure/search_allocators_responses.go index 3fe1d3ab..8b23362c 100644 --- a/pkg/client/platform_infrastructure/search_allocators_responses.go +++ b/pkg/client/platform_infrastructure/search_allocators_responses.go @@ -56,7 +56,8 @@ func NewSearchAllocatorsOK() *SearchAllocatorsOK { return &SearchAllocatorsOK{} } -/* SearchAllocatorsOK describes a response with status code 200, with default header values. +/* +SearchAllocatorsOK describes a response with status code 200, with default header values. An overview of allocators that matched the given search query */ @@ -64,9 +65,44 @@ type SearchAllocatorsOK struct { Payload *models.AllocatorOverview } +// IsSuccess returns true when this search allocators o k response has a 2xx status code +func (o *SearchAllocatorsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this search allocators o k response has a 3xx status code +func (o *SearchAllocatorsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search allocators o k response has a 4xx status code +func (o *SearchAllocatorsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this search allocators o k response has a 5xx status code +func (o *SearchAllocatorsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this search allocators o k response a status code equal to that given +func (o *SearchAllocatorsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the search allocators o k response +func (o *SearchAllocatorsOK) Code() int { + return 200 +} + func (o *SearchAllocatorsOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/_search][%d] searchAllocatorsOK %+v", 200, o.Payload) } + +func (o *SearchAllocatorsOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/_search][%d] searchAllocatorsOK %+v", 200, o.Payload) +} + func (o *SearchAllocatorsOK) GetPayload() *models.AllocatorOverview { return o.Payload } diff --git a/pkg/client/platform_infrastructure/search_runners_parameters.go b/pkg/client/platform_infrastructure/search_runners_parameters.go index de4ccda1..ba2599a5 100644 --- a/pkg/client/platform_infrastructure/search_runners_parameters.go +++ b/pkg/client/platform_infrastructure/search_runners_parameters.go @@ -71,10 +71,12 @@ func NewSearchRunnersParamsWithHTTPClient(client *http.Client) *SearchRunnersPar } } -/* SearchRunnersParams contains all the parameters to send to the API endpoint - for the search runners operation. +/* +SearchRunnersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search runners operation. + + Typically these are written to a http.Request. */ type SearchRunnersParams struct { diff --git a/pkg/client/platform_infrastructure/search_runners_responses.go b/pkg/client/platform_infrastructure/search_runners_responses.go index 69df7e12..eb7a2122 100644 --- a/pkg/client/platform_infrastructure/search_runners_responses.go +++ b/pkg/client/platform_infrastructure/search_runners_responses.go @@ -62,7 +62,8 @@ func NewSearchRunnersOK() *SearchRunnersOK { return &SearchRunnersOK{} } -/* SearchRunnersOK describes a response with status code 200, with default header values. +/* +SearchRunnersOK describes a response with status code 200, with default header values. An overview of runners that matched the given search query. */ @@ -70,9 +71,44 @@ type SearchRunnersOK struct { Payload *models.RunnerOverview } +// IsSuccess returns true when this search runners o k response has a 2xx status code +func (o *SearchRunnersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this search runners o k response has a 3xx status code +func (o *SearchRunnersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search runners o k response has a 4xx status code +func (o *SearchRunnersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this search runners o k response has a 5xx status code +func (o *SearchRunnersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this search runners o k response a status code equal to that given +func (o *SearchRunnersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the search runners o k response +func (o *SearchRunnersOK) Code() int { + return 200 +} + func (o *SearchRunnersOK) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/_search][%d] searchRunnersOK %+v", 200, o.Payload) } + +func (o *SearchRunnersOK) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/_search][%d] searchRunnersOK %+v", 200, o.Payload) +} + func (o *SearchRunnersOK) GetPayload() *models.RunnerOverview { return o.Payload } @@ -94,7 +130,8 @@ func NewSearchRunnersBadRequest() *SearchRunnersBadRequest { return &SearchRunnersBadRequest{} } -/* SearchRunnersBadRequest describes a response with status code 400, with default header values. +/* +SearchRunnersBadRequest describes a response with status code 400, with default header values. The search request failed. (code: `runners.search_failed`) */ @@ -107,9 +144,44 @@ type SearchRunnersBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this search runners bad request response has a 2xx status code +func (o *SearchRunnersBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this search runners bad request response has a 3xx status code +func (o *SearchRunnersBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this search runners bad request response has a 4xx status code +func (o *SearchRunnersBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this search runners bad request response has a 5xx status code +func (o *SearchRunnersBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this search runners bad request response a status code equal to that given +func (o *SearchRunnersBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the search runners bad request response +func (o *SearchRunnersBadRequest) Code() int { + return 400 +} + func (o *SearchRunnersBadRequest) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/runners/_search][%d] searchRunnersBadRequest %+v", 400, o.Payload) } + +func (o *SearchRunnersBadRequest) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/runners/_search][%d] searchRunnersBadRequest %+v", 400, o.Payload) +} + func (o *SearchRunnersBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_parameters.go b/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_parameters.go index 4db8efbf..62dd8480 100644 --- a/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetAdminconsoleLoggingSettingsParamsWithHTTPClient(client *http.Client) } } -/* SetAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - for the set adminconsole logging settings operation. +/* +SetAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set adminconsole logging settings operation. + + Typically these are written to a http.Request. */ type SetAdminconsoleLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_responses.go b/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_responses.go index 454a792c..09ee5973 100644 --- a/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_adminconsole_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewSetAdminconsoleLoggingSettingsOK() *SetAdminconsoleLoggingSettingsOK { return &SetAdminconsoleLoggingSettingsOK{} } -/* SetAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. +/* +SetAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the adminconsole instance */ @@ -83,9 +84,44 @@ type SetAdminconsoleLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this set adminconsole logging settings o k response has a 2xx status code +func (o *SetAdminconsoleLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set adminconsole logging settings o k response has a 3xx status code +func (o *SetAdminconsoleLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set adminconsole logging settings o k response has a 4xx status code +func (o *SetAdminconsoleLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set adminconsole logging settings o k response has a 5xx status code +func (o *SetAdminconsoleLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set adminconsole logging settings o k response a status code equal to that given +func (o *SetAdminconsoleLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set adminconsole logging settings o k response +func (o *SetAdminconsoleLoggingSettingsOK) Code() int { + return 200 +} + func (o *SetAdminconsoleLoggingSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] setAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *SetAdminconsoleLoggingSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] setAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *SetAdminconsoleLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewSetAdminconsoleLoggingSettingsNotFound() *SetAdminconsoleLoggingSettings return &SetAdminconsoleLoggingSettingsNotFound{} } -/* SetAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +SetAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type SetAdminconsoleLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set adminconsole logging settings not found response has a 2xx status code +func (o *SetAdminconsoleLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set adminconsole logging settings not found response has a 3xx status code +func (o *SetAdminconsoleLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set adminconsole logging settings not found response has a 4xx status code +func (o *SetAdminconsoleLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set adminconsole logging settings not found response has a 5xx status code +func (o *SetAdminconsoleLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set adminconsole logging settings not found response a status code equal to that given +func (o *SetAdminconsoleLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set adminconsole logging settings not found response +func (o *SetAdminconsoleLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *SetAdminconsoleLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] setAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *SetAdminconsoleLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] setAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *SetAdminconsoleLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_allocator_logging_settings_parameters.go b/pkg/client/platform_infrastructure/set_allocator_logging_settings_parameters.go index 525fcb85..63c8daae 100644 --- a/pkg/client/platform_infrastructure/set_allocator_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_allocator_logging_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetAllocatorLoggingSettingsParamsWithHTTPClient(client *http.Client) *Se } } -/* SetAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the set allocator logging settings operation. +/* +SetAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set allocator logging settings operation. + + Typically these are written to a http.Request. */ type SetAllocatorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_allocator_logging_settings_responses.go b/pkg/client/platform_infrastructure/set_allocator_logging_settings_responses.go index ce824a06..aac43222 100644 --- a/pkg/client/platform_infrastructure/set_allocator_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_allocator_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewSetAllocatorLoggingSettingsOK() *SetAllocatorLoggingSettingsOK { return &SetAllocatorLoggingSettingsOK{} } -/* SetAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +SetAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the allocator instance */ @@ -83,9 +84,44 @@ type SetAllocatorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this set allocator logging settings o k response has a 2xx status code +func (o *SetAllocatorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set allocator logging settings o k response has a 3xx status code +func (o *SetAllocatorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator logging settings o k response has a 4xx status code +func (o *SetAllocatorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set allocator logging settings o k response has a 5xx status code +func (o *SetAllocatorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator logging settings o k response a status code equal to that given +func (o *SetAllocatorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set allocator logging settings o k response +func (o *SetAllocatorLoggingSettingsOK) Code() int { + return 200 +} + func (o *SetAllocatorLoggingSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] setAllocatorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *SetAllocatorLoggingSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] setAllocatorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *SetAllocatorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewSetAllocatorLoggingSettingsNotFound() *SetAllocatorLoggingSettingsNotFou return &SetAllocatorLoggingSettingsNotFound{} } -/* SetAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +SetAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type SetAllocatorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator logging settings not found response has a 2xx status code +func (o *SetAllocatorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator logging settings not found response has a 3xx status code +func (o *SetAllocatorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator logging settings not found response has a 4xx status code +func (o *SetAllocatorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator logging settings not found response has a 5xx status code +func (o *SetAllocatorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator logging settings not found response a status code equal to that given +func (o *SetAllocatorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set allocator logging settings not found response +func (o *SetAllocatorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *SetAllocatorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] setAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *SetAllocatorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] setAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *SetAllocatorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_allocator_metadata_item_parameters.go b/pkg/client/platform_infrastructure/set_allocator_metadata_item_parameters.go index 98a67e5f..11833ac1 100644 --- a/pkg/client/platform_infrastructure/set_allocator_metadata_item_parameters.go +++ b/pkg/client/platform_infrastructure/set_allocator_metadata_item_parameters.go @@ -71,10 +71,12 @@ func NewSetAllocatorMetadataItemParamsWithHTTPClient(client *http.Client) *SetAl } } -/* SetAllocatorMetadataItemParams contains all the parameters to send to the API endpoint - for the set allocator metadata item operation. +/* +SetAllocatorMetadataItemParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set allocator metadata item operation. + + Typically these are written to a http.Request. */ type SetAllocatorMetadataItemParams struct { diff --git a/pkg/client/platform_infrastructure/set_allocator_metadata_item_responses.go b/pkg/client/platform_infrastructure/set_allocator_metadata_item_responses.go index 9e8c7a11..66d3d141 100644 --- a/pkg/client/platform_infrastructure/set_allocator_metadata_item_responses.go +++ b/pkg/client/platform_infrastructure/set_allocator_metadata_item_responses.go @@ -74,7 +74,8 @@ func NewSetAllocatorMetadataItemOK() *SetAllocatorMetadataItemOK { return &SetAllocatorMetadataItemOK{} } -/* SetAllocatorMetadataItemOK describes a response with status code 200, with default header values. +/* +SetAllocatorMetadataItemOK describes a response with status code 200, with default header values. The allocator metadata was successfully changed (the updated JSON is returned) */ @@ -82,9 +83,44 @@ type SetAllocatorMetadataItemOK struct { Payload []*models.MetadataItem } +// IsSuccess returns true when this set allocator metadata item o k response has a 2xx status code +func (o *SetAllocatorMetadataItemOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set allocator metadata item o k response has a 3xx status code +func (o *SetAllocatorMetadataItemOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata item o k response has a 4xx status code +func (o *SetAllocatorMetadataItemOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set allocator metadata item o k response has a 5xx status code +func (o *SetAllocatorMetadataItemOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata item o k response a status code equal to that given +func (o *SetAllocatorMetadataItemOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set allocator metadata item o k response +func (o *SetAllocatorMetadataItemOK) Code() int { + return 200 +} + func (o *SetAllocatorMetadataItemOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemOK %+v", 200, o.Payload) } + +func (o *SetAllocatorMetadataItemOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemOK %+v", 200, o.Payload) +} + func (o *SetAllocatorMetadataItemOK) GetPayload() []*models.MetadataItem { return o.Payload } @@ -104,7 +140,8 @@ func NewSetAllocatorMetadataItemBadRequest() *SetAllocatorMetadataItemBadRequest return &SetAllocatorMetadataItemBadRequest{} } -/* SetAllocatorMetadataItemBadRequest describes a response with status code 400, with default header values. +/* +SetAllocatorMetadataItemBadRequest describes a response with status code 400, with default header values. The value specified for the metadata tag is empty. (code: `allocators.invalid_empty_metadata_item`) */ @@ -117,9 +154,44 @@ type SetAllocatorMetadataItemBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata item bad request response has a 2xx status code +func (o *SetAllocatorMetadataItemBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata item bad request response has a 3xx status code +func (o *SetAllocatorMetadataItemBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata item bad request response has a 4xx status code +func (o *SetAllocatorMetadataItemBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata item bad request response has a 5xx status code +func (o *SetAllocatorMetadataItemBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata item bad request response a status code equal to that given +func (o *SetAllocatorMetadataItemBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set allocator metadata item bad request response +func (o *SetAllocatorMetadataItemBadRequest) Code() int { + return 400 +} + func (o *SetAllocatorMetadataItemBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemBadRequest %+v", 400, o.Payload) } + +func (o *SetAllocatorMetadataItemBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemBadRequest %+v", 400, o.Payload) +} + func (o *SetAllocatorMetadataItemBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,9 +220,11 @@ func NewSetAllocatorMetadataItemNotFound() *SetAllocatorMetadataItemNotFound { return &SetAllocatorMetadataItemNotFound{} } -/* SetAllocatorMetadataItemNotFound describes a response with status code 404, with default header values. +/* + SetAllocatorMetadataItemNotFound describes a response with status code 404, with default header values. + + * The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) - * The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) * The metadata item specified by {key} cannot be found. (code: `allocators.metadata_item_not_found`) */ type SetAllocatorMetadataItemNotFound struct { @@ -162,9 +236,44 @@ type SetAllocatorMetadataItemNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata item not found response has a 2xx status code +func (o *SetAllocatorMetadataItemNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata item not found response has a 3xx status code +func (o *SetAllocatorMetadataItemNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata item not found response has a 4xx status code +func (o *SetAllocatorMetadataItemNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata item not found response has a 5xx status code +func (o *SetAllocatorMetadataItemNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata item not found response a status code equal to that given +func (o *SetAllocatorMetadataItemNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set allocator metadata item not found response +func (o *SetAllocatorMetadataItemNotFound) Code() int { + return 404 +} + func (o *SetAllocatorMetadataItemNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemNotFound %+v", 404, o.Payload) } + +func (o *SetAllocatorMetadataItemNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemNotFound %+v", 404, o.Payload) +} + func (o *SetAllocatorMetadataItemNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -193,7 +302,8 @@ func NewSetAllocatorMetadataItemRetryWith() *SetAllocatorMetadataItemRetryWith { return &SetAllocatorMetadataItemRetryWith{} } -/* SetAllocatorMetadataItemRetryWith describes a response with status code 449, with default header values. +/* +SetAllocatorMetadataItemRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -206,9 +316,44 @@ type SetAllocatorMetadataItemRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata item retry with response has a 2xx status code +func (o *SetAllocatorMetadataItemRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata item retry with response has a 3xx status code +func (o *SetAllocatorMetadataItemRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata item retry with response has a 4xx status code +func (o *SetAllocatorMetadataItemRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata item retry with response has a 5xx status code +func (o *SetAllocatorMetadataItemRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata item retry with response a status code equal to that given +func (o *SetAllocatorMetadataItemRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set allocator metadata item retry with response +func (o *SetAllocatorMetadataItemRetryWith) Code() int { + return 449 +} + func (o *SetAllocatorMetadataItemRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemRetryWith %+v", 449, o.Payload) } + +func (o *SetAllocatorMetadataItemRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata/{key}][%d] setAllocatorMetadataItemRetryWith %+v", 449, o.Payload) +} + func (o *SetAllocatorMetadataItemRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_allocator_metadata_parameters.go b/pkg/client/platform_infrastructure/set_allocator_metadata_parameters.go index ebadc2cc..90a73f2f 100644 --- a/pkg/client/platform_infrastructure/set_allocator_metadata_parameters.go +++ b/pkg/client/platform_infrastructure/set_allocator_metadata_parameters.go @@ -71,10 +71,12 @@ func NewSetAllocatorMetadataParamsWithHTTPClient(client *http.Client) *SetAlloca } } -/* SetAllocatorMetadataParams contains all the parameters to send to the API endpoint - for the set allocator metadata operation. +/* +SetAllocatorMetadataParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set allocator metadata operation. + + Typically these are written to a http.Request. */ type SetAllocatorMetadataParams struct { diff --git a/pkg/client/platform_infrastructure/set_allocator_metadata_responses.go b/pkg/client/platform_infrastructure/set_allocator_metadata_responses.go index 88e08ecb..78b194a1 100644 --- a/pkg/client/platform_infrastructure/set_allocator_metadata_responses.go +++ b/pkg/client/platform_infrastructure/set_allocator_metadata_responses.go @@ -74,7 +74,8 @@ func NewSetAllocatorMetadataOK() *SetAllocatorMetadataOK { return &SetAllocatorMetadataOK{} } -/* SetAllocatorMetadataOK describes a response with status code 200, with default header values. +/* +SetAllocatorMetadataOK describes a response with status code 200, with default header values. The allocator metadata was successfully changed (the updated JSON is returned) */ @@ -82,9 +83,44 @@ type SetAllocatorMetadataOK struct { Payload []*models.MetadataItem } +// IsSuccess returns true when this set allocator metadata o k response has a 2xx status code +func (o *SetAllocatorMetadataOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set allocator metadata o k response has a 3xx status code +func (o *SetAllocatorMetadataOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata o k response has a 4xx status code +func (o *SetAllocatorMetadataOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set allocator metadata o k response has a 5xx status code +func (o *SetAllocatorMetadataOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata o k response a status code equal to that given +func (o *SetAllocatorMetadataOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set allocator metadata o k response +func (o *SetAllocatorMetadataOK) Code() int { + return 200 +} + func (o *SetAllocatorMetadataOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataOK %+v", 200, o.Payload) } + +func (o *SetAllocatorMetadataOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataOK %+v", 200, o.Payload) +} + func (o *SetAllocatorMetadataOK) GetPayload() []*models.MetadataItem { return o.Payload } @@ -104,7 +140,8 @@ func NewSetAllocatorMetadataBadRequest() *SetAllocatorMetadataBadRequest { return &SetAllocatorMetadataBadRequest{} } -/* SetAllocatorMetadataBadRequest describes a response with status code 400, with default header values. +/* +SetAllocatorMetadataBadRequest describes a response with status code 400, with default header values. The value specified is empty for at least one of the metadata tags. (code: `allocators.invalid_empty_metadata_items`) */ @@ -117,9 +154,44 @@ type SetAllocatorMetadataBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata bad request response has a 2xx status code +func (o *SetAllocatorMetadataBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata bad request response has a 3xx status code +func (o *SetAllocatorMetadataBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata bad request response has a 4xx status code +func (o *SetAllocatorMetadataBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata bad request response has a 5xx status code +func (o *SetAllocatorMetadataBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata bad request response a status code equal to that given +func (o *SetAllocatorMetadataBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set allocator metadata bad request response +func (o *SetAllocatorMetadataBadRequest) Code() int { + return 400 +} + func (o *SetAllocatorMetadataBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataBadRequest %+v", 400, o.Payload) } + +func (o *SetAllocatorMetadataBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataBadRequest %+v", 400, o.Payload) +} + func (o *SetAllocatorMetadataBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewSetAllocatorMetadataNotFound() *SetAllocatorMetadataNotFound { return &SetAllocatorMetadataNotFound{} } -/* SetAllocatorMetadataNotFound describes a response with status code 404, with default header values. +/* +SetAllocatorMetadataNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -161,9 +234,44 @@ type SetAllocatorMetadataNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata not found response has a 2xx status code +func (o *SetAllocatorMetadataNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata not found response has a 3xx status code +func (o *SetAllocatorMetadataNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata not found response has a 4xx status code +func (o *SetAllocatorMetadataNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata not found response has a 5xx status code +func (o *SetAllocatorMetadataNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata not found response a status code equal to that given +func (o *SetAllocatorMetadataNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set allocator metadata not found response +func (o *SetAllocatorMetadataNotFound) Code() int { + return 404 +} + func (o *SetAllocatorMetadataNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataNotFound %+v", 404, o.Payload) } + +func (o *SetAllocatorMetadataNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataNotFound %+v", 404, o.Payload) +} + func (o *SetAllocatorMetadataNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewSetAllocatorMetadataRetryWith() *SetAllocatorMetadataRetryWith { return &SetAllocatorMetadataRetryWith{} } -/* SetAllocatorMetadataRetryWith describes a response with status code 449, with default header values. +/* +SetAllocatorMetadataRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type SetAllocatorMetadataRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator metadata retry with response has a 2xx status code +func (o *SetAllocatorMetadataRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator metadata retry with response has a 3xx status code +func (o *SetAllocatorMetadataRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator metadata retry with response has a 4xx status code +func (o *SetAllocatorMetadataRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator metadata retry with response has a 5xx status code +func (o *SetAllocatorMetadataRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator metadata retry with response a status code equal to that given +func (o *SetAllocatorMetadataRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set allocator metadata retry with response +func (o *SetAllocatorMetadataRetryWith) Code() int { + return 449 +} + func (o *SetAllocatorMetadataRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataRetryWith %+v", 449, o.Payload) } + +func (o *SetAllocatorMetadataRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/metadata][%d] setAllocatorMetadataRetryWith %+v", 449, o.Payload) +} + func (o *SetAllocatorMetadataRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_allocator_settings_parameters.go b/pkg/client/platform_infrastructure/set_allocator_settings_parameters.go index e1e22d86..54a15191 100644 --- a/pkg/client/platform_infrastructure/set_allocator_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_allocator_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetAllocatorSettingsParamsWithHTTPClient(client *http.Client) *SetAlloca } } -/* SetAllocatorSettingsParams contains all the parameters to send to the API endpoint - for the set allocator settings operation. +/* +SetAllocatorSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set allocator settings operation. + + Typically these are written to a http.Request. */ type SetAllocatorSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_allocator_settings_responses.go b/pkg/client/platform_infrastructure/set_allocator_settings_responses.go index cf3beeff..436b36da 100644 --- a/pkg/client/platform_infrastructure/set_allocator_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_allocator_settings_responses.go @@ -68,7 +68,8 @@ func NewSetAllocatorSettingsOK() *SetAllocatorSettingsOK { return &SetAllocatorSettingsOK{} } -/* SetAllocatorSettingsOK describes a response with status code 200, with default header values. +/* +SetAllocatorSettingsOK describes a response with status code 200, with default header values. Returns the updated settings for the specified allocator */ @@ -76,9 +77,44 @@ type SetAllocatorSettingsOK struct { Payload *models.AllocatorSettings } +// IsSuccess returns true when this set allocator settings o k response has a 2xx status code +func (o *SetAllocatorSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set allocator settings o k response has a 3xx status code +func (o *SetAllocatorSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator settings o k response has a 4xx status code +func (o *SetAllocatorSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set allocator settings o k response has a 5xx status code +func (o *SetAllocatorSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator settings o k response a status code equal to that given +func (o *SetAllocatorSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set allocator settings o k response +func (o *SetAllocatorSettingsOK) Code() int { + return 200 +} + func (o *SetAllocatorSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsOK %+v", 200, o.Payload) } + +func (o *SetAllocatorSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsOK %+v", 200, o.Payload) +} + func (o *SetAllocatorSettingsOK) GetPayload() *models.AllocatorSettings { return o.Payload } @@ -100,7 +136,8 @@ func NewSetAllocatorSettingsNotFound() *SetAllocatorSettingsNotFound { return &SetAllocatorSettingsNotFound{} } -/* SetAllocatorSettingsNotFound describes a response with status code 404, with default header values. +/* +SetAllocatorSettingsNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -113,9 +150,44 @@ type SetAllocatorSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator settings not found response has a 2xx status code +func (o *SetAllocatorSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator settings not found response has a 3xx status code +func (o *SetAllocatorSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator settings not found response has a 4xx status code +func (o *SetAllocatorSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator settings not found response has a 5xx status code +func (o *SetAllocatorSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator settings not found response a status code equal to that given +func (o *SetAllocatorSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set allocator settings not found response +func (o *SetAllocatorSettingsNotFound) Code() int { + return 404 +} + func (o *SetAllocatorSettingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsNotFound %+v", 404, o.Payload) } + +func (o *SetAllocatorSettingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsNotFound %+v", 404, o.Payload) +} + func (o *SetAllocatorSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewSetAllocatorSettingsRetryWith() *SetAllocatorSettingsRetryWith { return &SetAllocatorSettingsRetryWith{} } -/* SetAllocatorSettingsRetryWith describes a response with status code 449, with default header values. +/* +SetAllocatorSettingsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type SetAllocatorSettingsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set allocator settings retry with response has a 2xx status code +func (o *SetAllocatorSettingsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set allocator settings retry with response has a 3xx status code +func (o *SetAllocatorSettingsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set allocator settings retry with response has a 4xx status code +func (o *SetAllocatorSettingsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set allocator settings retry with response has a 5xx status code +func (o *SetAllocatorSettingsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set allocator settings retry with response a status code equal to that given +func (o *SetAllocatorSettingsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set allocator settings retry with response +func (o *SetAllocatorSettingsRetryWith) Code() int { + return 449 +} + func (o *SetAllocatorSettingsRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsRetryWith %+v", 449, o.Payload) } + +func (o *SetAllocatorSettingsRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/allocators/{allocator_id}/settings][%d] setAllocatorSettingsRetryWith %+v", 449, o.Payload) +} + func (o *SetAllocatorSettingsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_api_base_url_parameters.go b/pkg/client/platform_infrastructure/set_api_base_url_parameters.go index c0baa830..6c21b288 100644 --- a/pkg/client/platform_infrastructure/set_api_base_url_parameters.go +++ b/pkg/client/platform_infrastructure/set_api_base_url_parameters.go @@ -72,10 +72,12 @@ func NewSetAPIBaseURLParamsWithHTTPClient(client *http.Client) *SetAPIBaseURLPar } } -/* SetAPIBaseURLParams contains all the parameters to send to the API endpoint - for the set api base url operation. +/* +SetAPIBaseURLParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set api base url operation. + + Typically these are written to a http.Request. */ type SetAPIBaseURLParams struct { diff --git a/pkg/client/platform_infrastructure/set_api_base_url_responses.go b/pkg/client/platform_infrastructure/set_api_base_url_responses.go index fd0aa1ca..749a75da 100644 --- a/pkg/client/platform_infrastructure/set_api_base_url_responses.go +++ b/pkg/client/platform_infrastructure/set_api_base_url_responses.go @@ -80,7 +80,8 @@ func NewSetAPIBaseURLOK() *SetAPIBaseURLOK { return &SetAPIBaseURLOK{} } -/* SetAPIBaseURLOK describes a response with status code 200, with default header values. +/* +SetAPIBaseURLOK describes a response with status code 200, with default header values. The API base Url was successfully saved. */ @@ -101,9 +102,44 @@ type SetAPIBaseURLOK struct { Payload *models.APIBaseURLData } +// IsSuccess returns true when this set Api base Url o k response has a 2xx status code +func (o *SetAPIBaseURLOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set Api base Url o k response has a 3xx status code +func (o *SetAPIBaseURLOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Api base Url o k response has a 4xx status code +func (o *SetAPIBaseURLOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set Api base Url o k response has a 5xx status code +func (o *SetAPIBaseURLOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set Api base Url o k response a status code equal to that given +func (o *SetAPIBaseURLOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set Api base Url o k response +func (o *SetAPIBaseURLOK) Code() int { + return 200 +} + func (o *SetAPIBaseURLOK) Error() string { return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlOK %+v", 200, o.Payload) } + +func (o *SetAPIBaseURLOK) String() string { + return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlOK %+v", 200, o.Payload) +} + func (o *SetAPIBaseURLOK) GetPayload() *models.APIBaseURLData { return o.Payload } @@ -146,7 +182,8 @@ func NewSetAPIBaseURLBadRequest() *SetAPIBaseURLBadRequest { return &SetAPIBaseURLBadRequest{} } -/* SetAPIBaseURLBadRequest describes a response with status code 400, with default header values. +/* +SetAPIBaseURLBadRequest describes a response with status code 400, with default header values. The optimistic locking version format was wrong. (code: `adminconsole.base_url.bad_version_format`) */ @@ -159,9 +196,44 @@ type SetAPIBaseURLBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set Api base Url bad request response has a 2xx status code +func (o *SetAPIBaseURLBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set Api base Url bad request response has a 3xx status code +func (o *SetAPIBaseURLBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Api base Url bad request response has a 4xx status code +func (o *SetAPIBaseURLBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set Api base Url bad request response has a 5xx status code +func (o *SetAPIBaseURLBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set Api base Url bad request response a status code equal to that given +func (o *SetAPIBaseURLBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set Api base Url bad request response +func (o *SetAPIBaseURLBadRequest) Code() int { + return 400 +} + func (o *SetAPIBaseURLBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlBadRequest %+v", 400, o.Payload) } + +func (o *SetAPIBaseURLBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlBadRequest %+v", 400, o.Payload) +} + func (o *SetAPIBaseURLBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -190,7 +262,8 @@ func NewSetAPIBaseURLNotFound() *SetAPIBaseURLNotFound { return &SetAPIBaseURLNotFound{} } -/* SetAPIBaseURLNotFound describes a response with status code 404, with default header values. +/* +SetAPIBaseURLNotFound describes a response with status code 404, with default header values. There is no configured API base value but optimistic locking was sent. (code: `adminconsole.base_url.not_found`) */ @@ -203,9 +276,44 @@ type SetAPIBaseURLNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set Api base Url not found response has a 2xx status code +func (o *SetAPIBaseURLNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set Api base Url not found response has a 3xx status code +func (o *SetAPIBaseURLNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Api base Url not found response has a 4xx status code +func (o *SetAPIBaseURLNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set Api base Url not found response has a 5xx status code +func (o *SetAPIBaseURLNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set Api base Url not found response a status code equal to that given +func (o *SetAPIBaseURLNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set Api base Url not found response +func (o *SetAPIBaseURLNotFound) Code() int { + return 404 +} + func (o *SetAPIBaseURLNotFound) Error() string { return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlNotFound %+v", 404, o.Payload) } + +func (o *SetAPIBaseURLNotFound) String() string { + return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlNotFound %+v", 404, o.Payload) +} + func (o *SetAPIBaseURLNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -234,7 +342,8 @@ func NewSetAPIBaseURLConflict() *SetAPIBaseURLConflict { return &SetAPIBaseURLConflict{} } -/* SetAPIBaseURLConflict describes a response with status code 409, with default header values. +/* +SetAPIBaseURLConflict describes a response with status code 409, with default header values. There was an optimistic locking version conflict. (code: `adminconsole.base_url.version_conflict`) */ @@ -247,9 +356,44 @@ type SetAPIBaseURLConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set Api base Url conflict response has a 2xx status code +func (o *SetAPIBaseURLConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set Api base Url conflict response has a 3xx status code +func (o *SetAPIBaseURLConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Api base Url conflict response has a 4xx status code +func (o *SetAPIBaseURLConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set Api base Url conflict response has a 5xx status code +func (o *SetAPIBaseURLConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set Api base Url conflict response a status code equal to that given +func (o *SetAPIBaseURLConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set Api base Url conflict response +func (o *SetAPIBaseURLConflict) Code() int { + return 409 +} + func (o *SetAPIBaseURLConflict) Error() string { return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlConflict %+v", 409, o.Payload) } + +func (o *SetAPIBaseURLConflict) String() string { + return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlConflict %+v", 409, o.Payload) +} + func (o *SetAPIBaseURLConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -278,7 +422,8 @@ func NewSetAPIBaseURLPreconditionFailed() *SetAPIBaseURLPreconditionFailed { return &SetAPIBaseURLPreconditionFailed{} } -/* SetAPIBaseURLPreconditionFailed describes a response with status code 412, with default header values. +/* +SetAPIBaseURLPreconditionFailed describes a response with status code 412, with default header values. skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`) */ @@ -291,9 +436,44 @@ type SetAPIBaseURLPreconditionFailed struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set Api base Url precondition failed response has a 2xx status code +func (o *SetAPIBaseURLPreconditionFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set Api base Url precondition failed response has a 3xx status code +func (o *SetAPIBaseURLPreconditionFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set Api base Url precondition failed response has a 4xx status code +func (o *SetAPIBaseURLPreconditionFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this set Api base Url precondition failed response has a 5xx status code +func (o *SetAPIBaseURLPreconditionFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this set Api base Url precondition failed response a status code equal to that given +func (o *SetAPIBaseURLPreconditionFailed) IsCode(code int) bool { + return code == 412 +} + +// Code gets the status code for the set Api base Url precondition failed response +func (o *SetAPIBaseURLPreconditionFailed) Code() int { + return 412 +} + func (o *SetAPIBaseURLPreconditionFailed) Error() string { return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlPreconditionFailed %+v", 412, o.Payload) } + +func (o *SetAPIBaseURLPreconditionFailed) String() string { + return fmt.Sprintf("[PUT /platform/configuration/api_base_url][%d] setApiBaseUrlPreconditionFailed %+v", 412, o.Payload) +} + func (o *SetAPIBaseURLPreconditionFailed) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_blueprinter_blessings_parameters.go b/pkg/client/platform_infrastructure/set_blueprinter_blessings_parameters.go index 651a1fe0..cd7fd214 100644 --- a/pkg/client/platform_infrastructure/set_blueprinter_blessings_parameters.go +++ b/pkg/client/platform_infrastructure/set_blueprinter_blessings_parameters.go @@ -72,10 +72,12 @@ func NewSetBlueprinterBlessingsParamsWithHTTPClient(client *http.Client) *SetBlu } } -/* SetBlueprinterBlessingsParams contains all the parameters to send to the API endpoint - for the set blueprinter blessings operation. +/* +SetBlueprinterBlessingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set blueprinter blessings operation. + + Typically these are written to a http.Request. */ type SetBlueprinterBlessingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_blueprinter_blessings_responses.go b/pkg/client/platform_infrastructure/set_blueprinter_blessings_responses.go index 3948d910..30275ea9 100644 --- a/pkg/client/platform_infrastructure/set_blueprinter_blessings_responses.go +++ b/pkg/client/platform_infrastructure/set_blueprinter_blessings_responses.go @@ -68,7 +68,8 @@ func NewSetBlueprinterBlessingsOK() *SetBlueprinterBlessingsOK { return &SetBlueprinterBlessingsOK{} } -/* SetBlueprinterBlessingsOK describes a response with status code 200, with default header values. +/* +SetBlueprinterBlessingsOK describes a response with status code 200, with default header values. The blessings were successfully set. */ @@ -76,9 +77,44 @@ type SetBlueprinterBlessingsOK struct { Payload *models.RoleAggregate } +// IsSuccess returns true when this set blueprinter blessings o k response has a 2xx status code +func (o *SetBlueprinterBlessingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set blueprinter blessings o k response has a 3xx status code +func (o *SetBlueprinterBlessingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set blueprinter blessings o k response has a 4xx status code +func (o *SetBlueprinterBlessingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set blueprinter blessings o k response has a 5xx status code +func (o *SetBlueprinterBlessingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set blueprinter blessings o k response a status code equal to that given +func (o *SetBlueprinterBlessingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set blueprinter blessings o k response +func (o *SetBlueprinterBlessingsOK) Code() int { + return 200 +} + func (o *SetBlueprinterBlessingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsOK %+v", 200, o.Payload) } + +func (o *SetBlueprinterBlessingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsOK %+v", 200, o.Payload) +} + func (o *SetBlueprinterBlessingsOK) GetPayload() *models.RoleAggregate { return o.Payload } @@ -100,7 +136,8 @@ func NewSetBlueprinterBlessingsNotFound() *SetBlueprinterBlessingsNotFound { return &SetBlueprinterBlessingsNotFound{} } -/* SetBlueprinterBlessingsNotFound describes a response with status code 404, with default header values. +/* +SetBlueprinterBlessingsNotFound describes a response with status code 404, with default header values. The role can't be found. (code: `roles.not_found`) */ @@ -113,9 +150,44 @@ type SetBlueprinterBlessingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set blueprinter blessings not found response has a 2xx status code +func (o *SetBlueprinterBlessingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set blueprinter blessings not found response has a 3xx status code +func (o *SetBlueprinterBlessingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set blueprinter blessings not found response has a 4xx status code +func (o *SetBlueprinterBlessingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set blueprinter blessings not found response has a 5xx status code +func (o *SetBlueprinterBlessingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set blueprinter blessings not found response a status code equal to that given +func (o *SetBlueprinterBlessingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set blueprinter blessings not found response +func (o *SetBlueprinterBlessingsNotFound) Code() int { + return 404 +} + func (o *SetBlueprinterBlessingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsNotFound %+v", 404, o.Payload) } + +func (o *SetBlueprinterBlessingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsNotFound %+v", 404, o.Payload) +} + func (o *SetBlueprinterBlessingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewSetBlueprinterBlessingsConflict() *SetBlueprinterBlessingsConflict { return &SetBlueprinterBlessingsConflict{} } -/* SetBlueprinterBlessingsConflict describes a response with status code 409, with default header values. +/* +SetBlueprinterBlessingsConflict describes a response with status code 409, with default header values. Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`) */ @@ -157,9 +230,44 @@ type SetBlueprinterBlessingsConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set blueprinter blessings conflict response has a 2xx status code +func (o *SetBlueprinterBlessingsConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set blueprinter blessings conflict response has a 3xx status code +func (o *SetBlueprinterBlessingsConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set blueprinter blessings conflict response has a 4xx status code +func (o *SetBlueprinterBlessingsConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set blueprinter blessings conflict response has a 5xx status code +func (o *SetBlueprinterBlessingsConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set blueprinter blessings conflict response a status code equal to that given +func (o *SetBlueprinterBlessingsConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set blueprinter blessings conflict response +func (o *SetBlueprinterBlessingsConflict) Code() int { + return 409 +} + func (o *SetBlueprinterBlessingsConflict) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsConflict %+v", 409, o.Payload) } + +func (o *SetBlueprinterBlessingsConflict) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings][%d] setBlueprinterBlessingsConflict %+v", 409, o.Payload) +} + func (o *SetBlueprinterBlessingsConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_constructor_logging_settings_parameters.go b/pkg/client/platform_infrastructure/set_constructor_logging_settings_parameters.go index 0f6e441e..830b1b35 100644 --- a/pkg/client/platform_infrastructure/set_constructor_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_constructor_logging_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetConstructorLoggingSettingsParamsWithHTTPClient(client *http.Client) * } } -/* SetConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the set constructor logging settings operation. +/* +SetConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set constructor logging settings operation. + + Typically these are written to a http.Request. */ type SetConstructorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_constructor_logging_settings_responses.go b/pkg/client/platform_infrastructure/set_constructor_logging_settings_responses.go index d1dbb2ff..1723c4c4 100644 --- a/pkg/client/platform_infrastructure/set_constructor_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_constructor_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewSetConstructorLoggingSettingsOK() *SetConstructorLoggingSettingsOK { return &SetConstructorLoggingSettingsOK{} } -/* SetConstructorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +SetConstructorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the constructor instance */ @@ -83,9 +84,44 @@ type SetConstructorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this set constructor logging settings o k response has a 2xx status code +func (o *SetConstructorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set constructor logging settings o k response has a 3xx status code +func (o *SetConstructorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set constructor logging settings o k response has a 4xx status code +func (o *SetConstructorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set constructor logging settings o k response has a 5xx status code +func (o *SetConstructorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set constructor logging settings o k response a status code equal to that given +func (o *SetConstructorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set constructor logging settings o k response +func (o *SetConstructorLoggingSettingsOK) Code() int { + return 200 +} + func (o *SetConstructorLoggingSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] setConstructorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *SetConstructorLoggingSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] setConstructorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *SetConstructorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewSetConstructorLoggingSettingsNotFound() *SetConstructorLoggingSettingsNo return &SetConstructorLoggingSettingsNotFound{} } -/* SetConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +SetConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type SetConstructorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set constructor logging settings not found response has a 2xx status code +func (o *SetConstructorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set constructor logging settings not found response has a 3xx status code +func (o *SetConstructorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set constructor logging settings not found response has a 4xx status code +func (o *SetConstructorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set constructor logging settings not found response has a 5xx status code +func (o *SetConstructorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set constructor logging settings not found response a status code equal to that given +func (o *SetConstructorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set constructor logging settings not found response +func (o *SetConstructorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *SetConstructorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] setConstructorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *SetConstructorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] setConstructorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *SetConstructorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_license_parameters.go b/pkg/client/platform_infrastructure/set_license_parameters.go index 801245b7..98c6ba12 100644 --- a/pkg/client/platform_infrastructure/set_license_parameters.go +++ b/pkg/client/platform_infrastructure/set_license_parameters.go @@ -71,10 +71,12 @@ func NewSetLicenseParamsWithHTTPClient(client *http.Client) *SetLicenseParams { } } -/* SetLicenseParams contains all the parameters to send to the API endpoint - for the set license operation. +/* +SetLicenseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set license operation. + + Typically these are written to a http.Request. */ type SetLicenseParams struct { diff --git a/pkg/client/platform_infrastructure/set_license_responses.go b/pkg/client/platform_infrastructure/set_license_responses.go index 719a96df..8cce8b47 100644 --- a/pkg/client/platform_infrastructure/set_license_responses.go +++ b/pkg/client/platform_infrastructure/set_license_responses.go @@ -68,7 +68,8 @@ func NewSetLicenseOK() *SetLicenseOK { return &SetLicenseOK{} } -/* SetLicenseOK describes a response with status code 200, with default header values. +/* +SetLicenseOK describes a response with status code 200, with default header values. The license was updated. */ @@ -76,9 +77,44 @@ type SetLicenseOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this set license o k response has a 2xx status code +func (o *SetLicenseOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set license o k response has a 3xx status code +func (o *SetLicenseOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set license o k response has a 4xx status code +func (o *SetLicenseOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set license o k response has a 5xx status code +func (o *SetLicenseOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set license o k response a status code equal to that given +func (o *SetLicenseOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set license o k response +func (o *SetLicenseOK) Code() int { + return 200 +} + func (o *SetLicenseOK) Error() string { return fmt.Sprintf("[PUT /platform/license][%d] setLicenseOK %+v", 200, o.Payload) } + +func (o *SetLicenseOK) String() string { + return fmt.Sprintf("[PUT /platform/license][%d] setLicenseOK %+v", 200, o.Payload) +} + func (o *SetLicenseOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewSetLicenseBadRequest() *SetLicenseBadRequest { return &SetLicenseBadRequest{} } -/* SetLicenseBadRequest describes a response with status code 400, with default header values. +/* +SetLicenseBadRequest describes a response with status code 400, with default header values. The license could not be updated. (code: `license.invalid_license`) */ @@ -111,9 +148,44 @@ type SetLicenseBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set license bad request response has a 2xx status code +func (o *SetLicenseBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set license bad request response has a 3xx status code +func (o *SetLicenseBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set license bad request response has a 4xx status code +func (o *SetLicenseBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set license bad request response has a 5xx status code +func (o *SetLicenseBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set license bad request response a status code equal to that given +func (o *SetLicenseBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set license bad request response +func (o *SetLicenseBadRequest) Code() int { + return 400 +} + func (o *SetLicenseBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/license][%d] setLicenseBadRequest %+v", 400, o.Payload) } + +func (o *SetLicenseBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/license][%d] setLicenseBadRequest %+v", 400, o.Payload) +} + func (o *SetLicenseBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewSetLicenseRetryWith() *SetLicenseRetryWith { return &SetLicenseRetryWith{} } -/* SetLicenseRetryWith describes a response with status code 449, with default header values. +/* +SetLicenseRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type SetLicenseRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set license retry with response has a 2xx status code +func (o *SetLicenseRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set license retry with response has a 3xx status code +func (o *SetLicenseRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set license retry with response has a 4xx status code +func (o *SetLicenseRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set license retry with response has a 5xx status code +func (o *SetLicenseRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set license retry with response a status code equal to that given +func (o *SetLicenseRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set license retry with response +func (o *SetLicenseRetryWith) Code() int { + return 449 +} + func (o *SetLicenseRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/license][%d] setLicenseRetryWith %+v", 449, o.Payload) } + +func (o *SetLicenseRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/license][%d] setLicenseRetryWith %+v", 449, o.Payload) +} + func (o *SetLicenseRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_proxies_settings_parameters.go b/pkg/client/platform_infrastructure/set_proxies_settings_parameters.go index 000b5757..e3e9e20c 100644 --- a/pkg/client/platform_infrastructure/set_proxies_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_proxies_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetProxiesSettingsParamsWithHTTPClient(client *http.Client) *SetProxiesS } } -/* SetProxiesSettingsParams contains all the parameters to send to the API endpoint - for the set proxies settings operation. +/* +SetProxiesSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set proxies settings operation. + + Typically these are written to a http.Request. */ type SetProxiesSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_proxies_settings_responses.go b/pkg/client/platform_infrastructure/set_proxies_settings_responses.go index b9754dd7..aa873733 100644 --- a/pkg/client/platform_infrastructure/set_proxies_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_proxies_settings_responses.go @@ -68,7 +68,8 @@ func NewSetProxiesSettingsOK() *SetProxiesSettingsOK { return &SetProxiesSettingsOK{} } -/* SetProxiesSettingsOK describes a response with status code 200, with default header values. +/* +SetProxiesSettingsOK describes a response with status code 200, with default header values. Returns the updated settings */ @@ -76,9 +77,44 @@ type SetProxiesSettingsOK struct { Payload *models.ProxiesSettings } +// IsSuccess returns true when this set proxies settings o k response has a 2xx status code +func (o *SetProxiesSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set proxies settings o k response has a 3xx status code +func (o *SetProxiesSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set proxies settings o k response has a 4xx status code +func (o *SetProxiesSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set proxies settings o k response has a 5xx status code +func (o *SetProxiesSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set proxies settings o k response a status code equal to that given +func (o *SetProxiesSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set proxies settings o k response +func (o *SetProxiesSettingsOK) Code() int { + return 200 +} + func (o *SetProxiesSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsOK %+v", 200, o.Payload) } + +func (o *SetProxiesSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsOK %+v", 200, o.Payload) +} + func (o *SetProxiesSettingsOK) GetPayload() *models.ProxiesSettings { return o.Payload } @@ -100,7 +136,8 @@ func NewSetProxiesSettingsConflict() *SetProxiesSettingsConflict { return &SetProxiesSettingsConflict{} } -/* SetProxiesSettingsConflict describes a response with status code 409, with default header values. +/* +SetProxiesSettingsConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `proxies.version_conflict`) */ @@ -113,9 +150,44 @@ type SetProxiesSettingsConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set proxies settings conflict response has a 2xx status code +func (o *SetProxiesSettingsConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set proxies settings conflict response has a 3xx status code +func (o *SetProxiesSettingsConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set proxies settings conflict response has a 4xx status code +func (o *SetProxiesSettingsConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set proxies settings conflict response has a 5xx status code +func (o *SetProxiesSettingsConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set proxies settings conflict response a status code equal to that given +func (o *SetProxiesSettingsConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set proxies settings conflict response +func (o *SetProxiesSettingsConflict) Code() int { + return 409 +} + func (o *SetProxiesSettingsConflict) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsConflict %+v", 409, o.Payload) } + +func (o *SetProxiesSettingsConflict) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsConflict %+v", 409, o.Payload) +} + func (o *SetProxiesSettingsConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewSetProxiesSettingsRetryWith() *SetProxiesSettingsRetryWith { return &SetProxiesSettingsRetryWith{} } -/* SetProxiesSettingsRetryWith describes a response with status code 449, with default header values. +/* +SetProxiesSettingsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type SetProxiesSettingsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set proxies settings retry with response has a 2xx status code +func (o *SetProxiesSettingsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set proxies settings retry with response has a 3xx status code +func (o *SetProxiesSettingsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set proxies settings retry with response has a 4xx status code +func (o *SetProxiesSettingsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set proxies settings retry with response has a 5xx status code +func (o *SetProxiesSettingsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set proxies settings retry with response a status code equal to that given +func (o *SetProxiesSettingsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set proxies settings retry with response +func (o *SetProxiesSettingsRetryWith) Code() int { + return 449 +} + func (o *SetProxiesSettingsRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsRetryWith %+v", 449, o.Payload) } + +func (o *SetProxiesSettingsRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/settings][%d] setProxiesSettingsRetryWith %+v", 449, o.Payload) +} + func (o *SetProxiesSettingsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_runner_logging_settings_parameters.go b/pkg/client/platform_infrastructure/set_runner_logging_settings_parameters.go index 07137c4c..0f6b7f71 100644 --- a/pkg/client/platform_infrastructure/set_runner_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/set_runner_logging_settings_parameters.go @@ -71,10 +71,12 @@ func NewSetRunnerLoggingSettingsParamsWithHTTPClient(client *http.Client) *SetRu } } -/* SetRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - for the set runner logging settings operation. +/* +SetRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set runner logging settings operation. + + Typically these are written to a http.Request. */ type SetRunnerLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/set_runner_logging_settings_responses.go b/pkg/client/platform_infrastructure/set_runner_logging_settings_responses.go index 452f1a4a..974bb6fc 100644 --- a/pkg/client/platform_infrastructure/set_runner_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/set_runner_logging_settings_responses.go @@ -62,7 +62,8 @@ func NewSetRunnerLoggingSettingsOK() *SetRunnerLoggingSettingsOK { return &SetRunnerLoggingSettingsOK{} } -/* SetRunnerLoggingSettingsOK describes a response with status code 200, with default header values. +/* +SetRunnerLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the runner instance */ @@ -83,9 +84,44 @@ type SetRunnerLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this set runner logging settings o k response has a 2xx status code +func (o *SetRunnerLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set runner logging settings o k response has a 3xx status code +func (o *SetRunnerLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner logging settings o k response has a 4xx status code +func (o *SetRunnerLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set runner logging settings o k response has a 5xx status code +func (o *SetRunnerLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner logging settings o k response a status code equal to that given +func (o *SetRunnerLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set runner logging settings o k response +func (o *SetRunnerLoggingSettingsOK) Code() int { + return 200 +} + func (o *SetRunnerLoggingSettingsOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/logging_settings][%d] setRunnerLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *SetRunnerLoggingSettingsOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/logging_settings][%d] setRunnerLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *SetRunnerLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -128,7 +164,8 @@ func NewSetRunnerLoggingSettingsNotFound() *SetRunnerLoggingSettingsNotFound { return &SetRunnerLoggingSettingsNotFound{} } -/* SetRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +SetRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`) */ @@ -141,9 +178,44 @@ type SetRunnerLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set runner logging settings not found response has a 2xx status code +func (o *SetRunnerLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set runner logging settings not found response has a 3xx status code +func (o *SetRunnerLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner logging settings not found response has a 4xx status code +func (o *SetRunnerLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set runner logging settings not found response has a 5xx status code +func (o *SetRunnerLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner logging settings not found response a status code equal to that given +func (o *SetRunnerLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set runner logging settings not found response +func (o *SetRunnerLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *SetRunnerLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/logging_settings][%d] setRunnerLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *SetRunnerLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/logging_settings][%d] setRunnerLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *SetRunnerLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/set_runner_roles_parameters.go b/pkg/client/platform_infrastructure/set_runner_roles_parameters.go index 763385a6..eef6e008 100644 --- a/pkg/client/platform_infrastructure/set_runner_roles_parameters.go +++ b/pkg/client/platform_infrastructure/set_runner_roles_parameters.go @@ -72,10 +72,12 @@ func NewSetRunnerRolesParamsWithHTTPClient(client *http.Client) *SetRunnerRolesP } } -/* SetRunnerRolesParams contains all the parameters to send to the API endpoint - for the set runner roles operation. +/* +SetRunnerRolesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set runner roles operation. + + Typically these are written to a http.Request. */ type SetRunnerRolesParams struct { diff --git a/pkg/client/platform_infrastructure/set_runner_roles_responses.go b/pkg/client/platform_infrastructure/set_runner_roles_responses.go index c0f6bb99..85c8e345 100644 --- a/pkg/client/platform_infrastructure/set_runner_roles_responses.go +++ b/pkg/client/platform_infrastructure/set_runner_roles_responses.go @@ -74,7 +74,8 @@ func NewSetRunnerRolesOK() *SetRunnerRolesOK { return &SetRunnerRolesOK{} } -/* SetRunnerRolesOK describes a response with status code 200, with default header values. +/* +SetRunnerRolesOK describes a response with status code 200, with default header values. The roles for the {runner_id} specified runner are assigned. */ @@ -82,9 +83,44 @@ type SetRunnerRolesOK struct { Payload *models.RunnerRolesInfo } +// IsSuccess returns true when this set runner roles o k response has a 2xx status code +func (o *SetRunnerRolesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set runner roles o k response has a 3xx status code +func (o *SetRunnerRolesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner roles o k response has a 4xx status code +func (o *SetRunnerRolesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set runner roles o k response has a 5xx status code +func (o *SetRunnerRolesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner roles o k response a status code equal to that given +func (o *SetRunnerRolesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set runner roles o k response +func (o *SetRunnerRolesOK) Code() int { + return 200 +} + func (o *SetRunnerRolesOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesOK %+v", 200, o.Payload) } + +func (o *SetRunnerRolesOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesOK %+v", 200, o.Payload) +} + func (o *SetRunnerRolesOK) GetPayload() *models.RunnerRolesInfo { return o.Payload } @@ -106,7 +142,8 @@ func NewSetRunnerRolesBadRequest() *SetRunnerRolesBadRequest { return &SetRunnerRolesBadRequest{} } -/* SetRunnerRolesBadRequest describes a response with status code 400, with default header values. +/* +SetRunnerRolesBadRequest describes a response with status code 400, with default header values. There was an error while assigning the roles for the {runner_id} specified runner. Try your request again. (code: `runners.runner_set_roles_failed`) */ @@ -119,9 +156,44 @@ type SetRunnerRolesBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set runner roles bad request response has a 2xx status code +func (o *SetRunnerRolesBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set runner roles bad request response has a 3xx status code +func (o *SetRunnerRolesBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner roles bad request response has a 4xx status code +func (o *SetRunnerRolesBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this set runner roles bad request response has a 5xx status code +func (o *SetRunnerRolesBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner roles bad request response a status code equal to that given +func (o *SetRunnerRolesBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the set runner roles bad request response +func (o *SetRunnerRolesBadRequest) Code() int { + return 400 +} + func (o *SetRunnerRolesBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesBadRequest %+v", 400, o.Payload) } + +func (o *SetRunnerRolesBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesBadRequest %+v", 400, o.Payload) +} + func (o *SetRunnerRolesBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewSetRunnerRolesNotFound() *SetRunnerRolesNotFound { return &SetRunnerRolesNotFound{} } -/* SetRunnerRolesNotFound describes a response with status code 404, with default header values. +/* +SetRunnerRolesNotFound describes a response with status code 404, with default header values. Unable to find the {runner_id} specified runner. Edit your request, then try again. (code: `runners.runner_not_found`) */ @@ -163,9 +236,44 @@ type SetRunnerRolesNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set runner roles not found response has a 2xx status code +func (o *SetRunnerRolesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set runner roles not found response has a 3xx status code +func (o *SetRunnerRolesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner roles not found response has a 4xx status code +func (o *SetRunnerRolesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this set runner roles not found response has a 5xx status code +func (o *SetRunnerRolesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner roles not found response a status code equal to that given +func (o *SetRunnerRolesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the set runner roles not found response +func (o *SetRunnerRolesNotFound) Code() int { + return 404 +} + func (o *SetRunnerRolesNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesNotFound %+v", 404, o.Payload) } + +func (o *SetRunnerRolesNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesNotFound %+v", 404, o.Payload) +} + func (o *SetRunnerRolesNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewSetRunnerRolesRetryWith() *SetRunnerRolesRetryWith { return &SetRunnerRolesRetryWith{} } -/* SetRunnerRolesRetryWith describes a response with status code 449, with default header values. +/* +SetRunnerRolesRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -207,9 +316,44 @@ type SetRunnerRolesRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set runner roles retry with response has a 2xx status code +func (o *SetRunnerRolesRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set runner roles retry with response has a 3xx status code +func (o *SetRunnerRolesRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set runner roles retry with response has a 4xx status code +func (o *SetRunnerRolesRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set runner roles retry with response has a 5xx status code +func (o *SetRunnerRolesRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set runner roles retry with response a status code equal to that given +func (o *SetRunnerRolesRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set runner roles retry with response +func (o *SetRunnerRolesRetryWith) Code() int { + return 449 +} + func (o *SetRunnerRolesRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesRetryWith %+v", 449, o.Payload) } + +func (o *SetRunnerRolesRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/runners/{runner_id}/roles][%d] setRunnerRolesRetryWith %+v", 449, o.Payload) +} + func (o *SetRunnerRolesRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_parameters.go b/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_parameters.go index 4f50636f..d1d935f2 100644 --- a/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_parameters.go +++ b/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStartAllocatorMaintenanceModeParamsWithHTTPClient(client *http.Client) * } } -/* StartAllocatorMaintenanceModeParams contains all the parameters to send to the API endpoint - for the start allocator maintenance mode operation. +/* +StartAllocatorMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start allocator maintenance mode operation. + + Typically these are written to a http.Request. */ type StartAllocatorMaintenanceModeParams struct { diff --git a/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_responses.go b/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_responses.go index b8c8653b..b82a2766 100644 --- a/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_responses.go +++ b/pkg/client/platform_infrastructure/start_allocator_maintenance_mode_responses.go @@ -74,7 +74,8 @@ func NewStartAllocatorMaintenanceModeAccepted() *StartAllocatorMaintenanceModeAc return &StartAllocatorMaintenanceModeAccepted{} } -/* StartAllocatorMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StartAllocatorMaintenanceModeAccepted describes a response with status code 202, with default header values. The start maintenance mode command was issued successfully */ @@ -82,9 +83,44 @@ type StartAllocatorMaintenanceModeAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this start allocator maintenance mode accepted response has a 2xx status code +func (o *StartAllocatorMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start allocator maintenance mode accepted response has a 3xx status code +func (o *StartAllocatorMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start allocator maintenance mode accepted response has a 4xx status code +func (o *StartAllocatorMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start allocator maintenance mode accepted response has a 5xx status code +func (o *StartAllocatorMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start allocator maintenance mode accepted response a status code equal to that given +func (o *StartAllocatorMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start allocator maintenance mode accepted response +func (o *StartAllocatorMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StartAllocatorMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StartAllocatorMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StartAllocatorMaintenanceModeAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewStartAllocatorMaintenanceModeForbidden() *StartAllocatorMaintenanceModeF return &StartAllocatorMaintenanceModeForbidden{} } -/* StartAllocatorMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StartAllocatorMaintenanceModeForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given allocator. (code: `root.unauthorized.rbac`) */ @@ -117,9 +154,44 @@ type StartAllocatorMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start allocator maintenance mode forbidden response has a 2xx status code +func (o *StartAllocatorMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start allocator maintenance mode forbidden response has a 3xx status code +func (o *StartAllocatorMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start allocator maintenance mode forbidden response has a 4xx status code +func (o *StartAllocatorMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start allocator maintenance mode forbidden response has a 5xx status code +func (o *StartAllocatorMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start allocator maintenance mode forbidden response a status code equal to that given +func (o *StartAllocatorMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start allocator maintenance mode forbidden response +func (o *StartAllocatorMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StartAllocatorMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StartAllocatorMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StartAllocatorMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewStartAllocatorMaintenanceModeNotFound() *StartAllocatorMaintenanceModeNo return &StartAllocatorMaintenanceModeNotFound{} } -/* StartAllocatorMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* +StartAllocatorMaintenanceModeNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -161,9 +234,44 @@ type StartAllocatorMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start allocator maintenance mode not found response has a 2xx status code +func (o *StartAllocatorMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start allocator maintenance mode not found response has a 3xx status code +func (o *StartAllocatorMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start allocator maintenance mode not found response has a 4xx status code +func (o *StartAllocatorMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start allocator maintenance mode not found response has a 5xx status code +func (o *StartAllocatorMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start allocator maintenance mode not found response a status code equal to that given +func (o *StartAllocatorMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start allocator maintenance mode not found response +func (o *StartAllocatorMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StartAllocatorMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StartAllocatorMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StartAllocatorMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewStartAllocatorMaintenanceModeRetryWith() *StartAllocatorMaintenanceModeR return &StartAllocatorMaintenanceModeRetryWith{} } -/* StartAllocatorMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StartAllocatorMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type StartAllocatorMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start allocator maintenance mode retry with response has a 2xx status code +func (o *StartAllocatorMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start allocator maintenance mode retry with response has a 3xx status code +func (o *StartAllocatorMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start allocator maintenance mode retry with response has a 4xx status code +func (o *StartAllocatorMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start allocator maintenance mode retry with response has a 5xx status code +func (o *StartAllocatorMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start allocator maintenance mode retry with response a status code equal to that given +func (o *StartAllocatorMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start allocator maintenance mode retry with response +func (o *StartAllocatorMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StartAllocatorMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StartAllocatorMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start][%d] startAllocatorMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StartAllocatorMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_parameters.go b/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_parameters.go index 0b049a37..e89ac3c9 100644 --- a/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_parameters.go +++ b/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStartConstructorMaintenanceModeParamsWithHTTPClient(client *http.Client) } } -/* StartConstructorMaintenanceModeParams contains all the parameters to send to the API endpoint - for the start constructor maintenance mode operation. +/* +StartConstructorMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start constructor maintenance mode operation. + + Typically these are written to a http.Request. */ type StartConstructorMaintenanceModeParams struct { diff --git a/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_responses.go b/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_responses.go index bc8c049d..21451a67 100644 --- a/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_responses.go +++ b/pkg/client/platform_infrastructure/start_constructor_maintenance_mode_responses.go @@ -74,7 +74,8 @@ func NewStartConstructorMaintenanceModeAccepted() *StartConstructorMaintenanceMo return &StartConstructorMaintenanceModeAccepted{} } -/* StartConstructorMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StartConstructorMaintenanceModeAccepted describes a response with status code 202, with default header values. The start maintenance mode command was issued successfully */ @@ -82,9 +83,44 @@ type StartConstructorMaintenanceModeAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this start constructor maintenance mode accepted response has a 2xx status code +func (o *StartConstructorMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this start constructor maintenance mode accepted response has a 3xx status code +func (o *StartConstructorMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start constructor maintenance mode accepted response has a 4xx status code +func (o *StartConstructorMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this start constructor maintenance mode accepted response has a 5xx status code +func (o *StartConstructorMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this start constructor maintenance mode accepted response a status code equal to that given +func (o *StartConstructorMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the start constructor maintenance mode accepted response +func (o *StartConstructorMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StartConstructorMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StartConstructorMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StartConstructorMaintenanceModeAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewStartConstructorMaintenanceModeForbidden() *StartConstructorMaintenanceM return &StartConstructorMaintenanceModeForbidden{} } -/* StartConstructorMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StartConstructorMaintenanceModeForbidden describes a response with status code 403, with default header values. The start maintenance mode command was prohibited for the given constructor. (code: `constructors.command_prohibited`) */ @@ -117,9 +154,44 @@ type StartConstructorMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start constructor maintenance mode forbidden response has a 2xx status code +func (o *StartConstructorMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start constructor maintenance mode forbidden response has a 3xx status code +func (o *StartConstructorMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start constructor maintenance mode forbidden response has a 4xx status code +func (o *StartConstructorMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this start constructor maintenance mode forbidden response has a 5xx status code +func (o *StartConstructorMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this start constructor maintenance mode forbidden response a status code equal to that given +func (o *StartConstructorMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the start constructor maintenance mode forbidden response +func (o *StartConstructorMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StartConstructorMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StartConstructorMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StartConstructorMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewStartConstructorMaintenanceModeNotFound() *StartConstructorMaintenanceMo return &StartConstructorMaintenanceModeNotFound{} } -/* StartConstructorMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* +StartConstructorMaintenanceModeNotFound describes a response with status code 404, with default header values. The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`) */ @@ -161,9 +234,44 @@ type StartConstructorMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start constructor maintenance mode not found response has a 2xx status code +func (o *StartConstructorMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start constructor maintenance mode not found response has a 3xx status code +func (o *StartConstructorMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start constructor maintenance mode not found response has a 4xx status code +func (o *StartConstructorMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this start constructor maintenance mode not found response has a 5xx status code +func (o *StartConstructorMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this start constructor maintenance mode not found response a status code equal to that given +func (o *StartConstructorMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the start constructor maintenance mode not found response +func (o *StartConstructorMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StartConstructorMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StartConstructorMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StartConstructorMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewStartConstructorMaintenanceModeRetryWith() *StartConstructorMaintenanceM return &StartConstructorMaintenanceModeRetryWith{} } -/* StartConstructorMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StartConstructorMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type StartConstructorMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this start constructor maintenance mode retry with response has a 2xx status code +func (o *StartConstructorMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this start constructor maintenance mode retry with response has a 3xx status code +func (o *StartConstructorMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this start constructor maintenance mode retry with response has a 4xx status code +func (o *StartConstructorMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this start constructor maintenance mode retry with response has a 5xx status code +func (o *StartConstructorMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this start constructor maintenance mode retry with response a status code equal to that given +func (o *StartConstructorMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the start constructor maintenance mode retry with response +func (o *StartConstructorMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StartConstructorMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StartConstructorMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start][%d] startConstructorMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StartConstructorMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_parameters.go b/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_parameters.go index 2c935b1d..b68a8734 100644 --- a/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_parameters.go +++ b/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStopAllocatorMaintenanceModeParamsWithHTTPClient(client *http.Client) *S } } -/* StopAllocatorMaintenanceModeParams contains all the parameters to send to the API endpoint - for the stop allocator maintenance mode operation. +/* +StopAllocatorMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop allocator maintenance mode operation. + + Typically these are written to a http.Request. */ type StopAllocatorMaintenanceModeParams struct { diff --git a/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_responses.go b/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_responses.go index 1e0cc2df..d116d419 100644 --- a/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_responses.go +++ b/pkg/client/platform_infrastructure/stop_allocator_maintenance_mode_responses.go @@ -74,7 +74,8 @@ func NewStopAllocatorMaintenanceModeAccepted() *StopAllocatorMaintenanceModeAcce return &StopAllocatorMaintenanceModeAccepted{} } -/* StopAllocatorMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StopAllocatorMaintenanceModeAccepted describes a response with status code 202, with default header values. The stop maintenance mode command was issued successfully */ @@ -82,9 +83,44 @@ type StopAllocatorMaintenanceModeAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this stop allocator maintenance mode accepted response has a 2xx status code +func (o *StopAllocatorMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop allocator maintenance mode accepted response has a 3xx status code +func (o *StopAllocatorMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop allocator maintenance mode accepted response has a 4xx status code +func (o *StopAllocatorMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop allocator maintenance mode accepted response has a 5xx status code +func (o *StopAllocatorMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop allocator maintenance mode accepted response a status code equal to that given +func (o *StopAllocatorMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop allocator maintenance mode accepted response +func (o *StopAllocatorMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StopAllocatorMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StopAllocatorMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StopAllocatorMaintenanceModeAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewStopAllocatorMaintenanceModeForbidden() *StopAllocatorMaintenanceModeFor return &StopAllocatorMaintenanceModeForbidden{} } -/* StopAllocatorMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StopAllocatorMaintenanceModeForbidden describes a response with status code 403, with default header values. The stop maintenance mode command was prohibited for the given allocator. (code: `root.unauthorized.rbac`) */ @@ -117,9 +154,44 @@ type StopAllocatorMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop allocator maintenance mode forbidden response has a 2xx status code +func (o *StopAllocatorMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop allocator maintenance mode forbidden response has a 3xx status code +func (o *StopAllocatorMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop allocator maintenance mode forbidden response has a 4xx status code +func (o *StopAllocatorMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop allocator maintenance mode forbidden response has a 5xx status code +func (o *StopAllocatorMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop allocator maintenance mode forbidden response a status code equal to that given +func (o *StopAllocatorMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop allocator maintenance mode forbidden response +func (o *StopAllocatorMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StopAllocatorMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StopAllocatorMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StopAllocatorMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewStopAllocatorMaintenanceModeNotFound() *StopAllocatorMaintenanceModeNotF return &StopAllocatorMaintenanceModeNotFound{} } -/* StopAllocatorMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* +StopAllocatorMaintenanceModeNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -161,9 +234,44 @@ type StopAllocatorMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop allocator maintenance mode not found response has a 2xx status code +func (o *StopAllocatorMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop allocator maintenance mode not found response has a 3xx status code +func (o *StopAllocatorMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop allocator maintenance mode not found response has a 4xx status code +func (o *StopAllocatorMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop allocator maintenance mode not found response has a 5xx status code +func (o *StopAllocatorMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop allocator maintenance mode not found response a status code equal to that given +func (o *StopAllocatorMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop allocator maintenance mode not found response +func (o *StopAllocatorMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StopAllocatorMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StopAllocatorMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StopAllocatorMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewStopAllocatorMaintenanceModeRetryWith() *StopAllocatorMaintenanceModeRet return &StopAllocatorMaintenanceModeRetryWith{} } -/* StopAllocatorMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StopAllocatorMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type StopAllocatorMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop allocator maintenance mode retry with response has a 2xx status code +func (o *StopAllocatorMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop allocator maintenance mode retry with response has a 3xx status code +func (o *StopAllocatorMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop allocator maintenance mode retry with response has a 4xx status code +func (o *StopAllocatorMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop allocator maintenance mode retry with response has a 5xx status code +func (o *StopAllocatorMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop allocator maintenance mode retry with response a status code equal to that given +func (o *StopAllocatorMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop allocator maintenance mode retry with response +func (o *StopAllocatorMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StopAllocatorMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StopAllocatorMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop][%d] stopAllocatorMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StopAllocatorMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_parameters.go b/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_parameters.go index 20f43764..e5c303c9 100644 --- a/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_parameters.go +++ b/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_parameters.go @@ -69,10 +69,12 @@ func NewStopConstructorMaintenanceModeParamsWithHTTPClient(client *http.Client) } } -/* StopConstructorMaintenanceModeParams contains all the parameters to send to the API endpoint - for the stop constructor maintenance mode operation. +/* +StopConstructorMaintenanceModeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the stop constructor maintenance mode operation. + + Typically these are written to a http.Request. */ type StopConstructorMaintenanceModeParams struct { diff --git a/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_responses.go b/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_responses.go index dec7f2b2..82597db5 100644 --- a/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_responses.go +++ b/pkg/client/platform_infrastructure/stop_constructor_maintenance_mode_responses.go @@ -74,7 +74,8 @@ func NewStopConstructorMaintenanceModeAccepted() *StopConstructorMaintenanceMode return &StopConstructorMaintenanceModeAccepted{} } -/* StopConstructorMaintenanceModeAccepted describes a response with status code 202, with default header values. +/* +StopConstructorMaintenanceModeAccepted describes a response with status code 202, with default header values. The stop maintenance mode command was issued successfully */ @@ -82,9 +83,44 @@ type StopConstructorMaintenanceModeAccepted struct { Payload models.EmptyResponse } +// IsSuccess returns true when this stop constructor maintenance mode accepted response has a 2xx status code +func (o *StopConstructorMaintenanceModeAccepted) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this stop constructor maintenance mode accepted response has a 3xx status code +func (o *StopConstructorMaintenanceModeAccepted) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop constructor maintenance mode accepted response has a 4xx status code +func (o *StopConstructorMaintenanceModeAccepted) IsClientError() bool { + return false +} + +// IsServerError returns true when this stop constructor maintenance mode accepted response has a 5xx status code +func (o *StopConstructorMaintenanceModeAccepted) IsServerError() bool { + return false +} + +// IsCode returns true when this stop constructor maintenance mode accepted response a status code equal to that given +func (o *StopConstructorMaintenanceModeAccepted) IsCode(code int) bool { + return code == 202 +} + +// Code gets the status code for the stop constructor maintenance mode accepted response +func (o *StopConstructorMaintenanceModeAccepted) Code() int { + return 202 +} + func (o *StopConstructorMaintenanceModeAccepted) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeAccepted %+v", 202, o.Payload) } + +func (o *StopConstructorMaintenanceModeAccepted) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeAccepted %+v", 202, o.Payload) +} + func (o *StopConstructorMaintenanceModeAccepted) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,7 +140,8 @@ func NewStopConstructorMaintenanceModeForbidden() *StopConstructorMaintenanceMod return &StopConstructorMaintenanceModeForbidden{} } -/* StopConstructorMaintenanceModeForbidden describes a response with status code 403, with default header values. +/* +StopConstructorMaintenanceModeForbidden describes a response with status code 403, with default header values. The stop maintenance mode command was prohibited for the given constructor. (code: `constructors.command_prohibited`) */ @@ -117,9 +154,44 @@ type StopConstructorMaintenanceModeForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop constructor maintenance mode forbidden response has a 2xx status code +func (o *StopConstructorMaintenanceModeForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop constructor maintenance mode forbidden response has a 3xx status code +func (o *StopConstructorMaintenanceModeForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop constructor maintenance mode forbidden response has a 4xx status code +func (o *StopConstructorMaintenanceModeForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop constructor maintenance mode forbidden response has a 5xx status code +func (o *StopConstructorMaintenanceModeForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this stop constructor maintenance mode forbidden response a status code equal to that given +func (o *StopConstructorMaintenanceModeForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the stop constructor maintenance mode forbidden response +func (o *StopConstructorMaintenanceModeForbidden) Code() int { + return 403 +} + func (o *StopConstructorMaintenanceModeForbidden) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeForbidden %+v", 403, o.Payload) } + +func (o *StopConstructorMaintenanceModeForbidden) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeForbidden %+v", 403, o.Payload) +} + func (o *StopConstructorMaintenanceModeForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +220,8 @@ func NewStopConstructorMaintenanceModeNotFound() *StopConstructorMaintenanceMode return &StopConstructorMaintenanceModeNotFound{} } -/* StopConstructorMaintenanceModeNotFound describes a response with status code 404, with default header values. +/* +StopConstructorMaintenanceModeNotFound describes a response with status code 404, with default header values. The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`) */ @@ -161,9 +234,44 @@ type StopConstructorMaintenanceModeNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop constructor maintenance mode not found response has a 2xx status code +func (o *StopConstructorMaintenanceModeNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop constructor maintenance mode not found response has a 3xx status code +func (o *StopConstructorMaintenanceModeNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop constructor maintenance mode not found response has a 4xx status code +func (o *StopConstructorMaintenanceModeNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop constructor maintenance mode not found response has a 5xx status code +func (o *StopConstructorMaintenanceModeNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this stop constructor maintenance mode not found response a status code equal to that given +func (o *StopConstructorMaintenanceModeNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the stop constructor maintenance mode not found response +func (o *StopConstructorMaintenanceModeNotFound) Code() int { + return 404 +} + func (o *StopConstructorMaintenanceModeNotFound) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeNotFound %+v", 404, o.Payload) } + +func (o *StopConstructorMaintenanceModeNotFound) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeNotFound %+v", 404, o.Payload) +} + func (o *StopConstructorMaintenanceModeNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -192,7 +300,8 @@ func NewStopConstructorMaintenanceModeRetryWith() *StopConstructorMaintenanceMod return &StopConstructorMaintenanceModeRetryWith{} } -/* StopConstructorMaintenanceModeRetryWith describes a response with status code 449, with default header values. +/* +StopConstructorMaintenanceModeRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -205,9 +314,44 @@ type StopConstructorMaintenanceModeRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this stop constructor maintenance mode retry with response has a 2xx status code +func (o *StopConstructorMaintenanceModeRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this stop constructor maintenance mode retry with response has a 3xx status code +func (o *StopConstructorMaintenanceModeRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this stop constructor maintenance mode retry with response has a 4xx status code +func (o *StopConstructorMaintenanceModeRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this stop constructor maintenance mode retry with response has a 5xx status code +func (o *StopConstructorMaintenanceModeRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this stop constructor maintenance mode retry with response a status code equal to that given +func (o *StopConstructorMaintenanceModeRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the stop constructor maintenance mode retry with response +func (o *StopConstructorMaintenanceModeRetryWith) Code() int { + return 449 +} + func (o *StopConstructorMaintenanceModeRetryWith) Error() string { return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeRetryWith %+v", 449, o.Payload) } + +func (o *StopConstructorMaintenanceModeRetryWith) String() string { + return fmt.Sprintf("[POST /platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop][%d] stopConstructorMaintenanceModeRetryWith %+v", 449, o.Payload) +} + func (o *StopConstructorMaintenanceModeRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_parameters.go b/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_parameters.go index 1f9f3bee..b3c89692 100644 --- a/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewUpdateAdminconsoleLoggingSettingsParamsWithHTTPClient(client *http.Clien } } -/* UpdateAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - for the update adminconsole logging settings operation. +/* +UpdateAdminconsoleLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update adminconsole logging settings operation. + + Typically these are written to a http.Request. */ type UpdateAdminconsoleLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_responses.go b/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_responses.go index 2b358d76..b805f2f6 100644 --- a/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_adminconsole_logging_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateAdminconsoleLoggingSettingsOK() *UpdateAdminconsoleLoggingSettings return &UpdateAdminconsoleLoggingSettingsOK{} } -/* UpdateAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. +/* +UpdateAdminconsoleLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the adminconsole instance */ @@ -89,9 +90,44 @@ type UpdateAdminconsoleLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this update adminconsole logging settings o k response has a 2xx status code +func (o *UpdateAdminconsoleLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update adminconsole logging settings o k response has a 3xx status code +func (o *UpdateAdminconsoleLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update adminconsole logging settings o k response has a 4xx status code +func (o *UpdateAdminconsoleLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update adminconsole logging settings o k response has a 5xx status code +func (o *UpdateAdminconsoleLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update adminconsole logging settings o k response a status code equal to that given +func (o *UpdateAdminconsoleLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update adminconsole logging settings o k response +func (o *UpdateAdminconsoleLoggingSettingsOK) Code() int { + return 200 +} + func (o *UpdateAdminconsoleLoggingSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateAdminconsoleLoggingSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateAdminconsoleLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -134,7 +170,8 @@ func NewUpdateAdminconsoleLoggingSettingsBadRequest() *UpdateAdminconsoleLogging return &UpdateAdminconsoleLoggingSettingsBadRequest{} } -/* UpdateAdminconsoleLoggingSettingsBadRequest describes a response with status code 400, with default header values. +/* +UpdateAdminconsoleLoggingSettingsBadRequest describes a response with status code 400, with default header values. The update request is invalid. (code: `patch.request_malformed`) */ @@ -147,9 +184,44 @@ type UpdateAdminconsoleLoggingSettingsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update adminconsole logging settings bad request response has a 2xx status code +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update adminconsole logging settings bad request response has a 3xx status code +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update adminconsole logging settings bad request response has a 4xx status code +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update adminconsole logging settings bad request response has a 5xx status code +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update adminconsole logging settings bad request response a status code equal to that given +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update adminconsole logging settings bad request response +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) Code() int { + return 400 +} + func (o *UpdateAdminconsoleLoggingSettingsBadRequest) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsBadRequest %+v", 400, o.Payload) } + +func (o *UpdateAdminconsoleLoggingSettingsBadRequest) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsBadRequest %+v", 400, o.Payload) +} + func (o *UpdateAdminconsoleLoggingSettingsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewUpdateAdminconsoleLoggingSettingsNotFound() *UpdateAdminconsoleLoggingSe return &UpdateAdminconsoleLoggingSettingsNotFound{} } -/* UpdateAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +UpdateAdminconsoleLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`) */ @@ -191,9 +264,44 @@ type UpdateAdminconsoleLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update adminconsole logging settings not found response has a 2xx status code +func (o *UpdateAdminconsoleLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update adminconsole logging settings not found response has a 3xx status code +func (o *UpdateAdminconsoleLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update adminconsole logging settings not found response has a 4xx status code +func (o *UpdateAdminconsoleLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update adminconsole logging settings not found response has a 5xx status code +func (o *UpdateAdminconsoleLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update adminconsole logging settings not found response a status code equal to that given +func (o *UpdateAdminconsoleLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update adminconsole logging settings not found response +func (o *UpdateAdminconsoleLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *UpdateAdminconsoleLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *UpdateAdminconsoleLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings][%d] updateAdminconsoleLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *UpdateAdminconsoleLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_allocator_logging_settings_parameters.go b/pkg/client/platform_infrastructure/update_allocator_logging_settings_parameters.go index 1eef8b0b..10e9ea54 100644 --- a/pkg/client/platform_infrastructure/update_allocator_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_allocator_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewUpdateAllocatorLoggingSettingsParamsWithHTTPClient(client *http.Client) } } -/* UpdateAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the update allocator logging settings operation. +/* +UpdateAllocatorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update allocator logging settings operation. + + Typically these are written to a http.Request. */ type UpdateAllocatorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_allocator_logging_settings_responses.go b/pkg/client/platform_infrastructure/update_allocator_logging_settings_responses.go index 418d97f9..dfc6e236 100644 --- a/pkg/client/platform_infrastructure/update_allocator_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_allocator_logging_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateAllocatorLoggingSettingsOK() *UpdateAllocatorLoggingSettingsOK { return &UpdateAllocatorLoggingSettingsOK{} } -/* UpdateAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +UpdateAllocatorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the allocator instance */ @@ -89,9 +90,44 @@ type UpdateAllocatorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this update allocator logging settings o k response has a 2xx status code +func (o *UpdateAllocatorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update allocator logging settings o k response has a 3xx status code +func (o *UpdateAllocatorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator logging settings o k response has a 4xx status code +func (o *UpdateAllocatorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update allocator logging settings o k response has a 5xx status code +func (o *UpdateAllocatorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator logging settings o k response a status code equal to that given +func (o *UpdateAllocatorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update allocator logging settings o k response +func (o *UpdateAllocatorLoggingSettingsOK) Code() int { + return 200 +} + func (o *UpdateAllocatorLoggingSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateAllocatorLoggingSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateAllocatorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -134,7 +170,8 @@ func NewUpdateAllocatorLoggingSettingsBadRequest() *UpdateAllocatorLoggingSettin return &UpdateAllocatorLoggingSettingsBadRequest{} } -/* UpdateAllocatorLoggingSettingsBadRequest describes a response with status code 400, with default header values. +/* +UpdateAllocatorLoggingSettingsBadRequest describes a response with status code 400, with default header values. The update request is invalid. (code: `patch.request_malformed`) */ @@ -147,9 +184,44 @@ type UpdateAllocatorLoggingSettingsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update allocator logging settings bad request response has a 2xx status code +func (o *UpdateAllocatorLoggingSettingsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update allocator logging settings bad request response has a 3xx status code +func (o *UpdateAllocatorLoggingSettingsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator logging settings bad request response has a 4xx status code +func (o *UpdateAllocatorLoggingSettingsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update allocator logging settings bad request response has a 5xx status code +func (o *UpdateAllocatorLoggingSettingsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator logging settings bad request response a status code equal to that given +func (o *UpdateAllocatorLoggingSettingsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update allocator logging settings bad request response +func (o *UpdateAllocatorLoggingSettingsBadRequest) Code() int { + return 400 +} + func (o *UpdateAllocatorLoggingSettingsBadRequest) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsBadRequest %+v", 400, o.Payload) } + +func (o *UpdateAllocatorLoggingSettingsBadRequest) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsBadRequest %+v", 400, o.Payload) +} + func (o *UpdateAllocatorLoggingSettingsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewUpdateAllocatorLoggingSettingsNotFound() *UpdateAllocatorLoggingSettings return &UpdateAllocatorLoggingSettingsNotFound{} } -/* UpdateAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +UpdateAllocatorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`) */ @@ -191,9 +264,44 @@ type UpdateAllocatorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update allocator logging settings not found response has a 2xx status code +func (o *UpdateAllocatorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update allocator logging settings not found response has a 3xx status code +func (o *UpdateAllocatorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator logging settings not found response has a 4xx status code +func (o *UpdateAllocatorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update allocator logging settings not found response has a 5xx status code +func (o *UpdateAllocatorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator logging settings not found response a status code equal to that given +func (o *UpdateAllocatorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update allocator logging settings not found response +func (o *UpdateAllocatorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *UpdateAllocatorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *UpdateAllocatorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/logging_settings][%d] updateAllocatorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *UpdateAllocatorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_allocator_settings_parameters.go b/pkg/client/platform_infrastructure/update_allocator_settings_parameters.go index e09b5d40..2b47dce5 100644 --- a/pkg/client/platform_infrastructure/update_allocator_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_allocator_settings_parameters.go @@ -69,10 +69,12 @@ func NewUpdateAllocatorSettingsParamsWithHTTPClient(client *http.Client) *Update } } -/* UpdateAllocatorSettingsParams contains all the parameters to send to the API endpoint - for the update allocator settings operation. +/* +UpdateAllocatorSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update allocator settings operation. + + Typically these are written to a http.Request. */ type UpdateAllocatorSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_allocator_settings_responses.go b/pkg/client/platform_infrastructure/update_allocator_settings_responses.go index d13c6359..f7c0caf0 100644 --- a/pkg/client/platform_infrastructure/update_allocator_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_allocator_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateAllocatorSettingsOK() *UpdateAllocatorSettingsOK { return &UpdateAllocatorSettingsOK{} } -/* UpdateAllocatorSettingsOK describes a response with status code 200, with default header values. +/* +UpdateAllocatorSettingsOK describes a response with status code 200, with default header values. Returns the updated settings for the specified allocator */ @@ -76,9 +77,44 @@ type UpdateAllocatorSettingsOK struct { Payload *models.AllocatorSettings } +// IsSuccess returns true when this update allocator settings o k response has a 2xx status code +func (o *UpdateAllocatorSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update allocator settings o k response has a 3xx status code +func (o *UpdateAllocatorSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator settings o k response has a 4xx status code +func (o *UpdateAllocatorSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update allocator settings o k response has a 5xx status code +func (o *UpdateAllocatorSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator settings o k response a status code equal to that given +func (o *UpdateAllocatorSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update allocator settings o k response +func (o *UpdateAllocatorSettingsOK) Code() int { + return 200 +} + func (o *UpdateAllocatorSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateAllocatorSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateAllocatorSettingsOK) GetPayload() *models.AllocatorSettings { return o.Payload } @@ -100,7 +136,8 @@ func NewUpdateAllocatorSettingsNotFound() *UpdateAllocatorSettingsNotFound { return &UpdateAllocatorSettingsNotFound{} } -/* UpdateAllocatorSettingsNotFound describes a response with status code 404, with default header values. +/* +UpdateAllocatorSettingsNotFound describes a response with status code 404, with default header values. The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`) */ @@ -113,9 +150,44 @@ type UpdateAllocatorSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update allocator settings not found response has a 2xx status code +func (o *UpdateAllocatorSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update allocator settings not found response has a 3xx status code +func (o *UpdateAllocatorSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator settings not found response has a 4xx status code +func (o *UpdateAllocatorSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update allocator settings not found response has a 5xx status code +func (o *UpdateAllocatorSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator settings not found response a status code equal to that given +func (o *UpdateAllocatorSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update allocator settings not found response +func (o *UpdateAllocatorSettingsNotFound) Code() int { + return 404 +} + func (o *UpdateAllocatorSettingsNotFound) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsNotFound %+v", 404, o.Payload) } + +func (o *UpdateAllocatorSettingsNotFound) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsNotFound %+v", 404, o.Payload) +} + func (o *UpdateAllocatorSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewUpdateAllocatorSettingsRetryWith() *UpdateAllocatorSettingsRetryWith { return &UpdateAllocatorSettingsRetryWith{} } -/* UpdateAllocatorSettingsRetryWith describes a response with status code 449, with default header values. +/* +UpdateAllocatorSettingsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type UpdateAllocatorSettingsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update allocator settings retry with response has a 2xx status code +func (o *UpdateAllocatorSettingsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update allocator settings retry with response has a 3xx status code +func (o *UpdateAllocatorSettingsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update allocator settings retry with response has a 4xx status code +func (o *UpdateAllocatorSettingsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update allocator settings retry with response has a 5xx status code +func (o *UpdateAllocatorSettingsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update allocator settings retry with response a status code equal to that given +func (o *UpdateAllocatorSettingsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update allocator settings retry with response +func (o *UpdateAllocatorSettingsRetryWith) Code() int { + return 449 +} + func (o *UpdateAllocatorSettingsRetryWith) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsRetryWith %+v", 449, o.Payload) } + +func (o *UpdateAllocatorSettingsRetryWith) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/allocators/{allocator_id}/settings][%d] updateAllocatorSettingsRetryWith %+v", 449, o.Payload) +} + func (o *UpdateAllocatorSettingsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_blueprinter_role_parameters.go b/pkg/client/platform_infrastructure/update_blueprinter_role_parameters.go index c8358f9d..d66f70ad 100644 --- a/pkg/client/platform_infrastructure/update_blueprinter_role_parameters.go +++ b/pkg/client/platform_infrastructure/update_blueprinter_role_parameters.go @@ -72,10 +72,12 @@ func NewUpdateBlueprinterRoleParamsWithHTTPClient(client *http.Client) *UpdateBl } } -/* UpdateBlueprinterRoleParams contains all the parameters to send to the API endpoint - for the update blueprinter role operation. +/* +UpdateBlueprinterRoleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update blueprinter role operation. + + Typically these are written to a http.Request. */ type UpdateBlueprinterRoleParams struct { diff --git a/pkg/client/platform_infrastructure/update_blueprinter_role_responses.go b/pkg/client/platform_infrastructure/update_blueprinter_role_responses.go index 757bbd37..03d80fac 100644 --- a/pkg/client/platform_infrastructure/update_blueprinter_role_responses.go +++ b/pkg/client/platform_infrastructure/update_blueprinter_role_responses.go @@ -74,7 +74,8 @@ func NewUpdateBlueprinterRoleOK() *UpdateBlueprinterRoleOK { return &UpdateBlueprinterRoleOK{} } -/* UpdateBlueprinterRoleOK describes a response with status code 200, with default header values. +/* +UpdateBlueprinterRoleOK describes a response with status code 200, with default header values. The role was successfully updated. */ @@ -82,9 +83,44 @@ type UpdateBlueprinterRoleOK struct { Payload *models.RoleAggregate } +// IsSuccess returns true when this update blueprinter role o k response has a 2xx status code +func (o *UpdateBlueprinterRoleOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update blueprinter role o k response has a 3xx status code +func (o *UpdateBlueprinterRoleOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update blueprinter role o k response has a 4xx status code +func (o *UpdateBlueprinterRoleOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update blueprinter role o k response has a 5xx status code +func (o *UpdateBlueprinterRoleOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update blueprinter role o k response a status code equal to that given +func (o *UpdateBlueprinterRoleOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update blueprinter role o k response +func (o *UpdateBlueprinterRoleOK) Code() int { + return 200 +} + func (o *UpdateBlueprinterRoleOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleOK %+v", 200, o.Payload) } + +func (o *UpdateBlueprinterRoleOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleOK %+v", 200, o.Payload) +} + func (o *UpdateBlueprinterRoleOK) GetPayload() *models.RoleAggregate { return o.Payload } @@ -106,7 +142,8 @@ func NewUpdateBlueprinterRoleBadRequest() *UpdateBlueprinterRoleBadRequest { return &UpdateBlueprinterRoleBadRequest{} } -/* UpdateBlueprinterRoleBadRequest describes a response with status code 400, with default header values. +/* +UpdateBlueprinterRoleBadRequest describes a response with status code 400, with default header values. The role is currently running container sets. (code: `roles.in_use`) */ @@ -119,9 +156,44 @@ type UpdateBlueprinterRoleBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update blueprinter role bad request response has a 2xx status code +func (o *UpdateBlueprinterRoleBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update blueprinter role bad request response has a 3xx status code +func (o *UpdateBlueprinterRoleBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update blueprinter role bad request response has a 4xx status code +func (o *UpdateBlueprinterRoleBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update blueprinter role bad request response has a 5xx status code +func (o *UpdateBlueprinterRoleBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update blueprinter role bad request response a status code equal to that given +func (o *UpdateBlueprinterRoleBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update blueprinter role bad request response +func (o *UpdateBlueprinterRoleBadRequest) Code() int { + return 400 +} + func (o *UpdateBlueprinterRoleBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleBadRequest %+v", 400, o.Payload) } + +func (o *UpdateBlueprinterRoleBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleBadRequest %+v", 400, o.Payload) +} + func (o *UpdateBlueprinterRoleBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +222,8 @@ func NewUpdateBlueprinterRoleNotFound() *UpdateBlueprinterRoleNotFound { return &UpdateBlueprinterRoleNotFound{} } -/* UpdateBlueprinterRoleNotFound describes a response with status code 404, with default header values. +/* +UpdateBlueprinterRoleNotFound describes a response with status code 404, with default header values. The role can't be found. (code: `roles.not_found`) */ @@ -163,9 +236,44 @@ type UpdateBlueprinterRoleNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update blueprinter role not found response has a 2xx status code +func (o *UpdateBlueprinterRoleNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update blueprinter role not found response has a 3xx status code +func (o *UpdateBlueprinterRoleNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update blueprinter role not found response has a 4xx status code +func (o *UpdateBlueprinterRoleNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update blueprinter role not found response has a 5xx status code +func (o *UpdateBlueprinterRoleNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update blueprinter role not found response a status code equal to that given +func (o *UpdateBlueprinterRoleNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update blueprinter role not found response +func (o *UpdateBlueprinterRoleNotFound) Code() int { + return 404 +} + func (o *UpdateBlueprinterRoleNotFound) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleNotFound %+v", 404, o.Payload) } + +func (o *UpdateBlueprinterRoleNotFound) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleNotFound %+v", 404, o.Payload) +} + func (o *UpdateBlueprinterRoleNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +302,8 @@ func NewUpdateBlueprinterRoleConflict() *UpdateBlueprinterRoleConflict { return &UpdateBlueprinterRoleConflict{} } -/* UpdateBlueprinterRoleConflict describes a response with status code 409, with default header values. +/* +UpdateBlueprinterRoleConflict describes a response with status code 409, with default header values. Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`) */ @@ -207,9 +316,44 @@ type UpdateBlueprinterRoleConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update blueprinter role conflict response has a 2xx status code +func (o *UpdateBlueprinterRoleConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update blueprinter role conflict response has a 3xx status code +func (o *UpdateBlueprinterRoleConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update blueprinter role conflict response has a 4xx status code +func (o *UpdateBlueprinterRoleConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update blueprinter role conflict response has a 5xx status code +func (o *UpdateBlueprinterRoleConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update blueprinter role conflict response a status code equal to that given +func (o *UpdateBlueprinterRoleConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update blueprinter role conflict response +func (o *UpdateBlueprinterRoleConflict) Code() int { + return 409 +} + func (o *UpdateBlueprinterRoleConflict) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleConflict %+v", 409, o.Payload) } + +func (o *UpdateBlueprinterRoleConflict) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/blueprinter/roles/{blueprinter_role_id}][%d] updateBlueprinterRoleConflict %+v", 409, o.Payload) +} + func (o *UpdateBlueprinterRoleConflict) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_constructor_logging_settings_parameters.go b/pkg/client/platform_infrastructure/update_constructor_logging_settings_parameters.go index 68cd6b28..83511549 100644 --- a/pkg/client/platform_infrastructure/update_constructor_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_constructor_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewUpdateConstructorLoggingSettingsParamsWithHTTPClient(client *http.Client } } -/* UpdateConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - for the update constructor logging settings operation. +/* +UpdateConstructorLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update constructor logging settings operation. + + Typically these are written to a http.Request. */ type UpdateConstructorLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_constructor_logging_settings_responses.go b/pkg/client/platform_infrastructure/update_constructor_logging_settings_responses.go index bcadae32..69c31157 100644 --- a/pkg/client/platform_infrastructure/update_constructor_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_constructor_logging_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateConstructorLoggingSettingsOK() *UpdateConstructorLoggingSettingsOK return &UpdateConstructorLoggingSettingsOK{} } -/* UpdateConstructorLoggingSettingsOK describes a response with status code 200, with default header values. +/* +UpdateConstructorLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the constructor instance */ @@ -89,9 +90,44 @@ type UpdateConstructorLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this update constructor logging settings o k response has a 2xx status code +func (o *UpdateConstructorLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update constructor logging settings o k response has a 3xx status code +func (o *UpdateConstructorLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update constructor logging settings o k response has a 4xx status code +func (o *UpdateConstructorLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update constructor logging settings o k response has a 5xx status code +func (o *UpdateConstructorLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update constructor logging settings o k response a status code equal to that given +func (o *UpdateConstructorLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update constructor logging settings o k response +func (o *UpdateConstructorLoggingSettingsOK) Code() int { + return 200 +} + func (o *UpdateConstructorLoggingSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateConstructorLoggingSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateConstructorLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -134,7 +170,8 @@ func NewUpdateConstructorLoggingSettingsBadRequest() *UpdateConstructorLoggingSe return &UpdateConstructorLoggingSettingsBadRequest{} } -/* UpdateConstructorLoggingSettingsBadRequest describes a response with status code 400, with default header values. +/* +UpdateConstructorLoggingSettingsBadRequest describes a response with status code 400, with default header values. The update request is invalid. (code: `patch.request_malformed`) */ @@ -147,9 +184,44 @@ type UpdateConstructorLoggingSettingsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update constructor logging settings bad request response has a 2xx status code +func (o *UpdateConstructorLoggingSettingsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update constructor logging settings bad request response has a 3xx status code +func (o *UpdateConstructorLoggingSettingsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update constructor logging settings bad request response has a 4xx status code +func (o *UpdateConstructorLoggingSettingsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update constructor logging settings bad request response has a 5xx status code +func (o *UpdateConstructorLoggingSettingsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update constructor logging settings bad request response a status code equal to that given +func (o *UpdateConstructorLoggingSettingsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update constructor logging settings bad request response +func (o *UpdateConstructorLoggingSettingsBadRequest) Code() int { + return 400 +} + func (o *UpdateConstructorLoggingSettingsBadRequest) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsBadRequest %+v", 400, o.Payload) } + +func (o *UpdateConstructorLoggingSettingsBadRequest) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsBadRequest %+v", 400, o.Payload) +} + func (o *UpdateConstructorLoggingSettingsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewUpdateConstructorLoggingSettingsNotFound() *UpdateConstructorLoggingSett return &UpdateConstructorLoggingSettingsNotFound{} } -/* UpdateConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +UpdateConstructorLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`) */ @@ -191,9 +264,44 @@ type UpdateConstructorLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update constructor logging settings not found response has a 2xx status code +func (o *UpdateConstructorLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update constructor logging settings not found response has a 3xx status code +func (o *UpdateConstructorLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update constructor logging settings not found response has a 4xx status code +func (o *UpdateConstructorLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update constructor logging settings not found response has a 5xx status code +func (o *UpdateConstructorLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update constructor logging settings not found response a status code equal to that given +func (o *UpdateConstructorLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update constructor logging settings not found response +func (o *UpdateConstructorLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *UpdateConstructorLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *UpdateConstructorLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/constructors/{constructor_id}/logging_settings][%d] updateConstructorLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *UpdateConstructorLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_proxies_filtered_group_parameters.go b/pkg/client/platform_infrastructure/update_proxies_filtered_group_parameters.go index 1c646fd0..0d49711f 100644 --- a/pkg/client/platform_infrastructure/update_proxies_filtered_group_parameters.go +++ b/pkg/client/platform_infrastructure/update_proxies_filtered_group_parameters.go @@ -71,10 +71,12 @@ func NewUpdateProxiesFilteredGroupParamsWithHTTPClient(client *http.Client) *Upd } } -/* UpdateProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - for the update proxies filtered group operation. +/* +UpdateProxiesFilteredGroupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update proxies filtered group operation. + + Typically these are written to a http.Request. */ type UpdateProxiesFilteredGroupParams struct { diff --git a/pkg/client/platform_infrastructure/update_proxies_filtered_group_responses.go b/pkg/client/platform_infrastructure/update_proxies_filtered_group_responses.go index 1a02bc47..cf3a737a 100644 --- a/pkg/client/platform_infrastructure/update_proxies_filtered_group_responses.go +++ b/pkg/client/platform_infrastructure/update_proxies_filtered_group_responses.go @@ -74,7 +74,8 @@ func NewUpdateProxiesFilteredGroupOK() *UpdateProxiesFilteredGroupOK { return &UpdateProxiesFilteredGroupOK{} } -/* UpdateProxiesFilteredGroupOK describes a response with status code 200, with default header values. +/* +UpdateProxiesFilteredGroupOK describes a response with status code 200, with default header values. Returns the created or updated filtered group of proxies */ @@ -95,9 +96,44 @@ type UpdateProxiesFilteredGroupOK struct { Payload *models.ProxiesFilteredGroup } +// IsSuccess returns true when this update proxies filtered group o k response has a 2xx status code +func (o *UpdateProxiesFilteredGroupOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update proxies filtered group o k response has a 3xx status code +func (o *UpdateProxiesFilteredGroupOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies filtered group o k response has a 4xx status code +func (o *UpdateProxiesFilteredGroupOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update proxies filtered group o k response has a 5xx status code +func (o *UpdateProxiesFilteredGroupOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies filtered group o k response a status code equal to that given +func (o *UpdateProxiesFilteredGroupOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update proxies filtered group o k response +func (o *UpdateProxiesFilteredGroupOK) Code() int { + return 200 +} + func (o *UpdateProxiesFilteredGroupOK) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupOK %+v", 200, o.Payload) } + +func (o *UpdateProxiesFilteredGroupOK) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupOK %+v", 200, o.Payload) +} + func (o *UpdateProxiesFilteredGroupOK) GetPayload() *models.ProxiesFilteredGroup { return o.Payload } @@ -140,7 +176,8 @@ func NewUpdateProxiesFilteredGroupBadRequest() *UpdateProxiesFilteredGroupBadReq return &UpdateProxiesFilteredGroupBadRequest{} } -/* UpdateProxiesFilteredGroupBadRequest describes a response with status code 400, with default header values. +/* +UpdateProxiesFilteredGroupBadRequest describes a response with status code 400, with default header values. The provided identifier doesn't match the identifier in the object. (code: `proxies.proxies_filtered_group_id_conflict`) */ @@ -153,9 +190,44 @@ type UpdateProxiesFilteredGroupBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update proxies filtered group bad request response has a 2xx status code +func (o *UpdateProxiesFilteredGroupBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update proxies filtered group bad request response has a 3xx status code +func (o *UpdateProxiesFilteredGroupBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies filtered group bad request response has a 4xx status code +func (o *UpdateProxiesFilteredGroupBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update proxies filtered group bad request response has a 5xx status code +func (o *UpdateProxiesFilteredGroupBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies filtered group bad request response a status code equal to that given +func (o *UpdateProxiesFilteredGroupBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update proxies filtered group bad request response +func (o *UpdateProxiesFilteredGroupBadRequest) Code() int { + return 400 +} + func (o *UpdateProxiesFilteredGroupBadRequest) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupBadRequest %+v", 400, o.Payload) } + +func (o *UpdateProxiesFilteredGroupBadRequest) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupBadRequest %+v", 400, o.Payload) +} + func (o *UpdateProxiesFilteredGroupBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -184,7 +256,8 @@ func NewUpdateProxiesFilteredGroupConflict() *UpdateProxiesFilteredGroupConflict return &UpdateProxiesFilteredGroupConflict{} } -/* UpdateProxiesFilteredGroupConflict describes a response with status code 409, with default header values. +/* +UpdateProxiesFilteredGroupConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `proxies.proxies_filtered_group_version_conflict`) */ @@ -197,9 +270,44 @@ type UpdateProxiesFilteredGroupConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update proxies filtered group conflict response has a 2xx status code +func (o *UpdateProxiesFilteredGroupConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update proxies filtered group conflict response has a 3xx status code +func (o *UpdateProxiesFilteredGroupConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies filtered group conflict response has a 4xx status code +func (o *UpdateProxiesFilteredGroupConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update proxies filtered group conflict response has a 5xx status code +func (o *UpdateProxiesFilteredGroupConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies filtered group conflict response a status code equal to that given +func (o *UpdateProxiesFilteredGroupConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update proxies filtered group conflict response +func (o *UpdateProxiesFilteredGroupConflict) Code() int { + return 409 +} + func (o *UpdateProxiesFilteredGroupConflict) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupConflict %+v", 409, o.Payload) } + +func (o *UpdateProxiesFilteredGroupConflict) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupConflict %+v", 409, o.Payload) +} + func (o *UpdateProxiesFilteredGroupConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -228,7 +336,8 @@ func NewUpdateProxiesFilteredGroupRetryWith() *UpdateProxiesFilteredGroupRetryWi return &UpdateProxiesFilteredGroupRetryWith{} } -/* UpdateProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. +/* +UpdateProxiesFilteredGroupRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -241,9 +350,44 @@ type UpdateProxiesFilteredGroupRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update proxies filtered group retry with response has a 2xx status code +func (o *UpdateProxiesFilteredGroupRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update proxies filtered group retry with response has a 3xx status code +func (o *UpdateProxiesFilteredGroupRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies filtered group retry with response has a 4xx status code +func (o *UpdateProxiesFilteredGroupRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update proxies filtered group retry with response has a 5xx status code +func (o *UpdateProxiesFilteredGroupRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies filtered group retry with response a status code equal to that given +func (o *UpdateProxiesFilteredGroupRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update proxies filtered group retry with response +func (o *UpdateProxiesFilteredGroupRetryWith) Code() int { + return 449 +} + func (o *UpdateProxiesFilteredGroupRetryWith) Error() string { return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupRetryWith %+v", 449, o.Payload) } + +func (o *UpdateProxiesFilteredGroupRetryWith) String() string { + return fmt.Sprintf("[PUT /platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}][%d] updateProxiesFilteredGroupRetryWith %+v", 449, o.Payload) +} + func (o *UpdateProxiesFilteredGroupRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_proxies_settings_parameters.go b/pkg/client/platform_infrastructure/update_proxies_settings_parameters.go index 98be0b81..21c2a24d 100644 --- a/pkg/client/platform_infrastructure/update_proxies_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_proxies_settings_parameters.go @@ -71,10 +71,12 @@ func NewUpdateProxiesSettingsParamsWithHTTPClient(client *http.Client) *UpdatePr } } -/* UpdateProxiesSettingsParams contains all the parameters to send to the API endpoint - for the update proxies settings operation. +/* +UpdateProxiesSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update proxies settings operation. + + Typically these are written to a http.Request. */ type UpdateProxiesSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_proxies_settings_responses.go b/pkg/client/platform_infrastructure/update_proxies_settings_responses.go index 08c67c3e..6018c7d7 100644 --- a/pkg/client/platform_infrastructure/update_proxies_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_proxies_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateProxiesSettingsOK() *UpdateProxiesSettingsOK { return &UpdateProxiesSettingsOK{} } -/* UpdateProxiesSettingsOK describes a response with status code 200, with default header values. +/* +UpdateProxiesSettingsOK describes a response with status code 200, with default header values. Returns the updated settings */ @@ -76,9 +77,44 @@ type UpdateProxiesSettingsOK struct { Payload *models.ProxiesSettings } +// IsSuccess returns true when this update proxies settings o k response has a 2xx status code +func (o *UpdateProxiesSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update proxies settings o k response has a 3xx status code +func (o *UpdateProxiesSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies settings o k response has a 4xx status code +func (o *UpdateProxiesSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update proxies settings o k response has a 5xx status code +func (o *UpdateProxiesSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies settings o k response a status code equal to that given +func (o *UpdateProxiesSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update proxies settings o k response +func (o *UpdateProxiesSettingsOK) Code() int { + return 200 +} + func (o *UpdateProxiesSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateProxiesSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateProxiesSettingsOK) GetPayload() *models.ProxiesSettings { return o.Payload } @@ -100,7 +136,8 @@ func NewUpdateProxiesSettingsConflict() *UpdateProxiesSettingsConflict { return &UpdateProxiesSettingsConflict{} } -/* UpdateProxiesSettingsConflict describes a response with status code 409, with default header values. +/* +UpdateProxiesSettingsConflict describes a response with status code 409, with default header values. There is a version conflict. (code: `proxies.version_conflict`) */ @@ -113,9 +150,44 @@ type UpdateProxiesSettingsConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update proxies settings conflict response has a 2xx status code +func (o *UpdateProxiesSettingsConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update proxies settings conflict response has a 3xx status code +func (o *UpdateProxiesSettingsConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies settings conflict response has a 4xx status code +func (o *UpdateProxiesSettingsConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this update proxies settings conflict response has a 5xx status code +func (o *UpdateProxiesSettingsConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies settings conflict response a status code equal to that given +func (o *UpdateProxiesSettingsConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the update proxies settings conflict response +func (o *UpdateProxiesSettingsConflict) Code() int { + return 409 +} + func (o *UpdateProxiesSettingsConflict) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsConflict %+v", 409, o.Payload) } + +func (o *UpdateProxiesSettingsConflict) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsConflict %+v", 409, o.Payload) +} + func (o *UpdateProxiesSettingsConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -144,7 +216,8 @@ func NewUpdateProxiesSettingsRetryWith() *UpdateProxiesSettingsRetryWith { return &UpdateProxiesSettingsRetryWith{} } -/* UpdateProxiesSettingsRetryWith describes a response with status code 449, with default header values. +/* +UpdateProxiesSettingsRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -157,9 +230,44 @@ type UpdateProxiesSettingsRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update proxies settings retry with response has a 2xx status code +func (o *UpdateProxiesSettingsRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update proxies settings retry with response has a 3xx status code +func (o *UpdateProxiesSettingsRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update proxies settings retry with response has a 4xx status code +func (o *UpdateProxiesSettingsRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update proxies settings retry with response has a 5xx status code +func (o *UpdateProxiesSettingsRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update proxies settings retry with response a status code equal to that given +func (o *UpdateProxiesSettingsRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update proxies settings retry with response +func (o *UpdateProxiesSettingsRetryWith) Code() int { + return 449 +} + func (o *UpdateProxiesSettingsRetryWith) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsRetryWith %+v", 449, o.Payload) } + +func (o *UpdateProxiesSettingsRetryWith) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/proxies/settings][%d] updateProxiesSettingsRetryWith %+v", 449, o.Payload) +} + func (o *UpdateProxiesSettingsRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/platform_infrastructure/update_runner_logging_settings_parameters.go b/pkg/client/platform_infrastructure/update_runner_logging_settings_parameters.go index 5f5f12e3..cb59cd0e 100644 --- a/pkg/client/platform_infrastructure/update_runner_logging_settings_parameters.go +++ b/pkg/client/platform_infrastructure/update_runner_logging_settings_parameters.go @@ -69,10 +69,12 @@ func NewUpdateRunnerLoggingSettingsParamsWithHTTPClient(client *http.Client) *Up } } -/* UpdateRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - for the update runner logging settings operation. +/* +UpdateRunnerLoggingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update runner logging settings operation. + + Typically these are written to a http.Request. */ type UpdateRunnerLoggingSettingsParams struct { diff --git a/pkg/client/platform_infrastructure/update_runner_logging_settings_responses.go b/pkg/client/platform_infrastructure/update_runner_logging_settings_responses.go index 4872e23c..4be8474f 100644 --- a/pkg/client/platform_infrastructure/update_runner_logging_settings_responses.go +++ b/pkg/client/platform_infrastructure/update_runner_logging_settings_responses.go @@ -68,7 +68,8 @@ func NewUpdateRunnerLoggingSettingsOK() *UpdateRunnerLoggingSettingsOK { return &UpdateRunnerLoggingSettingsOK{} } -/* UpdateRunnerLoggingSettingsOK describes a response with status code 200, with default header values. +/* +UpdateRunnerLoggingSettingsOK describes a response with status code 200, with default header values. The updated logging settings for the runner instance */ @@ -89,9 +90,44 @@ type UpdateRunnerLoggingSettingsOK struct { Payload *models.LoggingSettings } +// IsSuccess returns true when this update runner logging settings o k response has a 2xx status code +func (o *UpdateRunnerLoggingSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update runner logging settings o k response has a 3xx status code +func (o *UpdateRunnerLoggingSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update runner logging settings o k response has a 4xx status code +func (o *UpdateRunnerLoggingSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update runner logging settings o k response has a 5xx status code +func (o *UpdateRunnerLoggingSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update runner logging settings o k response a status code equal to that given +func (o *UpdateRunnerLoggingSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update runner logging settings o k response +func (o *UpdateRunnerLoggingSettingsOK) Code() int { + return 200 +} + func (o *UpdateRunnerLoggingSettingsOK) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsOK %+v", 200, o.Payload) } + +func (o *UpdateRunnerLoggingSettingsOK) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsOK %+v", 200, o.Payload) +} + func (o *UpdateRunnerLoggingSettingsOK) GetPayload() *models.LoggingSettings { return o.Payload } @@ -134,7 +170,8 @@ func NewUpdateRunnerLoggingSettingsBadRequest() *UpdateRunnerLoggingSettingsBadR return &UpdateRunnerLoggingSettingsBadRequest{} } -/* UpdateRunnerLoggingSettingsBadRequest describes a response with status code 400, with default header values. +/* +UpdateRunnerLoggingSettingsBadRequest describes a response with status code 400, with default header values. The update request is invalid. (code: `patch.request_malformed`) */ @@ -147,9 +184,44 @@ type UpdateRunnerLoggingSettingsBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update runner logging settings bad request response has a 2xx status code +func (o *UpdateRunnerLoggingSettingsBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update runner logging settings bad request response has a 3xx status code +func (o *UpdateRunnerLoggingSettingsBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update runner logging settings bad request response has a 4xx status code +func (o *UpdateRunnerLoggingSettingsBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update runner logging settings bad request response has a 5xx status code +func (o *UpdateRunnerLoggingSettingsBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update runner logging settings bad request response a status code equal to that given +func (o *UpdateRunnerLoggingSettingsBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update runner logging settings bad request response +func (o *UpdateRunnerLoggingSettingsBadRequest) Code() int { + return 400 +} + func (o *UpdateRunnerLoggingSettingsBadRequest) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsBadRequest %+v", 400, o.Payload) } + +func (o *UpdateRunnerLoggingSettingsBadRequest) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsBadRequest %+v", 400, o.Payload) +} + func (o *UpdateRunnerLoggingSettingsBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -178,7 +250,8 @@ func NewUpdateRunnerLoggingSettingsNotFound() *UpdateRunnerLoggingSettingsNotFou return &UpdateRunnerLoggingSettingsNotFound{} } -/* UpdateRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. +/* +UpdateRunnerLoggingSettingsNotFound describes a response with status code 404, with default header values. The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`) */ @@ -191,9 +264,44 @@ type UpdateRunnerLoggingSettingsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update runner logging settings not found response has a 2xx status code +func (o *UpdateRunnerLoggingSettingsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update runner logging settings not found response has a 3xx status code +func (o *UpdateRunnerLoggingSettingsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update runner logging settings not found response has a 4xx status code +func (o *UpdateRunnerLoggingSettingsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update runner logging settings not found response has a 5xx status code +func (o *UpdateRunnerLoggingSettingsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update runner logging settings not found response a status code equal to that given +func (o *UpdateRunnerLoggingSettingsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update runner logging settings not found response +func (o *UpdateRunnerLoggingSettingsNotFound) Code() int { + return 404 +} + func (o *UpdateRunnerLoggingSettingsNotFound) Error() string { return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsNotFound %+v", 404, o.Payload) } + +func (o *UpdateRunnerLoggingSettingsNotFound) String() string { + return fmt.Sprintf("[PATCH /platform/infrastructure/runners/{runner_id}/logging_settings][%d] updateRunnerLoggingSettingsNotFound %+v", 404, o.Payload) +} + func (o *UpdateRunnerLoggingSettingsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/stack/delete_version_stack_parameters.go b/pkg/client/stack/delete_version_stack_parameters.go index 005f471a..abde01c0 100644 --- a/pkg/client/stack/delete_version_stack_parameters.go +++ b/pkg/client/stack/delete_version_stack_parameters.go @@ -69,10 +69,12 @@ func NewDeleteVersionStackParamsWithHTTPClient(client *http.Client) *DeleteVersi } } -/* DeleteVersionStackParams contains all the parameters to send to the API endpoint - for the delete version stack operation. +/* +DeleteVersionStackParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete version stack operation. + + Typically these are written to a http.Request. */ type DeleteVersionStackParams struct { diff --git a/pkg/client/stack/delete_version_stack_responses.go b/pkg/client/stack/delete_version_stack_responses.go index a79df431..4f883177 100644 --- a/pkg/client/stack/delete_version_stack_responses.go +++ b/pkg/client/stack/delete_version_stack_responses.go @@ -68,7 +68,8 @@ func NewDeleteVersionStackOK() *DeleteVersionStackOK { return &DeleteVersionStackOK{} } -/* DeleteVersionStackOK describes a response with status code 200, with default header values. +/* +DeleteVersionStackOK describes a response with status code 200, with default header values. The `deleted` flag is applied to the specified Elastic Stack version. */ @@ -76,9 +77,44 @@ type DeleteVersionStackOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete version stack o k response has a 2xx status code +func (o *DeleteVersionStackOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete version stack o k response has a 3xx status code +func (o *DeleteVersionStackOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete version stack o k response has a 4xx status code +func (o *DeleteVersionStackOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete version stack o k response has a 5xx status code +func (o *DeleteVersionStackOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete version stack o k response a status code equal to that given +func (o *DeleteVersionStackOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete version stack o k response +func (o *DeleteVersionStackOK) Code() int { + return 200 +} + func (o *DeleteVersionStackOK) Error() string { return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackOK %+v", 200, o.Payload) } + +func (o *DeleteVersionStackOK) String() string { + return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackOK %+v", 200, o.Payload) +} + func (o *DeleteVersionStackOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -98,7 +134,8 @@ func NewDeleteVersionStackNotFound() *DeleteVersionStackNotFound { return &DeleteVersionStackNotFound{} } -/* DeleteVersionStackNotFound describes a response with status code 404, with default header values. +/* +DeleteVersionStackNotFound describes a response with status code 404, with default header values. The Elastic Stack version can't be found. (code: `stackpack.version_not_found`) */ @@ -111,9 +148,44 @@ type DeleteVersionStackNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete version stack not found response has a 2xx status code +func (o *DeleteVersionStackNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete version stack not found response has a 3xx status code +func (o *DeleteVersionStackNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete version stack not found response has a 4xx status code +func (o *DeleteVersionStackNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete version stack not found response has a 5xx status code +func (o *DeleteVersionStackNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete version stack not found response a status code equal to that given +func (o *DeleteVersionStackNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete version stack not found response +func (o *DeleteVersionStackNotFound) Code() int { + return 404 +} + func (o *DeleteVersionStackNotFound) Error() string { return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackNotFound %+v", 404, o.Payload) } + +func (o *DeleteVersionStackNotFound) String() string { + return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackNotFound %+v", 404, o.Payload) +} + func (o *DeleteVersionStackNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -142,7 +214,8 @@ func NewDeleteVersionStackRetryWith() *DeleteVersionStackRetryWith { return &DeleteVersionStackRetryWith{} } -/* DeleteVersionStackRetryWith describes a response with status code 449, with default header values. +/* +DeleteVersionStackRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -155,9 +228,44 @@ type DeleteVersionStackRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete version stack retry with response has a 2xx status code +func (o *DeleteVersionStackRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete version stack retry with response has a 3xx status code +func (o *DeleteVersionStackRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete version stack retry with response has a 4xx status code +func (o *DeleteVersionStackRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete version stack retry with response has a 5xx status code +func (o *DeleteVersionStackRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete version stack retry with response a status code equal to that given +func (o *DeleteVersionStackRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete version stack retry with response +func (o *DeleteVersionStackRetryWith) Code() int { + return 449 +} + func (o *DeleteVersionStackRetryWith) Error() string { return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackRetryWith %+v", 449, o.Payload) } + +func (o *DeleteVersionStackRetryWith) String() string { + return fmt.Sprintf("[DELETE /stack/versions/{version}][%d] deleteVersionStackRetryWith %+v", 449, o.Payload) +} + func (o *DeleteVersionStackRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/stack/get_instance_types_parameters.go b/pkg/client/stack/get_instance_types_parameters.go index 79557b6a..fa86381d 100644 --- a/pkg/client/stack/get_instance_types_parameters.go +++ b/pkg/client/stack/get_instance_types_parameters.go @@ -69,10 +69,12 @@ func NewGetInstanceTypesParamsWithHTTPClient(client *http.Client) *GetInstanceTy } } -/* GetInstanceTypesParams contains all the parameters to send to the API endpoint - for the get instance types operation. +/* +GetInstanceTypesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get instance types operation. + + Typically these are written to a http.Request. */ type GetInstanceTypesParams struct { timeout time.Duration diff --git a/pkg/client/stack/get_instance_types_responses.go b/pkg/client/stack/get_instance_types_responses.go index 7078df36..13b3d212 100644 --- a/pkg/client/stack/get_instance_types_responses.go +++ b/pkg/client/stack/get_instance_types_responses.go @@ -56,7 +56,8 @@ func NewGetInstanceTypesOK() *GetInstanceTypesOK { return &GetInstanceTypesOK{} } -/* GetInstanceTypesOK describes a response with status code 200, with default header values. +/* +GetInstanceTypesOK describes a response with status code 200, with default header values. List of node types */ @@ -64,9 +65,44 @@ type GetInstanceTypesOK struct { Payload []*models.InstanceTypeResource } +// IsSuccess returns true when this get instance types o k response has a 2xx status code +func (o *GetInstanceTypesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get instance types o k response has a 3xx status code +func (o *GetInstanceTypesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get instance types o k response has a 4xx status code +func (o *GetInstanceTypesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get instance types o k response has a 5xx status code +func (o *GetInstanceTypesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get instance types o k response a status code equal to that given +func (o *GetInstanceTypesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get instance types o k response +func (o *GetInstanceTypesOK) Code() int { + return 200 +} + func (o *GetInstanceTypesOK) Error() string { return fmt.Sprintf("[GET /stack/instance-types][%d] getInstanceTypesOK %+v", 200, o.Payload) } + +func (o *GetInstanceTypesOK) String() string { + return fmt.Sprintf("[GET /stack/instance-types][%d] getInstanceTypesOK %+v", 200, o.Payload) +} + func (o *GetInstanceTypesOK) GetPayload() []*models.InstanceTypeResource { return o.Payload } diff --git a/pkg/client/stack/get_version_stack_parameters.go b/pkg/client/stack/get_version_stack_parameters.go index d720aef9..221d7007 100644 --- a/pkg/client/stack/get_version_stack_parameters.go +++ b/pkg/client/stack/get_version_stack_parameters.go @@ -69,10 +69,12 @@ func NewGetVersionStackParamsWithHTTPClient(client *http.Client) *GetVersionStac } } -/* GetVersionStackParams contains all the parameters to send to the API endpoint - for the get version stack operation. +/* +GetVersionStackParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get version stack operation. + + Typically these are written to a http.Request. */ type GetVersionStackParams struct { diff --git a/pkg/client/stack/get_version_stack_responses.go b/pkg/client/stack/get_version_stack_responses.go index c05349d1..23cd18c4 100644 --- a/pkg/client/stack/get_version_stack_responses.go +++ b/pkg/client/stack/get_version_stack_responses.go @@ -62,7 +62,8 @@ func NewGetVersionStackOK() *GetVersionStackOK { return &GetVersionStackOK{} } -/* GetVersionStackOK describes a response with status code 200, with default header values. +/* +GetVersionStackOK describes a response with status code 200, with default header values. The Elastic Stack version is found. */ @@ -70,9 +71,44 @@ type GetVersionStackOK struct { Payload *models.StackVersionConfig } +// IsSuccess returns true when this get version stack o k response has a 2xx status code +func (o *GetVersionStackOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get version stack o k response has a 3xx status code +func (o *GetVersionStackOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get version stack o k response has a 4xx status code +func (o *GetVersionStackOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get version stack o k response has a 5xx status code +func (o *GetVersionStackOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get version stack o k response a status code equal to that given +func (o *GetVersionStackOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get version stack o k response +func (o *GetVersionStackOK) Code() int { + return 200 +} + func (o *GetVersionStackOK) Error() string { return fmt.Sprintf("[GET /stack/versions/{version}][%d] getVersionStackOK %+v", 200, o.Payload) } + +func (o *GetVersionStackOK) String() string { + return fmt.Sprintf("[GET /stack/versions/{version}][%d] getVersionStackOK %+v", 200, o.Payload) +} + func (o *GetVersionStackOK) GetPayload() *models.StackVersionConfig { return o.Payload } @@ -94,7 +130,8 @@ func NewGetVersionStackNotFound() *GetVersionStackNotFound { return &GetVersionStackNotFound{} } -/* GetVersionStackNotFound describes a response with status code 404, with default header values. +/* +GetVersionStackNotFound describes a response with status code 404, with default header values. The Elastic Stack version can't be found. (code: `stackpack.version_not_found`) */ @@ -107,9 +144,44 @@ type GetVersionStackNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get version stack not found response has a 2xx status code +func (o *GetVersionStackNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get version stack not found response has a 3xx status code +func (o *GetVersionStackNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get version stack not found response has a 4xx status code +func (o *GetVersionStackNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get version stack not found response has a 5xx status code +func (o *GetVersionStackNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get version stack not found response a status code equal to that given +func (o *GetVersionStackNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get version stack not found response +func (o *GetVersionStackNotFound) Code() int { + return 404 +} + func (o *GetVersionStackNotFound) Error() string { return fmt.Sprintf("[GET /stack/versions/{version}][%d] getVersionStackNotFound %+v", 404, o.Payload) } + +func (o *GetVersionStackNotFound) String() string { + return fmt.Sprintf("[GET /stack/versions/{version}][%d] getVersionStackNotFound %+v", 404, o.Payload) +} + func (o *GetVersionStackNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/stack/get_version_stacks_parameters.go b/pkg/client/stack/get_version_stacks_parameters.go index e9614271..3cf0e666 100644 --- a/pkg/client/stack/get_version_stacks_parameters.go +++ b/pkg/client/stack/get_version_stacks_parameters.go @@ -70,10 +70,12 @@ func NewGetVersionStacksParamsWithHTTPClient(client *http.Client) *GetVersionSta } } -/* GetVersionStacksParams contains all the parameters to send to the API endpoint - for the get version stacks operation. +/* +GetVersionStacksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get version stacks operation. + + Typically these are written to a http.Request. */ type GetVersionStacksParams struct { diff --git a/pkg/client/stack/get_version_stacks_responses.go b/pkg/client/stack/get_version_stacks_responses.go index 42f21f46..4ca6356e 100644 --- a/pkg/client/stack/get_version_stacks_responses.go +++ b/pkg/client/stack/get_version_stacks_responses.go @@ -56,7 +56,8 @@ func NewGetVersionStacksOK() *GetVersionStacksOK { return &GetVersionStacksOK{} } -/* GetVersionStacksOK describes a response with status code 200, with default header values. +/* +GetVersionStacksOK describes a response with status code 200, with default header values. The list of all available Elastic Stack versions are retrieved, including the template version and structure. */ @@ -64,9 +65,44 @@ type GetVersionStacksOK struct { Payload *models.StackVersionConfigs } +// IsSuccess returns true when this get version stacks o k response has a 2xx status code +func (o *GetVersionStacksOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get version stacks o k response has a 3xx status code +func (o *GetVersionStacksOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get version stacks o k response has a 4xx status code +func (o *GetVersionStacksOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get version stacks o k response has a 5xx status code +func (o *GetVersionStacksOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get version stacks o k response a status code equal to that given +func (o *GetVersionStacksOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get version stacks o k response +func (o *GetVersionStacksOK) Code() int { + return 200 +} + func (o *GetVersionStacksOK) Error() string { return fmt.Sprintf("[GET /stack/versions][%d] getVersionStacksOK %+v", 200, o.Payload) } + +func (o *GetVersionStacksOK) String() string { + return fmt.Sprintf("[GET /stack/versions][%d] getVersionStacksOK %+v", 200, o.Payload) +} + func (o *GetVersionStacksOK) GetPayload() *models.StackVersionConfigs { return o.Payload } diff --git a/pkg/client/stack/stack_client.go b/pkg/client/stack/stack_client.go index 34b83a78..2d8115ee 100644 --- a/pkg/client/stack/stack_client.go +++ b/pkg/client/stack/stack_client.go @@ -63,9 +63,9 @@ type ClientService interface { } /* - DeleteVersionStack deletes stack version +DeleteVersionStack deletes stack version - Uses the `deleted` flag, which removes only that version of the Elastic Stack from the list of available versions. To restore the version, send an update request. For more information, see the PUT request. +Uses the `deleted` flag, which removes only that version of the Elastic Stack from the list of available versions. To restore the version, send an update request. For more information, see the PUT request. */ func (a *Client) DeleteVersionStack(params *DeleteVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVersionStackOK, error) { // TODO: Validate the params before sending @@ -104,9 +104,9 @@ func (a *Client) DeleteVersionStack(params *DeleteVersionStackParams, authInfo r } /* - GetInstanceTypes gets instance types +GetInstanceTypes gets instance types - Retrieves a list of all instance types. +Retrieves a list of all instance types. */ func (a *Client) GetInstanceTypes(params *GetInstanceTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceTypesOK, error) { // TODO: Validate the params before sending @@ -145,9 +145,9 @@ func (a *Client) GetInstanceTypes(params *GetInstanceTypesParams, authInfo runti } /* - GetVersionStack gets stack version +GetVersionStack gets stack version - Retrieves the Elastic Stack version and template. +Retrieves the Elastic Stack version and template. */ func (a *Client) GetVersionStack(params *GetVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStackOK, error) { // TODO: Validate the params before sending @@ -186,9 +186,9 @@ func (a *Client) GetVersionStack(params *GetVersionStackParams, authInfo runtime } /* - GetVersionStacks gets stack versions +GetVersionStacks gets stack versions - By default, retrieves only the available Elastic Stack versions. To retrieve all of the Elastic Stack versions, use the `show_deleted parameter`. +By default, retrieves only the available Elastic Stack versions. To retrieve all of the Elastic Stack versions, use the `show_deleted parameter`. */ func (a *Client) GetVersionStacks(params *GetVersionStacksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStacksOK, error) { // TODO: Validate the params before sending @@ -227,9 +227,10 @@ func (a *Client) GetVersionStacks(params *GetVersionStacksParams, authInfo runti } /* - UpdateStackPacks uploads stack pack + UpdateStackPacks uploads stack pack + + Creates or updates an Elastic Stack pack and template. - Creates or updates an Elastic Stack pack and template. The endpoint supports `multipart/form-data` requests, as well as `application/zip` and `application/octet-stream` requests with a binary body. The maximum size of the payload is 1Mb. When the archive contains an Elastic Stack configuration that is available through the API, the configuration and template are overwritten. */ @@ -270,9 +271,9 @@ func (a *Client) UpdateStackPacks(params *UpdateStackPacksParams, authInfo runti } /* - UpdateVersionStack updates stack version +UpdateVersionStack updates stack version - Updates the Elastic Stack version configuration. +Updates the Elastic Stack version configuration. */ func (a *Client) UpdateVersionStack(params *UpdateVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVersionStackOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/stack/update_stack_packs_parameters.go b/pkg/client/stack/update_stack_packs_parameters.go index eea4a5a8..895c59c2 100644 --- a/pkg/client/stack/update_stack_packs_parameters.go +++ b/pkg/client/stack/update_stack_packs_parameters.go @@ -69,10 +69,12 @@ func NewUpdateStackPacksParamsWithHTTPClient(client *http.Client) *UpdateStackPa } } -/* UpdateStackPacksParams contains all the parameters to send to the API endpoint - for the update stack packs operation. +/* +UpdateStackPacksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update stack packs operation. + + Typically these are written to a http.Request. */ type UpdateStackPacksParams struct { diff --git a/pkg/client/stack/update_stack_packs_responses.go b/pkg/client/stack/update_stack_packs_responses.go index 94aec701..512546fc 100644 --- a/pkg/client/stack/update_stack_packs_responses.go +++ b/pkg/client/stack/update_stack_packs_responses.go @@ -62,7 +62,8 @@ func NewUpdateStackPacksOK() *UpdateStackPacksOK { return &UpdateStackPacksOK{} } -/* UpdateStackPacksOK describes a response with status code 200, with default header values. +/* +UpdateStackPacksOK describes a response with status code 200, with default header values. The Elastic Stack pack successfully processed. */ @@ -70,9 +71,44 @@ type UpdateStackPacksOK struct { Payload *models.StackVersionArchiveProcessingResult } +// IsSuccess returns true when this update stack packs o k response has a 2xx status code +func (o *UpdateStackPacksOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update stack packs o k response has a 3xx status code +func (o *UpdateStackPacksOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update stack packs o k response has a 4xx status code +func (o *UpdateStackPacksOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update stack packs o k response has a 5xx status code +func (o *UpdateStackPacksOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update stack packs o k response a status code equal to that given +func (o *UpdateStackPacksOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update stack packs o k response +func (o *UpdateStackPacksOK) Code() int { + return 200 +} + func (o *UpdateStackPacksOK) Error() string { return fmt.Sprintf("[POST /stack/versions][%d] updateStackPacksOK %+v", 200, o.Payload) } + +func (o *UpdateStackPacksOK) String() string { + return fmt.Sprintf("[POST /stack/versions][%d] updateStackPacksOK %+v", 200, o.Payload) +} + func (o *UpdateStackPacksOK) GetPayload() *models.StackVersionArchiveProcessingResult { return o.Payload } @@ -94,9 +130,11 @@ func NewUpdateStackPacksBadRequest() *UpdateStackPacksBadRequest { return &UpdateStackPacksBadRequest{} } -/* UpdateStackPacksBadRequest describes a response with status code 400, with default header values. +/* + UpdateStackPacksBadRequest describes a response with status code 400, with default header values. + + * There is an error in the file. Choose a different file, then try again. (code: `stackpack.bad_archive`) - * There is an error in the file. Choose a different file, then try again. (code: `stackpack.bad_archive`) * Some unexpected error occurred. (code: `stackpack.unknown_internal_error`) */ type UpdateStackPacksBadRequest struct { @@ -108,9 +146,44 @@ type UpdateStackPacksBadRequest struct { Payload *models.StackVersionArchiveProcessingResult } +// IsSuccess returns true when this update stack packs bad request response has a 2xx status code +func (o *UpdateStackPacksBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update stack packs bad request response has a 3xx status code +func (o *UpdateStackPacksBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update stack packs bad request response has a 4xx status code +func (o *UpdateStackPacksBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update stack packs bad request response has a 5xx status code +func (o *UpdateStackPacksBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update stack packs bad request response a status code equal to that given +func (o *UpdateStackPacksBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update stack packs bad request response +func (o *UpdateStackPacksBadRequest) Code() int { + return 400 +} + func (o *UpdateStackPacksBadRequest) Error() string { return fmt.Sprintf("[POST /stack/versions][%d] updateStackPacksBadRequest %+v", 400, o.Payload) } + +func (o *UpdateStackPacksBadRequest) String() string { + return fmt.Sprintf("[POST /stack/versions][%d] updateStackPacksBadRequest %+v", 400, o.Payload) +} + func (o *UpdateStackPacksBadRequest) GetPayload() *models.StackVersionArchiveProcessingResult { return o.Payload } diff --git a/pkg/client/stack/update_version_stack_parameters.go b/pkg/client/stack/update_version_stack_parameters.go index dae73884..20d7f796 100644 --- a/pkg/client/stack/update_version_stack_parameters.go +++ b/pkg/client/stack/update_version_stack_parameters.go @@ -71,10 +71,12 @@ func NewUpdateVersionStackParamsWithHTTPClient(client *http.Client) *UpdateVersi } } -/* UpdateVersionStackParams contains all the parameters to send to the API endpoint - for the update version stack operation. +/* +UpdateVersionStackParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update version stack operation. + + Typically these are written to a http.Request. */ type UpdateVersionStackParams struct { diff --git a/pkg/client/stack/update_version_stack_responses.go b/pkg/client/stack/update_version_stack_responses.go index 4f083e74..c9b0b651 100644 --- a/pkg/client/stack/update_version_stack_responses.go +++ b/pkg/client/stack/update_version_stack_responses.go @@ -62,7 +62,8 @@ func NewUpdateVersionStackOK() *UpdateVersionStackOK { return &UpdateVersionStackOK{} } -/* UpdateVersionStackOK describes a response with status code 200, with default header values. +/* +UpdateVersionStackOK describes a response with status code 200, with default header values. The Elastic Stack version successfully updated. */ @@ -70,9 +71,44 @@ type UpdateVersionStackOK struct { Payload *models.StackVersionConfig } +// IsSuccess returns true when this update version stack o k response has a 2xx status code +func (o *UpdateVersionStackOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update version stack o k response has a 3xx status code +func (o *UpdateVersionStackOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update version stack o k response has a 4xx status code +func (o *UpdateVersionStackOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update version stack o k response has a 5xx status code +func (o *UpdateVersionStackOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update version stack o k response a status code equal to that given +func (o *UpdateVersionStackOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update version stack o k response +func (o *UpdateVersionStackOK) Code() int { + return 200 +} + func (o *UpdateVersionStackOK) Error() string { return fmt.Sprintf("[PUT /stack/versions/{version}][%d] updateVersionStackOK %+v", 200, o.Payload) } + +func (o *UpdateVersionStackOK) String() string { + return fmt.Sprintf("[PUT /stack/versions/{version}][%d] updateVersionStackOK %+v", 200, o.Payload) +} + func (o *UpdateVersionStackOK) GetPayload() *models.StackVersionConfig { return o.Payload } @@ -94,7 +130,8 @@ func NewUpdateVersionStackNotFound() *UpdateVersionStackNotFound { return &UpdateVersionStackNotFound{} } -/* UpdateVersionStackNotFound describes a response with status code 404, with default header values. +/* +UpdateVersionStackNotFound describes a response with status code 404, with default header values. The Elastic Stack version can't be found. (code: `stackpack.missing_platform_version`) */ @@ -107,9 +144,44 @@ type UpdateVersionStackNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update version stack not found response has a 2xx status code +func (o *UpdateVersionStackNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update version stack not found response has a 3xx status code +func (o *UpdateVersionStackNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update version stack not found response has a 4xx status code +func (o *UpdateVersionStackNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update version stack not found response has a 5xx status code +func (o *UpdateVersionStackNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update version stack not found response a status code equal to that given +func (o *UpdateVersionStackNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update version stack not found response +func (o *UpdateVersionStackNotFound) Code() int { + return 404 +} + func (o *UpdateVersionStackNotFound) Error() string { return fmt.Sprintf("[PUT /stack/versions/{version}][%d] updateVersionStackNotFound %+v", 404, o.Payload) } + +func (o *UpdateVersionStackNotFound) String() string { + return fmt.Sprintf("[PUT /stack/versions/{version}][%d] updateVersionStackNotFound %+v", 404, o.Payload) +} + func (o *UpdateVersionStackNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/telemetry/get_telemetry_config_parameters.go b/pkg/client/telemetry/get_telemetry_config_parameters.go index 9f096a7d..d7ad6016 100644 --- a/pkg/client/telemetry/get_telemetry_config_parameters.go +++ b/pkg/client/telemetry/get_telemetry_config_parameters.go @@ -69,10 +69,12 @@ func NewGetTelemetryConfigParamsWithHTTPClient(client *http.Client) *GetTelemetr } } -/* GetTelemetryConfigParams contains all the parameters to send to the API endpoint - for the get telemetry config operation. +/* +GetTelemetryConfigParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get telemetry config operation. + + Typically these are written to a http.Request. */ type GetTelemetryConfigParams struct { timeout time.Duration diff --git a/pkg/client/telemetry/get_telemetry_config_responses.go b/pkg/client/telemetry/get_telemetry_config_responses.go index 7dd2e2b1..94269e16 100644 --- a/pkg/client/telemetry/get_telemetry_config_responses.go +++ b/pkg/client/telemetry/get_telemetry_config_responses.go @@ -62,7 +62,8 @@ func NewGetTelemetryConfigOK() *GetTelemetryConfigOK { return &GetTelemetryConfigOK{} } -/* GetTelemetryConfigOK describes a response with status code 200, with default header values. +/* +GetTelemetryConfigOK describes a response with status code 200, with default header values. The current ECE telemetry configuration */ @@ -70,9 +71,44 @@ type GetTelemetryConfigOK struct { Payload *models.TelemetryConfig } +// IsSuccess returns true when this get telemetry config o k response has a 2xx status code +func (o *GetTelemetryConfigOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get telemetry config o k response has a 3xx status code +func (o *GetTelemetryConfigOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get telemetry config o k response has a 4xx status code +func (o *GetTelemetryConfigOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get telemetry config o k response has a 5xx status code +func (o *GetTelemetryConfigOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get telemetry config o k response a status code equal to that given +func (o *GetTelemetryConfigOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get telemetry config o k response +func (o *GetTelemetryConfigOK) Code() int { + return 200 +} + func (o *GetTelemetryConfigOK) Error() string { return fmt.Sprintf("[GET /phone-home/config][%d] getTelemetryConfigOK %+v", 200, o.Payload) } + +func (o *GetTelemetryConfigOK) String() string { + return fmt.Sprintf("[GET /phone-home/config][%d] getTelemetryConfigOK %+v", 200, o.Payload) +} + func (o *GetTelemetryConfigOK) GetPayload() *models.TelemetryConfig { return o.Payload } @@ -94,7 +130,8 @@ func NewGetTelemetryConfigForbidden() *GetTelemetryConfigForbidden { return &GetTelemetryConfigForbidden{} } -/* GetTelemetryConfigForbidden describes a response with status code 403, with default header values. +/* +GetTelemetryConfigForbidden describes a response with status code 403, with default header values. User must have Platform level permissions. (code: `root.unauthorized.rbac`) */ @@ -107,9 +144,44 @@ type GetTelemetryConfigForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get telemetry config forbidden response has a 2xx status code +func (o *GetTelemetryConfigForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get telemetry config forbidden response has a 3xx status code +func (o *GetTelemetryConfigForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get telemetry config forbidden response has a 4xx status code +func (o *GetTelemetryConfigForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get telemetry config forbidden response has a 5xx status code +func (o *GetTelemetryConfigForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get telemetry config forbidden response a status code equal to that given +func (o *GetTelemetryConfigForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get telemetry config forbidden response +func (o *GetTelemetryConfigForbidden) Code() int { + return 403 +} + func (o *GetTelemetryConfigForbidden) Error() string { return fmt.Sprintf("[GET /phone-home/config][%d] getTelemetryConfigForbidden %+v", 403, o.Payload) } + +func (o *GetTelemetryConfigForbidden) String() string { + return fmt.Sprintf("[GET /phone-home/config][%d] getTelemetryConfigForbidden %+v", 403, o.Payload) +} + func (o *GetTelemetryConfigForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/telemetry/set_telemetry_config_parameters.go b/pkg/client/telemetry/set_telemetry_config_parameters.go index 299e934d..d4b17f72 100644 --- a/pkg/client/telemetry/set_telemetry_config_parameters.go +++ b/pkg/client/telemetry/set_telemetry_config_parameters.go @@ -71,10 +71,12 @@ func NewSetTelemetryConfigParamsWithHTTPClient(client *http.Client) *SetTelemetr } } -/* SetTelemetryConfigParams contains all the parameters to send to the API endpoint - for the set telemetry config operation. +/* +SetTelemetryConfigParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the set telemetry config operation. + + Typically these are written to a http.Request. */ type SetTelemetryConfigParams struct { diff --git a/pkg/client/telemetry/set_telemetry_config_responses.go b/pkg/client/telemetry/set_telemetry_config_responses.go index e044a1df..1bda40a1 100644 --- a/pkg/client/telemetry/set_telemetry_config_responses.go +++ b/pkg/client/telemetry/set_telemetry_config_responses.go @@ -80,7 +80,8 @@ func NewSetTelemetryConfigOK() *SetTelemetryConfigOK { return &SetTelemetryConfigOK{} } -/* SetTelemetryConfigOK describes a response with status code 200, with default header values. +/* +SetTelemetryConfigOK describes a response with status code 200, with default header values. Telemetry configuration updated successfully */ @@ -88,9 +89,44 @@ type SetTelemetryConfigOK struct { Payload *models.TelemetryConfig } +// IsSuccess returns true when this set telemetry config o k response has a 2xx status code +func (o *SetTelemetryConfigOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this set telemetry config o k response has a 3xx status code +func (o *SetTelemetryConfigOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set telemetry config o k response has a 4xx status code +func (o *SetTelemetryConfigOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this set telemetry config o k response has a 5xx status code +func (o *SetTelemetryConfigOK) IsServerError() bool { + return false +} + +// IsCode returns true when this set telemetry config o k response a status code equal to that given +func (o *SetTelemetryConfigOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the set telemetry config o k response +func (o *SetTelemetryConfigOK) Code() int { + return 200 +} + func (o *SetTelemetryConfigOK) Error() string { return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigOK %+v", 200, o.Payload) } + +func (o *SetTelemetryConfigOK) String() string { + return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigOK %+v", 200, o.Payload) +} + func (o *SetTelemetryConfigOK) GetPayload() *models.TelemetryConfig { return o.Payload } @@ -112,7 +148,8 @@ func NewSetTelemetryConfigForbidden() *SetTelemetryConfigForbidden { return &SetTelemetryConfigForbidden{} } -/* SetTelemetryConfigForbidden describes a response with status code 403, with default header values. +/* +SetTelemetryConfigForbidden describes a response with status code 403, with default header values. User must have Platform level permissions. (code: `root.unauthorized.rbac`) */ @@ -125,9 +162,44 @@ type SetTelemetryConfigForbidden struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set telemetry config forbidden response has a 2xx status code +func (o *SetTelemetryConfigForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set telemetry config forbidden response has a 3xx status code +func (o *SetTelemetryConfigForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set telemetry config forbidden response has a 4xx status code +func (o *SetTelemetryConfigForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this set telemetry config forbidden response has a 5xx status code +func (o *SetTelemetryConfigForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this set telemetry config forbidden response a status code equal to that given +func (o *SetTelemetryConfigForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the set telemetry config forbidden response +func (o *SetTelemetryConfigForbidden) Code() int { + return 403 +} + func (o *SetTelemetryConfigForbidden) Error() string { return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigForbidden %+v", 403, o.Payload) } + +func (o *SetTelemetryConfigForbidden) String() string { + return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigForbidden %+v", 403, o.Payload) +} + func (o *SetTelemetryConfigForbidden) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -156,7 +228,8 @@ func NewSetTelemetryConfigConflict() *SetTelemetryConfigConflict { return &SetTelemetryConfigConflict{} } -/* SetTelemetryConfigConflict describes a response with status code 409, with default header values. +/* +SetTelemetryConfigConflict describes a response with status code 409, with default header values. The telemetry configuration did not exist so there was an attempt to create one. Another request resulted in the creation of a telemetry configuration before this request completed, resulting in the failure of this request to create a configuration. Please retry. (code: `telemetry.already_exists`) */ @@ -169,9 +242,44 @@ type SetTelemetryConfigConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set telemetry config conflict response has a 2xx status code +func (o *SetTelemetryConfigConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set telemetry config conflict response has a 3xx status code +func (o *SetTelemetryConfigConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set telemetry config conflict response has a 4xx status code +func (o *SetTelemetryConfigConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this set telemetry config conflict response has a 5xx status code +func (o *SetTelemetryConfigConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this set telemetry config conflict response a status code equal to that given +func (o *SetTelemetryConfigConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the set telemetry config conflict response +func (o *SetTelemetryConfigConflict) Code() int { + return 409 +} + func (o *SetTelemetryConfigConflict) Error() string { return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigConflict %+v", 409, o.Payload) } + +func (o *SetTelemetryConfigConflict) String() string { + return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigConflict %+v", 409, o.Payload) +} + func (o *SetTelemetryConfigConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -200,7 +308,8 @@ func NewSetTelemetryConfigRetryWith() *SetTelemetryConfigRetryWith { return &SetTelemetryConfigRetryWith{} } -/* SetTelemetryConfigRetryWith describes a response with status code 449, with default header values. +/* +SetTelemetryConfigRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -213,9 +322,44 @@ type SetTelemetryConfigRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set telemetry config retry with response has a 2xx status code +func (o *SetTelemetryConfigRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set telemetry config retry with response has a 3xx status code +func (o *SetTelemetryConfigRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set telemetry config retry with response has a 4xx status code +func (o *SetTelemetryConfigRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this set telemetry config retry with response has a 5xx status code +func (o *SetTelemetryConfigRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this set telemetry config retry with response a status code equal to that given +func (o *SetTelemetryConfigRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the set telemetry config retry with response +func (o *SetTelemetryConfigRetryWith) Code() int { + return 449 +} + func (o *SetTelemetryConfigRetryWith) Error() string { return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigRetryWith %+v", 449, o.Payload) } + +func (o *SetTelemetryConfigRetryWith) String() string { + return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigRetryWith %+v", 449, o.Payload) +} + func (o *SetTelemetryConfigRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -244,7 +388,8 @@ func NewSetTelemetryConfigInternalServerError() *SetTelemetryConfigInternalServe return &SetTelemetryConfigInternalServerError{} } -/* SetTelemetryConfigInternalServerError describes a response with status code 500, with default header values. +/* +SetTelemetryConfigInternalServerError describes a response with status code 500, with default header values. Failed to set the configuration due to an internal server error. (code: `telemetry.request_execution_failed`) */ @@ -257,9 +402,44 @@ type SetTelemetryConfigInternalServerError struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this set telemetry config internal server error response has a 2xx status code +func (o *SetTelemetryConfigInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this set telemetry config internal server error response has a 3xx status code +func (o *SetTelemetryConfigInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this set telemetry config internal server error response has a 4xx status code +func (o *SetTelemetryConfigInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this set telemetry config internal server error response has a 5xx status code +func (o *SetTelemetryConfigInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this set telemetry config internal server error response a status code equal to that given +func (o *SetTelemetryConfigInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the set telemetry config internal server error response +func (o *SetTelemetryConfigInternalServerError) Code() int { + return 500 +} + func (o *SetTelemetryConfigInternalServerError) Error() string { return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigInternalServerError %+v", 500, o.Payload) } + +func (o *SetTelemetryConfigInternalServerError) String() string { + return fmt.Sprintf("[PUT /phone-home/config][%d] setTelemetryConfigInternalServerError %+v", 500, o.Payload) +} + func (o *SetTelemetryConfigInternalServerError) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/telemetry/telemetry_client.go b/pkg/client/telemetry/telemetry_client.go index e23b74db..f549f133 100644 --- a/pkg/client/telemetry/telemetry_client.go +++ b/pkg/client/telemetry/telemetry_client.go @@ -55,9 +55,9 @@ type ClientService interface { } /* - GetTelemetryConfig gets e c e telemetry config +GetTelemetryConfig gets e c e telemetry config - Returns whether ECE telemetry is enabled. +Returns whether ECE telemetry is enabled. */ func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTelemetryConfigOK, error) { // TODO: Validate the params before sending @@ -96,9 +96,9 @@ func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo r } /* - SetTelemetryConfig sets e c e telemetry config +SetTelemetryConfig sets e c e telemetry config - Sets whether to enable ECE telemetry. +Sets whether to enable ECE telemetry. */ func (a *Client) SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTelemetryConfigOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/trusted_environments/get_trusted_envs_parameters.go b/pkg/client/trusted_environments/get_trusted_envs_parameters.go index 6d3caa64..7058d88e 100644 --- a/pkg/client/trusted_environments/get_trusted_envs_parameters.go +++ b/pkg/client/trusted_environments/get_trusted_envs_parameters.go @@ -69,10 +69,12 @@ func NewGetTrustedEnvsParamsWithHTTPClient(client *http.Client) *GetTrustedEnvsP } } -/* GetTrustedEnvsParams contains all the parameters to send to the API endpoint - for the get trusted envs operation. +/* +GetTrustedEnvsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get trusted envs operation. + + Typically these are written to a http.Request. */ type GetTrustedEnvsParams struct { diff --git a/pkg/client/trusted_environments/get_trusted_envs_responses.go b/pkg/client/trusted_environments/get_trusted_envs_responses.go index 3b83ad8c..86c3e1c0 100644 --- a/pkg/client/trusted_environments/get_trusted_envs_responses.go +++ b/pkg/client/trusted_environments/get_trusted_envs_responses.go @@ -62,7 +62,8 @@ func NewGetTrustedEnvsOK() *GetTrustedEnvsOK { return &GetTrustedEnvsOK{} } -/* GetTrustedEnvsOK describes a response with status code 200, with default header values. +/* +GetTrustedEnvsOK describes a response with status code 200, with default header values. Trusted environments for this organization */ @@ -70,9 +71,44 @@ type GetTrustedEnvsOK struct { Payload *models.ElasticsearchClusterTrustSettings } +// IsSuccess returns true when this get trusted envs o k response has a 2xx status code +func (o *GetTrustedEnvsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get trusted envs o k response has a 3xx status code +func (o *GetTrustedEnvsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trusted envs o k response has a 4xx status code +func (o *GetTrustedEnvsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get trusted envs o k response has a 5xx status code +func (o *GetTrustedEnvsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get trusted envs o k response a status code equal to that given +func (o *GetTrustedEnvsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get trusted envs o k response +func (o *GetTrustedEnvsOK) Code() int { + return 200 +} + func (o *GetTrustedEnvsOK) Error() string { return fmt.Sprintf("[GET /trusted-environments][%d] getTrustedEnvsOK %+v", 200, o.Payload) } + +func (o *GetTrustedEnvsOK) String() string { + return fmt.Sprintf("[GET /trusted-environments][%d] getTrustedEnvsOK %+v", 200, o.Payload) +} + func (o *GetTrustedEnvsOK) GetPayload() *models.ElasticsearchClusterTrustSettings { return o.Payload } @@ -94,7 +130,8 @@ func NewGetTrustedEnvsNotFound() *GetTrustedEnvsNotFound { return &GetTrustedEnvsNotFound{} } -/* GetTrustedEnvsNotFound describes a response with status code 404, with default header values. +/* +GetTrustedEnvsNotFound describes a response with status code 404, with default header values. Organization not found. (code: `organization.not_found`) */ @@ -107,9 +144,44 @@ type GetTrustedEnvsNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get trusted envs not found response has a 2xx status code +func (o *GetTrustedEnvsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get trusted envs not found response has a 3xx status code +func (o *GetTrustedEnvsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get trusted envs not found response has a 4xx status code +func (o *GetTrustedEnvsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get trusted envs not found response has a 5xx status code +func (o *GetTrustedEnvsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get trusted envs not found response a status code equal to that given +func (o *GetTrustedEnvsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get trusted envs not found response +func (o *GetTrustedEnvsNotFound) Code() int { + return 404 +} + func (o *GetTrustedEnvsNotFound) Error() string { return fmt.Sprintf("[GET /trusted-environments][%d] getTrustedEnvsNotFound %+v", 404, o.Payload) } + +func (o *GetTrustedEnvsNotFound) String() string { + return fmt.Sprintf("[GET /trusted-environments][%d] getTrustedEnvsNotFound %+v", 404, o.Payload) +} + func (o *GetTrustedEnvsNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/trusted_environments/trusted_environments_client.go b/pkg/client/trusted_environments/trusted_environments_client.go index f2e52d58..98145849 100644 --- a/pkg/client/trusted_environments/trusted_environments_client.go +++ b/pkg/client/trusted_environments/trusted_environments_client.go @@ -53,9 +53,9 @@ type ClientService interface { } /* - GetTrustedEnvs gets trusted environments +GetTrustedEnvs gets trusted environments - Returns the list of trusted environments for the organization. If no organization is passed in, the organization attached to the user is assumed. +Returns the list of trusted environments for the organization. If no organization is passed in, the organization attached to the user is assumed. */ func (a *Client) GetTrustedEnvs(params *GetTrustedEnvsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrustedEnvsOK, error) { // TODO: Validate the params before sending diff --git a/pkg/client/users/create_user_parameters.go b/pkg/client/users/create_user_parameters.go index a59b1e34..2b4ee1e0 100644 --- a/pkg/client/users/create_user_parameters.go +++ b/pkg/client/users/create_user_parameters.go @@ -71,10 +71,12 @@ func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams { } } -/* CreateUserParams contains all the parameters to send to the API endpoint - for the create user operation. +/* +CreateUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create user operation. + + Typically these are written to a http.Request. */ type CreateUserParams struct { diff --git a/pkg/client/users/create_user_responses.go b/pkg/client/users/create_user_responses.go index aede0ef9..c17fe165 100644 --- a/pkg/client/users/create_user_responses.go +++ b/pkg/client/users/create_user_responses.go @@ -74,7 +74,8 @@ func NewCreateUserOK() *CreateUserOK { return &CreateUserOK{} } -/* CreateUserOK describes a response with status code 200, with default header values. +/* +CreateUserOK describes a response with status code 200, with default header values. User successfully created */ @@ -82,9 +83,44 @@ type CreateUserOK struct { Payload *models.User } +// IsSuccess returns true when this create user o k response has a 2xx status code +func (o *CreateUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create user o k response has a 3xx status code +func (o *CreateUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create user o k response has a 4xx status code +func (o *CreateUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create user o k response has a 5xx status code +func (o *CreateUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create user o k response a status code equal to that given +func (o *CreateUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create user o k response +func (o *CreateUserOK) Code() int { + return 200 +} + func (o *CreateUserOK) Error() string { return fmt.Sprintf("[POST /users][%d] createUserOK %+v", 200, o.Payload) } + +func (o *CreateUserOK) String() string { + return fmt.Sprintf("[POST /users][%d] createUserOK %+v", 200, o.Payload) +} + func (o *CreateUserOK) GetPayload() *models.User { return o.Payload } @@ -106,9 +142,11 @@ func NewCreateUserBadRequest() *CreateUserBadRequest { return &CreateUserBadRequest{} } -/* CreateUserBadRequest describes a response with status code 400, with default header values. +/* + CreateUserBadRequest describes a response with status code 400, with default header values. + + * The provided user name is invalid. Check that it is not empty and it does not contain special characters. (code: `user.user_name.invalid`) - * The provided user name is invalid. Check that it is not empty and it does not contain special characters. (code: `user.user_name.invalid`) * Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`) @@ -122,9 +160,44 @@ type CreateUserBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create user bad request response has a 2xx status code +func (o *CreateUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create user bad request response has a 3xx status code +func (o *CreateUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create user bad request response has a 4xx status code +func (o *CreateUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this create user bad request response has a 5xx status code +func (o *CreateUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this create user bad request response a status code equal to that given +func (o *CreateUserBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the create user bad request response +func (o *CreateUserBadRequest) Code() int { + return 400 +} + func (o *CreateUserBadRequest) Error() string { return fmt.Sprintf("[POST /users][%d] createUserBadRequest %+v", 400, o.Payload) } + +func (o *CreateUserBadRequest) String() string { + return fmt.Sprintf("[POST /users][%d] createUserBadRequest %+v", 400, o.Payload) +} + func (o *CreateUserBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -153,7 +226,8 @@ func NewCreateUserConflict() *CreateUserConflict { return &CreateUserConflict{} } -/* CreateUserConflict describes a response with status code 409, with default header values. +/* +CreateUserConflict describes a response with status code 409, with default header values. The username is already in use. (code: `user.user_name.conflict`) */ @@ -166,9 +240,44 @@ type CreateUserConflict struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create user conflict response has a 2xx status code +func (o *CreateUserConflict) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create user conflict response has a 3xx status code +func (o *CreateUserConflict) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create user conflict response has a 4xx status code +func (o *CreateUserConflict) IsClientError() bool { + return true +} + +// IsServerError returns true when this create user conflict response has a 5xx status code +func (o *CreateUserConflict) IsServerError() bool { + return false +} + +// IsCode returns true when this create user conflict response a status code equal to that given +func (o *CreateUserConflict) IsCode(code int) bool { + return code == 409 +} + +// Code gets the status code for the create user conflict response +func (o *CreateUserConflict) Code() int { + return 409 +} + func (o *CreateUserConflict) Error() string { return fmt.Sprintf("[POST /users][%d] createUserConflict %+v", 409, o.Payload) } + +func (o *CreateUserConflict) String() string { + return fmt.Sprintf("[POST /users][%d] createUserConflict %+v", 409, o.Payload) +} + func (o *CreateUserConflict) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -197,7 +306,8 @@ func NewCreateUserRetryWith() *CreateUserRetryWith { return &CreateUserRetryWith{} } -/* CreateUserRetryWith describes a response with status code 449, with default header values. +/* +CreateUserRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -210,9 +320,44 @@ type CreateUserRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this create user retry with response has a 2xx status code +func (o *CreateUserRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this create user retry with response has a 3xx status code +func (o *CreateUserRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create user retry with response has a 4xx status code +func (o *CreateUserRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this create user retry with response has a 5xx status code +func (o *CreateUserRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this create user retry with response a status code equal to that given +func (o *CreateUserRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the create user retry with response +func (o *CreateUserRetryWith) Code() int { + return 449 +} + func (o *CreateUserRetryWith) Error() string { return fmt.Sprintf("[POST /users][%d] createUserRetryWith %+v", 449, o.Payload) } + +func (o *CreateUserRetryWith) String() string { + return fmt.Sprintf("[POST /users][%d] createUserRetryWith %+v", 449, o.Payload) +} + func (o *CreateUserRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/delete_user_parameters.go b/pkg/client/users/delete_user_parameters.go index 22ddf410..a2dda304 100644 --- a/pkg/client/users/delete_user_parameters.go +++ b/pkg/client/users/delete_user_parameters.go @@ -69,10 +69,12 @@ func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams { } } -/* DeleteUserParams contains all the parameters to send to the API endpoint - for the delete user operation. +/* +DeleteUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete user operation. + + Typically these are written to a http.Request. */ type DeleteUserParams struct { diff --git a/pkg/client/users/delete_user_responses.go b/pkg/client/users/delete_user_responses.go index 680e4e0a..81c0ee85 100644 --- a/pkg/client/users/delete_user_responses.go +++ b/pkg/client/users/delete_user_responses.go @@ -74,7 +74,8 @@ func NewDeleteUserOK() *DeleteUserOK { return &DeleteUserOK{} } -/* DeleteUserOK describes a response with status code 200, with default header values. +/* +DeleteUserOK describes a response with status code 200, with default header values. User successfully deleted */ @@ -82,9 +83,44 @@ type DeleteUserOK struct { Payload models.EmptyResponse } +// IsSuccess returns true when this delete user o k response has a 2xx status code +func (o *DeleteUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete user o k response has a 3xx status code +func (o *DeleteUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user o k response has a 4xx status code +func (o *DeleteUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete user o k response has a 5xx status code +func (o *DeleteUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user o k response a status code equal to that given +func (o *DeleteUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete user o k response +func (o *DeleteUserOK) Code() int { + return 200 +} + func (o *DeleteUserOK) Error() string { return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserOK %+v", 200, o.Payload) } + +func (o *DeleteUserOK) String() string { + return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserOK %+v", 200, o.Payload) +} + func (o *DeleteUserOK) GetPayload() models.EmptyResponse { return o.Payload } @@ -104,9 +140,11 @@ func NewDeleteUserBadRequest() *DeleteUserBadRequest { return &DeleteUserBadRequest{} } -/* DeleteUserBadRequest describes a response with status code 400, with default header values. +/* + DeleteUserBadRequest describes a response with status code 400, with default header values. + + * The user cannot be deleted. (code: `user.restricted_deletion`) - * The user cannot be deleted. (code: `user.restricted_deletion`) * External users cannot be modified. (code: `user.cannot_modify_external`) * Built-in users cannot be modified. (code: `user.cannot_modify`) */ @@ -119,9 +157,44 @@ type DeleteUserBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user bad request response has a 2xx status code +func (o *DeleteUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user bad request response has a 3xx status code +func (o *DeleteUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user bad request response has a 4xx status code +func (o *DeleteUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user bad request response has a 5xx status code +func (o *DeleteUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user bad request response a status code equal to that given +func (o *DeleteUserBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the delete user bad request response +func (o *DeleteUserBadRequest) Code() int { + return 400 +} + func (o *DeleteUserBadRequest) Error() string { return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserBadRequest %+v", 400, o.Payload) } + +func (o *DeleteUserBadRequest) String() string { + return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserBadRequest %+v", 400, o.Payload) +} + func (o *DeleteUserBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -150,7 +223,8 @@ func NewDeleteUserNotFound() *DeleteUserNotFound { return &DeleteUserNotFound{} } -/* DeleteUserNotFound describes a response with status code 404, with default header values. +/* +DeleteUserNotFound describes a response with status code 404, with default header values. User not found. (code: `user.not_found`) */ @@ -163,9 +237,44 @@ type DeleteUserNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user not found response has a 2xx status code +func (o *DeleteUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user not found response has a 3xx status code +func (o *DeleteUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user not found response has a 4xx status code +func (o *DeleteUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user not found response has a 5xx status code +func (o *DeleteUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user not found response a status code equal to that given +func (o *DeleteUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete user not found response +func (o *DeleteUserNotFound) Code() int { + return 404 +} + func (o *DeleteUserNotFound) Error() string { return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserNotFound %+v", 404, o.Payload) } + +func (o *DeleteUserNotFound) String() string { + return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserNotFound %+v", 404, o.Payload) +} + func (o *DeleteUserNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -194,7 +303,8 @@ func NewDeleteUserRetryWith() *DeleteUserRetryWith { return &DeleteUserRetryWith{} } -/* DeleteUserRetryWith describes a response with status code 449, with default header values. +/* +DeleteUserRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -207,9 +317,44 @@ type DeleteUserRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this delete user retry with response has a 2xx status code +func (o *DeleteUserRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete user retry with response has a 3xx status code +func (o *DeleteUserRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete user retry with response has a 4xx status code +func (o *DeleteUserRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete user retry with response has a 5xx status code +func (o *DeleteUserRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this delete user retry with response a status code equal to that given +func (o *DeleteUserRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the delete user retry with response +func (o *DeleteUserRetryWith) Code() int { + return 449 +} + func (o *DeleteUserRetryWith) Error() string { return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserRetryWith %+v", 449, o.Payload) } + +func (o *DeleteUserRetryWith) String() string { + return fmt.Sprintf("[DELETE /users/{user_name}][%d] deleteUserRetryWith %+v", 449, o.Payload) +} + func (o *DeleteUserRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/get_current_user_parameters.go b/pkg/client/users/get_current_user_parameters.go index bce6991c..1d63edee 100644 --- a/pkg/client/users/get_current_user_parameters.go +++ b/pkg/client/users/get_current_user_parameters.go @@ -69,10 +69,12 @@ func NewGetCurrentUserParamsWithHTTPClient(client *http.Client) *GetCurrentUserP } } -/* GetCurrentUserParams contains all the parameters to send to the API endpoint - for the get current user operation. +/* +GetCurrentUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get current user operation. + + Typically these are written to a http.Request. */ type GetCurrentUserParams struct { timeout time.Duration diff --git a/pkg/client/users/get_current_user_responses.go b/pkg/client/users/get_current_user_responses.go index 45284095..d4f7b580 100644 --- a/pkg/client/users/get_current_user_responses.go +++ b/pkg/client/users/get_current_user_responses.go @@ -62,7 +62,8 @@ func NewGetCurrentUserOK() *GetCurrentUserOK { return &GetCurrentUserOK{} } -/* GetCurrentUserOK describes a response with status code 200, with default header values. +/* +GetCurrentUserOK describes a response with status code 200, with default header values. User successfully fetched */ @@ -70,9 +71,44 @@ type GetCurrentUserOK struct { Payload *models.User } +// IsSuccess returns true when this get current user o k response has a 2xx status code +func (o *GetCurrentUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get current user o k response has a 3xx status code +func (o *GetCurrentUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get current user o k response has a 4xx status code +func (o *GetCurrentUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get current user o k response has a 5xx status code +func (o *GetCurrentUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get current user o k response a status code equal to that given +func (o *GetCurrentUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get current user o k response +func (o *GetCurrentUserOK) Code() int { + return 200 +} + func (o *GetCurrentUserOK) Error() string { return fmt.Sprintf("[GET /user][%d] getCurrentUserOK %+v", 200, o.Payload) } + +func (o *GetCurrentUserOK) String() string { + return fmt.Sprintf("[GET /user][%d] getCurrentUserOK %+v", 200, o.Payload) +} + func (o *GetCurrentUserOK) GetPayload() *models.User { return o.Payload } @@ -94,7 +130,8 @@ func NewGetCurrentUserNotFound() *GetCurrentUserNotFound { return &GetCurrentUserNotFound{} } -/* GetCurrentUserNotFound describes a response with status code 404, with default header values. +/* +GetCurrentUserNotFound describes a response with status code 404, with default header values. User not found. (code: `user.not_found`) */ @@ -107,9 +144,44 @@ type GetCurrentUserNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get current user not found response has a 2xx status code +func (o *GetCurrentUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get current user not found response has a 3xx status code +func (o *GetCurrentUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get current user not found response has a 4xx status code +func (o *GetCurrentUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get current user not found response has a 5xx status code +func (o *GetCurrentUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get current user not found response a status code equal to that given +func (o *GetCurrentUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get current user not found response +func (o *GetCurrentUserNotFound) Code() int { + return 404 +} + func (o *GetCurrentUserNotFound) Error() string { return fmt.Sprintf("[GET /user][%d] getCurrentUserNotFound %+v", 404, o.Payload) } + +func (o *GetCurrentUserNotFound) String() string { + return fmt.Sprintf("[GET /user][%d] getCurrentUserNotFound %+v", 404, o.Payload) +} + func (o *GetCurrentUserNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/get_user_parameters.go b/pkg/client/users/get_user_parameters.go index 0d01d210..4938083b 100644 --- a/pkg/client/users/get_user_parameters.go +++ b/pkg/client/users/get_user_parameters.go @@ -69,10 +69,12 @@ func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams { } } -/* GetUserParams contains all the parameters to send to the API endpoint - for the get user operation. +/* +GetUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get user operation. + + Typically these are written to a http.Request. */ type GetUserParams struct { diff --git a/pkg/client/users/get_user_responses.go b/pkg/client/users/get_user_responses.go index 56205dc5..b55e24ce 100644 --- a/pkg/client/users/get_user_responses.go +++ b/pkg/client/users/get_user_responses.go @@ -62,7 +62,8 @@ func NewGetUserOK() *GetUserOK { return &GetUserOK{} } -/* GetUserOK describes a response with status code 200, with default header values. +/* +GetUserOK describes a response with status code 200, with default header values. User successfully fetched */ @@ -70,9 +71,44 @@ type GetUserOK struct { Payload *models.User } +// IsSuccess returns true when this get user o k response has a 2xx status code +func (o *GetUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get user o k response has a 3xx status code +func (o *GetUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user o k response has a 4xx status code +func (o *GetUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get user o k response has a 5xx status code +func (o *GetUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get user o k response a status code equal to that given +func (o *GetUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get user o k response +func (o *GetUserOK) Code() int { + return 200 +} + func (o *GetUserOK) Error() string { return fmt.Sprintf("[GET /users/{user_name}][%d] getUserOK %+v", 200, o.Payload) } + +func (o *GetUserOK) String() string { + return fmt.Sprintf("[GET /users/{user_name}][%d] getUserOK %+v", 200, o.Payload) +} + func (o *GetUserOK) GetPayload() *models.User { return o.Payload } @@ -94,7 +130,8 @@ func NewGetUserNotFound() *GetUserNotFound { return &GetUserNotFound{} } -/* GetUserNotFound describes a response with status code 404, with default header values. +/* +GetUserNotFound describes a response with status code 404, with default header values. User not found. (code: `user.not_found`) */ @@ -107,9 +144,44 @@ type GetUserNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this get user not found response has a 2xx status code +func (o *GetUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user not found response has a 3xx status code +func (o *GetUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user not found response has a 4xx status code +func (o *GetUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user not found response has a 5xx status code +func (o *GetUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get user not found response a status code equal to that given +func (o *GetUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get user not found response +func (o *GetUserNotFound) Code() int { + return 404 +} + func (o *GetUserNotFound) Error() string { return fmt.Sprintf("[GET /users/{user_name}][%d] getUserNotFound %+v", 404, o.Payload) } + +func (o *GetUserNotFound) String() string { + return fmt.Sprintf("[GET /users/{user_name}][%d] getUserNotFound %+v", 404, o.Payload) +} + func (o *GetUserNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/get_users_parameters.go b/pkg/client/users/get_users_parameters.go index 2801d137..0dd386bf 100644 --- a/pkg/client/users/get_users_parameters.go +++ b/pkg/client/users/get_users_parameters.go @@ -70,10 +70,12 @@ func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams { } } -/* GetUsersParams contains all the parameters to send to the API endpoint - for the get users operation. +/* +GetUsersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get users operation. + + Typically these are written to a http.Request. */ type GetUsersParams struct { diff --git a/pkg/client/users/get_users_responses.go b/pkg/client/users/get_users_responses.go index f59b9261..c33d2498 100644 --- a/pkg/client/users/get_users_responses.go +++ b/pkg/client/users/get_users_responses.go @@ -56,7 +56,8 @@ func NewGetUsersOK() *GetUsersOK { return &GetUsersOK{} } -/* GetUsersOK describes a response with status code 200, with default header values. +/* +GetUsersOK describes a response with status code 200, with default header values. Users successfully fetched */ @@ -64,9 +65,44 @@ type GetUsersOK struct { Payload *models.UserList } +// IsSuccess returns true when this get users o k response has a 2xx status code +func (o *GetUsersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get users o k response has a 3xx status code +func (o *GetUsersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users o k response has a 4xx status code +func (o *GetUsersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get users o k response has a 5xx status code +func (o *GetUsersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get users o k response a status code equal to that given +func (o *GetUsersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get users o k response +func (o *GetUsersOK) Code() int { + return 200 +} + func (o *GetUsersOK) Error() string { return fmt.Sprintf("[GET /users][%d] getUsersOK %+v", 200, o.Payload) } + +func (o *GetUsersOK) String() string { + return fmt.Sprintf("[GET /users][%d] getUsersOK %+v", 200, o.Payload) +} + func (o *GetUsersOK) GetPayload() *models.UserList { return o.Payload } diff --git a/pkg/client/users/update_current_user_parameters.go b/pkg/client/users/update_current_user_parameters.go index 93d4ef35..2f9e5b3f 100644 --- a/pkg/client/users/update_current_user_parameters.go +++ b/pkg/client/users/update_current_user_parameters.go @@ -69,10 +69,12 @@ func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurren } } -/* UpdateCurrentUserParams contains all the parameters to send to the API endpoint - for the update current user operation. +/* +UpdateCurrentUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update current user operation. + + Typically these are written to a http.Request. */ type UpdateCurrentUserParams struct { diff --git a/pkg/client/users/update_current_user_responses.go b/pkg/client/users/update_current_user_responses.go index 1cd6bad6..e61a81be 100644 --- a/pkg/client/users/update_current_user_responses.go +++ b/pkg/client/users/update_current_user_responses.go @@ -68,7 +68,8 @@ func NewUpdateCurrentUserOK() *UpdateCurrentUserOK { return &UpdateCurrentUserOK{} } -/* UpdateCurrentUserOK describes a response with status code 200, with default header values. +/* +UpdateCurrentUserOK describes a response with status code 200, with default header values. User successfully updated */ @@ -76,9 +77,44 @@ type UpdateCurrentUserOK struct { Payload *models.User } +// IsSuccess returns true when this update current user o k response has a 2xx status code +func (o *UpdateCurrentUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update current user o k response has a 3xx status code +func (o *UpdateCurrentUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update current user o k response has a 4xx status code +func (o *UpdateCurrentUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update current user o k response has a 5xx status code +func (o *UpdateCurrentUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update current user o k response a status code equal to that given +func (o *UpdateCurrentUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update current user o k response +func (o *UpdateCurrentUserOK) Code() int { + return 200 +} + func (o *UpdateCurrentUserOK) Error() string { return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserOK %+v", 200, o.Payload) } + +func (o *UpdateCurrentUserOK) String() string { + return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserOK %+v", 200, o.Payload) +} + func (o *UpdateCurrentUserOK) GetPayload() *models.User { return o.Payload } @@ -100,9 +136,11 @@ func NewUpdateCurrentUserBadRequest() *UpdateCurrentUserBadRequest { return &UpdateCurrentUserBadRequest{} } -/* UpdateCurrentUserBadRequest describes a response with status code 400, with default header values. +/* + UpdateCurrentUserBadRequest describes a response with status code 400, with default header values. + + * Some of the provided roles are invalid. (code: `user.roles.invalid`) - * Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`) * External users cannot be modified. (code: `user.cannot_modify_external`) @@ -117,9 +155,44 @@ type UpdateCurrentUserBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update current user bad request response has a 2xx status code +func (o *UpdateCurrentUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update current user bad request response has a 3xx status code +func (o *UpdateCurrentUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update current user bad request response has a 4xx status code +func (o *UpdateCurrentUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update current user bad request response has a 5xx status code +func (o *UpdateCurrentUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update current user bad request response a status code equal to that given +func (o *UpdateCurrentUserBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update current user bad request response +func (o *UpdateCurrentUserBadRequest) Code() int { + return 400 +} + func (o *UpdateCurrentUserBadRequest) Error() string { return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserBadRequest %+v", 400, o.Payload) } + +func (o *UpdateCurrentUserBadRequest) String() string { + return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserBadRequest %+v", 400, o.Payload) +} + func (o *UpdateCurrentUserBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -148,7 +221,8 @@ func NewUpdateCurrentUserNotFound() *UpdateCurrentUserNotFound { return &UpdateCurrentUserNotFound{} } -/* UpdateCurrentUserNotFound describes a response with status code 404, with default header values. +/* +UpdateCurrentUserNotFound describes a response with status code 404, with default header values. User not found. (code: `user.not_found`) */ @@ -161,9 +235,44 @@ type UpdateCurrentUserNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update current user not found response has a 2xx status code +func (o *UpdateCurrentUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update current user not found response has a 3xx status code +func (o *UpdateCurrentUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update current user not found response has a 4xx status code +func (o *UpdateCurrentUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update current user not found response has a 5xx status code +func (o *UpdateCurrentUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update current user not found response a status code equal to that given +func (o *UpdateCurrentUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update current user not found response +func (o *UpdateCurrentUserNotFound) Code() int { + return 404 +} + func (o *UpdateCurrentUserNotFound) Error() string { return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserNotFound %+v", 404, o.Payload) } + +func (o *UpdateCurrentUserNotFound) String() string { + return fmt.Sprintf("[PATCH /user][%d] updateCurrentUserNotFound %+v", 404, o.Payload) +} + func (o *UpdateCurrentUserNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/update_user_parameters.go b/pkg/client/users/update_user_parameters.go index 1355aef6..6e0e0fac 100644 --- a/pkg/client/users/update_user_parameters.go +++ b/pkg/client/users/update_user_parameters.go @@ -69,10 +69,12 @@ func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams { } } -/* UpdateUserParams contains all the parameters to send to the API endpoint - for the update user operation. +/* +UpdateUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update user operation. + + Typically these are written to a http.Request. */ type UpdateUserParams struct { diff --git a/pkg/client/users/update_user_responses.go b/pkg/client/users/update_user_responses.go index d026edf5..54035f73 100644 --- a/pkg/client/users/update_user_responses.go +++ b/pkg/client/users/update_user_responses.go @@ -74,7 +74,8 @@ func NewUpdateUserOK() *UpdateUserOK { return &UpdateUserOK{} } -/* UpdateUserOK describes a response with status code 200, with default header values. +/* +UpdateUserOK describes a response with status code 200, with default header values. User successfully updated */ @@ -82,9 +83,44 @@ type UpdateUserOK struct { Payload *models.User } +// IsSuccess returns true when this update user o k response has a 2xx status code +func (o *UpdateUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update user o k response has a 3xx status code +func (o *UpdateUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update user o k response has a 4xx status code +func (o *UpdateUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update user o k response has a 5xx status code +func (o *UpdateUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update user o k response a status code equal to that given +func (o *UpdateUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update user o k response +func (o *UpdateUserOK) Code() int { + return 200 +} + func (o *UpdateUserOK) Error() string { return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserOK %+v", 200, o.Payload) } + +func (o *UpdateUserOK) String() string { + return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserOK %+v", 200, o.Payload) +} + func (o *UpdateUserOK) GetPayload() *models.User { return o.Payload } @@ -106,9 +142,11 @@ func NewUpdateUserBadRequest() *UpdateUserBadRequest { return &UpdateUserBadRequest{} } -/* UpdateUserBadRequest describes a response with status code 400, with default header values. +/* + UpdateUserBadRequest describes a response with status code 400, with default header values. + + * Some of the provided roles are invalid. (code: `user.roles.invalid`) - * Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`) * External users cannot be modified. (code: `user.cannot_modify_external`) @@ -123,9 +161,44 @@ type UpdateUserBadRequest struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update user bad request response has a 2xx status code +func (o *UpdateUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update user bad request response has a 3xx status code +func (o *UpdateUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update user bad request response has a 4xx status code +func (o *UpdateUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this update user bad request response has a 5xx status code +func (o *UpdateUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this update user bad request response a status code equal to that given +func (o *UpdateUserBadRequest) IsCode(code int) bool { + return code == 400 +} + +// Code gets the status code for the update user bad request response +func (o *UpdateUserBadRequest) Code() int { + return 400 +} + func (o *UpdateUserBadRequest) Error() string { return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserBadRequest %+v", 400, o.Payload) } + +func (o *UpdateUserBadRequest) String() string { + return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserBadRequest %+v", 400, o.Payload) +} + func (o *UpdateUserBadRequest) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -154,7 +227,8 @@ func NewUpdateUserNotFound() *UpdateUserNotFound { return &UpdateUserNotFound{} } -/* UpdateUserNotFound describes a response with status code 404, with default header values. +/* +UpdateUserNotFound describes a response with status code 404, with default header values. User not found. (code: `user.not_found`) */ @@ -167,9 +241,44 @@ type UpdateUserNotFound struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update user not found response has a 2xx status code +func (o *UpdateUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update user not found response has a 3xx status code +func (o *UpdateUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update user not found response has a 4xx status code +func (o *UpdateUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this update user not found response has a 5xx status code +func (o *UpdateUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this update user not found response a status code equal to that given +func (o *UpdateUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the update user not found response +func (o *UpdateUserNotFound) Code() int { + return 404 +} + func (o *UpdateUserNotFound) Error() string { return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserNotFound %+v", 404, o.Payload) } + +func (o *UpdateUserNotFound) String() string { + return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserNotFound %+v", 404, o.Payload) +} + func (o *UpdateUserNotFound) GetPayload() *models.BasicFailedReply { return o.Payload } @@ -198,7 +307,8 @@ func NewUpdateUserRetryWith() *UpdateUserRetryWith { return &UpdateUserRetryWith{} } -/* UpdateUserRetryWith describes a response with status code 449, with default header values. +/* +UpdateUserRetryWith describes a response with status code 449, with default header values. Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`) */ @@ -211,9 +321,44 @@ type UpdateUserRetryWith struct { Payload *models.BasicFailedReply } +// IsSuccess returns true when this update user retry with response has a 2xx status code +func (o *UpdateUserRetryWith) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this update user retry with response has a 3xx status code +func (o *UpdateUserRetryWith) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update user retry with response has a 4xx status code +func (o *UpdateUserRetryWith) IsClientError() bool { + return true +} + +// IsServerError returns true when this update user retry with response has a 5xx status code +func (o *UpdateUserRetryWith) IsServerError() bool { + return false +} + +// IsCode returns true when this update user retry with response a status code equal to that given +func (o *UpdateUserRetryWith) IsCode(code int) bool { + return code == 449 +} + +// Code gets the status code for the update user retry with response +func (o *UpdateUserRetryWith) Code() int { + return 449 +} + func (o *UpdateUserRetryWith) Error() string { return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserRetryWith %+v", 449, o.Payload) } + +func (o *UpdateUserRetryWith) String() string { + return fmt.Sprintf("[PATCH /users/{user_name}][%d] updateUserRetryWith %+v", 449, o.Payload) +} + func (o *UpdateUserRetryWith) GetPayload() *models.BasicFailedReply { return o.Payload } diff --git a/pkg/client/users/users_client.go b/pkg/client/users/users_client.go index b5b256d3..660edf20 100644 --- a/pkg/client/users/users_client.go +++ b/pkg/client/users/users_client.go @@ -65,9 +65,9 @@ type ClientService interface { } /* - CreateUser creates a new user +CreateUser creates a new user - Creates a new user. +Creates a new user. */ func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserOK, error) { // TODO: Validate the params before sending @@ -106,9 +106,9 @@ func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAut } /* - DeleteUser deletes an existing user +DeleteUser deletes an existing user - Deletes an existing user. +Deletes an existing user. */ func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserOK, error) { // TODO: Validate the params before sending @@ -147,9 +147,9 @@ func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAut } /* - GetCurrentUser fetches current user information +GetCurrentUser fetches current user information - Fetch current user information. +Fetch current user information. */ func (a *Client) GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserOK, error) { // TODO: Validate the params before sending @@ -188,9 +188,9 @@ func (a *Client) GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.C } /* - GetUser fetches a single user +GetUser fetches a single user - Fetches a single user. +Fetches a single user. */ func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) { // TODO: Validate the params before sending @@ -229,9 +229,9 @@ func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoW } /* - GetUsers fetches all users +GetUsers fetches all users - Fetches all available users. +Fetches all available users. */ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) { // TODO: Validate the params before sending @@ -270,9 +270,9 @@ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInf } /* - UpdateCurrentUser updates the current user +UpdateCurrentUser updates the current user - Updates the current user. +Updates the current user. */ func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentUserOK, error) { // TODO: Validate the params before sending @@ -311,9 +311,9 @@ func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo run } /* - UpdateUser updates an existing user +UpdateUser updates an existing user - Updates an existing user. +Updates an existing user. */ func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserOK, error) { // TODO: Validate the params before sending diff --git a/pkg/models/account_response.go b/pkg/models/account_response.go index bd840b3d..ce081454 100644 --- a/pkg/models/account_response.go +++ b/pkg/models/account_response.go @@ -80,6 +80,8 @@ func (m *AccountResponse) validateTrust(formats strfmt.Registry) error { if err := m.Trust.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } @@ -108,6 +110,8 @@ func (m *AccountResponse) contextValidateTrust(ctx context.Context, formats strf if err := m.Trust.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } diff --git a/pkg/models/account_update_request.go b/pkg/models/account_update_request.go index c43e2340..2dddf5dc 100644 --- a/pkg/models/account_update_request.go +++ b/pkg/models/account_update_request.go @@ -62,6 +62,8 @@ func (m *AccountUpdateRequest) validateTrust(formats strfmt.Registry) error { if err := m.Trust.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } @@ -90,6 +92,8 @@ func (m *AccountUpdateRequest) contextValidateTrust(ctx context.Context, formats if err := m.Trust.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } diff --git a/pkg/models/active_directory_security_realm_role_mapping_rules.go b/pkg/models/active_directory_security_realm_role_mapping_rules.go index 36b9b9ed..a644c669 100644 --- a/pkg/models/active_directory_security_realm_role_mapping_rules.go +++ b/pkg/models/active_directory_security_realm_role_mapping_rules.go @@ -88,6 +88,8 @@ func (m *ActiveDirectorySecurityRealmRoleMappingRules) validateRules(formats str if err := m.Rules[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *ActiveDirectorySecurityRealmRoleMappingRules) contextValidateRules(ctx if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/active_directory_settings.go b/pkg/models/active_directory_settings.go index faf3dc1f..32bde76c 100644 --- a/pkg/models/active_directory_settings.go +++ b/pkg/models/active_directory_settings.go @@ -214,6 +214,8 @@ func (m *ActiveDirectorySettings) validateGroupSearch(formats strfmt.Registry) e if err := m.GroupSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group_search") } return err } @@ -240,6 +242,8 @@ func (m *ActiveDirectorySettings) validateLoadBalance(formats strfmt.Registry) e if err := m.LoadBalance.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("load_balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("load_balance") } return err } @@ -266,6 +270,8 @@ func (m *ActiveDirectorySettings) validateRoleMappings(formats strfmt.Registry) if err := m.RoleMappings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -292,6 +298,8 @@ func (m *ActiveDirectorySettings) validateUserSearch(formats strfmt.Registry) er if err := m.UserSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_search") } return err } @@ -332,6 +340,8 @@ func (m *ActiveDirectorySettings) contextValidateGroupSearch(ctx context.Context if err := m.GroupSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group_search") } return err } @@ -346,6 +356,8 @@ func (m *ActiveDirectorySettings) contextValidateLoadBalance(ctx context.Context if err := m.LoadBalance.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("load_balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("load_balance") } return err } @@ -360,6 +372,8 @@ func (m *ActiveDirectorySettings) contextValidateRoleMappings(ctx context.Contex if err := m.RoleMappings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -374,6 +388,8 @@ func (m *ActiveDirectorySettings) contextValidateUserSearch(ctx context.Context, if err := m.UserSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_search") } return err } diff --git a/pkg/models/adminconsoles_overview.go b/pkg/models/adminconsoles_overview.go index 142581e5..7e527052 100644 --- a/pkg/models/adminconsoles_overview.go +++ b/pkg/models/adminconsoles_overview.go @@ -71,6 +71,8 @@ func (m *AdminconsolesOverview) validateAdminconsoles(formats strfmt.Registry) e if err := m.Adminconsoles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminconsoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("adminconsoles" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *AdminconsolesOverview) contextValidateAdminconsoles(ctx context.Context if err := m.Adminconsoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminconsoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("adminconsoles" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/allocated_instance_status.go b/pkg/models/allocated_instance_status.go index 6d0e04b2..459790de 100644 --- a/pkg/models/allocated_instance_status.go +++ b/pkg/models/allocated_instance_status.go @@ -149,6 +149,8 @@ func (m *AllocatedInstanceStatus) validatePlansInfo(formats strfmt.Registry) err if err := m.PlansInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plans_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plans_info") } return err } @@ -177,6 +179,8 @@ func (m *AllocatedInstanceStatus) contextValidatePlansInfo(ctx context.Context, if err := m.PlansInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plans_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plans_info") } return err } diff --git a/pkg/models/allocator_capacity.go b/pkg/models/allocator_capacity.go index 34462309..b636c947 100644 --- a/pkg/models/allocator_capacity.go +++ b/pkg/models/allocator_capacity.go @@ -71,6 +71,8 @@ func (m *AllocatorCapacity) validateMemory(formats strfmt.Registry) error { if err := m.Memory.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memory") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("memory") } return err } @@ -99,6 +101,8 @@ func (m *AllocatorCapacity) contextValidateMemory(ctx context.Context, formats s if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memory") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("memory") } return err } diff --git a/pkg/models/allocator_health_status.go b/pkg/models/allocator_health_status.go index 75b270bf..5c27b372 100644 --- a/pkg/models/allocator_health_status.go +++ b/pkg/models/allocator_health_status.go @@ -104,6 +104,8 @@ func (m *AllocatorHealthStatus) validateHealthChecks(formats strfmt.Registry) er if err := m.HealthChecks.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("health_checks") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("health_checks") } return err } @@ -162,6 +164,8 @@ func (m *AllocatorHealthStatus) contextValidateHealthChecks(ctx context.Context, if err := m.HealthChecks.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("health_checks") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("health_checks") } return err } diff --git a/pkg/models/allocator_info.go b/pkg/models/allocator_info.go index eb181f2b..33afdcb4 100644 --- a/pkg/models/allocator_info.go +++ b/pkg/models/allocator_info.go @@ -165,6 +165,8 @@ func (m *AllocatorInfo) validateBuildInfo(formats strfmt.Registry) error { if err := m.BuildInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_info") } return err } @@ -183,6 +185,8 @@ func (m *AllocatorInfo) validateCapacity(formats strfmt.Registry) error { if err := m.Capacity.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity") } return err } @@ -210,6 +214,8 @@ func (m *AllocatorInfo) validateExternalLinks(formats strfmt.Registry) error { if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -253,6 +259,8 @@ func (m *AllocatorInfo) validateInstances(formats strfmt.Registry) error { if err := m.Instances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instances" + "." + strconv.Itoa(i)) } return err } @@ -278,6 +286,8 @@ func (m *AllocatorInfo) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -307,6 +317,8 @@ func (m *AllocatorInfo) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -325,6 +337,8 @@ func (m *AllocatorInfo) validateStatus(formats strfmt.Registry) error { if err := m.Status.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") } return err } @@ -386,6 +400,8 @@ func (m *AllocatorInfo) contextValidateBuildInfo(ctx context.Context, formats st if err := m.BuildInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_info") } return err } @@ -400,6 +416,8 @@ func (m *AllocatorInfo) contextValidateCapacity(ctx context.Context, formats str if err := m.Capacity.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity") } return err } @@ -416,6 +434,8 @@ func (m *AllocatorInfo) contextValidateExternalLinks(ctx context.Context, format if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -434,6 +454,8 @@ func (m *AllocatorInfo) contextValidateInstances(ctx context.Context, formats st if err := m.Instances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instances" + "." + strconv.Itoa(i)) } return err } @@ -452,6 +474,8 @@ func (m *AllocatorInfo) contextValidateMetadata(ctx context.Context, formats str if err := m.Metadata[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -468,6 +492,8 @@ func (m *AllocatorInfo) contextValidateSettings(ctx context.Context, formats str if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -482,6 +508,8 @@ func (m *AllocatorInfo) contextValidateStatus(ctx context.Context, formats strfm if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") } return err } diff --git a/pkg/models/allocator_overview.go b/pkg/models/allocator_overview.go index 2354af59..3ad1d9d7 100644 --- a/pkg/models/allocator_overview.go +++ b/pkg/models/allocator_overview.go @@ -71,6 +71,8 @@ func (m *AllocatorOverview) validateZones(formats strfmt.Registry) error { if err := m.Zones[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zones" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zones" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *AllocatorOverview) contextValidateZones(ctx context.Context, formats st if err := m.Zones[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zones" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zones" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/allocator_zone_info.go b/pkg/models/allocator_zone_info.go index 6c6feb96..f6503c18 100644 --- a/pkg/models/allocator_zone_info.go +++ b/pkg/models/allocator_zone_info.go @@ -79,6 +79,8 @@ func (m *AllocatorZoneInfo) validateAllocators(formats strfmt.Registry) error { if err := m.Allocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocators" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *AllocatorZoneInfo) contextValidateAllocators(ctx context.Context, forma if err := m.Allocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocators" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/allocators_summary.go b/pkg/models/allocators_summary.go index dbb0efe5..969f8819 100644 --- a/pkg/models/allocators_summary.go +++ b/pkg/models/allocators_summary.go @@ -88,6 +88,8 @@ func (m *AllocatorsSummary) validateZoneSummaries(formats strfmt.Registry) error if err := m.ZoneSummaries[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zone_summaries" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zone_summaries" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *AllocatorsSummary) contextValidateZoneSummaries(ctx context.Context, fo if err := m.ZoneSummaries[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zone_summaries" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zone_summaries" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/api_keys_response.go b/pkg/models/api_keys_response.go index 37aea171..5c24de0d 100644 --- a/pkg/models/api_keys_response.go +++ b/pkg/models/api_keys_response.go @@ -71,6 +71,8 @@ func (m *APIKeysResponse) validateKeys(formats strfmt.Registry) error { if err := m.Keys[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keys" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("keys" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *APIKeysResponse) contextValidateKeys(ctx context.Context, formats strfm if err := m.Keys[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keys" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("keys" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/apm_configuration.go b/pkg/models/apm_configuration.go index 6f1c692a..f386642b 100644 --- a/pkg/models/apm_configuration.go +++ b/pkg/models/apm_configuration.go @@ -80,6 +80,8 @@ func (m *ApmConfiguration) validateSystemSettings(formats strfmt.Registry) error if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -108,6 +110,8 @@ func (m *ApmConfiguration) contextValidateSystemSettings(ctx context.Context, fo if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } diff --git a/pkg/models/apm_info.go b/pkg/models/apm_info.go index b395bc54..ba3b154c 100644 --- a/pkg/models/apm_info.go +++ b/pkg/models/apm_info.go @@ -202,6 +202,8 @@ func (m *ApmInfo) validateElasticsearchCluster(formats strfmt.Registry) error { if err := m.ElasticsearchCluster.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -229,6 +231,8 @@ func (m *ApmInfo) validateExternalLinks(formats strfmt.Registry) error { if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -269,6 +273,11 @@ func (m *ApmInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -287,6 +296,8 @@ func (m *ApmInfo) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -314,6 +325,8 @@ func (m *ApmInfo) validatePlanInfo(formats strfmt.Registry) error { if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -331,6 +344,8 @@ func (m *ApmInfo) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -407,6 +422,8 @@ func (m *ApmInfo) validateTopology(formats strfmt.Registry) error { if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -459,6 +476,8 @@ func (m *ApmInfo) contextValidateElasticsearchCluster(ctx context.Context, forma if err := m.ElasticsearchCluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -475,6 +494,8 @@ func (m *ApmInfo) contextValidateExternalLinks(ctx context.Context, formats strf if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -506,6 +527,8 @@ func (m *ApmInfo) contextValidateMetadata(ctx context.Context, formats strfmt.Re if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -520,6 +543,8 @@ func (m *ApmInfo) contextValidatePlanInfo(ctx context.Context, formats strfmt.Re if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -534,6 +559,8 @@ func (m *ApmInfo) contextValidateSettings(ctx context.Context, formats strfmt.Re if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -548,6 +575,8 @@ func (m *ApmInfo) contextValidateTopology(ctx context.Context, formats strfmt.Re if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/apm_payload.go b/pkg/models/apm_payload.go index a0de5884..fd778dc9 100644 --- a/pkg/models/apm_payload.go +++ b/pkg/models/apm_payload.go @@ -108,6 +108,8 @@ func (m *ApmPayload) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -143,6 +145,8 @@ func (m *ApmPayload) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -175,6 +179,8 @@ func (m *ApmPayload) contextValidatePlan(ctx context.Context, formats strfmt.Reg if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -189,6 +195,8 @@ func (m *ApmPayload) contextValidateSettings(ctx context.Context, formats strfmt if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/apm_plan.go b/pkg/models/apm_plan.go index eb031f48..ad2e8f88 100644 --- a/pkg/models/apm_plan.go +++ b/pkg/models/apm_plan.go @@ -80,6 +80,8 @@ func (m *ApmPlan) validateApm(formats strfmt.Registry) error { if err := m.Apm.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -102,6 +104,8 @@ func (m *ApmPlan) validateClusterTopology(formats strfmt.Registry) error { if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -121,6 +125,8 @@ func (m *ApmPlan) validateTransient(formats strfmt.Registry) error { if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -157,6 +163,8 @@ func (m *ApmPlan) contextValidateApm(ctx context.Context, formats strfmt.Registr if err := m.Apm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -173,6 +181,8 @@ func (m *ApmPlan) contextValidateClusterTopology(ctx context.Context, formats st if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -189,6 +199,8 @@ func (m *ApmPlan) contextValidateTransient(ctx context.Context, formats strfmt.R if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/apm_plan_control_configuration.go b/pkg/models/apm_plan_control_configuration.go index c320a2d5..e45e669c 100644 --- a/pkg/models/apm_plan_control_configuration.go +++ b/pkg/models/apm_plan_control_configuration.go @@ -142,6 +142,8 @@ func (m *ApmPlanControlConfiguration) validateMoveAllocators(formats strfmt.Regi if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +168,8 @@ func (m *ApmPlanControlConfiguration) validateMoveInstances(formats strfmt.Regis if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +206,8 @@ func (m *ApmPlanControlConfiguration) contextValidateMoveAllocators(ctx context. if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -220,6 +226,8 @@ func (m *ApmPlanControlConfiguration) contextValidateMoveInstances(ctx context.C if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/apm_plan_info.go b/pkg/models/apm_plan_info.go index 155fd50c..e95bc9b4 100644 --- a/pkg/models/apm_plan_info.go +++ b/pkg/models/apm_plan_info.go @@ -156,6 +156,8 @@ func (m *ApmPlanInfo) validateError(formats strfmt.Registry) error { if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *ApmPlanInfo) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *ApmPlanInfo) validatePlanAttemptLog(formats strfmt.Registry) error { if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *ApmPlanInfo) validateSource(formats strfmt.Registry) error { if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *ApmPlanInfo) validateWarnings(formats strfmt.Registry) error { if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *ApmPlanInfo) contextValidateError(ctx context.Context, formats strfmt.R if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *ApmPlanInfo) contextValidatePlan(ctx context.Context, formats strfmt.Re if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *ApmPlanInfo) contextValidatePlanAttemptLog(ctx context.Context, formats if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *ApmPlanInfo) contextValidateSource(ctx context.Context, formats strfmt. if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *ApmPlanInfo) contextValidateWarnings(ctx context.Context, formats strfm if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/apm_plans_info.go b/pkg/models/apm_plans_info.go index 62997c7a..b5a341de 100644 --- a/pkg/models/apm_plans_info.go +++ b/pkg/models/apm_plans_info.go @@ -87,6 +87,8 @@ func (m *ApmPlansInfo) validateCurrent(formats strfmt.Registry) error { if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *ApmPlansInfo) validateHistory(formats strfmt.Registry) error { if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *ApmPlansInfo) validatePending(formats strfmt.Registry) error { if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *ApmPlansInfo) contextValidateCurrent(ctx context.Context, formats strfm if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *ApmPlansInfo) contextValidateHistory(ctx context.Context, formats strfm if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *ApmPlansInfo) contextValidatePending(ctx context.Context, formats strfm if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/apm_resource_info.go b/pkg/models/apm_resource_info.go index afcd87f6..cd594b5f 100644 --- a/pkg/models/apm_resource_info.go +++ b/pkg/models/apm_resource_info.go @@ -115,6 +115,8 @@ func (m *ApmResourceInfo) validateInfo(formats strfmt.Registry) error { if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -161,6 +163,8 @@ func (m *ApmResourceInfo) contextValidateInfo(ctx context.Context, formats strfm if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/apm_settings.go b/pkg/models/apm_settings.go index 70f76a2a..a86aa179 100644 --- a/pkg/models/apm_settings.go +++ b/pkg/models/apm_settings.go @@ -62,6 +62,8 @@ func (m *ApmSettings) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -90,6 +92,8 @@ func (m *ApmSettings) contextValidateMetadata(ctx context.Context, formats strfm if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/apm_sub_info.go b/pkg/models/apm_sub_info.go index 1a12f6a6..13b3f7b6 100644 --- a/pkg/models/apm_sub_info.go +++ b/pkg/models/apm_sub_info.go @@ -100,6 +100,11 @@ func (m *ApmSubInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } diff --git a/pkg/models/apm_topology_element.go b/pkg/models/apm_topology_element.go index 944ba715..9991dafc 100644 --- a/pkg/models/apm_topology_element.go +++ b/pkg/models/apm_topology_element.go @@ -75,6 +75,8 @@ func (m *ApmTopologyElement) validateApm(formats strfmt.Registry) error { if err := m.Apm.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -92,6 +94,8 @@ func (m *ApmTopologyElement) validateSize(formats strfmt.Registry) error { if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -124,6 +128,8 @@ func (m *ApmTopologyElement) contextValidateApm(ctx context.Context, formats str if err := m.Apm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -138,6 +144,8 @@ func (m *ApmTopologyElement) contextValidateSize(ctx context.Context, formats st if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/app_search_configuration.go b/pkg/models/app_search_configuration.go index 7c5362d7..7295f404 100644 --- a/pkg/models/app_search_configuration.go +++ b/pkg/models/app_search_configuration.go @@ -80,6 +80,8 @@ func (m *AppSearchConfiguration) validateSystemSettings(formats strfmt.Registry) if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -108,6 +110,8 @@ func (m *AppSearchConfiguration) contextValidateSystemSettings(ctx context.Conte if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } diff --git a/pkg/models/app_search_info.go b/pkg/models/app_search_info.go index 85c3ab84..7d04c23e 100644 --- a/pkg/models/app_search_info.go +++ b/pkg/models/app_search_info.go @@ -152,6 +152,8 @@ func (m *AppSearchInfo) validateElasticsearchCluster(formats strfmt.Registry) er if err := m.ElasticsearchCluster.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -179,6 +181,8 @@ func (m *AppSearchInfo) validateExternalLinks(formats strfmt.Registry) error { if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -219,6 +223,11 @@ func (m *AppSearchInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -237,6 +246,8 @@ func (m *AppSearchInfo) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -264,6 +275,8 @@ func (m *AppSearchInfo) validatePlanInfo(formats strfmt.Registry) error { if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -281,6 +294,8 @@ func (m *AppSearchInfo) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -357,6 +372,8 @@ func (m *AppSearchInfo) validateTopology(formats strfmt.Registry) error { if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -409,6 +426,8 @@ func (m *AppSearchInfo) contextValidateElasticsearchCluster(ctx context.Context, if err := m.ElasticsearchCluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -425,6 +444,8 @@ func (m *AppSearchInfo) contextValidateExternalLinks(ctx context.Context, format if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -456,6 +477,8 @@ func (m *AppSearchInfo) contextValidateMetadata(ctx context.Context, formats str if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -470,6 +493,8 @@ func (m *AppSearchInfo) contextValidatePlanInfo(ctx context.Context, formats str if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -484,6 +509,8 @@ func (m *AppSearchInfo) contextValidateSettings(ctx context.Context, formats str if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -498,6 +525,8 @@ func (m *AppSearchInfo) contextValidateTopology(ctx context.Context, formats str if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/app_search_payload.go b/pkg/models/app_search_payload.go index 263664e0..7e3aa35f 100644 --- a/pkg/models/app_search_payload.go +++ b/pkg/models/app_search_payload.go @@ -108,6 +108,8 @@ func (m *AppSearchPayload) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -143,6 +145,8 @@ func (m *AppSearchPayload) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -175,6 +179,8 @@ func (m *AppSearchPayload) contextValidatePlan(ctx context.Context, formats strf if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -189,6 +195,8 @@ func (m *AppSearchPayload) contextValidateSettings(ctx context.Context, formats if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/app_search_plan.go b/pkg/models/app_search_plan.go index c0c5beb3..30807db9 100644 --- a/pkg/models/app_search_plan.go +++ b/pkg/models/app_search_plan.go @@ -80,6 +80,8 @@ func (m *AppSearchPlan) validateAppsearch(formats strfmt.Registry) error { if err := m.Appsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -102,6 +104,8 @@ func (m *AppSearchPlan) validateClusterTopology(formats strfmt.Registry) error { if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -121,6 +125,8 @@ func (m *AppSearchPlan) validateTransient(formats strfmt.Registry) error { if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -157,6 +163,8 @@ func (m *AppSearchPlan) contextValidateAppsearch(ctx context.Context, formats st if err := m.Appsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -173,6 +181,8 @@ func (m *AppSearchPlan) contextValidateClusterTopology(ctx context.Context, form if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -189,6 +199,8 @@ func (m *AppSearchPlan) contextValidateTransient(ctx context.Context, formats st if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/app_search_plan_control_configuration.go b/pkg/models/app_search_plan_control_configuration.go index c96e3c74..6d8a038a 100644 --- a/pkg/models/app_search_plan_control_configuration.go +++ b/pkg/models/app_search_plan_control_configuration.go @@ -142,6 +142,8 @@ func (m *AppSearchPlanControlConfiguration) validateMoveAllocators(formats strfm if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +168,8 @@ func (m *AppSearchPlanControlConfiguration) validateMoveInstances(formats strfmt if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +206,8 @@ func (m *AppSearchPlanControlConfiguration) contextValidateMoveAllocators(ctx co if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -220,6 +226,8 @@ func (m *AppSearchPlanControlConfiguration) contextValidateMoveInstances(ctx con if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/app_search_plan_info.go b/pkg/models/app_search_plan_info.go index bf579ea0..af8b7feb 100644 --- a/pkg/models/app_search_plan_info.go +++ b/pkg/models/app_search_plan_info.go @@ -156,6 +156,8 @@ func (m *AppSearchPlanInfo) validateError(formats strfmt.Registry) error { if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *AppSearchPlanInfo) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *AppSearchPlanInfo) validatePlanAttemptLog(formats strfmt.Registry) erro if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *AppSearchPlanInfo) validateSource(formats strfmt.Registry) error { if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *AppSearchPlanInfo) validateWarnings(formats strfmt.Registry) error { if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *AppSearchPlanInfo) contextValidateError(ctx context.Context, formats st if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *AppSearchPlanInfo) contextValidatePlan(ctx context.Context, formats str if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *AppSearchPlanInfo) contextValidatePlanAttemptLog(ctx context.Context, f if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *AppSearchPlanInfo) contextValidateSource(ctx context.Context, formats s if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *AppSearchPlanInfo) contextValidateWarnings(ctx context.Context, formats if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/app_search_plans_info.go b/pkg/models/app_search_plans_info.go index 9cf9031b..b5f8483a 100644 --- a/pkg/models/app_search_plans_info.go +++ b/pkg/models/app_search_plans_info.go @@ -87,6 +87,8 @@ func (m *AppSearchPlansInfo) validateCurrent(formats strfmt.Registry) error { if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *AppSearchPlansInfo) validateHistory(formats strfmt.Registry) error { if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *AppSearchPlansInfo) validatePending(formats strfmt.Registry) error { if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *AppSearchPlansInfo) contextValidateCurrent(ctx context.Context, formats if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *AppSearchPlansInfo) contextValidateHistory(ctx context.Context, formats if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *AppSearchPlansInfo) contextValidatePending(ctx context.Context, formats if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/app_search_resource_info.go b/pkg/models/app_search_resource_info.go index 2d4480c1..59243967 100644 --- a/pkg/models/app_search_resource_info.go +++ b/pkg/models/app_search_resource_info.go @@ -115,6 +115,8 @@ func (m *AppSearchResourceInfo) validateInfo(formats strfmt.Registry) error { if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -161,6 +163,8 @@ func (m *AppSearchResourceInfo) contextValidateInfo(ctx context.Context, formats if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/app_search_settings.go b/pkg/models/app_search_settings.go index 9e957f98..f3a55d80 100644 --- a/pkg/models/app_search_settings.go +++ b/pkg/models/app_search_settings.go @@ -62,6 +62,8 @@ func (m *AppSearchSettings) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -90,6 +92,8 @@ func (m *AppSearchSettings) contextValidateMetadata(ctx context.Context, formats if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/app_search_sub_info.go b/pkg/models/app_search_sub_info.go index 5c74c82f..28d177f3 100644 --- a/pkg/models/app_search_sub_info.go +++ b/pkg/models/app_search_sub_info.go @@ -100,6 +100,11 @@ func (m *AppSearchSubInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } diff --git a/pkg/models/app_search_topology_element.go b/pkg/models/app_search_topology_element.go index 6ccd0320..2e5a5bdf 100644 --- a/pkg/models/app_search_topology_element.go +++ b/pkg/models/app_search_topology_element.go @@ -82,6 +82,8 @@ func (m *AppSearchTopologyElement) validateAppsearch(formats strfmt.Registry) er if err := m.Appsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -99,6 +101,8 @@ func (m *AppSearchTopologyElement) validateNodeType(formats strfmt.Registry) err if err := m.NodeType.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -116,6 +120,8 @@ func (m *AppSearchTopologyElement) validateSize(formats strfmt.Registry) error { if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -152,6 +158,8 @@ func (m *AppSearchTopologyElement) contextValidateAppsearch(ctx context.Context, if err := m.Appsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -166,6 +174,8 @@ func (m *AppSearchTopologyElement) contextValidateNodeType(ctx context.Context, if err := m.NodeType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -180,6 +190,8 @@ func (m *AppSearchTopologyElement) contextValidateSize(ctx context.Context, form if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/available_authentication_methods.go b/pkg/models/available_authentication_methods.go index ff924cfe..27220f23 100644 --- a/pkg/models/available_authentication_methods.go +++ b/pkg/models/available_authentication_methods.go @@ -125,6 +125,8 @@ func (m *AvailableAuthenticationMethods) validateSsoMethods(formats strfmt.Regis if err := m.SsoMethods[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sso_methods" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sso_methods" + "." + strconv.Itoa(i)) } return err } @@ -157,6 +159,8 @@ func (m *AvailableAuthenticationMethods) contextValidateSsoMethods(ctx context.C if err := m.SsoMethods[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sso_methods" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sso_methods" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/balance.go b/pkg/models/balance.go index 9418a6b9..4781a6ee 100644 --- a/pkg/models/balance.go +++ b/pkg/models/balance.go @@ -96,6 +96,8 @@ func (m *Balance) validateLineItems(formats strfmt.Registry) error { if err := m.LineItems[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("line_items" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("line_items" + "." + strconv.Itoa(i)) } return err } @@ -137,6 +139,8 @@ func (m *Balance) contextValidateLineItems(ctx context.Context, formats strfmt.R if err := m.LineItems[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("line_items" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("line_items" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/basic_failed_reply.go b/pkg/models/basic_failed_reply.go index d711f5f6..faff2a8e 100644 --- a/pkg/models/basic_failed_reply.go +++ b/pkg/models/basic_failed_reply.go @@ -71,6 +71,8 @@ func (m *BasicFailedReply) validateErrors(formats strfmt.Registry) error { if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *BasicFailedReply) contextValidateErrors(ctx context.Context, formats st if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/blessings.go b/pkg/models/blessings.go index e4d1c200..1bd0b14c 100644 --- a/pkg/models/blessings.go +++ b/pkg/models/blessings.go @@ -68,6 +68,11 @@ func (m *Blessings) validateRunnerIdsToBlessing(formats strfmt.Registry) error { } if val, ok := m.RunnerIdsToBlessing[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("runner_ids_to_blessing" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runner_ids_to_blessing" + "." + k) + } return err } } diff --git a/pkg/models/blessings_with_meta.go b/pkg/models/blessings_with_meta.go index 9632107b..388395e9 100644 --- a/pkg/models/blessings_with_meta.go +++ b/pkg/models/blessings_with_meta.go @@ -73,6 +73,8 @@ func (m *BlessingsWithMeta) validateMeta(formats strfmt.Registry) error { if err := m.Meta.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -91,6 +93,8 @@ func (m *BlessingsWithMeta) validateValue(formats strfmt.Registry) error { if err := m.Value.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } @@ -123,6 +127,8 @@ func (m *BlessingsWithMeta) contextValidateMeta(ctx context.Context, formats str if err := m.Meta.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -137,6 +143,8 @@ func (m *BlessingsWithMeta) contextValidateValue(ctx context.Context, formats st if err := m.Value.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } diff --git a/pkg/models/bool_query.go b/pkg/models/bool_query.go index bf600aa4..047684d2 100644 --- a/pkg/models/bool_query.go +++ b/pkg/models/bool_query.go @@ -92,6 +92,8 @@ func (m *BoolQuery) validateFilter(formats strfmt.Registry) error { if err := m.Filter[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filter" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filter" + "." + strconv.Itoa(i)) } return err } @@ -116,6 +118,8 @@ func (m *BoolQuery) validateMust(formats strfmt.Registry) error { if err := m.Must[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("must" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("must" + "." + strconv.Itoa(i)) } return err } @@ -140,6 +144,8 @@ func (m *BoolQuery) validateMustNot(formats strfmt.Registry) error { if err := m.MustNot[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("must_not" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("must_not" + "." + strconv.Itoa(i)) } return err } @@ -164,6 +170,8 @@ func (m *BoolQuery) validateShould(formats strfmt.Registry) error { if err := m.Should[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("should" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("should" + "." + strconv.Itoa(i)) } return err } @@ -208,6 +216,8 @@ func (m *BoolQuery) contextValidateFilter(ctx context.Context, formats strfmt.Re if err := m.Filter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filter" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filter" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +236,8 @@ func (m *BoolQuery) contextValidateMust(ctx context.Context, formats strfmt.Regi if err := m.Must[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("must" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("must" + "." + strconv.Itoa(i)) } return err } @@ -244,6 +256,8 @@ func (m *BoolQuery) contextValidateMustNot(ctx context.Context, formats strfmt.R if err := m.MustNot[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("must_not" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("must_not" + "." + strconv.Itoa(i)) } return err } @@ -262,6 +276,8 @@ func (m *BoolQuery) contextValidateShould(ctx context.Context, formats strfmt.Re if err := m.Should[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("should" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("should" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/certificate_authority.go b/pkg/models/certificate_authority.go index ed84c777..01e99cc3 100644 --- a/pkg/models/certificate_authority.go +++ b/pkg/models/certificate_authority.go @@ -79,6 +79,8 @@ func (m *CertificateAuthority) validatePublicCertificates(formats strfmt.Registr if err := m.PublicCertificates[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("public_certificates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("public_certificates" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *CertificateAuthority) contextValidatePublicCertificates(ctx context.Con if err := m.PublicCertificates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("public_certificates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("public_certificates" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/chart_item.go b/pkg/models/chart_item.go index 9168a1b3..121c8ea1 100644 --- a/pkg/models/chart_item.go +++ b/pkg/models/chart_item.go @@ -88,6 +88,8 @@ func (m *ChartItem) validateValues(formats strfmt.Registry) error { if err := m.Values[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *ChartItem) contextValidateValues(ctx context.Context, formats strfmt.Re if err := m.Values[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/chart_items.go b/pkg/models/chart_items.go index ffb08e4a..b2c05e5e 100644 --- a/pkg/models/chart_items.go +++ b/pkg/models/chart_items.go @@ -71,6 +71,8 @@ func (m *ChartItems) validateData(formats strfmt.Registry) error { if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ChartItems) contextValidateData(ctx context.Context, formats strfmt.Reg if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/cluster_curation_settings.go b/pkg/models/cluster_curation_settings.go index fd1dcb64..74ffe60f 100644 --- a/pkg/models/cluster_curation_settings.go +++ b/pkg/models/cluster_curation_settings.go @@ -71,6 +71,8 @@ func (m *ClusterCurationSettings) validateSpecs(formats strfmt.Registry) error { if err := m.Specs[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("specs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("specs" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ClusterCurationSettings) contextValidateSpecs(ctx context.Context, form if err := m.Specs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("specs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("specs" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/cluster_instance_info.go b/pkg/models/cluster_instance_info.go index 32c67cce..7c28154d 100644 --- a/pkg/models/cluster_instance_info.go +++ b/pkg/models/cluster_instance_info.go @@ -147,6 +147,8 @@ func (m *ClusterInstanceInfo) validateDisk(formats strfmt.Registry) error { if err := m.Disk.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disk") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("disk") } return err } @@ -173,6 +175,8 @@ func (m *ClusterInstanceInfo) validateInstanceConfiguration(formats strfmt.Regis if err := m.InstanceConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instance_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instance_configuration") } return err } @@ -208,6 +212,8 @@ func (m *ClusterInstanceInfo) validateMemory(formats strfmt.Registry) error { if err := m.Memory.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memory") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("memory") } return err } @@ -289,6 +295,8 @@ func (m *ClusterInstanceInfo) contextValidateDisk(ctx context.Context, formats s if err := m.Disk.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disk") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("disk") } return err } @@ -303,6 +311,8 @@ func (m *ClusterInstanceInfo) contextValidateInstanceConfiguration(ctx context.C if err := m.InstanceConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instance_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instance_configuration") } return err } @@ -317,6 +327,8 @@ func (m *ClusterInstanceInfo) contextValidateMemory(ctx context.Context, formats if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memory") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("memory") } return err } diff --git a/pkg/models/cluster_metadata_info.go b/pkg/models/cluster_metadata_info.go index 30a7f04d..bc1f39c7 100644 --- a/pkg/models/cluster_metadata_info.go +++ b/pkg/models/cluster_metadata_info.go @@ -119,6 +119,8 @@ func (m *ClusterMetadataInfo) validatePorts(formats strfmt.Registry) error { if err := m.Ports.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ports") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ports") } return err } @@ -141,6 +143,8 @@ func (m *ClusterMetadataInfo) validateServicesUrls(formats strfmt.Registry) erro if err := m.ServicesUrls[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services_urls" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("services_urls" + "." + strconv.Itoa(i)) } return err } @@ -184,6 +188,8 @@ func (m *ClusterMetadataInfo) contextValidatePorts(ctx context.Context, formats if err := m.Ports.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ports") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ports") } return err } @@ -200,6 +206,8 @@ func (m *ClusterMetadataInfo) contextValidateServicesUrls(ctx context.Context, f if err := m.ServicesUrls[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services_urls" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("services_urls" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/cluster_metadata_resources_settings.go b/pkg/models/cluster_metadata_resources_settings.go index 01e8eb01..88d17f18 100644 --- a/pkg/models/cluster_metadata_resources_settings.go +++ b/pkg/models/cluster_metadata_resources_settings.go @@ -62,6 +62,8 @@ func (m *ClusterMetadataResourcesSettings) validateCPU(formats strfmt.Registry) if err := m.CPU.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cpu") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cpu") } return err } @@ -90,6 +92,8 @@ func (m *ClusterMetadataResourcesSettings) contextValidateCPU(ctx context.Contex if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cpu") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cpu") } return err } diff --git a/pkg/models/cluster_metadata_settings.go b/pkg/models/cluster_metadata_settings.go index 0b0009b8..df8d92c5 100644 --- a/pkg/models/cluster_metadata_settings.go +++ b/pkg/models/cluster_metadata_settings.go @@ -86,6 +86,8 @@ func (m *ClusterMetadataSettings) validateResources(formats strfmt.Registry) err if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -140,6 +142,8 @@ func (m *ClusterMetadataSettings) contextValidateResources(ctx context.Context, if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } diff --git a/pkg/models/cluster_plan_step_info.go b/pkg/models/cluster_plan_step_info.go index a8f1ca3d..fa491284 100644 --- a/pkg/models/cluster_plan_step_info.go +++ b/pkg/models/cluster_plan_step_info.go @@ -130,6 +130,8 @@ func (m *ClusterPlanStepInfo) validateInfoLog(formats strfmt.Registry) error { if err := m.InfoLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info_log" + "." + strconv.Itoa(i)) } return err } @@ -279,6 +281,8 @@ func (m *ClusterPlanStepInfo) contextValidateInfoLog(ctx context.Context, format if err := m.InfoLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info_log" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/cluster_snapshot_repository_info.go b/pkg/models/cluster_snapshot_repository_info.go index d27da64f..24fbb6b5 100644 --- a/pkg/models/cluster_snapshot_repository_info.go +++ b/pkg/models/cluster_snapshot_repository_info.go @@ -72,6 +72,8 @@ func (m *ClusterSnapshotRepositoryInfo) validateReference(formats strfmt.Registr if err := m.Reference.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("reference") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("reference") } return err } @@ -89,6 +91,8 @@ func (m *ClusterSnapshotRepositoryInfo) validateStatic(formats strfmt.Registry) if err := m.Static.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("static") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("static") } return err } @@ -121,6 +125,8 @@ func (m *ClusterSnapshotRepositoryInfo) contextValidateReference(ctx context.Con if err := m.Reference.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("reference") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("reference") } return err } @@ -135,6 +141,8 @@ func (m *ClusterSnapshotRepositoryInfo) contextValidateStatic(ctx context.Contex if err := m.Static.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("static") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("static") } return err } diff --git a/pkg/models/cluster_snapshot_settings.go b/pkg/models/cluster_snapshot_settings.go index 896396a0..ee9944ee 100644 --- a/pkg/models/cluster_snapshot_settings.go +++ b/pkg/models/cluster_snapshot_settings.go @@ -92,6 +92,8 @@ func (m *ClusterSnapshotSettings) validateRepository(formats strfmt.Registry) er if err := m.Repository.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") } return err } @@ -109,6 +111,8 @@ func (m *ClusterSnapshotSettings) validateRetention(formats strfmt.Registry) err if err := m.Retention.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("retention") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("retention") } return err } @@ -145,6 +149,8 @@ func (m *ClusterSnapshotSettings) contextValidateRepository(ctx context.Context, if err := m.Repository.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") } return err } @@ -159,6 +165,8 @@ func (m *ClusterSnapshotSettings) contextValidateRetention(ctx context.Context, if err := m.Retention.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("retention") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("retention") } return err } diff --git a/pkg/models/cluster_topology_info.go b/pkg/models/cluster_topology_info.go index ad2b29a5..40ba8e40 100644 --- a/pkg/models/cluster_topology_info.go +++ b/pkg/models/cluster_topology_info.go @@ -88,6 +88,8 @@ func (m *ClusterTopologyInfo) validateInstances(formats strfmt.Registry) error { if err := m.Instances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instances" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *ClusterTopologyInfo) contextValidateInstances(ctx context.Context, form if err := m.Instances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/comment_with_meta.go b/pkg/models/comment_with_meta.go index a268181c..7645918b 100644 --- a/pkg/models/comment_with_meta.go +++ b/pkg/models/comment_with_meta.go @@ -73,6 +73,8 @@ func (m *CommentWithMeta) validateComment(formats strfmt.Registry) error { if err := m.Comment.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("comment") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("comment") } return err } @@ -91,6 +93,8 @@ func (m *CommentWithMeta) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -123,6 +127,8 @@ func (m *CommentWithMeta) contextValidateComment(ctx context.Context, formats st if err := m.Comment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("comment") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("comment") } return err } @@ -137,6 +143,8 @@ func (m *CommentWithMeta) contextValidateMetadata(ctx context.Context, formats s if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/comments_with_metas.go b/pkg/models/comments_with_metas.go index 0a922750..c627d16c 100644 --- a/pkg/models/comments_with_metas.go +++ b/pkg/models/comments_with_metas.go @@ -71,6 +71,8 @@ func (m *CommentsWithMetas) validateValues(formats strfmt.Registry) error { if err := m.Values[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *CommentsWithMetas) contextValidateValues(ctx context.Context, formats s if err := m.Values[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/common_cluster_plan_info.go b/pkg/models/common_cluster_plan_info.go index a8550330..7181c1e6 100644 --- a/pkg/models/common_cluster_plan_info.go +++ b/pkg/models/common_cluster_plan_info.go @@ -152,6 +152,8 @@ func (m *CommonClusterPlanInfo) validateError(formats strfmt.Registry) error { if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -184,6 +186,8 @@ func (m *CommonClusterPlanInfo) validatePlanAttemptLog(formats strfmt.Registry) if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -215,6 +219,8 @@ func (m *CommonClusterPlanInfo) validateSource(formats strfmt.Registry) error { if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -238,6 +244,8 @@ func (m *CommonClusterPlanInfo) validateWarnings(formats strfmt.Registry) error if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -280,6 +288,8 @@ func (m *CommonClusterPlanInfo) contextValidateError(ctx context.Context, format if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -296,6 +306,8 @@ func (m *CommonClusterPlanInfo) contextValidatePlanAttemptLog(ctx context.Contex if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -312,6 +324,8 @@ func (m *CommonClusterPlanInfo) contextValidateSource(ctx context.Context, forma if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -328,6 +342,8 @@ func (m *CommonClusterPlanInfo) contextValidateWarnings(ctx context.Context, for if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/compatible_node_types_resource.go b/pkg/models/compatible_node_types_resource.go index e058e22b..c871e79e 100644 --- a/pkg/models/compatible_node_types_resource.go +++ b/pkg/models/compatible_node_types_resource.go @@ -82,6 +82,8 @@ func (m *CompatibleNodeTypesResource) validateCapacityConstraints(formats strfmt if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -128,6 +130,8 @@ func (m *CompatibleNodeTypesResource) contextValidateCapacityConstraints(ctx con if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } diff --git a/pkg/models/compatible_version_resource.go b/pkg/models/compatible_version_resource.go index bd569be8..316240d7 100644 --- a/pkg/models/compatible_version_resource.go +++ b/pkg/models/compatible_version_resource.go @@ -83,6 +83,8 @@ func (m *CompatibleVersionResource) validateCapacityConstraints(formats strfmt.R if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -106,6 +108,8 @@ func (m *CompatibleVersionResource) validateNodeTypes(formats strfmt.Registry) e if err := m.NodeTypes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } @@ -149,6 +153,8 @@ func (m *CompatibleVersionResource) contextValidateCapacityConstraints(ctx conte if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -165,6 +171,8 @@ func (m *CompatibleVersionResource) contextValidateNodeTypes(ctx context.Context if err := m.NodeTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/config_store_option_list.go b/pkg/models/config_store_option_list.go index 5d559852..3e600e3f 100644 --- a/pkg/models/config_store_option_list.go +++ b/pkg/models/config_store_option_list.go @@ -71,6 +71,8 @@ func (m *ConfigStoreOptionList) validateValues(formats strfmt.Registry) error { if err := m.Values[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ConfigStoreOptionList) contextValidateValues(ctx context.Context, forma if err := m.Values[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/constructor_info.go b/pkg/models/constructor_info.go index f8fb47f6..eba48487 100644 --- a/pkg/models/constructor_info.go +++ b/pkg/models/constructor_info.go @@ -82,6 +82,8 @@ func (m *ConstructorInfo) validateStatus(formats strfmt.Registry) error { if err := m.Status.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") } return err } @@ -110,6 +112,8 @@ func (m *ConstructorInfo) contextValidateStatus(ctx context.Context, formats str if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") } return err } diff --git a/pkg/models/constructor_overview.go b/pkg/models/constructor_overview.go index 5958a032..6ae9bef5 100644 --- a/pkg/models/constructor_overview.go +++ b/pkg/models/constructor_overview.go @@ -71,6 +71,8 @@ func (m *ConstructorOverview) validateConstructors(formats strfmt.Registry) erro if err := m.Constructors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("constructors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("constructors" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ConstructorOverview) contextValidateConstructors(ctx context.Context, f if err := m.Constructors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("constructors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("constructors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/container_config_host_config.go b/pkg/models/container_config_host_config.go index f8dd1ea5..28cdbdb4 100644 --- a/pkg/models/container_config_host_config.go +++ b/pkg/models/container_config_host_config.go @@ -128,6 +128,8 @@ func (m *ContainerConfigHostConfig) validatePortBindings(formats strfmt.Registry if err := m.PortBindings[k][i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("port_bindings" + "." + k + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("port_bindings" + "." + k + "." + strconv.Itoa(i)) } return err } @@ -157,6 +159,8 @@ func (m *ContainerConfigHostConfig) validateRestartPolicy(formats strfmt.Registr if err := m.RestartPolicy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restart_policy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restart_policy") } return err } @@ -196,6 +200,8 @@ func (m *ContainerConfigHostConfig) contextValidatePortBindings(ctx context.Cont if err := m.PortBindings[k][i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("port_bindings" + "." + k + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("port_bindings" + "." + k + "." + strconv.Itoa(i)) } return err } @@ -213,6 +219,8 @@ func (m *ContainerConfigHostConfig) contextValidateRestartPolicy(ctx context.Con if err := m.RestartPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restart_policy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restart_policy") } return err } diff --git a/pkg/models/container_sets_summary.go b/pkg/models/container_sets_summary.go index 526c9725..dea721f7 100644 --- a/pkg/models/container_sets_summary.go +++ b/pkg/models/container_sets_summary.go @@ -113,6 +113,8 @@ func (m *ContainerSetsSummary) validateUnhealthyContainerSets(formats strfmt.Reg if err := m.UnhealthyContainerSets[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unhealthy_container_sets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unhealthy_container_sets" + "." + strconv.Itoa(i)) } return err } @@ -154,6 +156,8 @@ func (m *ContainerSetsSummary) contextValidateUnhealthyContainerSets(ctx context if err := m.UnhealthyContainerSets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unhealthy_container_sets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unhealthy_container_sets" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/containers_entry.go b/pkg/models/containers_entry.go index 72479504..633bdd38 100644 --- a/pkg/models/containers_entry.go +++ b/pkg/models/containers_entry.go @@ -116,6 +116,8 @@ func (m *ContainersEntry) validateOptions(formats strfmt.Registry) error { if err := m.Options.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("options") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("options") } return err } @@ -144,6 +146,8 @@ func (m *ContainersEntry) contextValidateOptions(ctx context.Context, formats st if err := m.Options.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("options") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("options") } return err } diff --git a/pkg/models/containers_entry_options.go b/pkg/models/containers_entry_options.go index 7471f962..56ae25bc 100644 --- a/pkg/models/containers_entry_options.go +++ b/pkg/models/containers_entry_options.go @@ -103,6 +103,8 @@ func (m *ContainersEntryOptions) validateAcls(formats strfmt.Registry) error { if err := m.Acls[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acls" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("acls" + "." + strconv.Itoa(i)) } return err } @@ -128,6 +130,8 @@ func (m *ContainersEntryOptions) validateAuths(formats strfmt.Registry) error { if err := m.Auths[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("auths" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("auths" + "." + strconv.Itoa(i)) } return err } @@ -156,6 +160,8 @@ func (m *ContainersEntryOptions) validateOverrides(formats strfmt.Registry) erro if err := m.Overrides.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("overrides") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("overrides") } return err } @@ -194,6 +200,8 @@ func (m *ContainersEntryOptions) contextValidateAcls(ctx context.Context, format if err := m.Acls[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acls" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("acls" + "." + strconv.Itoa(i)) } return err } @@ -212,6 +220,8 @@ func (m *ContainersEntryOptions) contextValidateAuths(ctx context.Context, forma if err := m.Auths[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("auths" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("auths" + "." + strconv.Itoa(i)) } return err } @@ -228,6 +238,8 @@ func (m *ContainersEntryOptions) contextValidateOverrides(ctx context.Context, f if err := m.Overrides.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("overrides") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("overrides") } return err } diff --git a/pkg/models/containers_entry_options_container_config.go b/pkg/models/containers_entry_options_container_config.go index 4253e3b0..dd07133b 100644 --- a/pkg/models/containers_entry_options_container_config.go +++ b/pkg/models/containers_entry_options_container_config.go @@ -81,6 +81,8 @@ func (m *ContainersEntryOptionsContainerConfig) validateHostConfig(formats strfm if err := m.HostConfig.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("host_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("host_config") } return err } @@ -109,6 +111,8 @@ func (m *ContainersEntryOptionsContainerConfig) contextValidateHostConfig(ctx co if err := m.HostConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("host_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("host_config") } return err } diff --git a/pkg/models/containers_entry_options_overrides.go b/pkg/models/containers_entry_options_overrides.go index 438b6390..8b59e06e 100644 --- a/pkg/models/containers_entry_options_overrides.go +++ b/pkg/models/containers_entry_options_overrides.go @@ -62,6 +62,8 @@ func (m *ContainersEntryOptionsOverrides) validateContainerConfig(formats strfmt if err := m.ContainerConfig.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("container_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("container_config") } return err } @@ -90,6 +92,8 @@ func (m *ContainersEntryOptionsOverrides) contextValidateContainerConfig(ctx con if err := m.ContainerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("container_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("container_config") } return err } diff --git a/pkg/models/coordinator_candidate_info.go b/pkg/models/coordinator_candidate_info.go index f5a3e8c9..1fda1b9f 100644 --- a/pkg/models/coordinator_candidate_info.go +++ b/pkg/models/coordinator_candidate_info.go @@ -102,6 +102,8 @@ func (m *CoordinatorCandidateInfo) validateACL(formats strfmt.Registry) error { if err := m.ACL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acl") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("acl") } return err } @@ -200,6 +202,8 @@ func (m *CoordinatorCandidateInfo) contextValidateACL(ctx context.Context, forma if err := m.ACL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acl") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("acl") } return err } diff --git a/pkg/models/coordinator_candidates_summary.go b/pkg/models/coordinator_candidates_summary.go index e6008566..09a4be18 100644 --- a/pkg/models/coordinator_candidates_summary.go +++ b/pkg/models/coordinator_candidates_summary.go @@ -71,6 +71,8 @@ func (m *CoordinatorCandidatesSummary) validateCandidates(formats strfmt.Registr if err := m.Candidates[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("candidates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("candidates" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *CoordinatorCandidatesSummary) contextValidateCandidates(ctx context.Con if err := m.Candidates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("candidates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("candidates" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/coordinators_summary.go b/pkg/models/coordinators_summary.go index 3391312f..2b837311 100644 --- a/pkg/models/coordinators_summary.go +++ b/pkg/models/coordinators_summary.go @@ -71,6 +71,8 @@ func (m *CoordinatorsSummary) validateCoordinators(formats strfmt.Registry) erro if err := m.Coordinators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("coordinators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("coordinators" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *CoordinatorsSummary) contextValidateCoordinators(ctx context.Context, f if err := m.Coordinators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("coordinators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("coordinators" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/costs.go b/pkg/models/costs.go index fd5c03f4..9844a9af 100644 --- a/pkg/models/costs.go +++ b/pkg/models/costs.go @@ -79,6 +79,8 @@ func (m *Costs) validateDimensions(formats strfmt.Registry) error { if err := m.Dimensions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dimensions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dimensions" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *Costs) contextValidateDimensions(ctx context.Context, formats strfmt.Re if err := m.Dimensions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dimensions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dimensions" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/costs_overview.go b/pkg/models/costs_overview.go index dff96cda..aa0de05c 100644 --- a/pkg/models/costs_overview.go +++ b/pkg/models/costs_overview.go @@ -87,6 +87,8 @@ func (m *CostsOverview) validateBalance(formats strfmt.Registry) error { if err := m.Balance.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("balance") } return err } @@ -105,6 +107,8 @@ func (m *CostsOverview) validateCosts(formats strfmt.Registry) error { if err := m.Costs.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } @@ -155,6 +159,8 @@ func (m *CostsOverview) contextValidateBalance(ctx context.Context, formats strf if err := m.Balance.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("balance") } return err } @@ -169,6 +175,8 @@ func (m *CostsOverview) contextValidateCosts(ctx context.Context, formats strfmt if err := m.Costs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } diff --git a/pkg/models/creates.go b/pkg/models/creates.go index 39d754cd..134082b6 100644 --- a/pkg/models/creates.go +++ b/pkg/models/creates.go @@ -103,6 +103,8 @@ func (m *Creates) validateApm(formats strfmt.Registry) error { if err := m.Apm[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +129,8 @@ func (m *Creates) validateAppsearch(formats strfmt.Registry) error { if err := m.Appsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -151,6 +155,8 @@ func (m *Creates) validateElasticsearch(formats strfmt.Registry) error { if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +181,8 @@ func (m *Creates) validateEnterpriseSearch(formats strfmt.Registry) error { if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -199,6 +207,8 @@ func (m *Creates) validateIntegrationsServer(formats strfmt.Registry) error { if err := m.IntegrationsServer[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -223,6 +233,8 @@ func (m *Creates) validateKibana(formats strfmt.Registry) error { if err := m.Kibana[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +287,8 @@ func (m *Creates) contextValidateApm(ctx context.Context, formats strfmt.Registr if err := m.Apm[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -293,6 +307,8 @@ func (m *Creates) contextValidateAppsearch(ctx context.Context, formats strfmt.R if err := m.Appsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -311,6 +327,8 @@ func (m *Creates) contextValidateElasticsearch(ctx context.Context, formats strf if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -329,6 +347,8 @@ func (m *Creates) contextValidateEnterpriseSearch(ctx context.Context, formats s if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +367,8 @@ func (m *Creates) contextValidateIntegrationsServer(ctx context.Context, formats if err := m.IntegrationsServer[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -365,6 +387,8 @@ func (m *Creates) contextValidateKibana(ctx context.Context, formats strfmt.Regi if err := m.Kibana[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/delete_users_api_keys_request.go b/pkg/models/delete_users_api_keys_request.go index 9e08774b..d321e957 100644 --- a/pkg/models/delete_users_api_keys_request.go +++ b/pkg/models/delete_users_api_keys_request.go @@ -71,6 +71,8 @@ func (m *DeleteUsersAPIKeysRequest) validateUserAPIKeys(formats strfmt.Registry) if err := m.UserAPIKeys[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_api_keys" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_api_keys" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *DeleteUsersAPIKeysRequest) contextValidateUserAPIKeys(ctx context.Conte if err := m.UserAPIKeys[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_api_keys" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_api_keys" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_costs.go b/pkg/models/deployment_costs.go index a3913a7f..aa995d23 100644 --- a/pkg/models/deployment_costs.go +++ b/pkg/models/deployment_costs.go @@ -96,6 +96,8 @@ func (m *DeploymentCosts) validateCosts(formats strfmt.Registry) error { if err := m.Costs.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } @@ -140,6 +142,8 @@ func (m *DeploymentCosts) validatePeriod(formats strfmt.Registry) error { if err := m.Period.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("period") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("period") } return err } @@ -172,6 +176,8 @@ func (m *DeploymentCosts) contextValidateCosts(ctx context.Context, formats strf if err := m.Costs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } @@ -186,6 +192,8 @@ func (m *DeploymentCosts) contextValidatePeriod(ctx context.Context, formats str if err := m.Period.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("period") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("period") } return err } diff --git a/pkg/models/deployment_create_metadata.go b/pkg/models/deployment_create_metadata.go index a532dfbf..7f4709b7 100644 --- a/pkg/models/deployment_create_metadata.go +++ b/pkg/models/deployment_create_metadata.go @@ -71,6 +71,8 @@ func (m *DeploymentCreateMetadata) validateTags(formats strfmt.Registry) error { if err := m.Tags[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *DeploymentCreateMetadata) contextValidateTags(ctx context.Context, form if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_create_request.go b/pkg/models/deployment_create_request.go index 1c75319e..5b64342b 100644 --- a/pkg/models/deployment_create_request.go +++ b/pkg/models/deployment_create_request.go @@ -88,6 +88,8 @@ func (m *DeploymentCreateRequest) validateMetadata(formats strfmt.Registry) erro if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -105,6 +107,8 @@ func (m *DeploymentCreateRequest) validateResources(formats strfmt.Registry) err if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -122,6 +126,8 @@ func (m *DeploymentCreateRequest) validateSettings(formats strfmt.Registry) erro if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -158,6 +164,8 @@ func (m *DeploymentCreateRequest) contextValidateMetadata(ctx context.Context, f if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -172,6 +180,8 @@ func (m *DeploymentCreateRequest) contextValidateResources(ctx context.Context, if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -186,6 +196,8 @@ func (m *DeploymentCreateRequest) contextValidateSettings(ctx context.Context, f if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/deployment_create_resources.go b/pkg/models/deployment_create_resources.go index 44952da2..efa2659f 100644 --- a/pkg/models/deployment_create_resources.go +++ b/pkg/models/deployment_create_resources.go @@ -103,6 +103,8 @@ func (m *DeploymentCreateResources) validateApm(formats strfmt.Registry) error { if err := m.Apm[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +129,8 @@ func (m *DeploymentCreateResources) validateAppsearch(formats strfmt.Registry) e if err := m.Appsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -151,6 +155,8 @@ func (m *DeploymentCreateResources) validateElasticsearch(formats strfmt.Registr if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +181,8 @@ func (m *DeploymentCreateResources) validateEnterpriseSearch(formats strfmt.Regi if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -199,6 +207,8 @@ func (m *DeploymentCreateResources) validateIntegrationsServer(formats strfmt.Re if err := m.IntegrationsServer[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -223,6 +233,8 @@ func (m *DeploymentCreateResources) validateKibana(formats strfmt.Registry) erro if err := m.Kibana[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +287,8 @@ func (m *DeploymentCreateResources) contextValidateApm(ctx context.Context, form if err := m.Apm[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -293,6 +307,8 @@ func (m *DeploymentCreateResources) contextValidateAppsearch(ctx context.Context if err := m.Appsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -311,6 +327,8 @@ func (m *DeploymentCreateResources) contextValidateElasticsearch(ctx context.Con if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -329,6 +347,8 @@ func (m *DeploymentCreateResources) contextValidateEnterpriseSearch(ctx context. if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +367,8 @@ func (m *DeploymentCreateResources) contextValidateIntegrationsServer(ctx contex if err := m.IntegrationsServer[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -365,6 +387,8 @@ func (m *DeploymentCreateResources) contextValidateKibana(ctx context.Context, f if err := m.Kibana[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_create_response.go b/pkg/models/deployment_create_response.go index 86f9996a..f751d344 100644 --- a/pkg/models/deployment_create_response.go +++ b/pkg/models/deployment_create_response.go @@ -108,6 +108,8 @@ func (m *DeploymentCreateResponse) validateDiagnostics(formats strfmt.Registry) if err := m.Diagnostics.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("diagnostics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("diagnostics") } return err } @@ -149,6 +151,8 @@ func (m *DeploymentCreateResponse) validateResources(formats strfmt.Registry) er if err := m.Resources[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -183,6 +187,8 @@ func (m *DeploymentCreateResponse) contextValidateDiagnostics(ctx context.Contex if err := m.Diagnostics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("diagnostics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("diagnostics") } return err } @@ -199,6 +205,8 @@ func (m *DeploymentCreateResponse) contextValidateResources(ctx context.Context, if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_create_settings.go b/pkg/models/deployment_create_settings.go index 2bdb30e4..43e46f60 100644 --- a/pkg/models/deployment_create_settings.go +++ b/pkg/models/deployment_create_settings.go @@ -72,6 +72,8 @@ func (m *DeploymentCreateSettings) validateObservability(formats strfmt.Registry if err := m.Observability.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -89,6 +91,8 @@ func (m *DeploymentCreateSettings) validateTrafficFilterSettings(formats strfmt. if err := m.TrafficFilterSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter_settings") } return err } @@ -121,6 +125,8 @@ func (m *DeploymentCreateSettings) contextValidateObservability(ctx context.Cont if err := m.Observability.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -135,6 +141,8 @@ func (m *DeploymentCreateSettings) contextValidateTrafficFilterSettings(ctx cont if err := m.TrafficFilterSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter_settings") } return err } diff --git a/pkg/models/deployment_delete_response.go b/pkg/models/deployment_delete_response.go index b772b411..0fb0da80 100644 --- a/pkg/models/deployment_delete_response.go +++ b/pkg/models/deployment_delete_response.go @@ -97,6 +97,8 @@ func (m *DeploymentDeleteResponse) validateOrphaned(formats strfmt.Registry) err if err := m.Orphaned.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("orphaned") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("orphaned") } return err } @@ -125,6 +127,8 @@ func (m *DeploymentDeleteResponse) contextValidateOrphaned(ctx context.Context, if err := m.Orphaned.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("orphaned") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("orphaned") } return err } diff --git a/pkg/models/deployment_diagnostics.go b/pkg/models/deployment_diagnostics.go index 71d6fd5b..49bfc3b2 100644 --- a/pkg/models/deployment_diagnostics.go +++ b/pkg/models/deployment_diagnostics.go @@ -69,6 +69,8 @@ func (m *DeploymentDiagnostics) validateCreates(formats strfmt.Registry) error { if err := m.Creates.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("creates") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("creates") } return err } @@ -86,6 +88,8 @@ func (m *DeploymentDiagnostics) validateUpdates(formats strfmt.Registry) error { if err := m.Updates.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("updates") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("updates") } return err } @@ -118,6 +122,8 @@ func (m *DeploymentDiagnostics) contextValidateCreates(ctx context.Context, form if err := m.Creates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("creates") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("creates") } return err } @@ -132,6 +138,8 @@ func (m *DeploymentDiagnostics) contextValidateUpdates(ctx context.Context, form if err := m.Updates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("updates") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("updates") } return err } diff --git a/pkg/models/deployment_get_response.go b/pkg/models/deployment_get_response.go index 76424ce1..e67e4e4f 100644 --- a/pkg/models/deployment_get_response.go +++ b/pkg/models/deployment_get_response.go @@ -130,6 +130,8 @@ func (m *DeploymentGetResponse) validateMetadata(formats strfmt.Registry) error if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -156,6 +158,8 @@ func (m *DeploymentGetResponse) validateObservability(formats strfmt.Registry) e if err := m.Observability.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -174,6 +178,8 @@ func (m *DeploymentGetResponse) validateResources(formats strfmt.Registry) error if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -191,6 +197,8 @@ func (m *DeploymentGetResponse) validateSettings(formats strfmt.Registry) error if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -231,6 +239,8 @@ func (m *DeploymentGetResponse) contextValidateMetadata(ctx context.Context, for if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -245,6 +255,8 @@ func (m *DeploymentGetResponse) contextValidateObservability(ctx context.Context if err := m.Observability.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -259,6 +271,8 @@ func (m *DeploymentGetResponse) contextValidateResources(ctx context.Context, fo if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -273,6 +287,8 @@ func (m *DeploymentGetResponse) contextValidateSettings(ctx context.Context, for if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/deployment_heap_dumps.go b/pkg/models/deployment_heap_dumps.go index ad15d41e..23bb41ec 100644 --- a/pkg/models/deployment_heap_dumps.go +++ b/pkg/models/deployment_heap_dumps.go @@ -79,6 +79,8 @@ func (m *DeploymentHeapDumps) validateElasticsearch(formats strfmt.Registry) err if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *DeploymentHeapDumps) validateEnterpriseSearch(formats strfmt.Registry) if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -140,6 +144,8 @@ func (m *DeploymentHeapDumps) contextValidateElasticsearch(ctx context.Context, if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -158,6 +164,8 @@ func (m *DeploymentHeapDumps) contextValidateEnterpriseSearch(ctx context.Contex if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_logging.go b/pkg/models/deployment_logging.go index 8abd4ce3..185e2a7f 100644 --- a/pkg/models/deployment_logging.go +++ b/pkg/models/deployment_logging.go @@ -89,6 +89,8 @@ func (m *DeploymentLogging) validateIssues(formats strfmt.Registry) error { if err := m.Issues[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } @@ -121,6 +123,8 @@ func (m *DeploymentLogging) contextValidateIssues(ctx context.Context, formats s if err := m.Issues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_logging_settings.go b/pkg/models/deployment_logging_settings.go index aca07890..6ee82c5d 100644 --- a/pkg/models/deployment_logging_settings.go +++ b/pkg/models/deployment_logging_settings.go @@ -65,6 +65,8 @@ func (m *DeploymentLoggingSettings) validateDestination(formats strfmt.Registry) if err := m.Destination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("destination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("destination") } return err } @@ -93,6 +95,8 @@ func (m *DeploymentLoggingSettings) contextValidateDestination(ctx context.Conte if err := m.Destination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("destination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("destination") } return err } diff --git a/pkg/models/deployment_metadata.go b/pkg/models/deployment_metadata.go index f92707b9..f246e823 100644 --- a/pkg/models/deployment_metadata.go +++ b/pkg/models/deployment_metadata.go @@ -129,6 +129,8 @@ func (m *DeploymentMetadata) validateTags(formats strfmt.Registry) error { if err := m.Tags[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } @@ -200,6 +202,8 @@ func (m *DeploymentMetadata) contextValidateTags(ctx context.Context, formats st if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_metrics.go b/pkg/models/deployment_metrics.go index 8b3945e6..53d616c2 100644 --- a/pkg/models/deployment_metrics.go +++ b/pkg/models/deployment_metrics.go @@ -89,6 +89,8 @@ func (m *DeploymentMetrics) validateIssues(formats strfmt.Registry) error { if err := m.Issues[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } @@ -121,6 +123,8 @@ func (m *DeploymentMetrics) contextValidateIssues(ctx context.Context, formats s if err := m.Issues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_metrics_settings.go b/pkg/models/deployment_metrics_settings.go index 23019b48..42357152 100644 --- a/pkg/models/deployment_metrics_settings.go +++ b/pkg/models/deployment_metrics_settings.go @@ -68,6 +68,8 @@ func (m *DeploymentMetricsSettings) validateDestination(formats strfmt.Registry) if err := m.Destination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("destination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("destination") } return err } @@ -96,6 +98,8 @@ func (m *DeploymentMetricsSettings) contextValidateDestination(ctx context.Conte if err := m.Destination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("destination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("destination") } return err } diff --git a/pkg/models/deployment_observability.go b/pkg/models/deployment_observability.go index 85d6f4c7..e7331267 100644 --- a/pkg/models/deployment_observability.go +++ b/pkg/models/deployment_observability.go @@ -100,6 +100,8 @@ func (m *DeploymentObservability) validateIssues(formats strfmt.Registry) error if err := m.Issues[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } @@ -119,6 +121,8 @@ func (m *DeploymentObservability) validateLogging(formats strfmt.Registry) error if err := m.Logging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("logging") } return err } @@ -136,6 +140,8 @@ func (m *DeploymentObservability) validateMetrics(formats strfmt.Registry) error if err := m.Metrics.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metrics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metrics") } return err } @@ -174,6 +180,8 @@ func (m *DeploymentObservability) contextValidateIssues(ctx context.Context, for if err := m.Issues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issues" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("issues" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +198,8 @@ func (m *DeploymentObservability) contextValidateLogging(ctx context.Context, fo if err := m.Logging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("logging") } return err } @@ -204,6 +214,8 @@ func (m *DeploymentObservability) contextValidateMetrics(ctx context.Context, fo if err := m.Metrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metrics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metrics") } return err } diff --git a/pkg/models/deployment_observability_settings.go b/pkg/models/deployment_observability_settings.go index 970808c7..77f024f7 100644 --- a/pkg/models/deployment_observability_settings.go +++ b/pkg/models/deployment_observability_settings.go @@ -69,6 +69,8 @@ func (m *DeploymentObservabilitySettings) validateLogging(formats strfmt.Registr if err := m.Logging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("logging") } return err } @@ -86,6 +88,8 @@ func (m *DeploymentObservabilitySettings) validateMetrics(formats strfmt.Registr if err := m.Metrics.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metrics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metrics") } return err } @@ -118,6 +122,8 @@ func (m *DeploymentObservabilitySettings) contextValidateLogging(ctx context.Con if err := m.Logging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("logging") } return err } @@ -132,6 +138,8 @@ func (m *DeploymentObservabilitySettings) contextValidateMetrics(ctx context.Con if err := m.Metrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metrics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metrics") } return err } diff --git a/pkg/models/deployment_resource.go b/pkg/models/deployment_resource.go index 46205c21..ea5d720c 100644 --- a/pkg/models/deployment_resource.go +++ b/pkg/models/deployment_resource.go @@ -112,6 +112,8 @@ func (m *DeploymentResource) validateCredentials(formats strfmt.Registry) error if err := m.Credentials.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credentials") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credentials") } return err } @@ -170,6 +172,8 @@ func (m *DeploymentResource) validateWarnings(formats strfmt.Registry) error { if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -204,6 +208,8 @@ func (m *DeploymentResource) contextValidateCredentials(ctx context.Context, for if err := m.Credentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credentials") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credentials") } return err } @@ -220,6 +226,8 @@ func (m *DeploymentResource) contextValidateWarnings(ctx context.Context, format if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_resource_command_response.go b/pkg/models/deployment_resource_command_response.go index 8721ff4c..4b4866ad 100644 --- a/pkg/models/deployment_resource_command_response.go +++ b/pkg/models/deployment_resource_command_response.go @@ -68,6 +68,8 @@ func (m *DeploymentResourceCommandResponse) validateWarnings(formats strfmt.Regi if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -100,6 +102,8 @@ func (m *DeploymentResourceCommandResponse) contextValidateWarnings(ctx context. if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_resources.go b/pkg/models/deployment_resources.go index c1e8b107..ea676543 100644 --- a/pkg/models/deployment_resources.go +++ b/pkg/models/deployment_resources.go @@ -111,6 +111,8 @@ func (m *DeploymentResources) validateApm(formats strfmt.Registry) error { if err := m.Apm[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -136,6 +138,8 @@ func (m *DeploymentResources) validateAppsearch(formats strfmt.Registry) error { if err := m.Appsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -161,6 +165,8 @@ func (m *DeploymentResources) validateElasticsearch(formats strfmt.Registry) err if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -186,6 +192,8 @@ func (m *DeploymentResources) validateEnterpriseSearch(formats strfmt.Registry) if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -211,6 +219,8 @@ func (m *DeploymentResources) validateIntegrationsServer(formats strfmt.Registry if err := m.IntegrationsServer[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +246,8 @@ func (m *DeploymentResources) validateKibana(formats strfmt.Registry) error { if err := m.Kibana[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } @@ -288,6 +300,8 @@ func (m *DeploymentResources) contextValidateApm(ctx context.Context, formats st if err := m.Apm[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -306,6 +320,8 @@ func (m *DeploymentResources) contextValidateAppsearch(ctx context.Context, form if err := m.Appsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -324,6 +340,8 @@ func (m *DeploymentResources) contextValidateElasticsearch(ctx context.Context, if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -342,6 +360,8 @@ func (m *DeploymentResources) contextValidateEnterpriseSearch(ctx context.Contex if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -360,6 +380,8 @@ func (m *DeploymentResources) contextValidateIntegrationsServer(ctx context.Cont if err := m.IntegrationsServer[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -378,6 +400,8 @@ func (m *DeploymentResources) contextValidateKibana(ctx context.Context, formats if err := m.Kibana[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_search_response.go b/pkg/models/deployment_search_response.go index 29a7cca8..f6ae92d8 100644 --- a/pkg/models/deployment_search_response.go +++ b/pkg/models/deployment_search_response.go @@ -123,6 +123,8 @@ func (m *DeploymentSearchResponse) validateMetadata(formats strfmt.Registry) err if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -150,6 +152,8 @@ func (m *DeploymentSearchResponse) validateResources(formats strfmt.Registry) er if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -167,6 +171,8 @@ func (m *DeploymentSearchResponse) validateSettings(formats strfmt.Registry) err if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -203,6 +209,8 @@ func (m *DeploymentSearchResponse) contextValidateMetadata(ctx context.Context, if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -217,6 +225,8 @@ func (m *DeploymentSearchResponse) contextValidateResources(ctx context.Context, if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -231,6 +241,8 @@ func (m *DeploymentSearchResponse) contextValidateSettings(ctx context.Context, if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/deployment_settings.go b/pkg/models/deployment_settings.go index 3b72cb94..8666bbcf 100644 --- a/pkg/models/deployment_settings.go +++ b/pkg/models/deployment_settings.go @@ -72,6 +72,8 @@ func (m *DeploymentSettings) validateObservability(formats strfmt.Registry) erro if err := m.Observability.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -89,6 +91,8 @@ func (m *DeploymentSettings) validateTrafficFilterSettings(formats strfmt.Regist if err := m.TrafficFilterSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter_settings") } return err } @@ -121,6 +125,8 @@ func (m *DeploymentSettings) contextValidateObservability(ctx context.Context, f if err := m.Observability.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -135,6 +141,8 @@ func (m *DeploymentSettings) contextValidateTrafficFilterSettings(ctx context.Co if err := m.TrafficFilterSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter_settings") } return err } diff --git a/pkg/models/deployment_shutdown_response.go b/pkg/models/deployment_shutdown_response.go index ea2c373e..db5d001a 100644 --- a/pkg/models/deployment_shutdown_response.go +++ b/pkg/models/deployment_shutdown_response.go @@ -97,6 +97,8 @@ func (m *DeploymentShutdownResponse) validateOrphaned(formats strfmt.Registry) e if err := m.Orphaned.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("orphaned") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("orphaned") } return err } @@ -125,6 +127,8 @@ func (m *DeploymentShutdownResponse) contextValidateOrphaned(ctx context.Context if err := m.Orphaned.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("orphaned") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("orphaned") } return err } diff --git a/pkg/models/deployment_template_info_v2.go b/pkg/models/deployment_template_info_v2.go index 9ac0df51..fbf0dcf7 100644 --- a/pkg/models/deployment_template_info_v2.go +++ b/pkg/models/deployment_template_info_v2.go @@ -129,6 +129,8 @@ func (m *DeploymentTemplateInfoV2) validateDeploymentTemplate(formats strfmt.Reg if err := m.DeploymentTemplate.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -161,6 +163,8 @@ func (m *DeploymentTemplateInfoV2) validateInstanceConfigurations(formats strfmt if err := m.InstanceConfigurations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instance_configurations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instance_configurations" + "." + strconv.Itoa(i)) } return err } @@ -185,6 +189,8 @@ func (m *DeploymentTemplateInfoV2) validateKibanaDeeplink(formats strfmt.Registr if err := m.KibanaDeeplink[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } @@ -209,6 +215,8 @@ func (m *DeploymentTemplateInfoV2) validateMetadata(formats strfmt.Registry) err if err := m.Metadata[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -237,6 +245,8 @@ func (m *DeploymentTemplateInfoV2) validateSource(formats strfmt.Registry) error if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -281,6 +291,8 @@ func (m *DeploymentTemplateInfoV2) contextValidateDeploymentTemplate(ctx context if err := m.DeploymentTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -297,6 +309,8 @@ func (m *DeploymentTemplateInfoV2) contextValidateInstanceConfigurations(ctx con if err := m.InstanceConfigurations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instance_configurations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instance_configurations" + "." + strconv.Itoa(i)) } return err } @@ -315,6 +329,8 @@ func (m *DeploymentTemplateInfoV2) contextValidateKibanaDeeplink(ctx context.Con if err := m.KibanaDeeplink[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } @@ -333,6 +349,8 @@ func (m *DeploymentTemplateInfoV2) contextValidateMetadata(ctx context.Context, if err := m.Metadata[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -349,6 +367,8 @@ func (m *DeploymentTemplateInfoV2) contextValidateSource(ctx context.Context, fo if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } diff --git a/pkg/models/deployment_template_request_body.go b/pkg/models/deployment_template_request_body.go index 4a7af154..1ffb51b6 100644 --- a/pkg/models/deployment_template_request_body.go +++ b/pkg/models/deployment_template_request_body.go @@ -106,6 +106,8 @@ func (m *DeploymentTemplateRequestBody) validateDeploymentTemplate(formats strfm if err := m.DeploymentTemplate.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -128,6 +130,8 @@ func (m *DeploymentTemplateRequestBody) validateKibanaDeeplink(formats strfmt.Re if err := m.KibanaDeeplink[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } @@ -152,6 +156,8 @@ func (m *DeploymentTemplateRequestBody) validateMetadata(formats strfmt.Registry if err := m.Metadata[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -199,6 +205,8 @@ func (m *DeploymentTemplateRequestBody) contextValidateDeploymentTemplate(ctx co if err := m.DeploymentTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -215,6 +223,8 @@ func (m *DeploymentTemplateRequestBody) contextValidateKibanaDeeplink(ctx contex if err := m.KibanaDeeplink[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } @@ -233,6 +243,8 @@ func (m *DeploymentTemplateRequestBody) contextValidateMetadata(ctx context.Cont if err := m.Metadata[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_update_metadata.go b/pkg/models/deployment_update_metadata.go index 788ec929..8fc16e07 100644 --- a/pkg/models/deployment_update_metadata.go +++ b/pkg/models/deployment_update_metadata.go @@ -74,6 +74,8 @@ func (m *DeploymentUpdateMetadata) validateTags(formats strfmt.Registry) error { if err := m.Tags[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } @@ -106,6 +108,8 @@ func (m *DeploymentUpdateMetadata) contextValidateTags(ctx context.Context, form if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_update_request.go b/pkg/models/deployment_update_request.go index d7bce392..3637e008 100644 --- a/pkg/models/deployment_update_request.go +++ b/pkg/models/deployment_update_request.go @@ -91,6 +91,8 @@ func (m *DeploymentUpdateRequest) validateMetadata(formats strfmt.Registry) erro if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -117,6 +119,8 @@ func (m *DeploymentUpdateRequest) validateResources(formats strfmt.Registry) err if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -134,6 +138,8 @@ func (m *DeploymentUpdateRequest) validateSettings(formats strfmt.Registry) erro if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -170,6 +176,8 @@ func (m *DeploymentUpdateRequest) contextValidateMetadata(ctx context.Context, f if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -184,6 +192,8 @@ func (m *DeploymentUpdateRequest) contextValidateResources(ctx context.Context, if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -198,6 +208,8 @@ func (m *DeploymentUpdateRequest) contextValidateSettings(ctx context.Context, f if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/deployment_update_resources.go b/pkg/models/deployment_update_resources.go index 72df3078..18c7e1e5 100644 --- a/pkg/models/deployment_update_resources.go +++ b/pkg/models/deployment_update_resources.go @@ -103,6 +103,8 @@ func (m *DeploymentUpdateResources) validateApm(formats strfmt.Registry) error { if err := m.Apm[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +129,8 @@ func (m *DeploymentUpdateResources) validateAppsearch(formats strfmt.Registry) e if err := m.Appsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -151,6 +155,8 @@ func (m *DeploymentUpdateResources) validateElasticsearch(formats strfmt.Registr if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +181,8 @@ func (m *DeploymentUpdateResources) validateEnterpriseSearch(formats strfmt.Regi if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -199,6 +207,8 @@ func (m *DeploymentUpdateResources) validateIntegrationsServer(formats strfmt.Re if err := m.IntegrationsServer[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -223,6 +233,8 @@ func (m *DeploymentUpdateResources) validateKibana(formats strfmt.Registry) erro if err := m.Kibana[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +287,8 @@ func (m *DeploymentUpdateResources) contextValidateApm(ctx context.Context, form if err := m.Apm[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -293,6 +307,8 @@ func (m *DeploymentUpdateResources) contextValidateAppsearch(ctx context.Context if err := m.Appsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -311,6 +327,8 @@ func (m *DeploymentUpdateResources) contextValidateElasticsearch(ctx context.Con if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -329,6 +347,8 @@ func (m *DeploymentUpdateResources) contextValidateEnterpriseSearch(ctx context. if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +367,8 @@ func (m *DeploymentUpdateResources) contextValidateIntegrationsServer(ctx contex if err := m.IntegrationsServer[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -365,6 +387,8 @@ func (m *DeploymentUpdateResources) contextValidateKibana(ctx context.Context, f if err := m.Kibana[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployment_update_response.go b/pkg/models/deployment_update_response.go index e26421a5..929f0171 100644 --- a/pkg/models/deployment_update_response.go +++ b/pkg/models/deployment_update_response.go @@ -98,6 +98,8 @@ func (m *DeploymentUpdateResponse) validateDiagnostics(formats strfmt.Registry) if err := m.Diagnostics.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("diagnostics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("diagnostics") } return err } @@ -139,6 +141,8 @@ func (m *DeploymentUpdateResponse) validateResources(formats strfmt.Registry) er if err := m.Resources[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -158,6 +162,8 @@ func (m *DeploymentUpdateResponse) validateShutdownResources(formats strfmt.Regi if err := m.ShutdownResources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shutdown_resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shutdown_resources") } return err } @@ -194,6 +200,8 @@ func (m *DeploymentUpdateResponse) contextValidateDiagnostics(ctx context.Contex if err := m.Diagnostics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("diagnostics") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("diagnostics") } return err } @@ -210,6 +218,8 @@ func (m *DeploymentUpdateResponse) contextValidateResources(ctx context.Context, if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +236,8 @@ func (m *DeploymentUpdateResponse) contextValidateShutdownResources(ctx context. if err := m.ShutdownResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shutdown_resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shutdown_resources") } return err } diff --git a/pkg/models/deployment_update_settings.go b/pkg/models/deployment_update_settings.go index 9a570233..949c83d1 100644 --- a/pkg/models/deployment_update_settings.go +++ b/pkg/models/deployment_update_settings.go @@ -65,6 +65,8 @@ func (m *DeploymentUpdateSettings) validateObservability(formats strfmt.Registry if err := m.Observability.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } @@ -93,6 +95,8 @@ func (m *DeploymentUpdateSettings) contextValidateObservability(ctx context.Cont if err := m.Observability.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observability") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("observability") } return err } diff --git a/pkg/models/deployments_costs.go b/pkg/models/deployments_costs.go index 4c00feaa..6d39d55e 100644 --- a/pkg/models/deployments_costs.go +++ b/pkg/models/deployments_costs.go @@ -79,6 +79,8 @@ func (m *DeploymentsCosts) validateDeployments(formats strfmt.Registry) error { if err := m.Deployments[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *DeploymentsCosts) contextValidateDeployments(ctx context.Context, forma if err := m.Deployments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployments_list_response.go b/pkg/models/deployments_list_response.go index db5ee240..09402245 100644 --- a/pkg/models/deployments_list_response.go +++ b/pkg/models/deployments_list_response.go @@ -71,6 +71,8 @@ func (m *DeploymentsListResponse) validateDeployments(formats strfmt.Registry) e if err := m.Deployments[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *DeploymentsListResponse) contextValidateDeployments(ctx context.Context if err := m.Deployments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployments_listing_data.go b/pkg/models/deployments_listing_data.go index eceee83a..6b7b947f 100644 --- a/pkg/models/deployments_listing_data.go +++ b/pkg/models/deployments_listing_data.go @@ -105,6 +105,8 @@ func (m *DeploymentsListingData) validateResources(formats strfmt.Registry) erro if err := m.Resources[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -137,6 +139,8 @@ func (m *DeploymentsListingData) contextValidateResources(ctx context.Context, f if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/deployments_search_response.go b/pkg/models/deployments_search_response.go index 3b15dfc4..b39b0f8b 100644 --- a/pkg/models/deployments_search_response.go +++ b/pkg/models/deployments_search_response.go @@ -82,6 +82,8 @@ func (m *DeploymentsSearchResponse) validateDeployments(formats strfmt.Registry) if err := m.Deployments[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } @@ -123,6 +125,8 @@ func (m *DeploymentsSearchResponse) contextValidateDeployments(ctx context.Conte if err := m.Deployments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployments" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/direct_trust_relationship.go b/pkg/models/direct_trust_relationship.go index 36b956a3..6ee8ddca 100644 --- a/pkg/models/direct_trust_relationship.go +++ b/pkg/models/direct_trust_relationship.go @@ -109,6 +109,8 @@ func (m *DirectTrustRelationship) validateCertificates(formats strfmt.Registry) if err := m.Certificates[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("certificates" + "." + strconv.Itoa(i)) } return err } @@ -204,6 +206,8 @@ func (m *DirectTrustRelationship) contextValidateCertificates(ctx context.Contex if err := m.Certificates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificates" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("certificates" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/dts_dimension_costs.go b/pkg/models/dts_dimension_costs.go index 748658a8..5482a556 100644 --- a/pkg/models/dts_dimension_costs.go +++ b/pkg/models/dts_dimension_costs.go @@ -123,6 +123,8 @@ func (m *DtsDimensionCosts) validateQuantity(formats strfmt.Registry) error { if err := m.Quantity.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("quantity") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("quantity") } return err } @@ -141,6 +143,8 @@ func (m *DtsDimensionCosts) validateRate(formats strfmt.Registry) error { if err := m.Rate.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rate") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rate") } return err } @@ -191,6 +195,8 @@ func (m *DtsDimensionCosts) contextValidateQuantity(ctx context.Context, formats if err := m.Quantity.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("quantity") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("quantity") } return err } @@ -205,6 +211,8 @@ func (m *DtsDimensionCosts) contextValidateRate(ctx context.Context, formats str if err := m.Rate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rate") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rate") } return err } diff --git a/pkg/models/elasticsearch_blocking_issues.go b/pkg/models/elasticsearch_blocking_issues.go index 1224c538..e6bacc7d 100644 --- a/pkg/models/elasticsearch_blocking_issues.go +++ b/pkg/models/elasticsearch_blocking_issues.go @@ -79,6 +79,8 @@ func (m *ElasticsearchBlockingIssues) validateBlocks(formats strfmt.Registry) er if err := m.Blocks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blocks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blocks" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *ElasticsearchBlockingIssues) contextValidateBlocks(ctx context.Context, if err := m.Blocks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blocks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blocks" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_cluster_blocking_issues.go b/pkg/models/elasticsearch_cluster_blocking_issues.go index fd1be606..3147aa78 100644 --- a/pkg/models/elasticsearch_cluster_blocking_issues.go +++ b/pkg/models/elasticsearch_cluster_blocking_issues.go @@ -90,6 +90,8 @@ func (m *ElasticsearchClusterBlockingIssues) validateClusterLevel(formats strfmt if err := m.ClusterLevel[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_level" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_level" + "." + strconv.Itoa(i)) } return err } @@ -124,6 +126,8 @@ func (m *ElasticsearchClusterBlockingIssues) validateIndexLevel(formats strfmt.R if err := m.IndexLevel[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("index_level" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("index_level" + "." + strconv.Itoa(i)) } return err } @@ -160,6 +164,8 @@ func (m *ElasticsearchClusterBlockingIssues) contextValidateClusterLevel(ctx con if err := m.ClusterLevel[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_level" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_level" + "." + strconv.Itoa(i)) } return err } @@ -178,6 +184,8 @@ func (m *ElasticsearchClusterBlockingIssues) contextValidateIndexLevel(ctx conte if err := m.IndexLevel[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("index_level" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("index_level" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_cluster_info.go b/pkg/models/elasticsearch_cluster_info.go index 98417c04..423af2c4 100644 --- a/pkg/models/elasticsearch_cluster_info.go +++ b/pkg/models/elasticsearch_cluster_info.go @@ -222,6 +222,8 @@ func (m *ElasticsearchClusterInfo) validateAssociatedApmClusters(formats strfmt. if err := m.AssociatedApmClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -247,6 +249,8 @@ func (m *ElasticsearchClusterInfo) validateAssociatedAppsearchClusters(formats s if err := m.AssociatedAppsearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -272,6 +276,8 @@ func (m *ElasticsearchClusterInfo) validateAssociatedEnterpriseSearchClusters(fo if err := m.AssociatedEnterpriseSearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -297,6 +303,8 @@ func (m *ElasticsearchClusterInfo) validateAssociatedKibanaClusters(formats strf if err := m.AssociatedKibanaClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_kibana_clusters" + "." + strconv.Itoa(i)) } return err } @@ -335,6 +343,8 @@ func (m *ElasticsearchClusterInfo) validateElasticsearch(formats strfmt.Registry if err := m.Elasticsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -352,6 +362,8 @@ func (m *ElasticsearchClusterInfo) validateElasticsearchMonitoringInfo(formats s if err := m.ElasticsearchMonitoringInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_monitoring_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_monitoring_info") } return err } @@ -379,6 +391,8 @@ func (m *ElasticsearchClusterInfo) validateExternalLinks(formats strfmt.Registry if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -410,6 +424,11 @@ func (m *ElasticsearchClusterInfo) validateLinks(formats strfmt.Registry) error } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -429,6 +448,8 @@ func (m *ElasticsearchClusterInfo) validateMetadata(formats strfmt.Registry) err if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -447,6 +468,8 @@ func (m *ElasticsearchClusterInfo) validatePlanInfo(formats strfmt.Registry) err if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -464,6 +487,8 @@ func (m *ElasticsearchClusterInfo) validateSecurity(formats strfmt.Registry) err if err := m.Security.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") } return err } @@ -481,6 +506,8 @@ func (m *ElasticsearchClusterInfo) validateSettings(formats strfmt.Registry) err if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -499,6 +526,8 @@ func (m *ElasticsearchClusterInfo) validateSnapshots(formats strfmt.Registry) er if err := m.Snapshots.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("snapshots") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("snapshots") } return err } @@ -579,6 +608,8 @@ func (m *ElasticsearchClusterInfo) validateSystemAlerts(formats strfmt.Registry) if err := m.SystemAlerts[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_alerts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_alerts" + "." + strconv.Itoa(i)) } return err } @@ -599,6 +630,8 @@ func (m *ElasticsearchClusterInfo) validateTopology(formats strfmt.Registry) err if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -685,6 +718,8 @@ func (m *ElasticsearchClusterInfo) contextValidateAssociatedApmClusters(ctx cont if err := m.AssociatedApmClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -703,6 +738,8 @@ func (m *ElasticsearchClusterInfo) contextValidateAssociatedAppsearchClusters(ct if err := m.AssociatedAppsearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -721,6 +758,8 @@ func (m *ElasticsearchClusterInfo) contextValidateAssociatedEnterpriseSearchClus if err := m.AssociatedEnterpriseSearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -739,6 +778,8 @@ func (m *ElasticsearchClusterInfo) contextValidateAssociatedKibanaClusters(ctx c if err := m.AssociatedKibanaClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associated_kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associated_kibana_clusters" + "." + strconv.Itoa(i)) } return err } @@ -755,6 +796,8 @@ func (m *ElasticsearchClusterInfo) contextValidateElasticsearch(ctx context.Cont if err := m.Elasticsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -769,6 +812,8 @@ func (m *ElasticsearchClusterInfo) contextValidateElasticsearchMonitoringInfo(ct if err := m.ElasticsearchMonitoringInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_monitoring_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_monitoring_info") } return err } @@ -785,6 +830,8 @@ func (m *ElasticsearchClusterInfo) contextValidateExternalLinks(ctx context.Cont if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -816,6 +863,8 @@ func (m *ElasticsearchClusterInfo) contextValidateMetadata(ctx context.Context, if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -830,6 +879,8 @@ func (m *ElasticsearchClusterInfo) contextValidatePlanInfo(ctx context.Context, if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -844,6 +895,8 @@ func (m *ElasticsearchClusterInfo) contextValidateSecurity(ctx context.Context, if err := m.Security.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") } return err } @@ -858,6 +911,8 @@ func (m *ElasticsearchClusterInfo) contextValidateSettings(ctx context.Context, if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -872,6 +927,8 @@ func (m *ElasticsearchClusterInfo) contextValidateSnapshots(ctx context.Context, if err := m.Snapshots.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("snapshots") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("snapshots") } return err } @@ -888,6 +945,8 @@ func (m *ElasticsearchClusterInfo) contextValidateSystemAlerts(ctx context.Conte if err := m.SystemAlerts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_alerts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_alerts" + "." + strconv.Itoa(i)) } return err } @@ -904,6 +963,8 @@ func (m *ElasticsearchClusterInfo) contextValidateTopology(ctx context.Context, if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/elasticsearch_cluster_plan.go b/pkg/models/elasticsearch_cluster_plan.go index 81adc948..678c4bf8 100644 --- a/pkg/models/elasticsearch_cluster_plan.go +++ b/pkg/models/elasticsearch_cluster_plan.go @@ -96,6 +96,8 @@ func (m *ElasticsearchClusterPlan) validateClusterTopology(formats strfmt.Regist if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -115,6 +117,8 @@ func (m *ElasticsearchClusterPlan) validateDeploymentTemplate(formats strfmt.Reg if err := m.DeploymentTemplate.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -133,6 +137,8 @@ func (m *ElasticsearchClusterPlan) validateElasticsearch(formats strfmt.Registry if err := m.Elasticsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -150,6 +156,8 @@ func (m *ElasticsearchClusterPlan) validateTransient(formats strfmt.Registry) er if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -192,6 +200,8 @@ func (m *ElasticsearchClusterPlan) contextValidateClusterTopology(ctx context.Co if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -208,6 +218,8 @@ func (m *ElasticsearchClusterPlan) contextValidateDeploymentTemplate(ctx context if err := m.DeploymentTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment_template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("deployment_template") } return err } @@ -222,6 +234,8 @@ func (m *ElasticsearchClusterPlan) contextValidateElasticsearch(ctx context.Cont if err := m.Elasticsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -236,6 +250,8 @@ func (m *ElasticsearchClusterPlan) contextValidateTransient(ctx context.Context, if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/elasticsearch_cluster_plan_info.go b/pkg/models/elasticsearch_cluster_plan_info.go index 93a06472..1c781a88 100644 --- a/pkg/models/elasticsearch_cluster_plan_info.go +++ b/pkg/models/elasticsearch_cluster_plan_info.go @@ -156,6 +156,8 @@ func (m *ElasticsearchClusterPlanInfo) validateError(formats strfmt.Registry) er if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *ElasticsearchClusterPlanInfo) validatePlan(formats strfmt.Registry) err if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *ElasticsearchClusterPlanInfo) validatePlanAttemptLog(formats strfmt.Reg if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *ElasticsearchClusterPlanInfo) validateSource(formats strfmt.Registry) e if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *ElasticsearchClusterPlanInfo) validateWarnings(formats strfmt.Registry) if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *ElasticsearchClusterPlanInfo) contextValidateError(ctx context.Context, if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *ElasticsearchClusterPlanInfo) contextValidatePlan(ctx context.Context, if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *ElasticsearchClusterPlanInfo) contextValidatePlanAttemptLog(ctx context if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *ElasticsearchClusterPlanInfo) contextValidateSource(ctx context.Context if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *ElasticsearchClusterPlanInfo) contextValidateWarnings(ctx context.Conte if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_cluster_plans_info.go b/pkg/models/elasticsearch_cluster_plans_info.go index 3d09813f..4358eefc 100644 --- a/pkg/models/elasticsearch_cluster_plans_info.go +++ b/pkg/models/elasticsearch_cluster_plans_info.go @@ -87,6 +87,8 @@ func (m *ElasticsearchClusterPlansInfo) validateCurrent(formats strfmt.Registry) if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *ElasticsearchClusterPlansInfo) validateHistory(formats strfmt.Registry) if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *ElasticsearchClusterPlansInfo) validatePending(formats strfmt.Registry) if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *ElasticsearchClusterPlansInfo) contextValidateCurrent(ctx context.Conte if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *ElasticsearchClusterPlansInfo) contextValidateHistory(ctx context.Conte if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *ElasticsearchClusterPlansInfo) contextValidatePending(ctx context.Conte if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/elasticsearch_cluster_security_info.go b/pkg/models/elasticsearch_cluster_security_info.go index e8c8fb4f..b676de90 100644 --- a/pkg/models/elasticsearch_cluster_security_info.go +++ b/pkg/models/elasticsearch_cluster_security_info.go @@ -126,6 +126,8 @@ func (m *ElasticsearchClusterSecurityInfo) validateUsers(formats strfmt.Registry if err := m.Users[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users" + "." + strconv.Itoa(i)) } return err } @@ -151,6 +153,8 @@ func (m *ElasticsearchClusterSecurityInfo) validateUsersRoles(formats strfmt.Reg if err := m.UsersRoles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users_roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users_roles" + "." + strconv.Itoa(i)) } return err } @@ -196,6 +200,8 @@ func (m *ElasticsearchClusterSecurityInfo) contextValidateUsers(ctx context.Cont if err := m.Users[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users" + "." + strconv.Itoa(i)) } return err } @@ -214,6 +220,8 @@ func (m *ElasticsearchClusterSecurityInfo) contextValidateUsersRoles(ctx context if err := m.UsersRoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users_roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users_roles" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_cluster_settings.go b/pkg/models/elasticsearch_cluster_settings.go index 3397919f..a759ca35 100644 --- a/pkg/models/elasticsearch_cluster_settings.go +++ b/pkg/models/elasticsearch_cluster_settings.go @@ -100,6 +100,8 @@ func (m *ElasticsearchClusterSettings) validateCuration(formats strfmt.Registry) if err := m.Curation.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("curation") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("curation") } return err } @@ -117,6 +119,8 @@ func (m *ElasticsearchClusterSettings) validateMetadata(formats strfmt.Registry) if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -134,6 +138,8 @@ func (m *ElasticsearchClusterSettings) validateMonitoring(formats strfmt.Registr if err := m.Monitoring.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("monitoring") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("monitoring") } return err } @@ -151,6 +157,8 @@ func (m *ElasticsearchClusterSettings) validateSnapshot(formats strfmt.Registry) if err := m.Snapshot.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("snapshot") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("snapshot") } return err } @@ -168,6 +176,8 @@ func (m *ElasticsearchClusterSettings) validateTrafficFilter(formats strfmt.Regi if err := m.TrafficFilter.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter") } return err } @@ -185,6 +195,8 @@ func (m *ElasticsearchClusterSettings) validateTrust(formats strfmt.Registry) er if err := m.Trust.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } @@ -233,6 +245,8 @@ func (m *ElasticsearchClusterSettings) contextValidateCuration(ctx context.Conte if err := m.Curation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("curation") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("curation") } return err } @@ -247,6 +261,8 @@ func (m *ElasticsearchClusterSettings) contextValidateMetadata(ctx context.Conte if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -261,6 +277,8 @@ func (m *ElasticsearchClusterSettings) contextValidateMonitoring(ctx context.Con if err := m.Monitoring.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("monitoring") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("monitoring") } return err } @@ -275,6 +293,8 @@ func (m *ElasticsearchClusterSettings) contextValidateSnapshot(ctx context.Conte if err := m.Snapshot.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("snapshot") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("snapshot") } return err } @@ -289,6 +309,8 @@ func (m *ElasticsearchClusterSettings) contextValidateTrafficFilter(ctx context. if err := m.TrafficFilter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("traffic_filter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("traffic_filter") } return err } @@ -303,6 +325,8 @@ func (m *ElasticsearchClusterSettings) contextValidateTrust(ctx context.Context, if err := m.Trust.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust") } return err } diff --git a/pkg/models/elasticsearch_cluster_topology_element.go b/pkg/models/elasticsearch_cluster_topology_element.go index b1e57970..a6769e90 100644 --- a/pkg/models/elasticsearch_cluster_topology_element.go +++ b/pkg/models/elasticsearch_cluster_topology_element.go @@ -125,6 +125,8 @@ func (m *ElasticsearchClusterTopologyElement) validateAutoscalingMax(formats str if err := m.AutoscalingMax.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling_max") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("autoscaling_max") } return err } @@ -142,6 +144,8 @@ func (m *ElasticsearchClusterTopologyElement) validateAutoscalingMin(formats str if err := m.AutoscalingMin.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling_min") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("autoscaling_min") } return err } @@ -159,6 +163,8 @@ func (m *ElasticsearchClusterTopologyElement) validateElasticsearch(formats strf if err := m.Elasticsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -212,6 +218,8 @@ func (m *ElasticsearchClusterTopologyElement) validateNodeType(formats strfmt.Re if err := m.NodeType.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -229,6 +237,8 @@ func (m *ElasticsearchClusterTopologyElement) validateSize(formats strfmt.Regist if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -246,6 +256,8 @@ func (m *ElasticsearchClusterTopologyElement) validateTopologyElementControl(for if err := m.TopologyElementControl.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology_element_control") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology_element_control") } return err } @@ -294,6 +306,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateAutoscalingMax(ctx if err := m.AutoscalingMax.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling_max") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("autoscaling_max") } return err } @@ -308,6 +322,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateAutoscalingMin(ctx if err := m.AutoscalingMin.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling_min") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("autoscaling_min") } return err } @@ -322,6 +338,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateElasticsearch(ctx c if err := m.Elasticsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -336,6 +354,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateNodeType(ctx contex if err := m.NodeType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -350,6 +370,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateSize(ctx context.Co if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -364,6 +386,8 @@ func (m *ElasticsearchClusterTopologyElement) contextValidateTopologyElementCont if err := m.TopologyElementControl.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology_element_control") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology_element_control") } return err } diff --git a/pkg/models/elasticsearch_cluster_trust_settings.go b/pkg/models/elasticsearch_cluster_trust_settings.go index 797bbd3d..b48e79a1 100644 --- a/pkg/models/elasticsearch_cluster_trust_settings.go +++ b/pkg/models/elasticsearch_cluster_trust_settings.go @@ -82,6 +82,8 @@ func (m *ElasticsearchClusterTrustSettings) validateAccounts(formats strfmt.Regi if err := m.Accounts[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accounts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("accounts" + "." + strconv.Itoa(i)) } return err } @@ -106,6 +108,8 @@ func (m *ElasticsearchClusterTrustSettings) validateDirect(formats strfmt.Regist if err := m.Direct[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("direct" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("direct" + "." + strconv.Itoa(i)) } return err } @@ -130,6 +134,8 @@ func (m *ElasticsearchClusterTrustSettings) validateExternal(formats strfmt.Regi if err := m.External[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external" + "." + strconv.Itoa(i)) } return err } @@ -170,6 +176,8 @@ func (m *ElasticsearchClusterTrustSettings) contextValidateAccounts(ctx context. if err := m.Accounts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accounts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("accounts" + "." + strconv.Itoa(i)) } return err } @@ -188,6 +196,8 @@ func (m *ElasticsearchClusterTrustSettings) contextValidateDirect(ctx context.Co if err := m.Direct[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("direct" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("direct" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *ElasticsearchClusterTrustSettings) contextValidateExternal(ctx context. if err := m.External[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_configuration.go b/pkg/models/elasticsearch_configuration.go index c8b59971..892fe20c 100644 --- a/pkg/models/elasticsearch_configuration.go +++ b/pkg/models/elasticsearch_configuration.go @@ -108,6 +108,8 @@ func (m *ElasticsearchConfiguration) validateCuration(formats strfmt.Registry) e if err := m.Curation.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("curation") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("curation") } return err } @@ -125,6 +127,8 @@ func (m *ElasticsearchConfiguration) validateSystemSettings(formats strfmt.Regis if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -147,6 +151,8 @@ func (m *ElasticsearchConfiguration) validateUserBundles(formats strfmt.Registry if err := m.UserBundles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_bundles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_bundles" + "." + strconv.Itoa(i)) } return err } @@ -171,6 +177,8 @@ func (m *ElasticsearchConfiguration) validateUserPlugins(formats strfmt.Registry if err := m.UserPlugins[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_plugins" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_plugins" + "." + strconv.Itoa(i)) } return err } @@ -213,6 +221,8 @@ func (m *ElasticsearchConfiguration) contextValidateCuration(ctx context.Context if err := m.Curation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("curation") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("curation") } return err } @@ -227,6 +237,8 @@ func (m *ElasticsearchConfiguration) contextValidateSystemSettings(ctx context.C if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -243,6 +255,8 @@ func (m *ElasticsearchConfiguration) contextValidateUserBundles(ctx context.Cont if err := m.UserBundles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_bundles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_bundles" + "." + strconv.Itoa(i)) } return err } @@ -261,6 +275,8 @@ func (m *ElasticsearchConfiguration) contextValidateUserPlugins(ctx context.Cont if err := m.UserPlugins[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_plugins" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_plugins" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_info.go b/pkg/models/elasticsearch_info.go index 14213433..6bb73bff 100644 --- a/pkg/models/elasticsearch_info.go +++ b/pkg/models/elasticsearch_info.go @@ -109,6 +109,8 @@ func (m *ElasticsearchInfo) validateBlockingIssues(formats strfmt.Registry) erro if err := m.BlockingIssues.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blocking_issues") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blocking_issues") } return err } @@ -126,6 +128,8 @@ func (m *ElasticsearchInfo) validateClusterBlockingIssues(formats strfmt.Registr if err := m.ClusterBlockingIssues.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_blocking_issues") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_blocking_issues") } return err } @@ -153,6 +157,8 @@ func (m *ElasticsearchInfo) validateMasterInfo(formats strfmt.Registry) error { if err := m.MasterInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("master_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("master_info") } return err } @@ -171,6 +177,8 @@ func (m *ElasticsearchInfo) validateShardInfo(formats strfmt.Registry) error { if err := m.ShardInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shard_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shard_info") } return err } @@ -188,6 +196,8 @@ func (m *ElasticsearchInfo) validateShardsStatus(formats strfmt.Registry) error if err := m.ShardsStatus.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shards_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shards_status") } return err } @@ -232,6 +242,8 @@ func (m *ElasticsearchInfo) contextValidateBlockingIssues(ctx context.Context, f if err := m.BlockingIssues.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blocking_issues") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blocking_issues") } return err } @@ -246,6 +258,8 @@ func (m *ElasticsearchInfo) contextValidateClusterBlockingIssues(ctx context.Con if err := m.ClusterBlockingIssues.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_blocking_issues") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_blocking_issues") } return err } @@ -260,6 +274,8 @@ func (m *ElasticsearchInfo) contextValidateMasterInfo(ctx context.Context, forma if err := m.MasterInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("master_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("master_info") } return err } @@ -274,6 +290,8 @@ func (m *ElasticsearchInfo) contextValidateShardInfo(ctx context.Context, format if err := m.ShardInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shard_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shard_info") } return err } @@ -288,6 +306,8 @@ func (m *ElasticsearchInfo) contextValidateShardsStatus(ctx context.Context, for if err := m.ShardsStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shards_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shards_status") } return err } diff --git a/pkg/models/elasticsearch_master_info.go b/pkg/models/elasticsearch_master_info.go index 902f65e5..6fe862ae 100644 --- a/pkg/models/elasticsearch_master_info.go +++ b/pkg/models/elasticsearch_master_info.go @@ -105,6 +105,8 @@ func (m *ElasticsearchMasterInfo) validateMasters(formats strfmt.Registry) error if err := m.Masters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("masters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("masters" + "." + strconv.Itoa(i)) } return err } @@ -137,6 +139,8 @@ func (m *ElasticsearchMasterInfo) contextValidateMasters(ctx context.Context, fo if err := m.Masters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("masters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("masters" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_payload.go b/pkg/models/elasticsearch_payload.go index 83105e25..767cb47b 100644 --- a/pkg/models/elasticsearch_payload.go +++ b/pkg/models/elasticsearch_payload.go @@ -91,6 +91,8 @@ func (m *ElasticsearchPayload) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -126,6 +128,8 @@ func (m *ElasticsearchPayload) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -158,6 +162,8 @@ func (m *ElasticsearchPayload) contextValidatePlan(ctx context.Context, formats if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -172,6 +178,8 @@ func (m *ElasticsearchPayload) contextValidateSettings(ctx context.Context, form if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/elasticsearch_plan_control_configuration.go b/pkg/models/elasticsearch_plan_control_configuration.go index 8743589a..8772573a 100644 --- a/pkg/models/elasticsearch_plan_control_configuration.go +++ b/pkg/models/elasticsearch_plan_control_configuration.go @@ -166,6 +166,8 @@ func (m *ElasticsearchPlanControlConfiguration) validateMoveAllocators(formats s if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +192,8 @@ func (m *ElasticsearchPlanControlConfiguration) validateMoveInstances(formats st if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +230,8 @@ func (m *ElasticsearchPlanControlConfiguration) contextValidateMoveAllocators(ct if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -244,6 +250,8 @@ func (m *ElasticsearchPlanControlConfiguration) contextValidateMoveInstances(ctx if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_resource_info.go b/pkg/models/elasticsearch_resource_info.go index 8a0335d8..7c6cd845 100644 --- a/pkg/models/elasticsearch_resource_info.go +++ b/pkg/models/elasticsearch_resource_info.go @@ -98,6 +98,8 @@ func (m *ElasticsearchResourceInfo) validateInfo(formats strfmt.Registry) error if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -144,6 +146,8 @@ func (m *ElasticsearchResourceInfo) contextValidateInfo(ctx context.Context, for if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/elasticsearch_scripting_user_settings.go b/pkg/models/elasticsearch_scripting_user_settings.go index 5ee7c280..bb1db2c7 100644 --- a/pkg/models/elasticsearch_scripting_user_settings.go +++ b/pkg/models/elasticsearch_scripting_user_settings.go @@ -85,6 +85,8 @@ func (m *ElasticsearchScriptingUserSettings) validateFile(formats strfmt.Registr if err := m.File.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("file") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("file") } return err } @@ -102,6 +104,8 @@ func (m *ElasticsearchScriptingUserSettings) validateInline(formats strfmt.Regis if err := m.Inline.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("inline") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("inline") } return err } @@ -119,6 +123,8 @@ func (m *ElasticsearchScriptingUserSettings) validateStored(formats strfmt.Regis if err := m.Stored.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stored") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stored") } return err } @@ -155,6 +161,8 @@ func (m *ElasticsearchScriptingUserSettings) contextValidateFile(ctx context.Con if err := m.File.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("file") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("file") } return err } @@ -169,6 +177,8 @@ func (m *ElasticsearchScriptingUserSettings) contextValidateInline(ctx context.C if err := m.Inline.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("inline") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("inline") } return err } @@ -183,6 +193,8 @@ func (m *ElasticsearchScriptingUserSettings) contextValidateStored(ctx context.C if err := m.Stored.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stored") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stored") } return err } diff --git a/pkg/models/elasticsearch_shards_info.go b/pkg/models/elasticsearch_shards_info.go index 972c6122..c9149583 100644 --- a/pkg/models/elasticsearch_shards_info.go +++ b/pkg/models/elasticsearch_shards_info.go @@ -98,6 +98,8 @@ func (m *ElasticsearchShardsInfo) validateAvailableShards(formats strfmt.Registr if err := m.AvailableShards[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("available_shards" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("available_shards" + "." + strconv.Itoa(i)) } return err } @@ -132,6 +134,8 @@ func (m *ElasticsearchShardsInfo) validateUnavailableReplicas(formats strfmt.Reg if err := m.UnavailableReplicas[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unavailable_replicas" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unavailable_replicas" + "." + strconv.Itoa(i)) } return err } @@ -157,6 +161,8 @@ func (m *ElasticsearchShardsInfo) validateUnavailableShards(formats strfmt.Regis if err := m.UnavailableShards[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unavailable_shards" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unavailable_shards" + "." + strconv.Itoa(i)) } return err } @@ -197,6 +203,8 @@ func (m *ElasticsearchShardsInfo) contextValidateAvailableShards(ctx context.Con if err := m.AvailableShards[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("available_shards" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("available_shards" + "." + strconv.Itoa(i)) } return err } @@ -215,6 +223,8 @@ func (m *ElasticsearchShardsInfo) contextValidateUnavailableReplicas(ctx context if err := m.UnavailableReplicas[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unavailable_replicas" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unavailable_replicas" + "." + strconv.Itoa(i)) } return err } @@ -233,6 +243,8 @@ func (m *ElasticsearchShardsInfo) contextValidateUnavailableShards(ctx context.C if err := m.UnavailableShards[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unavailable_shards" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unavailable_shards" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/elasticsearch_system_settings.go b/pkg/models/elasticsearch_system_settings.go index 3ceea4da..e412c586 100644 --- a/pkg/models/elasticsearch_system_settings.go +++ b/pkg/models/elasticsearch_system_settings.go @@ -86,6 +86,8 @@ func (m *ElasticsearchSystemSettings) validateScripting(formats strfmt.Registry) if err := m.Scripting.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scripting") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("scripting") } return err } @@ -114,6 +116,8 @@ func (m *ElasticsearchSystemSettings) contextValidateScripting(ctx context.Conte if err := m.Scripting.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scripting") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("scripting") } return err } diff --git a/pkg/models/enable_ilm_request.go b/pkg/models/enable_ilm_request.go index 2eed2bfe..469b025f 100644 --- a/pkg/models/enable_ilm_request.go +++ b/pkg/models/enable_ilm_request.go @@ -71,6 +71,8 @@ func (m *EnableIlmRequest) validateIndexPatterns(formats strfmt.Registry) error if err := m.IndexPatterns[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("index_patterns" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("index_patterns" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *EnableIlmRequest) contextValidateIndexPatterns(ctx context.Context, for if err := m.IndexPatterns[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("index_patterns" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("index_patterns" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/enterprise_search_configuration.go b/pkg/models/enterprise_search_configuration.go index 871c24ba..4d4fcbb6 100644 --- a/pkg/models/enterprise_search_configuration.go +++ b/pkg/models/enterprise_search_configuration.go @@ -80,6 +80,8 @@ func (m *EnterpriseSearchConfiguration) validateSystemSettings(formats strfmt.Re if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -108,6 +110,8 @@ func (m *EnterpriseSearchConfiguration) contextValidateSystemSettings(ctx contex if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } diff --git a/pkg/models/enterprise_search_info.go b/pkg/models/enterprise_search_info.go index 2a0d4c97..d98bef7b 100644 --- a/pkg/models/enterprise_search_info.go +++ b/pkg/models/enterprise_search_info.go @@ -152,6 +152,8 @@ func (m *EnterpriseSearchInfo) validateElasticsearchCluster(formats strfmt.Regis if err := m.ElasticsearchCluster.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -179,6 +181,8 @@ func (m *EnterpriseSearchInfo) validateExternalLinks(formats strfmt.Registry) er if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -219,6 +223,11 @@ func (m *EnterpriseSearchInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -237,6 +246,8 @@ func (m *EnterpriseSearchInfo) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -264,6 +275,8 @@ func (m *EnterpriseSearchInfo) validatePlanInfo(formats strfmt.Registry) error { if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -281,6 +294,8 @@ func (m *EnterpriseSearchInfo) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -357,6 +372,8 @@ func (m *EnterpriseSearchInfo) validateTopology(formats strfmt.Registry) error { if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -409,6 +426,8 @@ func (m *EnterpriseSearchInfo) contextValidateElasticsearchCluster(ctx context.C if err := m.ElasticsearchCluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -425,6 +444,8 @@ func (m *EnterpriseSearchInfo) contextValidateExternalLinks(ctx context.Context, if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -456,6 +477,8 @@ func (m *EnterpriseSearchInfo) contextValidateMetadata(ctx context.Context, form if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -470,6 +493,8 @@ func (m *EnterpriseSearchInfo) contextValidatePlanInfo(ctx context.Context, form if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -484,6 +509,8 @@ func (m *EnterpriseSearchInfo) contextValidateSettings(ctx context.Context, form if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -498,6 +525,8 @@ func (m *EnterpriseSearchInfo) contextValidateTopology(ctx context.Context, form if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/enterprise_search_payload.go b/pkg/models/enterprise_search_payload.go index 3baba2aa..6b27bb67 100644 --- a/pkg/models/enterprise_search_payload.go +++ b/pkg/models/enterprise_search_payload.go @@ -108,6 +108,8 @@ func (m *EnterpriseSearchPayload) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -143,6 +145,8 @@ func (m *EnterpriseSearchPayload) validateSettings(formats strfmt.Registry) erro if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -175,6 +179,8 @@ func (m *EnterpriseSearchPayload) contextValidatePlan(ctx context.Context, forma if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -189,6 +195,8 @@ func (m *EnterpriseSearchPayload) contextValidateSettings(ctx context.Context, f if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/enterprise_search_plan.go b/pkg/models/enterprise_search_plan.go index 91da1b9f..5ff122a9 100644 --- a/pkg/models/enterprise_search_plan.go +++ b/pkg/models/enterprise_search_plan.go @@ -84,6 +84,8 @@ func (m *EnterpriseSearchPlan) validateClusterTopology(formats strfmt.Registry) if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *EnterpriseSearchPlan) validateEnterpriseSearch(formats strfmt.Registry) if err := m.EnterpriseSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -121,6 +125,8 @@ func (m *EnterpriseSearchPlan) validateTransient(formats strfmt.Registry) error if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -159,6 +165,8 @@ func (m *EnterpriseSearchPlan) contextValidateClusterTopology(ctx context.Contex if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +183,8 @@ func (m *EnterpriseSearchPlan) contextValidateEnterpriseSearch(ctx context.Conte if err := m.EnterpriseSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -189,6 +199,8 @@ func (m *EnterpriseSearchPlan) contextValidateTransient(ctx context.Context, for if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/enterprise_search_plan_control_configuration.go b/pkg/models/enterprise_search_plan_control_configuration.go index c5b0677d..2c707e00 100644 --- a/pkg/models/enterprise_search_plan_control_configuration.go +++ b/pkg/models/enterprise_search_plan_control_configuration.go @@ -142,6 +142,8 @@ func (m *EnterpriseSearchPlanControlConfiguration) validateMoveAllocators(format if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +168,8 @@ func (m *EnterpriseSearchPlanControlConfiguration) validateMoveInstances(formats if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +206,8 @@ func (m *EnterpriseSearchPlanControlConfiguration) contextValidateMoveAllocators if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -220,6 +226,8 @@ func (m *EnterpriseSearchPlanControlConfiguration) contextValidateMoveInstances( if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/enterprise_search_plan_info.go b/pkg/models/enterprise_search_plan_info.go index e71a8a9f..baf3a264 100644 --- a/pkg/models/enterprise_search_plan_info.go +++ b/pkg/models/enterprise_search_plan_info.go @@ -156,6 +156,8 @@ func (m *EnterpriseSearchPlanInfo) validateError(formats strfmt.Registry) error if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *EnterpriseSearchPlanInfo) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *EnterpriseSearchPlanInfo) validatePlanAttemptLog(formats strfmt.Registr if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *EnterpriseSearchPlanInfo) validateSource(formats strfmt.Registry) error if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *EnterpriseSearchPlanInfo) validateWarnings(formats strfmt.Registry) err if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *EnterpriseSearchPlanInfo) contextValidateError(ctx context.Context, for if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *EnterpriseSearchPlanInfo) contextValidatePlan(ctx context.Context, form if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *EnterpriseSearchPlanInfo) contextValidatePlanAttemptLog(ctx context.Con if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *EnterpriseSearchPlanInfo) contextValidateSource(ctx context.Context, fo if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *EnterpriseSearchPlanInfo) contextValidateWarnings(ctx context.Context, if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/enterprise_search_plans_info.go b/pkg/models/enterprise_search_plans_info.go index a26c6121..8f42a0f6 100644 --- a/pkg/models/enterprise_search_plans_info.go +++ b/pkg/models/enterprise_search_plans_info.go @@ -87,6 +87,8 @@ func (m *EnterpriseSearchPlansInfo) validateCurrent(formats strfmt.Registry) err if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *EnterpriseSearchPlansInfo) validateHistory(formats strfmt.Registry) err if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *EnterpriseSearchPlansInfo) validatePending(formats strfmt.Registry) err if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *EnterpriseSearchPlansInfo) contextValidateCurrent(ctx context.Context, if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *EnterpriseSearchPlansInfo) contextValidateHistory(ctx context.Context, if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *EnterpriseSearchPlansInfo) contextValidatePending(ctx context.Context, if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/enterprise_search_resource_info.go b/pkg/models/enterprise_search_resource_info.go index e865a88c..2a5f085b 100644 --- a/pkg/models/enterprise_search_resource_info.go +++ b/pkg/models/enterprise_search_resource_info.go @@ -115,6 +115,8 @@ func (m *EnterpriseSearchResourceInfo) validateInfo(formats strfmt.Registry) err if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -161,6 +163,8 @@ func (m *EnterpriseSearchResourceInfo) contextValidateInfo(ctx context.Context, if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/enterprise_search_settings.go b/pkg/models/enterprise_search_settings.go index 32656943..2707a589 100644 --- a/pkg/models/enterprise_search_settings.go +++ b/pkg/models/enterprise_search_settings.go @@ -62,6 +62,8 @@ func (m *EnterpriseSearchSettings) validateMetadata(formats strfmt.Registry) err if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -90,6 +92,8 @@ func (m *EnterpriseSearchSettings) contextValidateMetadata(ctx context.Context, if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/enterprise_search_sub_info.go b/pkg/models/enterprise_search_sub_info.go index 19ab6e38..f246f1b5 100644 --- a/pkg/models/enterprise_search_sub_info.go +++ b/pkg/models/enterprise_search_sub_info.go @@ -100,6 +100,11 @@ func (m *EnterpriseSearchSubInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } diff --git a/pkg/models/enterprise_search_topology_element.go b/pkg/models/enterprise_search_topology_element.go index 9591a1f8..f4d66f91 100644 --- a/pkg/models/enterprise_search_topology_element.go +++ b/pkg/models/enterprise_search_topology_element.go @@ -94,6 +94,8 @@ func (m *EnterpriseSearchTopologyElement) validateEnterpriseSearch(formats strfm if err := m.EnterpriseSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -111,6 +113,8 @@ func (m *EnterpriseSearchTopologyElement) validateNodeType(formats strfmt.Regist if err := m.NodeType.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -128,6 +132,8 @@ func (m *EnterpriseSearchTopologyElement) validateSize(formats strfmt.Registry) if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -164,6 +170,8 @@ func (m *EnterpriseSearchTopologyElement) contextValidateEnterpriseSearch(ctx co if err := m.EnterpriseSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -178,6 +186,8 @@ func (m *EnterpriseSearchTopologyElement) contextValidateNodeType(ctx context.Co if err := m.NodeType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_type") } return err } @@ -192,6 +202,8 @@ func (m *EnterpriseSearchTopologyElement) contextValidateSize(ctx context.Contex if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/extension.go b/pkg/models/extension.go index bd57ae6b..93e72d54 100644 --- a/pkg/models/extension.go +++ b/pkg/models/extension.go @@ -157,6 +157,8 @@ func (m *Extension) validateFileMetadata(formats strfmt.Registry) error { if err := m.FileMetadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("file_metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("file_metadata") } return err } @@ -221,6 +223,8 @@ func (m *Extension) contextValidateFileMetadata(ctx context.Context, formats str if err := m.FileMetadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("file_metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("file_metadata") } return err } diff --git a/pkg/models/extensions.go b/pkg/models/extensions.go index 6761111d..5a020bd4 100644 --- a/pkg/models/extensions.go +++ b/pkg/models/extensions.go @@ -71,6 +71,8 @@ func (m *Extensions) validateExtensions(formats strfmt.Registry) error { if err := m.Extensions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("extensions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("extensions" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *Extensions) contextValidateExtensions(ctx context.Context, formats strf if err := m.Extensions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("extensions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("extensions" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/global_deployment_template_info.go b/pkg/models/global_deployment_template_info.go index be43b4db..6c59d87f 100644 --- a/pkg/models/global_deployment_template_info.go +++ b/pkg/models/global_deployment_template_info.go @@ -113,6 +113,8 @@ func (m *GlobalDeploymentTemplateInfo) validateMetadata(formats strfmt.Registry) if err := m.Metadata[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -156,6 +158,8 @@ func (m *GlobalDeploymentTemplateInfo) validateRegions(formats strfmt.Registry) if err := m.Regions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("regions" + "." + strconv.Itoa(i)) } return err } @@ -192,6 +196,8 @@ func (m *GlobalDeploymentTemplateInfo) contextValidateMetadata(ctx context.Conte if err := m.Metadata[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata" + "." + strconv.Itoa(i)) } return err } @@ -210,6 +216,8 @@ func (m *GlobalDeploymentTemplateInfo) contextValidateRegions(ctx context.Contex if err := m.Regions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("regions" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/global_deployment_template_region.go b/pkg/models/global_deployment_template_region.go index 354f1051..1a894392 100644 --- a/pkg/models/global_deployment_template_region.go +++ b/pkg/models/global_deployment_template_region.go @@ -102,6 +102,8 @@ func (m *GlobalDeploymentTemplateRegion) validateKibanaDeeplink(formats strfmt.R if err := m.KibanaDeeplink[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } @@ -152,6 +154,8 @@ func (m *GlobalDeploymentTemplateRegion) contextValidateKibanaDeeplink(ctx conte if err := m.KibanaDeeplink[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_deeplink" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/instance_configuration.go b/pkg/models/instance_configuration.go index 5f0eef25..ca061f80 100644 --- a/pkg/models/instance_configuration.go +++ b/pkg/models/instance_configuration.go @@ -120,6 +120,8 @@ func (m *InstanceConfiguration) validateAllocatorFilter(formats strfmt.Registry) if err := m.AllocatorFilter.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocator_filter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocator_filter") } return err } @@ -150,6 +152,8 @@ func (m *InstanceConfiguration) validateDiscreteSizes(formats strfmt.Registry) e if err := m.DiscreteSizes.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("discrete_sizes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("discrete_sizes") } return err } @@ -204,6 +208,8 @@ func (m *InstanceConfiguration) contextValidateAllocatorFilter(ctx context.Conte if err := m.AllocatorFilter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocator_filter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocator_filter") } return err } @@ -218,6 +224,8 @@ func (m *InstanceConfiguration) contextValidateDiscreteSizes(ctx context.Context if err := m.DiscreteSizes.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("discrete_sizes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("discrete_sizes") } return err } diff --git a/pkg/models/instance_configuration_info.go b/pkg/models/instance_configuration_info.go index 8da0dd9b..6c08f884 100644 --- a/pkg/models/instance_configuration_info.go +++ b/pkg/models/instance_configuration_info.go @@ -100,6 +100,8 @@ func (m *InstanceConfigurationInfo) validateDiscreteSizes(formats strfmt.Registr if err := m.DiscreteSizes.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("discrete_sizes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("discrete_sizes") } return err } @@ -150,6 +152,8 @@ func (m *InstanceConfigurationInfo) contextValidateDiscreteSizes(ctx context.Con if err := m.DiscreteSizes.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("discrete_sizes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("discrete_sizes") } return err } diff --git a/pkg/models/instance_type_resource.go b/pkg/models/instance_type_resource.go index 7bd9fdf8..6d0963f7 100644 --- a/pkg/models/instance_type_resource.go +++ b/pkg/models/instance_type_resource.go @@ -106,6 +106,8 @@ func (m *InstanceTypeResource) validateCompatibility(formats strfmt.Registry) er if err := m.Compatibility[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("compatibility" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("compatibility" + "." + strconv.Itoa(i)) } return err } @@ -158,6 +160,8 @@ func (m *InstanceTypeResource) validateNodeTypes(formats strfmt.Registry) error if err := m.NodeTypes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } @@ -194,6 +198,8 @@ func (m *InstanceTypeResource) contextValidateCompatibility(ctx context.Context, if err := m.Compatibility[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("compatibility" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("compatibility" + "." + strconv.Itoa(i)) } return err } @@ -212,6 +218,8 @@ func (m *InstanceTypeResource) contextValidateNodeTypes(ctx context.Context, for if err := m.NodeTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/integrations_server_configuration.go b/pkg/models/integrations_server_configuration.go index c1df0c8b..1f7b6374 100644 --- a/pkg/models/integrations_server_configuration.go +++ b/pkg/models/integrations_server_configuration.go @@ -132,6 +132,8 @@ func (m *IntegrationsServerConfiguration) validateSystemSettings(formats strfmt. if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -160,6 +162,8 @@ func (m *IntegrationsServerConfiguration) contextValidateSystemSettings(ctx cont if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } diff --git a/pkg/models/integrations_server_info.go b/pkg/models/integrations_server_info.go index 6dc24033..5add6dd8 100644 --- a/pkg/models/integrations_server_info.go +++ b/pkg/models/integrations_server_info.go @@ -202,6 +202,8 @@ func (m *IntegrationsServerInfo) validateElasticsearchCluster(formats strfmt.Reg if err := m.ElasticsearchCluster.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -229,6 +231,8 @@ func (m *IntegrationsServerInfo) validateExternalLinks(formats strfmt.Registry) if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -269,6 +273,11 @@ func (m *IntegrationsServerInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -287,6 +296,8 @@ func (m *IntegrationsServerInfo) validateMetadata(formats strfmt.Registry) error if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -314,6 +325,8 @@ func (m *IntegrationsServerInfo) validatePlanInfo(formats strfmt.Registry) error if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -331,6 +344,8 @@ func (m *IntegrationsServerInfo) validateSettings(formats strfmt.Registry) error if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -407,6 +422,8 @@ func (m *IntegrationsServerInfo) validateTopology(formats strfmt.Registry) error if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -459,6 +476,8 @@ func (m *IntegrationsServerInfo) contextValidateElasticsearchCluster(ctx context if err := m.ElasticsearchCluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -475,6 +494,8 @@ func (m *IntegrationsServerInfo) contextValidateExternalLinks(ctx context.Contex if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -506,6 +527,8 @@ func (m *IntegrationsServerInfo) contextValidateMetadata(ctx context.Context, fo if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -520,6 +543,8 @@ func (m *IntegrationsServerInfo) contextValidatePlanInfo(ctx context.Context, fo if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -534,6 +559,8 @@ func (m *IntegrationsServerInfo) contextValidateSettings(ctx context.Context, fo if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -548,6 +575,8 @@ func (m *IntegrationsServerInfo) contextValidateTopology(ctx context.Context, fo if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/integrations_server_payload.go b/pkg/models/integrations_server_payload.go index 0d522b73..a153457d 100644 --- a/pkg/models/integrations_server_payload.go +++ b/pkg/models/integrations_server_payload.go @@ -108,6 +108,8 @@ func (m *IntegrationsServerPayload) validatePlan(formats strfmt.Registry) error if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -143,6 +145,8 @@ func (m *IntegrationsServerPayload) validateSettings(formats strfmt.Registry) er if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -175,6 +179,8 @@ func (m *IntegrationsServerPayload) contextValidatePlan(ctx context.Context, for if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -189,6 +195,8 @@ func (m *IntegrationsServerPayload) contextValidateSettings(ctx context.Context, if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/integrations_server_plan.go b/pkg/models/integrations_server_plan.go index cf04790e..9185df62 100644 --- a/pkg/models/integrations_server_plan.go +++ b/pkg/models/integrations_server_plan.go @@ -84,6 +84,8 @@ func (m *IntegrationsServerPlan) validateClusterTopology(formats strfmt.Registry if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *IntegrationsServerPlan) validateIntegrationsServer(formats strfmt.Regis if err := m.IntegrationsServer.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -121,6 +125,8 @@ func (m *IntegrationsServerPlan) validateTransient(formats strfmt.Registry) erro if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -159,6 +165,8 @@ func (m *IntegrationsServerPlan) contextValidateClusterTopology(ctx context.Cont if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +183,8 @@ func (m *IntegrationsServerPlan) contextValidateIntegrationsServer(ctx context.C if err := m.IntegrationsServer.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -189,6 +199,8 @@ func (m *IntegrationsServerPlan) contextValidateTransient(ctx context.Context, f if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/integrations_server_plan_control_configuration.go b/pkg/models/integrations_server_plan_control_configuration.go index 395c9873..0fdda732 100644 --- a/pkg/models/integrations_server_plan_control_configuration.go +++ b/pkg/models/integrations_server_plan_control_configuration.go @@ -142,6 +142,8 @@ func (m *IntegrationsServerPlanControlConfiguration) validateMoveAllocators(form if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +168,8 @@ func (m *IntegrationsServerPlanControlConfiguration) validateMoveInstances(forma if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +206,8 @@ func (m *IntegrationsServerPlanControlConfiguration) contextValidateMoveAllocato if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -220,6 +226,8 @@ func (m *IntegrationsServerPlanControlConfiguration) contextValidateMoveInstance if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/integrations_server_plan_info.go b/pkg/models/integrations_server_plan_info.go index 2364363a..ff23a347 100644 --- a/pkg/models/integrations_server_plan_info.go +++ b/pkg/models/integrations_server_plan_info.go @@ -156,6 +156,8 @@ func (m *IntegrationsServerPlanInfo) validateError(formats strfmt.Registry) erro if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *IntegrationsServerPlanInfo) validatePlan(formats strfmt.Registry) error if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *IntegrationsServerPlanInfo) validatePlanAttemptLog(formats strfmt.Regis if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *IntegrationsServerPlanInfo) validateSource(formats strfmt.Registry) err if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *IntegrationsServerPlanInfo) validateWarnings(formats strfmt.Registry) e if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *IntegrationsServerPlanInfo) contextValidateError(ctx context.Context, f if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *IntegrationsServerPlanInfo) contextValidatePlan(ctx context.Context, fo if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *IntegrationsServerPlanInfo) contextValidatePlanAttemptLog(ctx context.C if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *IntegrationsServerPlanInfo) contextValidateSource(ctx context.Context, if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *IntegrationsServerPlanInfo) contextValidateWarnings(ctx context.Context if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/integrations_server_plans_info.go b/pkg/models/integrations_server_plans_info.go index 0ed3d0e7..fff0be78 100644 --- a/pkg/models/integrations_server_plans_info.go +++ b/pkg/models/integrations_server_plans_info.go @@ -87,6 +87,8 @@ func (m *IntegrationsServerPlansInfo) validateCurrent(formats strfmt.Registry) e if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *IntegrationsServerPlansInfo) validateHistory(formats strfmt.Registry) e if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *IntegrationsServerPlansInfo) validatePending(formats strfmt.Registry) e if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *IntegrationsServerPlansInfo) contextValidateCurrent(ctx context.Context if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *IntegrationsServerPlansInfo) contextValidateHistory(ctx context.Context if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *IntegrationsServerPlansInfo) contextValidatePending(ctx context.Context if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/integrations_server_resource_info.go b/pkg/models/integrations_server_resource_info.go index 649a139c..76577916 100644 --- a/pkg/models/integrations_server_resource_info.go +++ b/pkg/models/integrations_server_resource_info.go @@ -115,6 +115,8 @@ func (m *IntegrationsServerResourceInfo) validateInfo(formats strfmt.Registry) e if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -161,6 +163,8 @@ func (m *IntegrationsServerResourceInfo) contextValidateInfo(ctx context.Context if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/integrations_server_settings.go b/pkg/models/integrations_server_settings.go index d4289e34..109d44a9 100644 --- a/pkg/models/integrations_server_settings.go +++ b/pkg/models/integrations_server_settings.go @@ -62,6 +62,8 @@ func (m *IntegrationsServerSettings) validateMetadata(formats strfmt.Registry) e if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -90,6 +92,8 @@ func (m *IntegrationsServerSettings) contextValidateMetadata(ctx context.Context if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/integrations_server_topology_element.go b/pkg/models/integrations_server_topology_element.go index 43ca3b97..867ad0b5 100644 --- a/pkg/models/integrations_server_topology_element.go +++ b/pkg/models/integrations_server_topology_element.go @@ -75,6 +75,8 @@ func (m *IntegrationsServerTopologyElement) validateIntegrationsServer(formats s if err := m.IntegrationsServer.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -92,6 +94,8 @@ func (m *IntegrationsServerTopologyElement) validateSize(formats strfmt.Registry if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -124,6 +128,8 @@ func (m *IntegrationsServerTopologyElement) contextValidateIntegrationsServer(ct if err := m.IntegrationsServer.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -138,6 +144,8 @@ func (m *IntegrationsServerTopologyElement) contextValidateSize(ctx context.Cont if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/item_costs.go b/pkg/models/item_costs.go index 2faf2492..24943e11 100644 --- a/pkg/models/item_costs.go +++ b/pkg/models/item_costs.go @@ -157,6 +157,8 @@ func (m *ItemCosts) validatePeriod(formats strfmt.Registry) error { if err := m.Period.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("period") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("period") } return err } @@ -212,6 +214,8 @@ func (m *ItemCosts) contextValidatePeriod(ctx context.Context, formats strfmt.Re if err := m.Period.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("period") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("period") } return err } diff --git a/pkg/models/items_costs.go b/pkg/models/items_costs.go index f1e094b4..544ce0e9 100644 --- a/pkg/models/items_costs.go +++ b/pkg/models/items_costs.go @@ -82,6 +82,8 @@ func (m *ItemsCosts) validateCosts(formats strfmt.Registry) error { if err := m.Costs.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } @@ -105,6 +107,8 @@ func (m *ItemsCosts) validateDataTransferAndStorage(formats strfmt.Registry) err if err := m.DataTransferAndStorage[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data_transfer_and_storage" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data_transfer_and_storage" + "." + strconv.Itoa(i)) } return err } @@ -130,6 +134,8 @@ func (m *ItemsCosts) validateResources(formats strfmt.Registry) error { if err := m.Resources[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -168,6 +174,8 @@ func (m *ItemsCosts) contextValidateCosts(ctx context.Context, formats strfmt.Re if err := m.Costs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("costs") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("costs") } return err } @@ -184,6 +192,8 @@ func (m *ItemsCosts) contextValidateDataTransferAndStorage(ctx context.Context, if err := m.DataTransferAndStorage[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data_transfer_and_storage" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data_transfer_and_storage" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +212,8 @@ func (m *ItemsCosts) contextValidateResources(ctx context.Context, formats strfm if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/keystore_contents.go b/pkg/models/keystore_contents.go index 9efdcb47..5881ceae 100644 --- a/pkg/models/keystore_contents.go +++ b/pkg/models/keystore_contents.go @@ -68,6 +68,11 @@ func (m *KeystoreContents) validateSecrets(formats strfmt.Registry) error { } if val, ok := m.Secrets[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secrets" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secrets" + "." + k) + } return err } } diff --git a/pkg/models/kibana_cluster_info.go b/pkg/models/kibana_cluster_info.go index 0a3a1cd5..3674824a 100644 --- a/pkg/models/kibana_cluster_info.go +++ b/pkg/models/kibana_cluster_info.go @@ -171,6 +171,8 @@ func (m *KibanaClusterInfo) validateElasticsearchCluster(formats strfmt.Registry if err := m.ElasticsearchCluster.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -198,6 +200,8 @@ func (m *KibanaClusterInfo) validateExternalLinks(formats strfmt.Registry) error if err := m.ExternalLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -229,6 +233,11 @@ func (m *KibanaClusterInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } @@ -248,6 +257,8 @@ func (m *KibanaClusterInfo) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -266,6 +277,8 @@ func (m *KibanaClusterInfo) validatePlanInfo(formats strfmt.Registry) error { if err := m.PlanInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -283,6 +296,8 @@ func (m *KibanaClusterInfo) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -359,6 +374,8 @@ func (m *KibanaClusterInfo) validateTopology(formats strfmt.Registry) error { if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -411,6 +428,8 @@ func (m *KibanaClusterInfo) contextValidateElasticsearchCluster(ctx context.Cont if err := m.ElasticsearchCluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_cluster") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_cluster") } return err } @@ -427,6 +446,8 @@ func (m *KibanaClusterInfo) contextValidateExternalLinks(ctx context.Context, fo if err := m.ExternalLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("external_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("external_links" + "." + strconv.Itoa(i)) } return err } @@ -458,6 +479,8 @@ func (m *KibanaClusterInfo) contextValidateMetadata(ctx context.Context, formats if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -472,6 +495,8 @@ func (m *KibanaClusterInfo) contextValidatePlanInfo(ctx context.Context, formats if err := m.PlanInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_info") } return err } @@ -486,6 +511,8 @@ func (m *KibanaClusterInfo) contextValidateSettings(ctx context.Context, formats if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -500,6 +527,8 @@ func (m *KibanaClusterInfo) contextValidateTopology(ctx context.Context, formats if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/kibana_cluster_plan.go b/pkg/models/kibana_cluster_plan.go index 11620bd9..41286e15 100644 --- a/pkg/models/kibana_cluster_plan.go +++ b/pkg/models/kibana_cluster_plan.go @@ -84,6 +84,8 @@ func (m *KibanaClusterPlan) validateClusterTopology(formats strfmt.Registry) err if err := m.ClusterTopology[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *KibanaClusterPlan) validateKibana(formats strfmt.Registry) error { if err := m.Kibana.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -121,6 +125,8 @@ func (m *KibanaClusterPlan) validateTransient(formats strfmt.Registry) error { if err := m.Transient.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } @@ -159,6 +165,8 @@ func (m *KibanaClusterPlan) contextValidateClusterTopology(ctx context.Context, if err := m.ClusterTopology[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_topology" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +183,8 @@ func (m *KibanaClusterPlan) contextValidateKibana(ctx context.Context, formats s if err := m.Kibana.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -189,6 +199,8 @@ func (m *KibanaClusterPlan) contextValidateTransient(ctx context.Context, format if err := m.Transient.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transient") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("transient") } return err } diff --git a/pkg/models/kibana_cluster_plan_info.go b/pkg/models/kibana_cluster_plan_info.go index 6695937b..92e9aede 100644 --- a/pkg/models/kibana_cluster_plan_info.go +++ b/pkg/models/kibana_cluster_plan_info.go @@ -156,6 +156,8 @@ func (m *KibanaClusterPlanInfo) validateError(formats strfmt.Registry) error { if err := m.Error.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -182,6 +184,8 @@ func (m *KibanaClusterPlanInfo) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -205,6 +209,8 @@ func (m *KibanaClusterPlanInfo) validatePlanAttemptLog(formats strfmt.Registry) if err := m.PlanAttemptLog[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -236,6 +242,8 @@ func (m *KibanaClusterPlanInfo) validateSource(formats strfmt.Registry) error { if err := m.Source.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -259,6 +267,8 @@ func (m *KibanaClusterPlanInfo) validateWarnings(formats strfmt.Registry) error if err := m.Warnings[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +315,8 @@ func (m *KibanaClusterPlanInfo) contextValidateError(ctx context.Context, format if err := m.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("error") } return err } @@ -319,6 +331,8 @@ func (m *KibanaClusterPlanInfo) contextValidatePlan(ctx context.Context, formats if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -335,6 +349,8 @@ func (m *KibanaClusterPlanInfo) contextValidatePlanAttemptLog(ctx context.Contex if err := m.PlanAttemptLog[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_attempt_log" + "." + strconv.Itoa(i)) } return err } @@ -351,6 +367,8 @@ func (m *KibanaClusterPlanInfo) contextValidateSource(ctx context.Context, forma if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("source") } return err } @@ -367,6 +385,8 @@ func (m *KibanaClusterPlanInfo) contextValidateWarnings(ctx context.Context, for if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("warnings" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/kibana_cluster_plans_info.go b/pkg/models/kibana_cluster_plans_info.go index ab8a0afd..62621a0e 100644 --- a/pkg/models/kibana_cluster_plans_info.go +++ b/pkg/models/kibana_cluster_plans_info.go @@ -87,6 +87,8 @@ func (m *KibanaClusterPlansInfo) validateCurrent(formats strfmt.Registry) error if err := m.Current.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -119,6 +121,8 @@ func (m *KibanaClusterPlansInfo) validateHistory(formats strfmt.Registry) error if err := m.History[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +142,8 @@ func (m *KibanaClusterPlansInfo) validatePending(formats strfmt.Registry) error if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -174,6 +180,8 @@ func (m *KibanaClusterPlansInfo) contextValidateCurrent(ctx context.Context, for if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current") } return err } @@ -190,6 +198,8 @@ func (m *KibanaClusterPlansInfo) contextValidateHistory(ctx context.Context, for if err := m.History[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("history" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("history" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +216,8 @@ func (m *KibanaClusterPlansInfo) contextValidatePending(ctx context.Context, for if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } diff --git a/pkg/models/kibana_cluster_settings.go b/pkg/models/kibana_cluster_settings.go index 8582b771..c72f4e7c 100644 --- a/pkg/models/kibana_cluster_settings.go +++ b/pkg/models/kibana_cluster_settings.go @@ -62,6 +62,8 @@ func (m *KibanaClusterSettings) validateMetadata(formats strfmt.Registry) error if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -90,6 +92,8 @@ func (m *KibanaClusterSettings) contextValidateMetadata(ctx context.Context, for if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/kibana_cluster_topology_element.go b/pkg/models/kibana_cluster_topology_element.go index cbad8d94..1b760453 100644 --- a/pkg/models/kibana_cluster_topology_element.go +++ b/pkg/models/kibana_cluster_topology_element.go @@ -81,6 +81,8 @@ func (m *KibanaClusterTopologyElement) validateKibana(formats strfmt.Registry) e if err := m.Kibana.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -98,6 +100,8 @@ func (m *KibanaClusterTopologyElement) validateSize(formats strfmt.Registry) err if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -130,6 +134,8 @@ func (m *KibanaClusterTopologyElement) contextValidateKibana(ctx context.Context if err := m.Kibana.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -144,6 +150,8 @@ func (m *KibanaClusterTopologyElement) contextValidateSize(ctx context.Context, if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/kibana_configuration.go b/pkg/models/kibana_configuration.go index 1d5c9350..a35f7fd5 100644 --- a/pkg/models/kibana_configuration.go +++ b/pkg/models/kibana_configuration.go @@ -80,6 +80,8 @@ func (m *KibanaConfiguration) validateSystemSettings(formats strfmt.Registry) er if err := m.SystemSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } @@ -108,6 +110,8 @@ func (m *KibanaConfiguration) contextValidateSystemSettings(ctx context.Context, if err := m.SystemSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("system_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("system_settings") } return err } diff --git a/pkg/models/kibana_payload.go b/pkg/models/kibana_payload.go index 2f9f420c..95518b46 100644 --- a/pkg/models/kibana_payload.go +++ b/pkg/models/kibana_payload.go @@ -108,6 +108,8 @@ func (m *KibanaPayload) validatePlan(formats strfmt.Registry) error { if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -143,6 +145,8 @@ func (m *KibanaPayload) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -175,6 +179,8 @@ func (m *KibanaPayload) contextValidatePlan(ctx context.Context, formats strfmt. if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -189,6 +195,8 @@ func (m *KibanaPayload) contextValidateSettings(ctx context.Context, formats str if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/kibana_plan_control_configuration.go b/pkg/models/kibana_plan_control_configuration.go index 8db608ff..d51c0143 100644 --- a/pkg/models/kibana_plan_control_configuration.go +++ b/pkg/models/kibana_plan_control_configuration.go @@ -142,6 +142,8 @@ func (m *KibanaPlanControlConfiguration) validateMoveAllocators(formats strfmt.R if err := m.MoveAllocators[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +168,8 @@ func (m *KibanaPlanControlConfiguration) validateMoveInstances(formats strfmt.Re if err := m.MoveInstances[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } @@ -202,6 +206,8 @@ func (m *KibanaPlanControlConfiguration) contextValidateMoveAllocators(ctx conte if err := m.MoveAllocators[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_allocators" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_allocators" + "." + strconv.Itoa(i)) } return err } @@ -220,6 +226,8 @@ func (m *KibanaPlanControlConfiguration) contextValidateMoveInstances(ctx contex if err := m.MoveInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("move_instances" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("move_instances" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/kibana_resource_info.go b/pkg/models/kibana_resource_info.go index 37ec9334..92f37889 100644 --- a/pkg/models/kibana_resource_info.go +++ b/pkg/models/kibana_resource_info.go @@ -115,6 +115,8 @@ func (m *KibanaResourceInfo) validateInfo(formats strfmt.Registry) error { if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -161,6 +163,8 @@ func (m *KibanaResourceInfo) contextValidateInfo(ctx context.Context, formats st if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/kibana_sub_cluster_info.go b/pkg/models/kibana_sub_cluster_info.go index 05c96c9f..8fe8db6b 100644 --- a/pkg/models/kibana_sub_cluster_info.go +++ b/pkg/models/kibana_sub_cluster_info.go @@ -100,6 +100,11 @@ func (m *KibanaSubClusterInfo) validateLinks(formats strfmt.Registry) error { } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } diff --git a/pkg/models/ldap_security_realm_role_mapping_rules.go b/pkg/models/ldap_security_realm_role_mapping_rules.go index 6a0955b1..1b18f30c 100644 --- a/pkg/models/ldap_security_realm_role_mapping_rules.go +++ b/pkg/models/ldap_security_realm_role_mapping_rules.go @@ -88,6 +88,8 @@ func (m *LdapSecurityRealmRoleMappingRules) validateRules(formats strfmt.Registr if err := m.Rules[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *LdapSecurityRealmRoleMappingRules) contextValidateRules(ctx context.Con if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/ldap_settings.go b/pkg/models/ldap_settings.go index 8fae045f..ad271205 100644 --- a/pkg/models/ldap_settings.go +++ b/pkg/models/ldap_settings.go @@ -255,6 +255,8 @@ func (m *LdapSettings) validateGroupSearch(formats strfmt.Registry) error { if err := m.GroupSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group_search") } return err } @@ -281,6 +283,8 @@ func (m *LdapSettings) validateLoadBalance(formats strfmt.Registry) error { if err := m.LoadBalance.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("load_balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("load_balance") } return err } @@ -307,6 +311,8 @@ func (m *LdapSettings) validateRoleMappings(formats strfmt.Registry) error { if err := m.RoleMappings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -333,6 +339,8 @@ func (m *LdapSettings) validateUserSearch(formats strfmt.Registry) error { if err := m.UserSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_search") } return err } @@ -373,6 +381,8 @@ func (m *LdapSettings) contextValidateGroupSearch(ctx context.Context, formats s if err := m.GroupSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group_search") } return err } @@ -387,6 +397,8 @@ func (m *LdapSettings) contextValidateLoadBalance(ctx context.Context, formats s if err := m.LoadBalance.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("load_balance") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("load_balance") } return err } @@ -401,6 +413,8 @@ func (m *LdapSettings) contextValidateRoleMappings(ctx context.Context, formats if err := m.RoleMappings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -415,6 +429,8 @@ func (m *LdapSettings) contextValidateUserSearch(ctx context.Context, formats st if err := m.UserSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("user_search") } return err } diff --git a/pkg/models/license_info.go b/pkg/models/license_info.go index 4c4689f8..5cbd579a 100644 --- a/pkg/models/license_info.go +++ b/pkg/models/license_info.go @@ -154,6 +154,8 @@ func (m *LicenseInfo) validateClusterLicenses(formats strfmt.Registry) error { if err := m.ClusterLicenses[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_licenses" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_licenses" + "." + strconv.Itoa(i)) } return err } @@ -258,6 +260,8 @@ func (m *LicenseInfo) contextValidateClusterLicenses(ctx context.Context, format if err := m.ClusterLicenses[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster_licenses" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_licenses" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/license_object.go b/pkg/models/license_object.go index 2db4074c..1d798204 100644 --- a/pkg/models/license_object.go +++ b/pkg/models/license_object.go @@ -73,6 +73,8 @@ func (m *LicenseObject) validateLicense(formats strfmt.Registry) error { if err := m.License.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("license") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("license") } return err } @@ -90,6 +92,8 @@ func (m *LicenseObject) validateUsageStats(formats strfmt.Registry) error { if err := m.UsageStats.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage_stats") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("usage_stats") } return err } @@ -122,6 +126,8 @@ func (m *LicenseObject) contextValidateLicense(ctx context.Context, formats strf if err := m.License.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("license") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("license") } return err } @@ -136,6 +142,8 @@ func (m *LicenseObject) contextValidateUsageStats(ctx context.Context, formats s if err := m.UsageStats.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage_stats") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("usage_stats") } return err } diff --git a/pkg/models/list_enrollment_token_reply.go b/pkg/models/list_enrollment_token_reply.go index 853c61e0..6f8139c8 100644 --- a/pkg/models/list_enrollment_token_reply.go +++ b/pkg/models/list_enrollment_token_reply.go @@ -71,6 +71,8 @@ func (m *ListEnrollmentTokenReply) validateTokens(formats strfmt.Registry) error if err := m.Tokens[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tokens" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tokens" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ListEnrollmentTokenReply) contextValidateTokens(ctx context.Context, fo if err := m.Tokens[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tokens" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tokens" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/login_request.go b/pkg/models/login_request.go index 637ddd7c..c5a505dc 100644 --- a/pkg/models/login_request.go +++ b/pkg/models/login_request.go @@ -79,6 +79,8 @@ func (m *LoginRequest) validateLoginState(formats strfmt.Registry) error { if err := m.LoginState.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login_state") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("login_state") } return err } @@ -125,6 +127,8 @@ func (m *LoginRequest) contextValidateLoginState(ctx context.Context, formats st if err := m.LoginState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login_state") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("login_state") } return err } diff --git a/pkg/models/metadata_items.go b/pkg/models/metadata_items.go index e7f12c9b..73aac56a 100644 --- a/pkg/models/metadata_items.go +++ b/pkg/models/metadata_items.go @@ -71,6 +71,8 @@ func (m *MetadataItems) validateItems(formats strfmt.Registry) error { if err := m.Items[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("items" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("items" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *MetadataItems) contextValidateItems(ctx context.Context, formats strfmt if err := m.Items[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("items" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("items" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/model_version_index_synchronization_results.go b/pkg/models/model_version_index_synchronization_results.go index a0b4a24d..21d5f62b 100644 --- a/pkg/models/model_version_index_synchronization_results.go +++ b/pkg/models/model_version_index_synchronization_results.go @@ -68,6 +68,11 @@ func (m *ModelVersionIndexSynchronizationResults) validateResults(formats strfmt } if val, ok := m.Results[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("results" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("results" + "." + k) + } return err } } diff --git a/pkg/models/move_apm_cluster_configuration.go b/pkg/models/move_apm_cluster_configuration.go index d3742b14..17d8290b 100644 --- a/pkg/models/move_apm_cluster_configuration.go +++ b/pkg/models/move_apm_cluster_configuration.go @@ -80,6 +80,8 @@ func (m *MoveApmClusterConfiguration) validatePlanOverride(formats strfmt.Regist if err := m.PlanOverride.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } @@ -108,6 +110,8 @@ func (m *MoveApmClusterConfiguration) contextValidatePlanOverride(ctx context.Co if err := m.PlanOverride.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } diff --git a/pkg/models/move_apm_cluster_details.go b/pkg/models/move_apm_cluster_details.go index 859594d4..2f2b9b98 100644 --- a/pkg/models/move_apm_cluster_details.go +++ b/pkg/models/move_apm_cluster_details.go @@ -79,6 +79,8 @@ func (m *MoveApmClusterDetails) validateCalculatedPlan(formats strfmt.Registry) if err := m.CalculatedPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -110,6 +112,8 @@ func (m *MoveApmClusterDetails) validateErrors(formats strfmt.Registry) error { if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveApmClusterDetails) contextValidateCalculatedPlan(ctx context.Contex if err := m.CalculatedPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -160,6 +166,8 @@ func (m *MoveApmClusterDetails) contextValidateErrors(ctx context.Context, forma if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_app_search_configuration.go b/pkg/models/move_app_search_configuration.go index 0d415d4c..ec0e32da 100644 --- a/pkg/models/move_app_search_configuration.go +++ b/pkg/models/move_app_search_configuration.go @@ -80,6 +80,8 @@ func (m *MoveAppSearchConfiguration) validatePlanOverride(formats strfmt.Registr if err := m.PlanOverride.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } @@ -108,6 +110,8 @@ func (m *MoveAppSearchConfiguration) contextValidatePlanOverride(ctx context.Con if err := m.PlanOverride.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } diff --git a/pkg/models/move_app_search_details.go b/pkg/models/move_app_search_details.go index 2efa5559..98ca2f65 100644 --- a/pkg/models/move_app_search_details.go +++ b/pkg/models/move_app_search_details.go @@ -79,6 +79,8 @@ func (m *MoveAppSearchDetails) validateCalculatedPlan(formats strfmt.Registry) e if err := m.CalculatedPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -110,6 +112,8 @@ func (m *MoveAppSearchDetails) validateErrors(formats strfmt.Registry) error { if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveAppSearchDetails) contextValidateCalculatedPlan(ctx context.Context if err := m.CalculatedPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -160,6 +166,8 @@ func (m *MoveAppSearchDetails) contextValidateErrors(ctx context.Context, format if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_clusters_command_response.go b/pkg/models/move_clusters_command_response.go index 7c0a44db..a72c0f22 100644 --- a/pkg/models/move_clusters_command_response.go +++ b/pkg/models/move_clusters_command_response.go @@ -73,6 +73,8 @@ func (m *MoveClustersCommandResponse) validateFailures(formats strfmt.Registry) if err := m.Failures.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failures") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("failures") } return err } @@ -91,6 +93,8 @@ func (m *MoveClustersCommandResponse) validateMoves(formats strfmt.Registry) err if err := m.Moves.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("moves") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("moves") } return err } @@ -123,6 +127,8 @@ func (m *MoveClustersCommandResponse) contextValidateFailures(ctx context.Contex if err := m.Failures.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failures") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("failures") } return err } @@ -137,6 +143,8 @@ func (m *MoveClustersCommandResponse) contextValidateMoves(ctx context.Context, if err := m.Moves.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("moves") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("moves") } return err } diff --git a/pkg/models/move_clusters_details.go b/pkg/models/move_clusters_details.go index c25683ea..f1515a52 100644 --- a/pkg/models/move_clusters_details.go +++ b/pkg/models/move_clusters_details.go @@ -103,6 +103,8 @@ func (m *MoveClustersDetails) validateApmClusters(formats strfmt.Registry) error if err := m.ApmClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -128,6 +130,8 @@ func (m *MoveClustersDetails) validateAppsearchClusters(formats strfmt.Registry) if err := m.AppsearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -153,6 +157,8 @@ func (m *MoveClustersDetails) validateElasticsearchClusters(formats strfmt.Regis if err := m.ElasticsearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -178,6 +184,8 @@ func (m *MoveClustersDetails) validateEnterpriseSearchClusters(formats strfmt.Re if err := m.EnterpriseSearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -203,6 +211,8 @@ func (m *MoveClustersDetails) validateKibanaClusters(formats strfmt.Registry) er if err := m.KibanaClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) } return err } @@ -251,6 +261,8 @@ func (m *MoveClustersDetails) contextValidateApmClusters(ctx context.Context, fo if err := m.ApmClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -269,6 +281,8 @@ func (m *MoveClustersDetails) contextValidateAppsearchClusters(ctx context.Conte if err := m.AppsearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -287,6 +301,8 @@ func (m *MoveClustersDetails) contextValidateElasticsearchClusters(ctx context.C if err := m.ElasticsearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -305,6 +321,8 @@ func (m *MoveClustersDetails) contextValidateEnterpriseSearchClusters(ctx contex if err := m.EnterpriseSearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -323,6 +341,8 @@ func (m *MoveClustersDetails) contextValidateKibanaClusters(ctx context.Context, if err := m.KibanaClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_clusters_request.go b/pkg/models/move_clusters_request.go index b3584955..16f7c16a 100644 --- a/pkg/models/move_clusters_request.go +++ b/pkg/models/move_clusters_request.go @@ -96,6 +96,8 @@ func (m *MoveClustersRequest) validateApmClusters(formats strfmt.Registry) error if err := m.ApmClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *MoveClustersRequest) validateAppsearchClusters(formats strfmt.Registry) if err := m.AppsearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveClustersRequest) validateElasticsearchClusters(formats strfmt.Regis if err := m.ElasticsearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -168,6 +174,8 @@ func (m *MoveClustersRequest) validateEnterpriseSearchClusters(formats strfmt.Re if err := m.EnterpriseSearchClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -192,6 +200,8 @@ func (m *MoveClustersRequest) validateKibanaClusters(formats strfmt.Registry) er if err := m.KibanaClusters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) } return err } @@ -240,6 +250,8 @@ func (m *MoveClustersRequest) contextValidateApmClusters(ctx context.Context, fo if err := m.ApmClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm_clusters" + "." + strconv.Itoa(i)) } return err } @@ -258,6 +270,8 @@ func (m *MoveClustersRequest) contextValidateAppsearchClusters(ctx context.Conte if err := m.AppsearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -276,6 +290,8 @@ func (m *MoveClustersRequest) contextValidateElasticsearchClusters(ctx context.C if err := m.ElasticsearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch_clusters" + "." + strconv.Itoa(i)) } return err } @@ -294,6 +310,8 @@ func (m *MoveClustersRequest) contextValidateEnterpriseSearchClusters(ctx contex if err := m.EnterpriseSearchClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search_clusters" + "." + strconv.Itoa(i)) } return err } @@ -312,6 +330,8 @@ func (m *MoveClustersRequest) contextValidateKibanaClusters(ctx context.Context, if err := m.KibanaClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana_clusters" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_elasticsearch_cluster_configuration.go b/pkg/models/move_elasticsearch_cluster_configuration.go index 4340424f..83e088f0 100644 --- a/pkg/models/move_elasticsearch_cluster_configuration.go +++ b/pkg/models/move_elasticsearch_cluster_configuration.go @@ -80,6 +80,8 @@ func (m *MoveElasticsearchClusterConfiguration) validatePlanOverride(formats str if err := m.PlanOverride.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } @@ -108,6 +110,8 @@ func (m *MoveElasticsearchClusterConfiguration) contextValidatePlanOverride(ctx if err := m.PlanOverride.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } diff --git a/pkg/models/move_elasticsearch_cluster_details.go b/pkg/models/move_elasticsearch_cluster_details.go index 5d8f11bd..6542e271 100644 --- a/pkg/models/move_elasticsearch_cluster_details.go +++ b/pkg/models/move_elasticsearch_cluster_details.go @@ -79,6 +79,8 @@ func (m *MoveElasticsearchClusterDetails) validateCalculatedPlan(formats strfmt. if err := m.CalculatedPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -110,6 +112,8 @@ func (m *MoveElasticsearchClusterDetails) validateErrors(formats strfmt.Registry if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveElasticsearchClusterDetails) contextValidateCalculatedPlan(ctx cont if err := m.CalculatedPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -160,6 +166,8 @@ func (m *MoveElasticsearchClusterDetails) contextValidateErrors(ctx context.Cont if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_enterprise_search_configuration.go b/pkg/models/move_enterprise_search_configuration.go index 98dcb819..ac1de258 100644 --- a/pkg/models/move_enterprise_search_configuration.go +++ b/pkg/models/move_enterprise_search_configuration.go @@ -80,6 +80,8 @@ func (m *MoveEnterpriseSearchConfiguration) validatePlanOverride(formats strfmt. if err := m.PlanOverride.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } @@ -108,6 +110,8 @@ func (m *MoveEnterpriseSearchConfiguration) contextValidatePlanOverride(ctx cont if err := m.PlanOverride.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } diff --git a/pkg/models/move_enterprise_search_details.go b/pkg/models/move_enterprise_search_details.go index d5c0fac5..68ebc352 100644 --- a/pkg/models/move_enterprise_search_details.go +++ b/pkg/models/move_enterprise_search_details.go @@ -79,6 +79,8 @@ func (m *MoveEnterpriseSearchDetails) validateCalculatedPlan(formats strfmt.Regi if err := m.CalculatedPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -110,6 +112,8 @@ func (m *MoveEnterpriseSearchDetails) validateErrors(formats strfmt.Registry) er if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveEnterpriseSearchDetails) contextValidateCalculatedPlan(ctx context. if err := m.CalculatedPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -160,6 +166,8 @@ func (m *MoveEnterpriseSearchDetails) contextValidateErrors(ctx context.Context, if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/move_kibana_cluster_configuration.go b/pkg/models/move_kibana_cluster_configuration.go index 7aae4f87..47e41a10 100644 --- a/pkg/models/move_kibana_cluster_configuration.go +++ b/pkg/models/move_kibana_cluster_configuration.go @@ -80,6 +80,8 @@ func (m *MoveKibanaClusterConfiguration) validatePlanOverride(formats strfmt.Reg if err := m.PlanOverride.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } @@ -108,6 +110,8 @@ func (m *MoveKibanaClusterConfiguration) contextValidatePlanOverride(ctx context if err := m.PlanOverride.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_override") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_override") } return err } diff --git a/pkg/models/move_kibana_cluster_details.go b/pkg/models/move_kibana_cluster_details.go index c7f8e6e6..2a2d9456 100644 --- a/pkg/models/move_kibana_cluster_details.go +++ b/pkg/models/move_kibana_cluster_details.go @@ -79,6 +79,8 @@ func (m *MoveKibanaClusterDetails) validateCalculatedPlan(formats strfmt.Registr if err := m.CalculatedPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -110,6 +112,8 @@ func (m *MoveKibanaClusterDetails) validateErrors(formats strfmt.Registry) error if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -144,6 +148,8 @@ func (m *MoveKibanaClusterDetails) contextValidateCalculatedPlan(ctx context.Con if err := m.CalculatedPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("calculated_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("calculated_plan") } return err } @@ -160,6 +166,8 @@ func (m *MoveKibanaClusterDetails) contextValidateErrors(ctx context.Context, fo if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/nested_query.go b/pkg/models/nested_query.go index 0ef6f04c..101321e7 100644 --- a/pkg/models/nested_query.go +++ b/pkg/models/nested_query.go @@ -91,6 +91,8 @@ func (m *NestedQuery) validateQuery(formats strfmt.Registry) error { if err := m.Query.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query") } return err } @@ -170,6 +172,8 @@ func (m *NestedQuery) contextValidateQuery(ctx context.Context, formats strfmt.R if err := m.Query.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query") } return err } diff --git a/pkg/models/notes.go b/pkg/models/notes.go index 2aba5c2e..70754b1d 100644 --- a/pkg/models/notes.go +++ b/pkg/models/notes.go @@ -71,6 +71,8 @@ func (m *Notes) validateNotes(formats strfmt.Registry) error { if err := m.Notes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("notes" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("notes" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *Notes) contextValidateNotes(ctx context.Context, formats strfmt.Registr if err := m.Notes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("notes" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("notes" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/organization_invitation.go b/pkg/models/organization_invitation.go index 6e515a80..1a869000 100644 --- a/pkg/models/organization_invitation.go +++ b/pkg/models/organization_invitation.go @@ -171,6 +171,8 @@ func (m *OrganizationInvitation) validateOrganization(formats strfmt.Registry) e if err := m.Organization.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("organization") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("organization") } return err } @@ -208,6 +210,8 @@ func (m *OrganizationInvitation) contextValidateOrganization(ctx context.Context if err := m.Organization.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("organization") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("organization") } return err } diff --git a/pkg/models/organization_invitations.go b/pkg/models/organization_invitations.go index b763f31c..02d63498 100644 --- a/pkg/models/organization_invitations.go +++ b/pkg/models/organization_invitations.go @@ -71,6 +71,8 @@ func (m *OrganizationInvitations) validateInvitations(formats strfmt.Registry) e if err := m.Invitations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("invitations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("invitations" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *OrganizationInvitations) contextValidateInvitations(ctx context.Context if err := m.Invitations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("invitations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("invitations" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/organization_list.go b/pkg/models/organization_list.go index cbabf211..35118a13 100644 --- a/pkg/models/organization_list.go +++ b/pkg/models/organization_list.go @@ -74,6 +74,8 @@ func (m *OrganizationList) validateOrganizations(formats strfmt.Registry) error if err := m.Organizations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("organizations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("organizations" + "." + strconv.Itoa(i)) } return err } @@ -106,6 +108,8 @@ func (m *OrganizationList) contextValidateOrganizations(ctx context.Context, for if err := m.Organizations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("organizations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("organizations" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/organization_memberships.go b/pkg/models/organization_memberships.go index f0e17897..4aa06b9a 100644 --- a/pkg/models/organization_memberships.go +++ b/pkg/models/organization_memberships.go @@ -71,6 +71,8 @@ func (m *OrganizationMemberships) validateMembers(formats strfmt.Registry) error if err := m.Members[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("members" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("members" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *OrganizationMemberships) contextValidateMembers(ctx context.Context, fo if err := m.Members[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("members" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("members" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/orphaned.go b/pkg/models/orphaned.go index ef41c34d..4100cf8a 100644 --- a/pkg/models/orphaned.go +++ b/pkg/models/orphaned.go @@ -129,6 +129,8 @@ func (m *Orphaned) validateElasticsearch(formats strfmt.Registry) error { if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -188,6 +190,8 @@ func (m *Orphaned) contextValidateElasticsearch(ctx context.Context, formats str if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/orphaned_elasticsearch.go b/pkg/models/orphaned_elasticsearch.go index c5a38235..f6a289fb 100644 --- a/pkg/models/orphaned_elasticsearch.go +++ b/pkg/models/orphaned_elasticsearch.go @@ -79,6 +79,8 @@ func (m *OrphanedElasticsearch) validateDependents(formats strfmt.Registry) erro if err := m.Dependents[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dependents" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dependents" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *OrphanedElasticsearch) contextValidateDependents(ctx context.Context, f if err := m.Dependents[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dependents" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dependents" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/pending_states.go b/pkg/models/pending_states.go index 6bc5bfc6..1297bed2 100644 --- a/pkg/models/pending_states.go +++ b/pkg/models/pending_states.go @@ -68,6 +68,11 @@ func (m *PendingStates) validateRunnerIdsToPendingState(formats strfmt.Registry) } if val, ok := m.RunnerIdsToPendingState[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("runner_ids_to_pending_state" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runner_ids_to_pending_state" + "." + k) + } return err } } diff --git a/pkg/models/pending_states_with_meta.go b/pkg/models/pending_states_with_meta.go index 0e28445f..01997850 100644 --- a/pkg/models/pending_states_with_meta.go +++ b/pkg/models/pending_states_with_meta.go @@ -73,6 +73,8 @@ func (m *PendingStatesWithMeta) validateMeta(formats strfmt.Registry) error { if err := m.Meta.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -91,6 +93,8 @@ func (m *PendingStatesWithMeta) validateValue(formats strfmt.Registry) error { if err := m.Value.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } @@ -123,6 +127,8 @@ func (m *PendingStatesWithMeta) contextValidateMeta(ctx context.Context, formats if err := m.Meta.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -137,6 +143,8 @@ func (m *PendingStatesWithMeta) contextValidateValue(ctx context.Context, format if err := m.Value.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } diff --git a/pkg/models/plan_strategy.go b/pkg/models/plan_strategy.go index c01e7629..f75884fa 100644 --- a/pkg/models/plan_strategy.go +++ b/pkg/models/plan_strategy.go @@ -71,6 +71,8 @@ func (m *PlanStrategy) validateRolling(formats strfmt.Registry) error { if err := m.Rolling.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rolling") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rolling") } return err } @@ -99,6 +101,8 @@ func (m *PlanStrategy) contextValidateRolling(ctx context.Context, formats strfm if err := m.Rolling.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rolling") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rolling") } return err } diff --git a/pkg/models/platform_info.go b/pkg/models/platform_info.go index f60c211b..8ee1f969 100644 --- a/pkg/models/platform_info.go +++ b/pkg/models/platform_info.go @@ -129,6 +129,8 @@ func (m *PlatformInfo) validateRegions(formats strfmt.Registry) error { if err := m.Regions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("regions" + "." + strconv.Itoa(i)) } return err } @@ -154,6 +156,8 @@ func (m *PlatformInfo) validateServices(formats strfmt.Registry) error { if err := m.Services[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("services" + "." + strconv.Itoa(i)) } return err } @@ -179,6 +183,8 @@ func (m *PlatformInfo) validateUnreachableRegions(formats strfmt.Registry) error if err := m.UnreachableRegions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unreachable_regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unreachable_regions" + "." + strconv.Itoa(i)) } return err } @@ -228,6 +234,8 @@ func (m *PlatformInfo) contextValidateRegions(ctx context.Context, formats strfm if err := m.Regions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("regions" + "." + strconv.Itoa(i)) } return err } @@ -246,6 +254,8 @@ func (m *PlatformInfo) contextValidateServices(ctx context.Context, formats strf if err := m.Services[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("services" + "." + strconv.Itoa(i)) } return err } @@ -264,6 +274,8 @@ func (m *PlatformInfo) contextValidateUnreachableRegions(ctx context.Context, fo if err := m.UnreachableRegions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("unreachable_regions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("unreachable_regions" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/platform_service_info.go b/pkg/models/platform_service_info.go index 990d156f..00e7448e 100644 --- a/pkg/models/platform_service_info.go +++ b/pkg/models/platform_service_info.go @@ -79,6 +79,8 @@ func (m *PlatformServiceInfo) validateImage(formats strfmt.Registry) error { if err := m.Image[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("image" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *PlatformServiceInfo) contextValidateImage(ctx context.Context, formats if err := m.Image[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("image" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/proxies_filtered_group.go b/pkg/models/proxies_filtered_group.go index 2f073757..082b208c 100644 --- a/pkg/models/proxies_filtered_group.go +++ b/pkg/models/proxies_filtered_group.go @@ -91,6 +91,8 @@ func (m *ProxiesFilteredGroup) validateFilters(formats strfmt.Registry) error { if err := m.Filters[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filters" + "." + strconv.Itoa(i)) } return err } @@ -123,6 +125,8 @@ func (m *ProxiesFilteredGroup) contextValidateFilters(ctx context.Context, forma if err := m.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filters" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filters" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/proxies_filtered_group_health.go b/pkg/models/proxies_filtered_group_health.go index 016bff59..577c5145 100644 --- a/pkg/models/proxies_filtered_group_health.go +++ b/pkg/models/proxies_filtered_group_health.go @@ -81,6 +81,8 @@ func (m *ProxiesFilteredGroupHealth) validateGroup(formats strfmt.Registry) erro if err := m.Group.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group") } return err } @@ -127,6 +129,8 @@ func (m *ProxiesFilteredGroupHealth) contextValidateGroup(ctx context.Context, f if err := m.Group.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("group") } return err } diff --git a/pkg/models/proxies_health.go b/pkg/models/proxies_health.go index 27e70642..3ffa6f31 100644 --- a/pkg/models/proxies_health.go +++ b/pkg/models/proxies_health.go @@ -103,6 +103,8 @@ func (m *ProxiesHealth) validateAllocations(formats strfmt.Registry) error { if err := m.Allocations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocations" + "." + strconv.Itoa(i)) } return err } @@ -137,6 +139,8 @@ func (m *ProxiesHealth) validateFilteredGroups(formats strfmt.Registry) error { if err := m.FilteredGroups[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filtered_groups" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filtered_groups" + "." + strconv.Itoa(i)) } return err } @@ -191,6 +195,8 @@ func (m *ProxiesHealth) contextValidateAllocations(ctx context.Context, formats if err := m.Allocations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocations" + "." + strconv.Itoa(i)) } return err } @@ -209,6 +215,8 @@ func (m *ProxiesHealth) contextValidateFilteredGroups(ctx context.Context, forma if err := m.FilteredGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filtered_groups" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("filtered_groups" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/proxies_http_settings.go b/pkg/models/proxies_http_settings.go index 120455f5..81c43878 100644 --- a/pkg/models/proxies_http_settings.go +++ b/pkg/models/proxies_http_settings.go @@ -142,6 +142,8 @@ func (m *ProxiesHTTPSettings) validateSsoSettings(formats strfmt.Registry) error if err := m.SsoSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sso_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sso_settings") } return err } @@ -179,6 +181,8 @@ func (m *ProxiesHTTPSettings) contextValidateSsoSettings(ctx context.Context, fo if err := m.SsoSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sso_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sso_settings") } return err } diff --git a/pkg/models/proxies_settings.go b/pkg/models/proxies_settings.go index e4f39332..2e58b95b 100644 --- a/pkg/models/proxies_settings.go +++ b/pkg/models/proxies_settings.go @@ -72,6 +72,8 @@ func (m *ProxiesSettings) validateHTTPSettings(formats strfmt.Registry) error { if err := m.HTTPSettings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("http_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("http_settings") } return err } @@ -100,6 +102,8 @@ func (m *ProxiesSettings) contextValidateHTTPSettings(ctx context.Context, forma if err := m.HTTPSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("http_settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("http_settings") } return err } diff --git a/pkg/models/proxies_summary.go b/pkg/models/proxies_summary.go index 0d39fea8..50ce9550 100644 --- a/pkg/models/proxies_summary.go +++ b/pkg/models/proxies_summary.go @@ -113,6 +113,8 @@ func (m *ProxiesSummary) validateProxies(formats strfmt.Registry) error { if err := m.Proxies[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies" + "." + strconv.Itoa(i)) } return err } @@ -154,6 +156,8 @@ func (m *ProxiesSummary) contextValidateProxies(ctx context.Context, formats str if err := m.Proxies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/proxy_allocation_info.go b/pkg/models/proxy_allocation_info.go index 5ec68a08..bf8d1a51 100644 --- a/pkg/models/proxy_allocation_info.go +++ b/pkg/models/proxy_allocation_info.go @@ -82,6 +82,8 @@ func (m *ProxyAllocationInfo) validateCounts(formats strfmt.Registry) error { if err := m.Counts.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("counts") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("counts") } return err } @@ -110,6 +112,8 @@ func (m *ProxyAllocationInfo) contextValidateCounts(ctx context.Context, formats if err := m.Counts.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("counts") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("counts") } return err } diff --git a/pkg/models/proxy_info.go b/pkg/models/proxy_info.go index a012ca62..589a2fc6 100644 --- a/pkg/models/proxy_info.go +++ b/pkg/models/proxy_info.go @@ -117,6 +117,8 @@ func (m *ProxyInfo) validateAllocations(formats strfmt.Registry) error { if err := m.Allocations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocations" + "." + strconv.Itoa(i)) } return err } @@ -194,6 +196,8 @@ func (m *ProxyInfo) contextValidateAllocations(ctx context.Context, formats strf if err := m.Allocations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocations" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/proxy_overview.go b/pkg/models/proxy_overview.go index e21e59ba..a81f2b08 100644 --- a/pkg/models/proxy_overview.go +++ b/pkg/models/proxy_overview.go @@ -87,6 +87,8 @@ func (m *ProxyOverview) validateProxies(formats strfmt.Registry) error { if err := m.Proxies[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies" + "." + strconv.Itoa(i)) } return err } @@ -116,6 +118,8 @@ func (m *ProxyOverview) validateSettings(formats strfmt.Registry) error { if err := m.Settings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } @@ -150,6 +154,8 @@ func (m *ProxyOverview) contextValidateProxies(ctx context.Context, formats strf if err := m.Proxies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies" + "." + strconv.Itoa(i)) } return err } @@ -166,6 +172,8 @@ func (m *ProxyOverview) contextValidateSettings(ctx context.Context, formats str if err := m.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("settings") } return err } diff --git a/pkg/models/public_cert_chain_collection.go b/pkg/models/public_cert_chain_collection.go index fb0d8305..5f19f8b5 100644 --- a/pkg/models/public_cert_chain_collection.go +++ b/pkg/models/public_cert_chain_collection.go @@ -68,6 +68,11 @@ func (m *PublicCertChainCollection) validateCerts(formats strfmt.Registry) error } if val, ok := m.Certs[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("certs" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("certs" + "." + k) + } return err } } diff --git a/pkg/models/public_certificate.go b/pkg/models/public_certificate.go index ffc6e912..22c60f42 100644 --- a/pkg/models/public_certificate.go +++ b/pkg/models/public_certificate.go @@ -90,6 +90,8 @@ func (m *PublicCertificate) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -127,6 +129,8 @@ func (m *PublicCertificate) contextValidateMetadata(ctx context.Context, formats if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/query_container.go b/pkg/models/query_container.go index 7f484d90..06586d04 100644 --- a/pkg/models/query_container.go +++ b/pkg/models/query_container.go @@ -118,6 +118,8 @@ func (m *QueryContainer) validateBool(formats strfmt.Registry) error { if err := m.Bool.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bool") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("bool") } return err } @@ -135,6 +137,8 @@ func (m *QueryContainer) validateExists(formats strfmt.Registry) error { if err := m.Exists.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("exists") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("exists") } return err } @@ -155,6 +159,11 @@ func (m *QueryContainer) validateMatch(formats strfmt.Registry) error { } if val, ok := m.Match[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("match" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("match" + "." + k) + } return err } } @@ -173,6 +182,8 @@ func (m *QueryContainer) validateNested(formats strfmt.Registry) error { if err := m.Nested.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("nested") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("nested") } return err } @@ -193,6 +204,11 @@ func (m *QueryContainer) validatePrefix(formats strfmt.Registry) error { } if val, ok := m.Prefix[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("prefix" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("prefix" + "." + k) + } return err } } @@ -211,6 +227,8 @@ func (m *QueryContainer) validateQueryString(formats strfmt.Registry) error { if err := m.QueryString.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query_string") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query_string") } return err } @@ -231,6 +249,11 @@ func (m *QueryContainer) validateRange(formats strfmt.Registry) error { } if val, ok := m.Range[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("range" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("range" + "." + k) + } return err } } @@ -252,6 +275,11 @@ func (m *QueryContainer) validateTerm(formats strfmt.Registry) error { } if val, ok := m.Term[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("term" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("term" + "." + k) + } return err } } @@ -309,6 +337,8 @@ func (m *QueryContainer) contextValidateBool(ctx context.Context, formats strfmt if err := m.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bool") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("bool") } return err } @@ -323,6 +353,8 @@ func (m *QueryContainer) contextValidateExists(ctx context.Context, formats strf if err := m.Exists.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("exists") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("exists") } return err } @@ -352,6 +384,8 @@ func (m *QueryContainer) contextValidateNested(ctx context.Context, formats strf if err := m.Nested.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("nested") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("nested") } return err } @@ -381,6 +415,8 @@ func (m *QueryContainer) contextValidateQueryString(ctx context.Context, formats if err := m.QueryString.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query_string") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query_string") } return err } diff --git a/pkg/models/region_info.go b/pkg/models/region_info.go index 48062c1b..afc7a31f 100644 --- a/pkg/models/region_info.go +++ b/pkg/models/region_info.go @@ -129,6 +129,8 @@ func (m *RegionInfo) validateAllocators(formats strfmt.Registry) error { if err := m.Allocators.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocators") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocators") } return err } @@ -147,6 +149,8 @@ func (m *RegionInfo) validateConstructors(formats strfmt.Registry) error { if err := m.Constructors.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("constructors") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("constructors") } return err } @@ -165,6 +169,8 @@ func (m *RegionInfo) validateContainerSetsStatus(formats strfmt.Registry) error if err := m.ContainerSetsStatus.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("container_sets_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("container_sets_status") } return err } @@ -183,6 +189,8 @@ func (m *RegionInfo) validateCoordinators(formats strfmt.Registry) error { if err := m.Coordinators.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("coordinators") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("coordinators") } return err } @@ -201,6 +209,8 @@ func (m *RegionInfo) validateProxies(formats strfmt.Registry) error { if err := m.Proxies.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies") } return err } @@ -228,6 +238,8 @@ func (m *RegionInfo) validateResources(formats strfmt.Registry) error { if err := m.Resources.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -246,6 +258,8 @@ func (m *RegionInfo) validateRunners(formats strfmt.Registry) error { if err := m.Runners.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runners") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runners") } return err } @@ -264,6 +278,8 @@ func (m *RegionInfo) validateZookeeperStates(formats strfmt.Registry) error { if err := m.ZookeeperStates.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zookeeper_states") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zookeeper_states") } return err } @@ -320,6 +336,8 @@ func (m *RegionInfo) contextValidateAllocators(ctx context.Context, formats strf if err := m.Allocators.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocators") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("allocators") } return err } @@ -334,6 +352,8 @@ func (m *RegionInfo) contextValidateConstructors(ctx context.Context, formats st if err := m.Constructors.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("constructors") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("constructors") } return err } @@ -348,6 +368,8 @@ func (m *RegionInfo) contextValidateContainerSetsStatus(ctx context.Context, for if err := m.ContainerSetsStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("container_sets_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("container_sets_status") } return err } @@ -362,6 +384,8 @@ func (m *RegionInfo) contextValidateCoordinators(ctx context.Context, formats st if err := m.Coordinators.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("coordinators") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("coordinators") } return err } @@ -376,6 +400,8 @@ func (m *RegionInfo) contextValidateProxies(ctx context.Context, formats strfmt. if err := m.Proxies.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("proxies") } return err } @@ -390,6 +416,8 @@ func (m *RegionInfo) contextValidateResources(ctx context.Context, formats strfm if err := m.Resources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources") } return err } @@ -404,6 +432,8 @@ func (m *RegionInfo) contextValidateRunners(ctx context.Context, formats strfmt. if err := m.Runners.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runners") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runners") } return err } @@ -418,6 +448,8 @@ func (m *RegionInfo) contextValidateZookeeperStates(ctx context.Context, formats if err := m.ZookeeperStates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zookeeper_states") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("zookeeper_states") } return err } diff --git a/pkg/models/remote_resource_ref.go b/pkg/models/remote_resource_ref.go index ede4f43a..36cf3173 100644 --- a/pkg/models/remote_resource_ref.go +++ b/pkg/models/remote_resource_ref.go @@ -118,6 +118,8 @@ func (m *RemoteResourceRef) validateInfo(formats strfmt.Registry) error { if err := m.Info.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } @@ -146,6 +148,8 @@ func (m *RemoteResourceRef) contextValidateInfo(ctx context.Context, formats str if err := m.Info.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("info") } return err } diff --git a/pkg/models/remote_resources.go b/pkg/models/remote_resources.go index 2a73e2cb..3b5ae9de 100644 --- a/pkg/models/remote_resources.go +++ b/pkg/models/remote_resources.go @@ -71,6 +71,8 @@ func (m *RemoteResources) validateResources(formats strfmt.Registry) error { if err := m.Resources[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *RemoteResources) contextValidateResources(ctx context.Context, formats if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resources" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/repository_configs.go b/pkg/models/repository_configs.go index 9a61bdd2..e83b9c8d 100644 --- a/pkg/models/repository_configs.go +++ b/pkg/models/repository_configs.go @@ -71,6 +71,8 @@ func (m *RepositoryConfigs) validateConfigs(formats strfmt.Registry) error { if err := m.Configs[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("configs" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *RepositoryConfigs) contextValidateConfigs(ctx context.Context, formats if err := m.Configs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("configs" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/resource_heap_dumps.go b/pkg/models/resource_heap_dumps.go index 5b77debf..bd3980af 100644 --- a/pkg/models/resource_heap_dumps.go +++ b/pkg/models/resource_heap_dumps.go @@ -87,6 +87,8 @@ func (m *ResourceHeapDumps) validateHeapDumps(formats strfmt.Registry) error { if err := m.HeapDumps[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("heap_dumps" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("heap_dumps" + "." + strconv.Itoa(i)) } return err } @@ -137,6 +139,8 @@ func (m *ResourceHeapDumps) contextValidateHeapDumps(ctx context.Context, format if err := m.HeapDumps[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("heap_dumps" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("heap_dumps" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/restore_snapshot_configuration.go b/pkg/models/restore_snapshot_configuration.go index 96651f2f..84ab5346 100644 --- a/pkg/models/restore_snapshot_configuration.go +++ b/pkg/models/restore_snapshot_configuration.go @@ -93,6 +93,8 @@ func (m *RestoreSnapshotConfiguration) validateRepositoryConfig(formats strfmt.R if err := m.RepositoryConfig.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository_config") } return err } @@ -110,6 +112,8 @@ func (m *RestoreSnapshotConfiguration) validateRestorePayload(formats strfmt.Reg if err := m.RestorePayload.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restore_payload") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restore_payload") } return err } @@ -196,6 +200,8 @@ func (m *RestoreSnapshotConfiguration) contextValidateRepositoryConfig(ctx conte if err := m.RepositoryConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository_config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository_config") } return err } @@ -210,6 +216,8 @@ func (m *RestoreSnapshotConfiguration) contextValidateRestorePayload(ctx context if err := m.RestorePayload.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restore_payload") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restore_payload") } return err } diff --git a/pkg/models/role.go b/pkg/models/role.go index 5dd52633..3c161c10 100644 --- a/pkg/models/role.go +++ b/pkg/models/role.go @@ -97,6 +97,8 @@ func (m *Role) validateContainers(formats strfmt.Registry) error { if err := m.Containers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("containers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("containers" + "." + strconv.Itoa(i)) } return err } @@ -138,6 +140,8 @@ func (m *Role) contextValidateContainers(ctx context.Context, formats strfmt.Reg if err := m.Containers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("containers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("containers" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/role_aggregate.go b/pkg/models/role_aggregate.go index 039e006a..d2f0a87d 100644 --- a/pkg/models/role_aggregate.go +++ b/pkg/models/role_aggregate.go @@ -87,6 +87,8 @@ func (m *RoleAggregate) validateBlessings(formats strfmt.Registry) error { if err := m.Blessings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blessings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blessings") } return err } @@ -113,6 +115,8 @@ func (m *RoleAggregate) validatePending(formats strfmt.Registry) error { if err := m.Pending.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -131,6 +135,8 @@ func (m *RoleAggregate) validateRole(formats strfmt.Registry) error { if err := m.Role.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") } return err } @@ -167,6 +173,8 @@ func (m *RoleAggregate) contextValidateBlessings(ctx context.Context, formats st if err := m.Blessings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blessings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blessings") } return err } @@ -181,6 +189,8 @@ func (m *RoleAggregate) contextValidatePending(ctx context.Context, formats strf if err := m.Pending.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending") } return err } @@ -195,6 +205,8 @@ func (m *RoleAggregate) contextValidateRole(ctx context.Context, formats strfmt. if err := m.Role.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") } return err } diff --git a/pkg/models/role_aggregate_create_data.go b/pkg/models/role_aggregate_create_data.go index d4856cb0..ed380370 100644 --- a/pkg/models/role_aggregate_create_data.go +++ b/pkg/models/role_aggregate_create_data.go @@ -71,6 +71,8 @@ func (m *RoleAggregateCreateData) validateBlessings(formats strfmt.Registry) err if err := m.Blessings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blessings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blessings") } return err } @@ -89,6 +91,8 @@ func (m *RoleAggregateCreateData) validateRole(formats strfmt.Registry) error { if err := m.Role.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") } return err } @@ -121,6 +125,8 @@ func (m *RoleAggregateCreateData) contextValidateBlessings(ctx context.Context, if err := m.Blessings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blessings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("blessings") } return err } @@ -135,6 +141,8 @@ func (m *RoleAggregateCreateData) contextValidateRole(ctx context.Context, forma if err := m.Role.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") } return err } diff --git a/pkg/models/role_aggregates.go b/pkg/models/role_aggregates.go index 436f4512..55b6f50d 100644 --- a/pkg/models/role_aggregates.go +++ b/pkg/models/role_aggregates.go @@ -71,6 +71,8 @@ func (m *RoleAggregates) validateValues(formats strfmt.Registry) error { if err := m.Values[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *RoleAggregates) contextValidateValues(ctx context.Context, formats strf if err := m.Values[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("values" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("values" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/role_with_meta.go b/pkg/models/role_with_meta.go index a2084d6b..5e6738dd 100644 --- a/pkg/models/role_with_meta.go +++ b/pkg/models/role_with_meta.go @@ -73,6 +73,8 @@ func (m *RoleWithMeta) validateMeta(formats strfmt.Registry) error { if err := m.Meta.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -91,6 +93,8 @@ func (m *RoleWithMeta) validateValue(formats strfmt.Registry) error { if err := m.Value.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } @@ -123,6 +127,8 @@ func (m *RoleWithMeta) contextValidateMeta(ctx context.Context, formats strfmt.R if err := m.Meta.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") } return err } @@ -137,6 +143,8 @@ func (m *RoleWithMeta) contextValidateValue(ctx context.Context, formats strfmt. if err := m.Value.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("value") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("value") } return err } diff --git a/pkg/models/ruleset_associations.go b/pkg/models/ruleset_associations.go index da0430d3..3f959be5 100644 --- a/pkg/models/ruleset_associations.go +++ b/pkg/models/ruleset_associations.go @@ -79,6 +79,8 @@ func (m *RulesetAssociations) validateAssociations(formats strfmt.Registry) erro if err := m.Associations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associations" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *RulesetAssociations) contextValidateAssociations(ctx context.Context, f if err := m.Associations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associations" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/runner_info.go b/pkg/models/runner_info.go index 0ecb0273..0b87d196 100644 --- a/pkg/models/runner_info.go +++ b/pkg/models/runner_info.go @@ -142,6 +142,8 @@ func (m *RunnerInfo) validateBuildInfo(formats strfmt.Registry) error { if err := m.BuildInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_info") } return err } @@ -174,6 +176,8 @@ func (m *RunnerInfo) validateContainers(formats strfmt.Registry) error { if err := m.Containers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("containers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("containers" + "." + strconv.Itoa(i)) } return err } @@ -193,6 +197,8 @@ func (m *RunnerInfo) validateHealthChecks(formats strfmt.Registry) error { if err := m.HealthChecks.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("health_checks") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("health_checks") } return err } @@ -243,6 +249,8 @@ func (m *RunnerInfo) validateRoles(formats strfmt.Registry) error { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -294,6 +302,8 @@ func (m *RunnerInfo) contextValidateBuildInfo(ctx context.Context, formats strfm if err := m.BuildInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_info") } return err } @@ -310,6 +320,8 @@ func (m *RunnerInfo) contextValidateContainers(ctx context.Context, formats strf if err := m.Containers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("containers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("containers" + "." + strconv.Itoa(i)) } return err } @@ -326,6 +338,8 @@ func (m *RunnerInfo) contextValidateHealthChecks(ctx context.Context, formats st if err := m.HealthChecks.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("health_checks") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("health_checks") } return err } @@ -342,6 +356,8 @@ func (m *RunnerInfo) contextValidateRoles(ctx context.Context, formats strfmt.Re if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/runner_overview.go b/pkg/models/runner_overview.go index ad1d3d44..f3454618 100644 --- a/pkg/models/runner_overview.go +++ b/pkg/models/runner_overview.go @@ -71,6 +71,8 @@ func (m *RunnerOverview) validateRunners(formats strfmt.Registry) error { if err := m.Runners[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runners" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runners" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *RunnerOverview) contextValidateRunners(ctx context.Context, formats str if err := m.Runners[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runners" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("runners" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/runner_roles_info.go b/pkg/models/runner_roles_info.go index eeda0ef2..7b059d95 100644 --- a/pkg/models/runner_roles_info.go +++ b/pkg/models/runner_roles_info.go @@ -71,6 +71,8 @@ func (m *RunnerRolesInfo) validateRoles(formats strfmt.Registry) error { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *RunnerRolesInfo) contextValidateRoles(ctx context.Context, formats strf if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/saml_security_realm_role_mapping_rules.go b/pkg/models/saml_security_realm_role_mapping_rules.go index e3a206ec..c84038ea 100644 --- a/pkg/models/saml_security_realm_role_mapping_rules.go +++ b/pkg/models/saml_security_realm_role_mapping_rules.go @@ -88,6 +88,8 @@ func (m *SamlSecurityRealmRoleMappingRules) validateRules(formats strfmt.Registr if err := m.Rules[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } @@ -120,6 +122,8 @@ func (m *SamlSecurityRealmRoleMappingRules) contextValidateRules(ctx context.Con if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/saml_settings.go b/pkg/models/saml_settings.go index f29bb5e3..9890773c 100644 --- a/pkg/models/saml_settings.go +++ b/pkg/models/saml_settings.go @@ -146,6 +146,8 @@ func (m *SamlSettings) validateAttributes(formats strfmt.Registry) error { if err := m.Attributes.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attributes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("attributes") } return err } @@ -173,6 +175,8 @@ func (m *SamlSettings) validateIdp(formats strfmt.Registry) error { if err := m.Idp.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("idp") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("idp") } return err } @@ -199,6 +203,8 @@ func (m *SamlSettings) validateRoleMappings(formats strfmt.Registry) error { if err := m.RoleMappings.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -217,6 +223,8 @@ func (m *SamlSettings) validateSp(formats strfmt.Registry) error { if err := m.Sp.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sp") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sp") } return err } @@ -299,6 +307,8 @@ func (m *SamlSettings) contextValidateAttributes(ctx context.Context, formats st if err := m.Attributes.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attributes") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("attributes") } return err } @@ -313,6 +323,8 @@ func (m *SamlSettings) contextValidateIdp(ctx context.Context, formats strfmt.Re if err := m.Idp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("idp") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("idp") } return err } @@ -327,6 +339,8 @@ func (m *SamlSettings) contextValidateRoleMappings(ctx context.Context, formats if err := m.RoleMappings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role_mappings") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role_mappings") } return err } @@ -341,6 +355,8 @@ func (m *SamlSettings) contextValidateSp(ctx context.Context, formats strfmt.Reg if err := m.Sp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sp") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("sp") } return err } diff --git a/pkg/models/search_request.go b/pkg/models/search_request.go index b97614a2..709fa709 100644 --- a/pkg/models/search_request.go +++ b/pkg/models/search_request.go @@ -74,6 +74,8 @@ func (m *SearchRequest) validateQuery(formats strfmt.Registry) error { if err := m.Query.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query") } return err } @@ -102,6 +104,8 @@ func (m *SearchRequest) contextValidateQuery(ctx context.Context, formats strfmt if err := m.Query.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("query") } return err } diff --git a/pkg/models/security_deployment_create_request.go b/pkg/models/security_deployment_create_request.go index a46f7c7a..273d0088 100644 --- a/pkg/models/security_deployment_create_request.go +++ b/pkg/models/security_deployment_create_request.go @@ -68,6 +68,8 @@ func (m *SecurityDeploymentCreateRequest) validateTopology(formats strfmt.Regist if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -96,6 +98,8 @@ func (m *SecurityDeploymentCreateRequest) contextValidateTopology(ctx context.Co if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/security_deployment_topology.go b/pkg/models/security_deployment_topology.go index 7ddbdf8f..5c914639 100644 --- a/pkg/models/security_deployment_topology.go +++ b/pkg/models/security_deployment_topology.go @@ -65,6 +65,8 @@ func (m *SecurityDeploymentTopology) validateSize(formats strfmt.Registry) error if err := m.Size.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } @@ -93,6 +95,8 @@ func (m *SecurityDeploymentTopology) contextValidateSize(ctx context.Context, fo if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("size") } return err } diff --git a/pkg/models/security_deployment_update_request.go b/pkg/models/security_deployment_update_request.go index 1a94549b..fbe8b234 100644 --- a/pkg/models/security_deployment_update_request.go +++ b/pkg/models/security_deployment_update_request.go @@ -65,6 +65,8 @@ func (m *SecurityDeploymentUpdateRequest) validateTopology(formats strfmt.Regist if err := m.Topology.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } @@ -93,6 +95,8 @@ func (m *SecurityDeploymentUpdateRequest) contextValidateTopology(ctx context.Co if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("topology") } return err } diff --git a/pkg/models/security_realm_info_list.go b/pkg/models/security_realm_info_list.go index 62d4b920..ff36d2bd 100644 --- a/pkg/models/security_realm_info_list.go +++ b/pkg/models/security_realm_info_list.go @@ -71,6 +71,8 @@ func (m *SecurityRealmInfoList) validateRealms(formats strfmt.Registry) error { if err := m.Realms[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realms" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("realms" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *SecurityRealmInfoList) contextValidateRealms(ctx context.Context, forma if err := m.Realms[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realms" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("realms" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_apm_config.go b/pkg/models/stack_version_apm_config.go index 028fdb1b..62d6de10 100644 --- a/pkg/models/stack_version_apm_config.go +++ b/pkg/models/stack_version_apm_config.go @@ -100,6 +100,8 @@ func (m *StackVersionApmConfig) validateCapacityConstraints(formats strfmt.Regis if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -137,6 +139,8 @@ func (m *StackVersionApmConfig) contextValidateCapacityConstraints(ctx context.C if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } diff --git a/pkg/models/stack_version_app_search_config.go b/pkg/models/stack_version_app_search_config.go index cba164bf..5b97005f 100644 --- a/pkg/models/stack_version_app_search_config.go +++ b/pkg/models/stack_version_app_search_config.go @@ -108,6 +108,8 @@ func (m *StackVersionAppSearchConfig) validateCapacityConstraints(formats strfmt if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -139,6 +141,8 @@ func (m *StackVersionAppSearchConfig) validateNodeTypes(formats strfmt.Registry) if err := m.NodeTypes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } @@ -173,6 +177,8 @@ func (m *StackVersionAppSearchConfig) contextValidateCapacityConstraints(ctx con if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -189,6 +195,8 @@ func (m *StackVersionAppSearchConfig) contextValidateNodeTypes(ctx context.Conte if err := m.NodeTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_archive_processing_error.go b/pkg/models/stack_version_archive_processing_error.go index 08517eff..12924bff 100644 --- a/pkg/models/stack_version_archive_processing_error.go +++ b/pkg/models/stack_version_archive_processing_error.go @@ -73,6 +73,8 @@ func (m *StackVersionArchiveProcessingError) validateErrors(formats strfmt.Regis if err := m.Errors.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors") } return err } @@ -110,6 +112,8 @@ func (m *StackVersionArchiveProcessingError) contextValidateErrors(ctx context.C if err := m.Errors.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors") } return err } diff --git a/pkg/models/stack_version_archive_processing_result.go b/pkg/models/stack_version_archive_processing_result.go index 6f2b0924..3d366035 100644 --- a/pkg/models/stack_version_archive_processing_result.go +++ b/pkg/models/stack_version_archive_processing_result.go @@ -79,6 +79,8 @@ func (m *StackVersionArchiveProcessingResult) validateErrors(formats strfmt.Regi if err := m.Errors[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *StackVersionArchiveProcessingResult) validateStacks(formats strfmt.Regi if err := m.Stacks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stacks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stacks" + "." + strconv.Itoa(i)) } return err } @@ -140,6 +144,8 @@ func (m *StackVersionArchiveProcessingResult) contextValidateErrors(ctx context. if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("errors" + "." + strconv.Itoa(i)) } return err } @@ -158,6 +164,8 @@ func (m *StackVersionArchiveProcessingResult) contextValidateStacks(ctx context. if err := m.Stacks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stacks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stacks" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_config.go b/pkg/models/stack_version_config.go index ff3716c1..b507aa38 100644 --- a/pkg/models/stack_version_config.go +++ b/pkg/models/stack_version_config.go @@ -134,6 +134,8 @@ func (m *StackVersionConfig) validateApm(formats strfmt.Registry) error { if err := m.Apm.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -151,6 +153,8 @@ func (m *StackVersionConfig) validateAppsearch(formats strfmt.Registry) error { if err := m.Appsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -169,6 +173,8 @@ func (m *StackVersionConfig) validateElasticsearch(formats strfmt.Registry) erro if err := m.Elasticsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -186,6 +192,8 @@ func (m *StackVersionConfig) validateEnterpriseSearch(formats strfmt.Registry) e if err := m.EnterpriseSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -204,6 +212,8 @@ func (m *StackVersionConfig) validateKibana(formats strfmt.Registry) error { if err := m.Kibana.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -221,6 +231,8 @@ func (m *StackVersionConfig) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -239,6 +251,8 @@ func (m *StackVersionConfig) validateTemplate(formats strfmt.Registry) error { if err := m.Template.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("template") } return err } @@ -308,6 +322,8 @@ func (m *StackVersionConfig) contextValidateApm(ctx context.Context, formats str if err := m.Apm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -322,6 +338,8 @@ func (m *StackVersionConfig) contextValidateAppsearch(ctx context.Context, forma if err := m.Appsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -345,6 +363,8 @@ func (m *StackVersionConfig) contextValidateElasticsearch(ctx context.Context, f if err := m.Elasticsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -359,6 +379,8 @@ func (m *StackVersionConfig) contextValidateEnterpriseSearch(ctx context.Context if err := m.EnterpriseSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -373,6 +395,8 @@ func (m *StackVersionConfig) contextValidateKibana(ctx context.Context, formats if err := m.Kibana.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -387,6 +411,8 @@ func (m *StackVersionConfig) contextValidateMetadata(ctx context.Context, format if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -401,6 +427,8 @@ func (m *StackVersionConfig) contextValidateTemplate(ctx context.Context, format if err := m.Template.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("template") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("template") } return err } diff --git a/pkg/models/stack_version_config_post.go b/pkg/models/stack_version_config_post.go index eb5b12f1..8698b4a3 100644 --- a/pkg/models/stack_version_config_post.go +++ b/pkg/models/stack_version_config_post.go @@ -107,6 +107,8 @@ func (m *StackVersionConfigPost) validateApm(formats strfmt.Registry) error { if err := m.Apm.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -124,6 +126,8 @@ func (m *StackVersionConfigPost) validateAppsearch(formats strfmt.Registry) erro if err := m.Appsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -142,6 +146,8 @@ func (m *StackVersionConfigPost) validateElasticsearch(formats strfmt.Registry) if err := m.Elasticsearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -159,6 +165,8 @@ func (m *StackVersionConfigPost) validateEnterpriseSearch(formats strfmt.Registr if err := m.EnterpriseSearch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -176,6 +184,8 @@ func (m *StackVersionConfigPost) validateIntegrationsServer(formats strfmt.Regis if err := m.IntegrationsServer.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -194,6 +204,8 @@ func (m *StackVersionConfigPost) validateKibana(formats strfmt.Registry) error { if err := m.Kibana.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -211,6 +223,8 @@ func (m *StackVersionConfigPost) validateMetadata(formats strfmt.Registry) error if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -263,6 +277,8 @@ func (m *StackVersionConfigPost) contextValidateApm(ctx context.Context, formats if err := m.Apm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm") } return err } @@ -277,6 +293,8 @@ func (m *StackVersionConfigPost) contextValidateAppsearch(ctx context.Context, f if err := m.Appsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch") } return err } @@ -291,6 +309,8 @@ func (m *StackVersionConfigPost) contextValidateElasticsearch(ctx context.Contex if err := m.Elasticsearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch") } return err } @@ -305,6 +325,8 @@ func (m *StackVersionConfigPost) contextValidateEnterpriseSearch(ctx context.Con if err := m.EnterpriseSearch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search") } return err } @@ -319,6 +341,8 @@ func (m *StackVersionConfigPost) contextValidateIntegrationsServer(ctx context.C if err := m.IntegrationsServer.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server") } return err } @@ -333,6 +357,8 @@ func (m *StackVersionConfigPost) contextValidateKibana(ctx context.Context, form if err := m.Kibana.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana") } return err } @@ -347,6 +373,8 @@ func (m *StackVersionConfigPost) contextValidateMetadata(ctx context.Context, fo if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/stack_version_configs.go b/pkg/models/stack_version_configs.go index ee689d26..4a7d135c 100644 --- a/pkg/models/stack_version_configs.go +++ b/pkg/models/stack_version_configs.go @@ -71,6 +71,8 @@ func (m *StackVersionConfigs) validateStacks(formats strfmt.Registry) error { if err := m.Stacks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stacks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stacks" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *StackVersionConfigs) contextValidateStacks(ctx context.Context, formats if err := m.Stacks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stacks" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stacks" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_elasticsearch_config.go b/pkg/models/stack_version_elasticsearch_config.go index a6d07350..fdcc436e 100644 --- a/pkg/models/stack_version_elasticsearch_config.go +++ b/pkg/models/stack_version_elasticsearch_config.go @@ -121,6 +121,8 @@ func (m *StackVersionElasticsearchConfig) validateCapacityConstraints(formats st if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -161,6 +163,8 @@ func (m *StackVersionElasticsearchConfig) validateNodeTypes(formats strfmt.Regis if err := m.NodeTypes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } @@ -204,6 +208,8 @@ func (m *StackVersionElasticsearchConfig) contextValidateCapacityConstraints(ctx if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -220,6 +226,8 @@ func (m *StackVersionElasticsearchConfig) contextValidateNodeTypes(ctx context.C if err := m.NodeTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_enterprise_search_config.go b/pkg/models/stack_version_enterprise_search_config.go index 020d7c8a..a236df5e 100644 --- a/pkg/models/stack_version_enterprise_search_config.go +++ b/pkg/models/stack_version_enterprise_search_config.go @@ -108,6 +108,8 @@ func (m *StackVersionEnterpriseSearchConfig) validateCapacityConstraints(formats if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -139,6 +141,8 @@ func (m *StackVersionEnterpriseSearchConfig) validateNodeTypes(formats strfmt.Re if err := m.NodeTypes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } @@ -173,6 +177,8 @@ func (m *StackVersionEnterpriseSearchConfig) contextValidateCapacityConstraints( if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -189,6 +195,8 @@ func (m *StackVersionEnterpriseSearchConfig) contextValidateNodeTypes(ctx contex if err := m.NodeTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("node_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("node_types" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/stack_version_integrations_server_config.go b/pkg/models/stack_version_integrations_server_config.go index 117b73d0..a43aab0f 100644 --- a/pkg/models/stack_version_integrations_server_config.go +++ b/pkg/models/stack_version_integrations_server_config.go @@ -100,6 +100,8 @@ func (m *StackVersionIntegrationsServerConfig) validateCapacityConstraints(forma if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -137,6 +139,8 @@ func (m *StackVersionIntegrationsServerConfig) contextValidateCapacityConstraint if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } diff --git a/pkg/models/stack_version_kibana_config.go b/pkg/models/stack_version_kibana_config.go index 802886c2..bd81db02 100644 --- a/pkg/models/stack_version_kibana_config.go +++ b/pkg/models/stack_version_kibana_config.go @@ -100,6 +100,8 @@ func (m *StackVersionKibanaConfig) validateCapacityConstraints(formats strfmt.Re if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -137,6 +139,8 @@ func (m *StackVersionKibanaConfig) contextValidateCapacityConstraints(ctx contex if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } diff --git a/pkg/models/stack_version_node_type.go b/pkg/models/stack_version_node_type.go index 8038f453..5d684491 100644 --- a/pkg/models/stack_version_node_type.go +++ b/pkg/models/stack_version_node_type.go @@ -99,6 +99,8 @@ func (m *StackVersionNodeType) validateCapacityConstraints(formats strfmt.Regist if err := m.CapacityConstraints.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } @@ -154,6 +156,8 @@ func (m *StackVersionNodeType) contextValidateCapacityConstraints(ctx context.Co if err := m.CapacityConstraints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capacity_constraints") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capacity_constraints") } return err } diff --git a/pkg/models/stack_version_template_info.go b/pkg/models/stack_version_template_info.go index e4f73aa9..3f42d342 100644 --- a/pkg/models/stack_version_template_info.go +++ b/pkg/models/stack_version_template_info.go @@ -74,6 +74,8 @@ func (m *StackVersionTemplateInfo) validateHashes(formats strfmt.Registry) error if err := m.Hashes[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hashes" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("hashes" + "." + strconv.Itoa(i)) } return err } @@ -114,6 +116,8 @@ func (m *StackVersionTemplateInfo) contextValidateHashes(ctx context.Context, fo if err := m.Hashes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hashes" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("hashes" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/target_elasticsearch_cluster.go b/pkg/models/target_elasticsearch_cluster.go index 80af96e0..e1f9430e 100644 --- a/pkg/models/target_elasticsearch_cluster.go +++ b/pkg/models/target_elasticsearch_cluster.go @@ -83,6 +83,11 @@ func (m *TargetElasticsearchCluster) validateLinks(formats strfmt.Registry) erro } if val, ok := m.Links[k]; ok { if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("links" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("links" + "." + k) + } return err } } diff --git a/pkg/models/tls_public_cert_chain.go b/pkg/models/tls_public_cert_chain.go index f6e24931..d1f15a2d 100644 --- a/pkg/models/tls_public_cert_chain.go +++ b/pkg/models/tls_public_cert_chain.go @@ -91,6 +91,8 @@ func (m *TLSPublicCertChain) validateChainStatus(formats strfmt.Registry) error if err := m.ChainStatus.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("chain_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("chain_status") } return err } @@ -128,6 +130,8 @@ func (m *TLSPublicCertChain) contextValidateChainStatus(ctx context.Context, for if err := m.ChainStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("chain_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("chain_status") } return err } diff --git a/pkg/models/topology_element_control.go b/pkg/models/topology_element_control.go index 29188e61..206cc1c8 100644 --- a/pkg/models/topology_element_control.go +++ b/pkg/models/topology_element_control.go @@ -65,6 +65,8 @@ func (m *TopologyElementControl) validateMin(formats strfmt.Registry) error { if err := m.Min.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("min") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("min") } return err } @@ -93,6 +95,8 @@ func (m *TopologyElementControl) contextValidateMin(ctx context.Context, formats if err := m.Min.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("min") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("min") } return err } diff --git a/pkg/models/traffic_filter_rule.go b/pkg/models/traffic_filter_rule.go index 53090511..062f4369 100644 --- a/pkg/models/traffic_filter_rule.go +++ b/pkg/models/traffic_filter_rule.go @@ -77,6 +77,8 @@ func (m *TrafficFilterRule) validateEgressRule(formats strfmt.Registry) error { if err := m.EgressRule.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("egress_rule") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("egress_rule") } return err } @@ -105,6 +107,8 @@ func (m *TrafficFilterRule) contextValidateEgressRule(ctx context.Context, forma if err := m.EgressRule.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("egress_rule") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("egress_rule") } return err } diff --git a/pkg/models/traffic_filter_ruleset_info.go b/pkg/models/traffic_filter_ruleset_info.go index 0e9323c6..2968bc4e 100644 --- a/pkg/models/traffic_filter_ruleset_info.go +++ b/pkg/models/traffic_filter_ruleset_info.go @@ -123,6 +123,8 @@ func (m *TrafficFilterRulesetInfo) validateAssociations(formats strfmt.Registry) if err := m.Associations[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associations" + "." + strconv.Itoa(i)) } return err } @@ -184,6 +186,8 @@ func (m *TrafficFilterRulesetInfo) validateRules(formats strfmt.Registry) error if err := m.Rules[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } @@ -229,6 +233,8 @@ func (m *TrafficFilterRulesetInfo) contextValidateAssociations(ctx context.Conte if err := m.Associations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("associations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("associations" + "." + strconv.Itoa(i)) } return err } @@ -247,6 +253,8 @@ func (m *TrafficFilterRulesetInfo) contextValidateRules(ctx context.Context, for if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/traffic_filter_ruleset_request.go b/pkg/models/traffic_filter_ruleset_request.go index 81261fd1..43c73cd2 100644 --- a/pkg/models/traffic_filter_ruleset_request.go +++ b/pkg/models/traffic_filter_ruleset_request.go @@ -133,6 +133,8 @@ func (m *TrafficFilterRulesetRequest) validateRules(formats strfmt.Registry) err if err := m.Rules[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } @@ -174,6 +176,8 @@ func (m *TrafficFilterRulesetRequest) contextValidateRules(ctx context.Context, if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rules" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/traffic_filter_rulesets.go b/pkg/models/traffic_filter_rulesets.go index aeee77d1..5bb5a70d 100644 --- a/pkg/models/traffic_filter_rulesets.go +++ b/pkg/models/traffic_filter_rulesets.go @@ -71,6 +71,8 @@ func (m *TrafficFilterRulesets) validateRulesets(formats strfmt.Registry) error if err := m.Rulesets[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rulesets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rulesets" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *TrafficFilterRulesets) contextValidateRulesets(ctx context.Context, for if err := m.Rulesets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rulesets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("rulesets" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/transient_apm_plan_configuration.go b/pkg/models/transient_apm_plan_configuration.go index f5a9471c..901ba318 100644 --- a/pkg/models/transient_apm_plan_configuration.go +++ b/pkg/models/transient_apm_plan_configuration.go @@ -69,6 +69,8 @@ func (m *TransientApmPlanConfiguration) validatePlanConfiguration(formats strfmt if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -86,6 +88,8 @@ func (m *TransientApmPlanConfiguration) validateStrategy(formats strfmt.Registry if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -118,6 +122,8 @@ func (m *TransientApmPlanConfiguration) contextValidatePlanConfiguration(ctx con if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -132,6 +138,8 @@ func (m *TransientApmPlanConfiguration) contextValidateStrategy(ctx context.Cont if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/transient_app_search_plan_configuration.go b/pkg/models/transient_app_search_plan_configuration.go index 15bfa06b..b7941e46 100644 --- a/pkg/models/transient_app_search_plan_configuration.go +++ b/pkg/models/transient_app_search_plan_configuration.go @@ -69,6 +69,8 @@ func (m *TransientAppSearchPlanConfiguration) validatePlanConfiguration(formats if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -86,6 +88,8 @@ func (m *TransientAppSearchPlanConfiguration) validateStrategy(formats strfmt.Re if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -118,6 +122,8 @@ func (m *TransientAppSearchPlanConfiguration) contextValidatePlanConfiguration(c if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -132,6 +138,8 @@ func (m *TransientAppSearchPlanConfiguration) contextValidateStrategy(ctx contex if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/transient_elasticsearch_plan_configuration.go b/pkg/models/transient_elasticsearch_plan_configuration.go index 7a53b90d..a98a5719 100644 --- a/pkg/models/transient_elasticsearch_plan_configuration.go +++ b/pkg/models/transient_elasticsearch_plan_configuration.go @@ -94,6 +94,8 @@ func (m *TransientElasticsearchPlanConfiguration) validatePlanConfiguration(form if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -111,6 +113,8 @@ func (m *TransientElasticsearchPlanConfiguration) validateRemoteClusters(formats if err := m.RemoteClusters.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("remote_clusters") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("remote_clusters") } return err } @@ -128,6 +132,8 @@ func (m *TransientElasticsearchPlanConfiguration) validateRestoreSnapshot(format if err := m.RestoreSnapshot.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restore_snapshot") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restore_snapshot") } return err } @@ -145,6 +151,8 @@ func (m *TransientElasticsearchPlanConfiguration) validateStrategy(formats strfm if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -185,6 +193,8 @@ func (m *TransientElasticsearchPlanConfiguration) contextValidatePlanConfigurati if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -199,6 +209,8 @@ func (m *TransientElasticsearchPlanConfiguration) contextValidateRemoteClusters( if err := m.RemoteClusters.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("remote_clusters") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("remote_clusters") } return err } @@ -213,6 +225,8 @@ func (m *TransientElasticsearchPlanConfiguration) contextValidateRestoreSnapshot if err := m.RestoreSnapshot.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restore_snapshot") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("restore_snapshot") } return err } @@ -227,6 +241,8 @@ func (m *TransientElasticsearchPlanConfiguration) contextValidateStrategy(ctx co if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/transient_enterprise_search_plan_configuration.go b/pkg/models/transient_enterprise_search_plan_configuration.go index 889fa81c..e3be52ba 100644 --- a/pkg/models/transient_enterprise_search_plan_configuration.go +++ b/pkg/models/transient_enterprise_search_plan_configuration.go @@ -69,6 +69,8 @@ func (m *TransientEnterpriseSearchPlanConfiguration) validatePlanConfiguration(f if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -86,6 +88,8 @@ func (m *TransientEnterpriseSearchPlanConfiguration) validateStrategy(formats st if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -118,6 +122,8 @@ func (m *TransientEnterpriseSearchPlanConfiguration) contextValidatePlanConfigur if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -132,6 +138,8 @@ func (m *TransientEnterpriseSearchPlanConfiguration) contextValidateStrategy(ctx if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/transient_integrations_server_plan_configuration.go b/pkg/models/transient_integrations_server_plan_configuration.go index b069ba3c..b48b46b7 100644 --- a/pkg/models/transient_integrations_server_plan_configuration.go +++ b/pkg/models/transient_integrations_server_plan_configuration.go @@ -69,6 +69,8 @@ func (m *TransientIntegrationsServerPlanConfiguration) validatePlanConfiguration if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -86,6 +88,8 @@ func (m *TransientIntegrationsServerPlanConfiguration) validateStrategy(formats if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -118,6 +122,8 @@ func (m *TransientIntegrationsServerPlanConfiguration) contextValidatePlanConfig if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -132,6 +138,8 @@ func (m *TransientIntegrationsServerPlanConfiguration) contextValidateStrategy(c if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/transient_kibana_plan_configuration.go b/pkg/models/transient_kibana_plan_configuration.go index 6d6ad044..9b34b279 100644 --- a/pkg/models/transient_kibana_plan_configuration.go +++ b/pkg/models/transient_kibana_plan_configuration.go @@ -69,6 +69,8 @@ func (m *TransientKibanaPlanConfiguration) validatePlanConfiguration(formats str if err := m.PlanConfiguration.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -86,6 +88,8 @@ func (m *TransientKibanaPlanConfiguration) validateStrategy(formats strfmt.Regis if err := m.Strategy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } @@ -118,6 +122,8 @@ func (m *TransientKibanaPlanConfiguration) contextValidatePlanConfiguration(ctx if err := m.PlanConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan_configuration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan_configuration") } return err } @@ -132,6 +138,8 @@ func (m *TransientKibanaPlanConfiguration) contextValidateStrategy(ctx context.C if err := m.Strategy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("strategy") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("strategy") } return err } diff --git a/pkg/models/trust_relationships_list_response.go b/pkg/models/trust_relationships_list_response.go index ab5ca5a3..11ca41c1 100644 --- a/pkg/models/trust_relationships_list_response.go +++ b/pkg/models/trust_relationships_list_response.go @@ -71,6 +71,8 @@ func (m *TrustRelationshipsListResponse) validateTrustRelationships(formats strf if err := m.TrustRelationships[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust_relationships" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust_relationships" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *TrustRelationshipsListResponse) contextValidateTrustRelationships(ctx c if err := m.TrustRelationships[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("trust_relationships" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trust_relationships" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/trusted_certificate.go b/pkg/models/trusted_certificate.go index 9bec884b..49727bd9 100644 --- a/pkg/models/trusted_certificate.go +++ b/pkg/models/trusted_certificate.go @@ -72,6 +72,8 @@ func (m *TrustedCertificate) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -109,6 +111,8 @@ func (m *TrustedCertificate) contextValidateMetadata(ctx context.Context, format if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } diff --git a/pkg/models/updates.go b/pkg/models/updates.go index 09120186..702480d4 100644 --- a/pkg/models/updates.go +++ b/pkg/models/updates.go @@ -103,6 +103,8 @@ func (m *Updates) validateApm(formats strfmt.Registry) error { if err := m.Apm[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +129,8 @@ func (m *Updates) validateAppsearch(formats strfmt.Registry) error { if err := m.Appsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -151,6 +155,8 @@ func (m *Updates) validateElasticsearch(formats strfmt.Registry) error { if err := m.Elasticsearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -175,6 +181,8 @@ func (m *Updates) validateEnterpriseSearch(formats strfmt.Registry) error { if err := m.EnterpriseSearch[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -199,6 +207,8 @@ func (m *Updates) validateIntegrationsServer(formats strfmt.Registry) error { if err := m.IntegrationsServer[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -223,6 +233,8 @@ func (m *Updates) validateKibana(formats strfmt.Registry) error { if err := m.Kibana[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +287,8 @@ func (m *Updates) contextValidateApm(ctx context.Context, formats strfmt.Registr if err := m.Apm[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apm" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apm" + "." + strconv.Itoa(i)) } return err } @@ -293,6 +307,8 @@ func (m *Updates) contextValidateAppsearch(ctx context.Context, formats strfmt.R if err := m.Appsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("appsearch" + "." + strconv.Itoa(i)) } return err } @@ -311,6 +327,8 @@ func (m *Updates) contextValidateElasticsearch(ctx context.Context, formats strf if err := m.Elasticsearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elasticsearch" + "." + strconv.Itoa(i)) } return err } @@ -329,6 +347,8 @@ func (m *Updates) contextValidateEnterpriseSearch(ctx context.Context, formats s if err := m.EnterpriseSearch[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("enterprise_search" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +367,8 @@ func (m *Updates) contextValidateIntegrationsServer(ctx context.Context, formats if err := m.IntegrationsServer[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrations_server" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations_server" + "." + strconv.Itoa(i)) } return err } @@ -365,6 +387,8 @@ func (m *Updates) contextValidateKibana(ctx context.Context, formats strfmt.Regi if err := m.Kibana[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kibana" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("kibana" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/user.go b/pkg/models/user.go index 49fc5840..7266b40a 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -88,6 +88,8 @@ func (m *User) validateMetadata(formats strfmt.Registry) error { if err := m.Metadata.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -106,6 +108,8 @@ func (m *User) validateSecurity(formats strfmt.Registry) error { if err := m.Security.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") } return err } @@ -147,6 +151,8 @@ func (m *User) contextValidateMetadata(ctx context.Context, formats strfmt.Regis if err := m.Metadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metadata") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("metadata") } return err } @@ -161,6 +167,8 @@ func (m *User) contextValidateSecurity(ctx context.Context, formats strfmt.Regis if err := m.Security.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") } return err } diff --git a/pkg/models/user_list.go b/pkg/models/user_list.go index 4ac42eb6..69befb59 100644 --- a/pkg/models/user_list.go +++ b/pkg/models/user_list.go @@ -71,6 +71,8 @@ func (m *UserList) validateUsers(formats strfmt.Registry) error { if err := m.Users[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *UserList) contextValidateUsers(ctx context.Context, formats strfmt.Regi if err := m.Users[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("users" + "." + strconv.Itoa(i)) } return err } diff --git a/pkg/models/user_security.go b/pkg/models/user_security.go index 200ad0d9..d138a20a 100644 --- a/pkg/models/user_security.go +++ b/pkg/models/user_security.go @@ -81,6 +81,8 @@ func (m *UserSecurity) validateElevatedPermissions(formats strfmt.Registry) erro if err := m.ElevatedPermissions.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elevated_permissions") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elevated_permissions") } return err } @@ -98,6 +100,8 @@ func (m *UserSecurity) validateSecurityRealm(formats strfmt.Registry) error { if err := m.SecurityRealm.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security_realm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security_realm") } return err } @@ -130,6 +134,8 @@ func (m *UserSecurity) contextValidateElevatedPermissions(ctx context.Context, f if err := m.ElevatedPermissions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("elevated_permissions") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("elevated_permissions") } return err } @@ -144,6 +150,8 @@ func (m *UserSecurity) contextValidateSecurityRealm(ctx context.Context, formats if err := m.SecurityRealm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("security_realm") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security_realm") } return err } diff --git a/pkg/models/zookeeper_summary.go b/pkg/models/zookeeper_summary.go index f9492351..40e7f135 100644 --- a/pkg/models/zookeeper_summary.go +++ b/pkg/models/zookeeper_summary.go @@ -71,6 +71,8 @@ func (m *ZookeeperSummary) validateStates(formats strfmt.Registry) error { if err := m.States[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("states" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("states" + "." + strconv.Itoa(i)) } return err } @@ -103,6 +105,8 @@ func (m *ZookeeperSummary) contextValidateStates(ctx context.Context, formats st if err := m.States[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("states" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("states" + "." + strconv.Itoa(i)) } return err } diff --git a/scripts/update-swagger.sh b/scripts/update-swagger.sh index 9ff25d9a..4e56a2c7 100755 --- a/scripts/update-swagger.sh +++ b/scripts/update-swagger.sh @@ -5,7 +5,7 @@ set -e SDK_PATH=$(pwd) BRANCH=${1} SWAGGER_DEF_PATH=scala-services/adminconsole/src/main/resources -GIT_CLOUD_REPO=https://github.com/elastic/cloud +GIT_CLOUD_REPO=git@github.com:elastic/cloud.git REPO_PATH=${2} if [[ -d ${REPO_PATH} ]]; then @@ -14,7 +14,7 @@ if [[ -d ${REPO_PATH} ]]; then git checkout ${BRANCH} git pull else - git clone --single-branch -b ${BRANCH} ${GIT_CLOUD_REPO} ${REPO_PATH} + git clone --depth 1 --single-branch -b ${BRANCH} ${GIT_CLOUD_REPO} ${REPO_PATH} fi cp ${REPO_PATH}/${SWAGGER_DEF_PATH}/apidocs.json ${SDK_PATH}/api/