From 616f262d0946a8a463c13d41acfbd233d2fbe725 Mon Sep 17 00:00:00 2001
From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Date: Tue, 26 Dec 2023 15:07:30 -0600
Subject: [PATCH] Rename restapi to api (#3176)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
---
.github/workflows/jobs.yaml | 154 +++++++++---------
.golangci.yml | 2 +-
CONTRIBUTING.md | 38 ++++-
Makefile | 16 +-
{restapi => api}/admin_arns.go | 6 +-
{restapi => api}/admin_arns_test.go | 6 +-
{restapi => api}/admin_client_mock.go | 2 +-
{restapi => api}/admin_config.go | 6 +-
{restapi => api}/admin_config_test.go | 2 +-
{restapi => api}/admin_console.go | 2 +-
{restapi => api}/admin_console_test.go | 2 +-
{restapi => api}/admin_groups.go | 6 +-
{restapi => api}/admin_groups_test.go | 2 +-
{restapi => api}/admin_heal.go | 2 +-
{restapi => api}/admin_heal_test.go | 2 +-
{restapi => api}/admin_health_info.go | 2 +-
{restapi => api}/admin_health_info_test.go | 2 +-
{restapi => api}/admin_idp.go | 6 +-
{restapi => api}/admin_idp_test.go | 6 +-
{restapi => api}/admin_info.go | 6 +-
{restapi => api}/admin_info_test.go | 6 +-
{restapi => api}/admin_inspect.go | 6 +-
{restapi => api}/admin_kms.go | 6 +-
{restapi => api}/admin_kms_test.go | 6 +-
{restapi => api}/admin_nodes.go | 6 +-
.../admin_notification_endpoints.go | 6 +-
.../admin_notification_endpoints_test.go | 4 +-
{restapi => api}/admin_objects.go | 2 +-
{restapi => api}/admin_objects_test.go | 2 +-
{restapi => api}/admin_policies.go | 10 +-
{restapi => api}/admin_policies_test.go | 2 +-
{restapi => api}/admin_profiling.go | 2 +-
{restapi => api}/admin_profiling_test.go | 2 +-
{restapi => api}/admin_releases.go | 6 +-
{restapi => api}/admin_releases_test.go | 6 +-
{restapi => api}/admin_remote_buckets.go | 6 +-
{restapi => api}/admin_remote_buckets_test.go | 6 +-
{restapi => api}/admin_replication_status.go | 6 +-
{restapi => api}/admin_service.go | 6 +-
{restapi => api}/admin_service_test.go | 2 +-
{restapi => api}/admin_site_replication.go | 6 +-
.../admin_site_replication_test.go | 2 +-
{restapi => api}/admin_speedtest.go | 2 +-
{restapi => api}/admin_subnet.go | 6 +-
{restapi => api}/admin_subnet_test.go | 6 +-
{restapi => api}/admin_tiers.go | 6 +-
{restapi => api}/admin_tiers_test.go | 4 +-
{restapi => api}/admin_trace.go | 2 +-
{restapi => api}/admin_trace_test.go | 2 +-
{restapi => api}/admin_users.go | 10 +-
{restapi => api}/admin_users_test.go | 2 +-
{restapi => api}/client-admin.go | 2 +-
{restapi => api}/client.go | 2 +-
{restapi => api}/client_test.go | 2 +-
{restapi => api}/config.go | 2 +-
{restapi => api}/config_test.go | 2 +-
{restapi => api}/configure_console.go | 4 +-
{restapi => api}/configure_console_test.go | 2 +-
{restapi => api}/consts.go | 2 +-
{restapi => api}/custom-server.go | 4 +-
{restapi => api}/doc.go | 4 +-
{restapi => api}/embedded_spec.go | 2 +-
{restapi => api}/errors.go | 2 +-
{restapi => api}/errors_test.go | 2 +-
{restapi => api}/license.go | 2 +-
{restapi => api}/logs.go | 4 +-
{restapi => api}/logs_test.go | 2 +-
.../account/account_change_password.go | 0
.../account_change_password_parameters.go | 0
.../account_change_password_responses.go | 0
.../account_change_password_urlbuilder.go | 0
.../account/change_user_password.go | 0
.../change_user_password_parameters.go | 0
.../account/change_user_password_responses.go | 0
.../change_user_password_urlbuilder.go | 0
{restapi => api}/operations/auth/login.go | 0
.../operations/auth/login_detail.go | 0
.../auth/login_detail_parameters.go | 0
.../operations/auth/login_detail_responses.go | 0
.../auth/login_detail_urlbuilder.go | 0
.../operations/auth/login_oauth2_auth.go | 0
.../auth/login_oauth2_auth_parameters.go | 0
.../auth/login_oauth2_auth_responses.go | 0
.../auth/login_oauth2_auth_urlbuilder.go | 0
.../operations/auth/login_parameters.go | 0
.../operations/auth/login_responses.go | 0
.../operations/auth/login_urlbuilder.go | 0
{restapi => api}/operations/auth/logout.go | 0
.../operations/auth/logout_parameters.go | 0
.../operations/auth/logout_responses.go | 0
.../operations/auth/logout_urlbuilder.go | 0
.../operations/auth/session_check.go | 0
.../auth/session_check_parameters.go | 0
.../auth/session_check_responses.go | 0
.../auth/session_check_urlbuilder.go | 0
.../operations/bucket/add_bucket_lifecycle.go | 0
.../bucket/add_bucket_lifecycle_parameters.go | 0
.../bucket/add_bucket_lifecycle_responses.go | 0
.../bucket/add_bucket_lifecycle_urlbuilder.go | 0
.../bucket/add_multi_bucket_lifecycle.go | 0
.../add_multi_bucket_lifecycle_parameters.go | 0
.../add_multi_bucket_lifecycle_responses.go | 0
.../add_multi_bucket_lifecycle_urlbuilder.go | 0
.../operations/bucket/add_remote_bucket.go | 0
.../bucket/add_remote_bucket_parameters.go | 0
.../bucket/add_remote_bucket_responses.go | 0
.../bucket/add_remote_bucket_urlbuilder.go | 0
.../operations/bucket/bucket_info.go | 0
.../bucket/bucket_info_parameters.go | 0
.../bucket/bucket_info_responses.go | 0
.../bucket/bucket_info_urlbuilder.go | 0
.../operations/bucket/bucket_set_policy.go | 0
.../bucket/bucket_set_policy_parameters.go | 0
.../bucket/bucket_set_policy_responses.go | 0
.../bucket/bucket_set_policy_urlbuilder.go | 0
.../operations/bucket/create_bucket_event.go | 0
.../bucket/create_bucket_event_parameters.go | 0
.../bucket/create_bucket_event_responses.go | 0
.../bucket/create_bucket_event_urlbuilder.go | 0
.../bucket/delete_access_rule_with_bucket.go | 0
...lete_access_rule_with_bucket_parameters.go | 0
...elete_access_rule_with_bucket_responses.go | 0
...lete_access_rule_with_bucket_urlbuilder.go | 0
.../bucket/delete_all_replication_rules.go | 0
...delete_all_replication_rules_parameters.go | 0
.../delete_all_replication_rules_responses.go | 0
...delete_all_replication_rules_urlbuilder.go | 0
.../operations/bucket/delete_bucket.go | 0
.../operations/bucket/delete_bucket_event.go | 0
.../bucket/delete_bucket_event_parameters.go | 0
.../bucket/delete_bucket_event_responses.go | 0
.../bucket/delete_bucket_event_urlbuilder.go | 0
.../bucket/delete_bucket_lifecycle_rule.go | 0
...delete_bucket_lifecycle_rule_parameters.go | 0
.../delete_bucket_lifecycle_rule_responses.go | 0
...delete_bucket_lifecycle_rule_urlbuilder.go | 0
.../bucket/delete_bucket_parameters.go | 0
.../bucket/delete_bucket_replication_rule.go | 0
...lete_bucket_replication_rule_parameters.go | 0
...elete_bucket_replication_rule_responses.go | 0
...lete_bucket_replication_rule_urlbuilder.go | 0
.../bucket/delete_bucket_responses.go | 0
.../bucket/delete_bucket_urlbuilder.go | 0
.../operations/bucket/delete_remote_bucket.go | 0
.../bucket/delete_remote_bucket_parameters.go | 0
.../bucket/delete_remote_bucket_responses.go | 0
.../bucket/delete_remote_bucket_urlbuilder.go | 0
.../delete_selected_replication_rules.go | 0
...e_selected_replication_rules_parameters.go | 0
...te_selected_replication_rules_responses.go | 0
...e_selected_replication_rules_urlbuilder.go | 0
.../bucket/disable_bucket_encryption.go | 0
.../disable_bucket_encryption_parameters.go | 0
.../disable_bucket_encryption_responses.go | 0
.../disable_bucket_encryption_urlbuilder.go | 0
.../bucket/enable_bucket_encryption.go | 0
.../enable_bucket_encryption_parameters.go | 0
.../enable_bucket_encryption_responses.go | 0
.../enable_bucket_encryption_urlbuilder.go | 0
.../bucket/get_bucket_encryption_info.go | 0
.../get_bucket_encryption_info_parameters.go | 0
.../get_bucket_encryption_info_responses.go | 0
.../get_bucket_encryption_info_urlbuilder.go | 0
.../operations/bucket/get_bucket_lifecycle.go | 0
.../bucket/get_bucket_lifecycle_parameters.go | 0
.../bucket/get_bucket_lifecycle_responses.go | 0
.../bucket/get_bucket_lifecycle_urlbuilder.go | 0
.../get_bucket_object_locking_status.go | 0
...bucket_object_locking_status_parameters.go | 0
..._bucket_object_locking_status_responses.go | 0
...bucket_object_locking_status_urlbuilder.go | 0
.../operations/bucket/get_bucket_quota.go | 0
.../bucket/get_bucket_quota_parameters.go | 0
.../bucket/get_bucket_quota_responses.go | 0
.../bucket/get_bucket_quota_urlbuilder.go | 0
.../bucket/get_bucket_replication.go | 0
.../get_bucket_replication_parameters.go | 0
.../get_bucket_replication_responses.go | 0
.../bucket/get_bucket_replication_rule.go | 0
.../get_bucket_replication_rule_parameters.go | 0
.../get_bucket_replication_rule_responses.go | 0
.../get_bucket_replication_rule_urlbuilder.go | 0
.../get_bucket_replication_urlbuilder.go | 0
.../bucket/get_bucket_retention_config.go | 0
.../get_bucket_retention_config_parameters.go | 0
.../get_bucket_retention_config_responses.go | 0
.../get_bucket_retention_config_urlbuilder.go | 0
.../operations/bucket/get_bucket_rewind.go | 0
.../bucket/get_bucket_rewind_parameters.go | 0
.../bucket/get_bucket_rewind_responses.go | 0
.../bucket/get_bucket_rewind_urlbuilder.go | 0
.../bucket/get_bucket_versioning.go | 0
.../get_bucket_versioning_parameters.go | 0
.../bucket/get_bucket_versioning_responses.go | 0
.../get_bucket_versioning_urlbuilder.go | 0
.../bucket/get_max_share_link_exp.go | 0
.../get_max_share_link_exp_parameters.go | 0
.../get_max_share_link_exp_responses.go | 0
.../get_max_share_link_exp_urlbuilder.go | 0
.../bucket/list_access_rules_with_bucket.go | 0
...ist_access_rules_with_bucket_parameters.go | 0
...list_access_rules_with_bucket_responses.go | 0
...ist_access_rules_with_bucket_urlbuilder.go | 0
.../operations/bucket/list_bucket_events.go | 0
.../bucket/list_bucket_events_parameters.go | 0
.../bucket/list_bucket_events_responses.go | 0
.../bucket/list_bucket_events_urlbuilder.go | 0
.../operations/bucket/list_buckets.go | 0
.../bucket/list_buckets_parameters.go | 0
.../bucket/list_buckets_responses.go | 0
.../bucket/list_buckets_urlbuilder.go | 0
.../bucket/list_external_buckets.go | 0
.../list_external_buckets_parameters.go | 0
.../bucket/list_external_buckets_responses.go | 0
.../list_external_buckets_urlbuilder.go | 0
.../bucket/list_policies_with_bucket.go | 0
.../list_policies_with_bucket_parameters.go | 0
.../list_policies_with_bucket_responses.go | 0
.../list_policies_with_bucket_urlbuilder.go | 0
.../operations/bucket/list_remote_buckets.go | 0
.../bucket/list_remote_buckets_parameters.go | 0
.../bucket/list_remote_buckets_responses.go | 0
.../bucket/list_remote_buckets_urlbuilder.go | 0
.../list_users_with_access_to_bucket.go | 0
..._users_with_access_to_bucket_parameters.go | 0
...t_users_with_access_to_bucket_responses.go | 0
..._users_with_access_to_bucket_urlbuilder.go | 0
.../operations/bucket/make_bucket.go | 0
.../bucket/make_bucket_parameters.go | 0
.../bucket/make_bucket_responses.go | 0
.../bucket/make_bucket_urlbuilder.go | 0
.../operations/bucket/put_bucket_tags.go | 0
.../bucket/put_bucket_tags_parameters.go | 0
.../bucket/put_bucket_tags_responses.go | 0
.../bucket/put_bucket_tags_urlbuilder.go | 0
.../bucket/remote_bucket_details.go | 0
.../remote_bucket_details_parameters.go | 0
.../bucket/remote_bucket_details_responses.go | 0
.../remote_bucket_details_urlbuilder.go | 0
.../bucket/set_access_rule_with_bucket.go | 0
.../set_access_rule_with_bucket_parameters.go | 0
.../set_access_rule_with_bucket_responses.go | 0
.../set_access_rule_with_bucket_urlbuilder.go | 0
.../operations/bucket/set_bucket_quota.go | 0
.../bucket/set_bucket_quota_parameters.go | 0
.../bucket/set_bucket_quota_responses.go | 0
.../bucket/set_bucket_quota_urlbuilder.go | 0
.../bucket/set_bucket_retention_config.go | 0
.../set_bucket_retention_config_parameters.go | 0
.../set_bucket_retention_config_responses.go | 0
.../set_bucket_retention_config_urlbuilder.go | 0
.../bucket/set_bucket_versioning.go | 0
.../set_bucket_versioning_parameters.go | 0
.../bucket/set_bucket_versioning_responses.go | 0
.../set_bucket_versioning_urlbuilder.go | 0
.../bucket/set_multi_bucket_replication.go | 0
...set_multi_bucket_replication_parameters.go | 0
.../set_multi_bucket_replication_responses.go | 0
...set_multi_bucket_replication_urlbuilder.go | 0
.../bucket/update_bucket_lifecycle.go | 0
.../update_bucket_lifecycle_parameters.go | 0
.../update_bucket_lifecycle_responses.go | 0
.../update_bucket_lifecycle_urlbuilder.go | 0
.../bucket/update_multi_bucket_replication.go | 0
...ate_multi_bucket_replication_parameters.go | 0
...date_multi_bucket_replication_responses.go | 0
...ate_multi_bucket_replication_urlbuilder.go | 0
.../add_notification_endpoint.go | 0
.../add_notification_endpoint_parameters.go | 0
.../add_notification_endpoint_responses.go | 0
.../add_notification_endpoint_urlbuilder.go | 0
.../operations/configuration/config_info.go | 0
.../configuration/config_info_parameters.go | 0
.../configuration/config_info_responses.go | 0
.../configuration/config_info_urlbuilder.go | 0
.../operations/configuration/export_config.go | 0
.../configuration/export_config_parameters.go | 0
.../configuration/export_config_responses.go | 0
.../configuration/export_config_urlbuilder.go | 0
.../operations/configuration/list_config.go | 0
.../configuration/list_config_parameters.go | 0
.../configuration/list_config_responses.go | 0
.../configuration/list_config_urlbuilder.go | 0
.../notification_endpoint_list.go | 0
.../notification_endpoint_list_parameters.go | 0
.../notification_endpoint_list_responses.go | 0
.../notification_endpoint_list_urlbuilder.go | 0
.../configuration/post_configs_import.go | 0
.../post_configs_import_parameters.go | 0
.../post_configs_import_responses.go | 0
.../post_configs_import_urlbuilder.go | 0
.../operations/configuration/reset_config.go | 0
.../configuration/reset_config_parameters.go | 0
.../configuration/reset_config_responses.go | 0
.../configuration/reset_config_urlbuilder.go | 0
.../operations/configuration/set_config.go | 0
.../configuration/set_config_parameters.go | 0
.../configuration/set_config_responses.go | 0
.../configuration/set_config_urlbuilder.go | 0
{restapi => api}/operations/console_api.go | 42 ++---
.../operations/group/add_group.go | 0
.../operations/group/add_group_parameters.go | 0
.../operations/group/add_group_responses.go | 0
.../operations/group/add_group_urlbuilder.go | 0
.../operations/group/group_info.go | 0
.../operations/group/group_info_parameters.go | 0
.../operations/group/group_info_responses.go | 0
.../operations/group/group_info_urlbuilder.go | 0
.../operations/group/list_groups.go | 0
.../group/list_groups_parameters.go | 0
.../operations/group/list_groups_responses.go | 0
.../group/list_groups_urlbuilder.go | 0
.../operations/group/remove_group.go | 0
.../group/remove_group_parameters.go | 0
.../group/remove_group_responses.go | 0
.../group/remove_group_urlbuilder.go | 0
.../operations/group/update_group.go | 0
.../group/update_group_parameters.go | 0
.../group/update_group_responses.go | 0
.../group/update_group_urlbuilder.go | 0
.../operations/idp/create_configuration.go | 0
.../idp/create_configuration_parameters.go | 0
.../idp/create_configuration_responses.go | 0
.../idp/create_configuration_urlbuilder.go | 0
.../operations/idp/delete_configuration.go | 0
.../idp/delete_configuration_parameters.go | 0
.../idp/delete_configuration_responses.go | 0
.../idp/delete_configuration_urlbuilder.go | 0
.../operations/idp/get_configuration.go | 0
.../idp/get_configuration_parameters.go | 0
.../idp/get_configuration_responses.go | 0
.../idp/get_configuration_urlbuilder.go | 0
.../operations/idp/get_l_d_a_p_entities.go | 0
.../idp/get_l_d_a_p_entities_parameters.go | 0
.../idp/get_l_d_a_p_entities_responses.go | 0
.../idp/get_l_d_a_p_entities_urlbuilder.go | 0
.../operations/idp/list_configurations.go | 0
.../idp/list_configurations_parameters.go | 0
.../idp/list_configurations_responses.go | 0
.../idp/list_configurations_urlbuilder.go | 0
.../operations/idp/update_configuration.go | 0
.../idp/update_configuration_parameters.go | 0
.../idp/update_configuration_responses.go | 0
.../idp/update_configuration_urlbuilder.go | 0
.../operations/inspect/inspect.go | 0
.../operations/inspect/inspect_parameters.go | 0
.../operations/inspect/inspect_responses.go | 0
.../operations/inspect/inspect_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_a_p_is.go | 0
.../k_m_s/k_m_s_a_p_is_parameters.go | 0
.../k_m_s/k_m_s_a_p_is_responses.go | 0
.../k_m_s/k_m_s_a_p_is_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_assign_policy.go | 0
.../k_m_s/k_m_s_assign_policy_parameters.go | 0
.../k_m_s/k_m_s_assign_policy_responses.go | 0
.../k_m_s/k_m_s_assign_policy_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_create_key.go | 0
.../k_m_s/k_m_s_create_key_parameters.go | 0
.../k_m_s/k_m_s_create_key_responses.go | 0
.../k_m_s/k_m_s_create_key_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_delete_identity.go | 0
.../k_m_s/k_m_s_delete_identity_parameters.go | 0
.../k_m_s/k_m_s_delete_identity_responses.go | 0
.../k_m_s/k_m_s_delete_identity_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_delete_key.go | 0
.../k_m_s/k_m_s_delete_key_parameters.go | 0
.../k_m_s/k_m_s_delete_key_responses.go | 0
.../k_m_s/k_m_s_delete_key_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_delete_policy.go | 0
.../k_m_s/k_m_s_delete_policy_parameters.go | 0
.../k_m_s/k_m_s_delete_policy_responses.go | 0
.../k_m_s/k_m_s_delete_policy_urlbuilder.go | 0
.../k_m_s/k_m_s_describe_identity.go | 0
.../k_m_s_describe_identity_parameters.go | 0
.../k_m_s_describe_identity_responses.go | 0
.../k_m_s_describe_identity_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_describe_policy.go | 0
.../k_m_s/k_m_s_describe_policy_parameters.go | 0
.../k_m_s/k_m_s_describe_policy_responses.go | 0
.../k_m_s/k_m_s_describe_policy_urlbuilder.go | 0
.../k_m_s/k_m_s_describe_self_identity.go | 0
...k_m_s_describe_self_identity_parameters.go | 0
.../k_m_s_describe_self_identity_responses.go | 0
...k_m_s_describe_self_identity_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_get_policy.go | 0
.../k_m_s/k_m_s_get_policy_parameters.go | 0
.../k_m_s/k_m_s_get_policy_responses.go | 0
.../k_m_s/k_m_s_get_policy_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_import_key.go | 0
.../k_m_s/k_m_s_import_key_parameters.go | 0
.../k_m_s/k_m_s_import_key_responses.go | 0
.../k_m_s/k_m_s_import_key_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_key_status.go | 0
.../k_m_s/k_m_s_key_status_parameters.go | 0
.../k_m_s/k_m_s_key_status_responses.go | 0
.../k_m_s/k_m_s_key_status_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_list_identities.go | 0
.../k_m_s/k_m_s_list_identities_parameters.go | 0
.../k_m_s/k_m_s_list_identities_responses.go | 0
.../k_m_s/k_m_s_list_identities_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_list_keys.go | 0
.../k_m_s/k_m_s_list_keys_parameters.go | 0
.../k_m_s/k_m_s_list_keys_responses.go | 0
.../k_m_s/k_m_s_list_keys_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_list_policies.go | 0
.../k_m_s/k_m_s_list_policies_parameters.go | 0
.../k_m_s/k_m_s_list_policies_responses.go | 0
.../k_m_s/k_m_s_list_policies_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_metrics.go | 0
.../k_m_s/k_m_s_metrics_parameters.go | 0
.../k_m_s/k_m_s_metrics_responses.go | 0
.../k_m_s/k_m_s_metrics_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_set_policy.go | 0
.../k_m_s/k_m_s_set_policy_parameters.go | 0
.../k_m_s/k_m_s_set_policy_responses.go | 0
.../k_m_s/k_m_s_set_policy_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_status.go | 0
.../k_m_s/k_m_s_status_parameters.go | 0
.../k_m_s/k_m_s_status_responses.go | 0
.../k_m_s/k_m_s_status_urlbuilder.go | 0
.../operations/k_m_s/k_m_s_version.go | 0
.../k_m_s/k_m_s_version_parameters.go | 0
.../k_m_s/k_m_s_version_responses.go | 0
.../k_m_s/k_m_s_version_urlbuilder.go | 0
.../operations/logging/log_search.go | 0
.../logging/log_search_parameters.go | 0
.../logging/log_search_responses.go | 0
.../logging/log_search_urlbuilder.go | 0
.../object/delete_multiple_objects.go | 0
.../delete_multiple_objects_parameters.go | 0
.../delete_multiple_objects_responses.go | 0
.../delete_multiple_objects_urlbuilder.go | 0
.../operations/object/delete_object.go | 0
.../object/delete_object_parameters.go | 0
.../object/delete_object_responses.go | 0
.../object/delete_object_retention.go | 0
.../delete_object_retention_parameters.go | 0
.../delete_object_retention_responses.go | 0
.../delete_object_retention_urlbuilder.go | 0
.../object/delete_object_urlbuilder.go | 0
.../object/download_multiple_objects.go | 0
.../download_multiple_objects_parameters.go | 0
.../download_multiple_objects_responses.go | 0
.../download_multiple_objects_urlbuilder.go | 0
.../operations/object/download_object.go | 0
.../object/download_object_parameters.go | 0
.../object/download_object_responses.go | 0
.../object/download_object_urlbuilder.go | 0
.../operations/object/get_object_metadata.go | 0
.../object/get_object_metadata_parameters.go | 0
.../object/get_object_metadata_responses.go | 0
.../object/get_object_metadata_urlbuilder.go | 0
.../operations/object/list_objects.go | 0
.../object/list_objects_parameters.go | 0
.../object/list_objects_responses.go | 0
.../object/list_objects_urlbuilder.go | 0
...post_buckets_bucket_name_objects_upload.go | 0
...s_bucket_name_objects_upload_parameters.go | 0
...ts_bucket_name_objects_upload_responses.go | 0
...s_bucket_name_objects_upload_urlbuilder.go | 0
.../object/put_object_legal_hold.go | 0
.../put_object_legal_hold_parameters.go | 0
.../object/put_object_legal_hold_responses.go | 0
.../put_object_legal_hold_urlbuilder.go | 0
.../operations/object/put_object_restore.go | 0
.../object/put_object_restore_parameters.go | 0
.../object/put_object_restore_responses.go | 0
.../object/put_object_restore_urlbuilder.go | 0
.../operations/object/put_object_retention.go | 0
.../object/put_object_retention_parameters.go | 0
.../object/put_object_retention_responses.go | 0
.../object/put_object_retention_urlbuilder.go | 0
.../operations/object/put_object_tags.go | 0
.../object/put_object_tags_parameters.go | 0
.../object/put_object_tags_responses.go | 0
.../object/put_object_tags_urlbuilder.go | 0
.../operations/object/share_object.go | 0
.../object/share_object_parameters.go | 0
.../object/share_object_responses.go | 0
.../object/share_object_urlbuilder.go | 0
.../operations/policy/add_policy.go | 0
.../policy/add_policy_parameters.go | 0
.../operations/policy/add_policy_responses.go | 0
.../policy/add_policy_urlbuilder.go | 0
.../operations/policy/get_s_a_user_policy.go | 0
.../policy/get_s_a_user_policy_parameters.go | 0
.../policy/get_s_a_user_policy_responses.go | 0
.../policy/get_s_a_user_policy_urlbuilder.go | 0
.../operations/policy/get_user_policy.go | 0
.../policy/get_user_policy_parameters.go | 0
.../policy/get_user_policy_responses.go | 0
.../policy/get_user_policy_urlbuilder.go | 0
.../policy/list_groups_for_policy.go | 0
.../list_groups_for_policy_parameters.go | 0
.../list_groups_for_policy_responses.go | 0
.../list_groups_for_policy_urlbuilder.go | 0
.../operations/policy/list_policies.go | 0
.../policy/list_policies_parameters.go | 0
.../policy/list_policies_responses.go | 0
.../policy/list_policies_urlbuilder.go | 0
.../policy/list_users_for_policy.go | 0
.../list_users_for_policy_parameters.go | 0
.../policy/list_users_for_policy_responses.go | 0
.../list_users_for_policy_urlbuilder.go | 0
.../operations/policy/policy_info.go | 0
.../policy/policy_info_parameters.go | 0
.../policy/policy_info_responses.go | 0
.../policy/policy_info_urlbuilder.go | 0
.../operations/policy/remove_policy.go | 0
.../policy/remove_policy_parameters.go | 0
.../policy/remove_policy_responses.go | 0
.../policy/remove_policy_urlbuilder.go | 0
.../operations/policy/set_policy.go | 0
.../operations/policy/set_policy_multiple.go | 0
.../policy/set_policy_multiple_parameters.go | 0
.../policy/set_policy_multiple_responses.go | 0
.../policy/set_policy_multiple_urlbuilder.go | 0
.../policy/set_policy_parameters.go | 0
.../operations/policy/set_policy_responses.go | 0
.../policy/set_policy_urlbuilder.go | 0
.../operations/profile/profiling_start.go | 0
.../profile/profiling_start_parameters.go | 0
.../profile/profiling_start_responses.go | 0
.../profile/profiling_start_urlbuilder.go | 0
.../operations/profile/profiling_stop.go | 0
.../profile/profiling_stop_parameters.go | 0
.../profile/profiling_stop_responses.go | 0
.../profile/profiling_stop_urlbuilder.go | 0
.../operations/release/list_releases.go | 0
.../release/list_releases_parameters.go | 0
.../release/list_releases_responses.go | 0
.../release/list_releases_urlbuilder.go | 0
.../operations/service/restart_service.go | 0
.../service/restart_service_parameters.go | 0
.../service/restart_service_responses.go | 0
.../service/restart_service_urlbuilder.go | 0
.../service_account/create_service_account.go | 0
.../create_service_account_creds.go | 0
...create_service_account_creds_parameters.go | 0
.../create_service_account_creds_responses.go | 0
...create_service_account_creds_urlbuilder.go | 0
.../create_service_account_parameters.go | 0
.../create_service_account_responses.go | 0
.../create_service_account_urlbuilder.go | 0
.../delete_multiple_service_accounts.go | 0
...te_multiple_service_accounts_parameters.go | 0
...ete_multiple_service_accounts_responses.go | 0
...te_multiple_service_accounts_urlbuilder.go | 0
.../service_account/delete_service_account.go | 0
.../delete_service_account_parameters.go | 0
.../delete_service_account_responses.go | 0
.../delete_service_account_urlbuilder.go | 0
.../service_account/get_service_account.go | 0
.../get_service_account_parameters.go | 0
.../get_service_account_responses.go | 0
.../get_service_account_urlbuilder.go | 0
.../list_user_service_accounts.go | 0
.../list_user_service_accounts_parameters.go | 0
.../list_user_service_accounts_responses.go | 0
.../list_user_service_accounts_urlbuilder.go | 0
.../service_account/update_service_account.go | 0
.../update_service_account_parameters.go | 0
.../update_service_account_responses.go | 0
.../update_service_account_urlbuilder.go | 0
.../get_site_replication_info.go | 0
.../get_site_replication_info_parameters.go | 0
.../get_site_replication_info_responses.go | 0
.../get_site_replication_info_urlbuilder.go | 0
.../get_site_replication_status.go | 0
.../get_site_replication_status_parameters.go | 0
.../get_site_replication_status_responses.go | 0
.../get_site_replication_status_urlbuilder.go | 0
.../site_replication/site_replication_edit.go | 0
.../site_replication_edit_parameters.go | 0
.../site_replication_edit_responses.go | 0
.../site_replication_edit_urlbuilder.go | 0
.../site_replication_info_add.go | 0
.../site_replication_info_add_parameters.go | 0
.../site_replication_info_add_responses.go | 0
.../site_replication_info_add_urlbuilder.go | 0
.../site_replication_remove.go | 0
.../site_replication_remove_parameters.go | 0
.../site_replication_remove_responses.go | 0
.../site_replication_remove_urlbuilder.go | 0
.../operations/subnet/subnet_api_key.go | 0
.../subnet/subnet_api_key_parameters.go | 0
.../subnet/subnet_api_key_responses.go | 0
.../subnet/subnet_api_key_urlbuilder.go | 0
.../operations/subnet/subnet_info.go | 0
.../subnet/subnet_info_parameters.go | 0
.../subnet/subnet_info_responses.go | 0
.../subnet/subnet_info_urlbuilder.go | 0
.../operations/subnet/subnet_login.go | 0
.../operations/subnet/subnet_login_m_f_a.go | 0
.../subnet/subnet_login_m_f_a_parameters.go | 0
.../subnet/subnet_login_m_f_a_responses.go | 0
.../subnet/subnet_login_m_f_a_urlbuilder.go | 0
.../subnet/subnet_login_parameters.go | 0
.../subnet/subnet_login_responses.go | 0
.../subnet/subnet_login_urlbuilder.go | 0
.../operations/subnet/subnet_reg_token.go | 0
.../subnet/subnet_reg_token_parameters.go | 0
.../subnet/subnet_reg_token_responses.go | 0
.../subnet/subnet_reg_token_urlbuilder.go | 0
.../operations/subnet/subnet_register.go | 0
.../subnet/subnet_register_parameters.go | 0
.../subnet/subnet_register_responses.go | 0
.../subnet/subnet_register_urlbuilder.go | 0
.../support/get_call_home_option_value.go | 0
.../get_call_home_option_value_parameters.go | 0
.../get_call_home_option_value_responses.go | 0
.../get_call_home_option_value_urlbuilder.go | 0
.../support/set_call_home_status.go | 0
.../set_call_home_status_parameters.go | 0
.../support/set_call_home_status_responses.go | 0
.../set_call_home_status_urlbuilder.go | 0
.../operations/system/admin_info.go | 0
.../system/admin_info_parameters.go | 0
.../operations/system/admin_info_responses.go | 0
.../system/admin_info_urlbuilder.go | 0
.../operations/system/arn_list.go | 0
.../operations/system/arn_list_parameters.go | 0
.../operations/system/arn_list_responses.go | 0
.../operations/system/arn_list_urlbuilder.go | 0
.../system/dashboard_widget_details.go | 0
.../dashboard_widget_details_parameters.go | 0
.../dashboard_widget_details_responses.go | 0
.../dashboard_widget_details_urlbuilder.go | 0
.../operations/system/list_nodes.go | 0
.../system/list_nodes_parameters.go | 0
.../operations/system/list_nodes_responses.go | 0
.../system/list_nodes_urlbuilder.go | 0
.../operations/tiering/add_tier.go | 0
.../operations/tiering/add_tier_parameters.go | 0
.../operations/tiering/add_tier_responses.go | 0
.../operations/tiering/add_tier_urlbuilder.go | 0
.../tiering/edit_tier_credentials.go | 0
.../edit_tier_credentials_parameters.go | 0
.../edit_tier_credentials_responses.go | 0
.../edit_tier_credentials_urlbuilder.go | 0
.../operations/tiering/get_tier.go | 0
.../operations/tiering/get_tier_parameters.go | 0
.../operations/tiering/get_tier_responses.go | 0
.../operations/tiering/get_tier_urlbuilder.go | 0
.../operations/tiering/tiers_list.go | 0
.../tiering/tiers_list_parameters.go | 0
.../tiering/tiers_list_responses.go | 0
.../tiering/tiers_list_urlbuilder.go | 0
{restapi => api}/operations/user/add_user.go | 0
.../operations/user/add_user_parameters.go | 0
.../operations/user/add_user_responses.go | 0
.../operations/user/add_user_urlbuilder.go | 0
.../user/bulk_update_users_groups.go | 0
.../bulk_update_users_groups_parameters.go | 0
.../bulk_update_users_groups_responses.go | 0
.../bulk_update_users_groups_urlbuilder.go | 0
.../user/check_user_service_accounts.go | 0
.../check_user_service_accounts_parameters.go | 0
.../check_user_service_accounts_responses.go | 0
.../check_user_service_accounts_urlbuilder.go | 0
.../user/create_a_user_service_account.go | 0
...reate_a_user_service_account_parameters.go | 0
...create_a_user_service_account_responses.go | 0
...reate_a_user_service_account_urlbuilder.go | 0
.../create_service_account_credentials.go | 0
..._service_account_credentials_parameters.go | 0
...e_service_account_credentials_responses.go | 0
..._service_account_credentials_urlbuilder.go | 0
.../operations/user/get_user_info.go | 0
.../user/get_user_info_parameters.go | 0
.../user/get_user_info_responses.go | 0
.../user/get_user_info_urlbuilder.go | 0
.../user/list_a_user_service_accounts.go | 0
...list_a_user_service_accounts_parameters.go | 0
.../list_a_user_service_accounts_responses.go | 0
...list_a_user_service_accounts_urlbuilder.go | 0
.../operations/user/list_users.go | 0
.../operations/user/list_users_parameters.go | 0
.../operations/user/list_users_responses.go | 0
.../operations/user/list_users_urlbuilder.go | 0
.../operations/user/remove_user.go | 0
.../operations/user/remove_user_parameters.go | 0
.../operations/user/remove_user_responses.go | 0
.../operations/user/remove_user_urlbuilder.go | 0
.../operations/user/update_user_groups.go | 0
.../user/update_user_groups_parameters.go | 0
.../user/update_user_groups_responses.go | 0
.../user/update_user_groups_urlbuilder.go | 0
.../operations/user/update_user_info.go | 0
.../user/update_user_info_parameters.go | 0
.../user/update_user_info_responses.go | 0
.../user/update_user_info_urlbuilder.go | 0
{restapi => api}/policy/policies.go | 0
{restapi => api}/policy/policies_test.go | 0
{restapi => api}/server.go | 4 +-
{restapi => api}/service_accounts_handlers.go | 8 +-
.../service_accounts_handlers_test.go | 2 +-
{restapi => api}/tls.go | 2 +-
{restapi => api}/user_account.go | 8 +-
{restapi => api}/user_account_test.go | 4 +-
{restapi => api}/user_bucket_quota.go | 6 +-
{restapi => api}/user_buckets.go | 6 +-
{restapi => api}/user_buckets_events.go | 6 +-
{restapi => api}/user_buckets_events_test.go | 2 +-
{restapi => api}/user_buckets_lifecycle.go | 6 +-
.../user_buckets_lifecycle_test.go | 4 +-
{restapi => api}/user_buckets_test.go | 2 +-
{restapi => api}/user_log_search.go | 6 +-
{restapi => api}/user_log_search_test.go | 2 +-
{restapi => api}/user_login.go | 6 +-
{restapi => api}/user_login_test.go | 2 +-
{restapi => api}/user_logout.go | 6 +-
{restapi => api}/user_logout_test.go | 2 +-
{restapi => api}/user_objects.go | 6 +-
{restapi => api}/user_objects_test.go | 4 +-
{restapi => api}/user_session.go | 8 +-
{restapi => api}/user_session_test.go | 2 +-
{restapi => api}/user_support.go | 6 +-
{restapi => api}/user_support_test.go | 2 +-
{restapi => api}/user_watch.go | 2 +-
{restapi => api}/user_watch_test.go | 2 +-
{restapi => api}/utils.go | 2 +-
{restapi => api}/utils_test.go | 2 +-
{restapi => api}/ws_handle.go | 2 +-
{restapi => api}/ws_handle_test.go | 2 +-
{restapi => api}/ws_objects.go | 2 +-
cmd/console/app_commands.go | 30 ++--
cmd/console/server.go | 38 ++---
integration/buckets_test.go | 24 +--
.../static/js/6686.01ae5612.chunk.js.map | 2 +-
.../Console/EventDestinations/utils.ts | 2 +-
replication/replication_test.go | 24 +--
sso-integration/sso_test.go | 24 +--
733 files changed, 396 insertions(+), 372 deletions(-)
rename {restapi => api}/admin_arns.go (94%)
rename {restapi => api}/admin_arns_test.go (96%)
rename {restapi => api}/admin_client_mock.go (99%)
rename {restapi => api}/admin_config.go (98%)
rename {restapi => api}/admin_config_test.go (99%)
rename {restapi => api}/admin_console.go (99%)
rename {restapi => api}/admin_console_test.go (99%)
rename {restapi => api}/admin_groups.go (98%)
rename {restapi => api}/admin_groups_test.go (99%)
rename {restapi => api}/admin_heal.go (99%)
rename {restapi => api}/admin_heal_test.go (99%)
rename {restapi => api}/admin_health_info.go (99%)
rename {restapi => api}/admin_health_info_test.go (99%)
rename {restapi => api}/admin_idp.go (98%)
rename {restapi => api}/admin_idp_test.go (98%)
rename {restapi => api}/admin_info.go (99%)
rename {restapi => api}/admin_info_test.go (97%)
rename {restapi => api}/admin_inspect.go (97%)
rename {restapi => api}/admin_kms.go (99%)
rename {restapi => api}/admin_kms_test.go (99%)
rename {restapi => api}/admin_nodes.go (93%)
rename {restapi => api}/admin_notification_endpoints.go (97%)
rename {restapi => api}/admin_notification_endpoints_test.go (99%)
rename {restapi => api}/admin_objects.go (99%)
rename {restapi => api}/admin_objects_test.go (99%)
rename {restapi => api}/admin_policies.go (99%)
rename {restapi => api}/admin_policies_test.go (99%)
rename {restapi => api}/admin_profiling.go (99%)
rename {restapi => api}/admin_profiling_test.go (99%)
rename {restapi => api}/admin_releases.go (96%)
rename {restapi => api}/admin_releases_test.go (95%)
rename {restapi => api}/admin_remote_buckets.go (99%)
rename {restapi => api}/admin_remote_buckets_test.go (99%)
rename {restapi => api}/admin_replication_status.go (95%)
rename {restapi => api}/admin_service.go (95%)
rename {restapi => api}/admin_service_test.go (99%)
rename {restapi => api}/admin_site_replication.go (98%)
rename {restapi => api}/admin_site_replication_test.go (99%)
rename {restapi => api}/admin_speedtest.go (99%)
rename {restapi => api}/admin_subnet.go (99%)
rename {restapi => api}/admin_subnet_test.go (98%)
rename {restapi => api}/admin_tiers.go (99%)
rename {restapi => api}/admin_tiers_test.go (98%)
rename {restapi => api}/admin_trace.go (99%)
rename {restapi => api}/admin_trace_test.go (99%)
rename {restapi => api}/admin_users.go (98%)
rename {restapi => api}/admin_users_test.go (99%)
rename {restapi => api}/client-admin.go (99%)
rename {restapi => api}/client.go (99%)
rename {restapi => api}/client_test.go (99%)
rename {restapi => api}/config.go (99%)
rename {restapi => api}/config_test.go (99%)
rename {restapi => api}/configure_console.go (99%)
rename {restapi => api}/configure_console_test.go (99%)
rename {restapi => api}/consts.go (99%)
rename {restapi => api}/custom-server.go (99%)
rename {restapi => api}/doc.go (95%)
rename {restapi => api}/embedded_spec.go (99%)
rename {restapi => api}/errors.go (99%)
rename {restapi => api}/errors_test.go (99%)
rename {restapi => api}/license.go (98%)
rename {restapi => api}/logs.go (96%)
rename {restapi => api}/logs_test.go (99%)
rename {restapi => api}/operations/account/account_change_password.go (100%)
rename {restapi => api}/operations/account/account_change_password_parameters.go (100%)
rename {restapi => api}/operations/account/account_change_password_responses.go (100%)
rename {restapi => api}/operations/account/account_change_password_urlbuilder.go (100%)
rename {restapi => api}/operations/account/change_user_password.go (100%)
rename {restapi => api}/operations/account/change_user_password_parameters.go (100%)
rename {restapi => api}/operations/account/change_user_password_responses.go (100%)
rename {restapi => api}/operations/account/change_user_password_urlbuilder.go (100%)
rename {restapi => api}/operations/auth/login.go (100%)
rename {restapi => api}/operations/auth/login_detail.go (100%)
rename {restapi => api}/operations/auth/login_detail_parameters.go (100%)
rename {restapi => api}/operations/auth/login_detail_responses.go (100%)
rename {restapi => api}/operations/auth/login_detail_urlbuilder.go (100%)
rename {restapi => api}/operations/auth/login_oauth2_auth.go (100%)
rename {restapi => api}/operations/auth/login_oauth2_auth_parameters.go (100%)
rename {restapi => api}/operations/auth/login_oauth2_auth_responses.go (100%)
rename {restapi => api}/operations/auth/login_oauth2_auth_urlbuilder.go (100%)
rename {restapi => api}/operations/auth/login_parameters.go (100%)
rename {restapi => api}/operations/auth/login_responses.go (100%)
rename {restapi => api}/operations/auth/login_urlbuilder.go (100%)
rename {restapi => api}/operations/auth/logout.go (100%)
rename {restapi => api}/operations/auth/logout_parameters.go (100%)
rename {restapi => api}/operations/auth/logout_responses.go (100%)
rename {restapi => api}/operations/auth/logout_urlbuilder.go (100%)
rename {restapi => api}/operations/auth/session_check.go (100%)
rename {restapi => api}/operations/auth/session_check_parameters.go (100%)
rename {restapi => api}/operations/auth/session_check_responses.go (100%)
rename {restapi => api}/operations/auth/session_check_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/add_bucket_lifecycle.go (100%)
rename {restapi => api}/operations/bucket/add_bucket_lifecycle_parameters.go (100%)
rename {restapi => api}/operations/bucket/add_bucket_lifecycle_responses.go (100%)
rename {restapi => api}/operations/bucket/add_bucket_lifecycle_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/add_multi_bucket_lifecycle.go (100%)
rename {restapi => api}/operations/bucket/add_multi_bucket_lifecycle_parameters.go (100%)
rename {restapi => api}/operations/bucket/add_multi_bucket_lifecycle_responses.go (100%)
rename {restapi => api}/operations/bucket/add_multi_bucket_lifecycle_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/add_remote_bucket.go (100%)
rename {restapi => api}/operations/bucket/add_remote_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/add_remote_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/add_remote_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/bucket_info.go (100%)
rename {restapi => api}/operations/bucket/bucket_info_parameters.go (100%)
rename {restapi => api}/operations/bucket/bucket_info_responses.go (100%)
rename {restapi => api}/operations/bucket/bucket_info_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/bucket_set_policy.go (100%)
rename {restapi => api}/operations/bucket/bucket_set_policy_parameters.go (100%)
rename {restapi => api}/operations/bucket/bucket_set_policy_responses.go (100%)
rename {restapi => api}/operations/bucket/bucket_set_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/create_bucket_event.go (100%)
rename {restapi => api}/operations/bucket/create_bucket_event_parameters.go (100%)
rename {restapi => api}/operations/bucket/create_bucket_event_responses.go (100%)
rename {restapi => api}/operations/bucket/create_bucket_event_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_access_rule_with_bucket.go (100%)
rename {restapi => api}/operations/bucket/delete_access_rule_with_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_access_rule_with_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_access_rule_with_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_all_replication_rules.go (100%)
rename {restapi => api}/operations/bucket/delete_all_replication_rules_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_all_replication_rules_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_all_replication_rules_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_event.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_event_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_event_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_event_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_lifecycle_rule.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_lifecycle_rule_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_lifecycle_rule_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_lifecycle_rule_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_replication_rule.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_replication_rule_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_replication_rule_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_replication_rule_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_remote_bucket.go (100%)
rename {restapi => api}/operations/bucket/delete_remote_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_remote_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_remote_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/delete_selected_replication_rules.go (100%)
rename {restapi => api}/operations/bucket/delete_selected_replication_rules_parameters.go (100%)
rename {restapi => api}/operations/bucket/delete_selected_replication_rules_responses.go (100%)
rename {restapi => api}/operations/bucket/delete_selected_replication_rules_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/disable_bucket_encryption.go (100%)
rename {restapi => api}/operations/bucket/disable_bucket_encryption_parameters.go (100%)
rename {restapi => api}/operations/bucket/disable_bucket_encryption_responses.go (100%)
rename {restapi => api}/operations/bucket/disable_bucket_encryption_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/enable_bucket_encryption.go (100%)
rename {restapi => api}/operations/bucket/enable_bucket_encryption_parameters.go (100%)
rename {restapi => api}/operations/bucket/enable_bucket_encryption_responses.go (100%)
rename {restapi => api}/operations/bucket/enable_bucket_encryption_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_encryption_info.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_encryption_info_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_encryption_info_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_encryption_info_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_lifecycle.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_lifecycle_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_lifecycle_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_lifecycle_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_object_locking_status.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_object_locking_status_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_object_locking_status_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_object_locking_status_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_quota.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_quota_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_quota_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_quota_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_rule.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_rule_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_rule_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_rule_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_replication_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_retention_config.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_retention_config_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_retention_config_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_retention_config_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_rewind.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_rewind_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_rewind_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_rewind_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_versioning.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_versioning_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_versioning_responses.go (100%)
rename {restapi => api}/operations/bucket/get_bucket_versioning_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/get_max_share_link_exp.go (100%)
rename {restapi => api}/operations/bucket/get_max_share_link_exp_parameters.go (100%)
rename {restapi => api}/operations/bucket/get_max_share_link_exp_responses.go (100%)
rename {restapi => api}/operations/bucket/get_max_share_link_exp_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_access_rules_with_bucket.go (100%)
rename {restapi => api}/operations/bucket/list_access_rules_with_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_access_rules_with_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/list_access_rules_with_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_bucket_events.go (100%)
rename {restapi => api}/operations/bucket/list_bucket_events_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_bucket_events_responses.go (100%)
rename {restapi => api}/operations/bucket/list_bucket_events_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_buckets.go (100%)
rename {restapi => api}/operations/bucket/list_buckets_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_buckets_responses.go (100%)
rename {restapi => api}/operations/bucket/list_buckets_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_external_buckets.go (100%)
rename {restapi => api}/operations/bucket/list_external_buckets_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_external_buckets_responses.go (100%)
rename {restapi => api}/operations/bucket/list_external_buckets_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_policies_with_bucket.go (100%)
rename {restapi => api}/operations/bucket/list_policies_with_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_policies_with_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/list_policies_with_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_remote_buckets.go (100%)
rename {restapi => api}/operations/bucket/list_remote_buckets_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_remote_buckets_responses.go (100%)
rename {restapi => api}/operations/bucket/list_remote_buckets_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/list_users_with_access_to_bucket.go (100%)
rename {restapi => api}/operations/bucket/list_users_with_access_to_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/list_users_with_access_to_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/list_users_with_access_to_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/make_bucket.go (100%)
rename {restapi => api}/operations/bucket/make_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/make_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/make_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/put_bucket_tags.go (100%)
rename {restapi => api}/operations/bucket/put_bucket_tags_parameters.go (100%)
rename {restapi => api}/operations/bucket/put_bucket_tags_responses.go (100%)
rename {restapi => api}/operations/bucket/put_bucket_tags_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/remote_bucket_details.go (100%)
rename {restapi => api}/operations/bucket/remote_bucket_details_parameters.go (100%)
rename {restapi => api}/operations/bucket/remote_bucket_details_responses.go (100%)
rename {restapi => api}/operations/bucket/remote_bucket_details_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/set_access_rule_with_bucket.go (100%)
rename {restapi => api}/operations/bucket/set_access_rule_with_bucket_parameters.go (100%)
rename {restapi => api}/operations/bucket/set_access_rule_with_bucket_responses.go (100%)
rename {restapi => api}/operations/bucket/set_access_rule_with_bucket_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_quota.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_quota_parameters.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_quota_responses.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_quota_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_retention_config.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_retention_config_parameters.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_retention_config_responses.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_retention_config_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_versioning.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_versioning_parameters.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_versioning_responses.go (100%)
rename {restapi => api}/operations/bucket/set_bucket_versioning_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/set_multi_bucket_replication.go (100%)
rename {restapi => api}/operations/bucket/set_multi_bucket_replication_parameters.go (100%)
rename {restapi => api}/operations/bucket/set_multi_bucket_replication_responses.go (100%)
rename {restapi => api}/operations/bucket/set_multi_bucket_replication_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/update_bucket_lifecycle.go (100%)
rename {restapi => api}/operations/bucket/update_bucket_lifecycle_parameters.go (100%)
rename {restapi => api}/operations/bucket/update_bucket_lifecycle_responses.go (100%)
rename {restapi => api}/operations/bucket/update_bucket_lifecycle_urlbuilder.go (100%)
rename {restapi => api}/operations/bucket/update_multi_bucket_replication.go (100%)
rename {restapi => api}/operations/bucket/update_multi_bucket_replication_parameters.go (100%)
rename {restapi => api}/operations/bucket/update_multi_bucket_replication_responses.go (100%)
rename {restapi => api}/operations/bucket/update_multi_bucket_replication_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/add_notification_endpoint.go (100%)
rename {restapi => api}/operations/configuration/add_notification_endpoint_parameters.go (100%)
rename {restapi => api}/operations/configuration/add_notification_endpoint_responses.go (100%)
rename {restapi => api}/operations/configuration/add_notification_endpoint_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/config_info.go (100%)
rename {restapi => api}/operations/configuration/config_info_parameters.go (100%)
rename {restapi => api}/operations/configuration/config_info_responses.go (100%)
rename {restapi => api}/operations/configuration/config_info_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/export_config.go (100%)
rename {restapi => api}/operations/configuration/export_config_parameters.go (100%)
rename {restapi => api}/operations/configuration/export_config_responses.go (100%)
rename {restapi => api}/operations/configuration/export_config_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/list_config.go (100%)
rename {restapi => api}/operations/configuration/list_config_parameters.go (100%)
rename {restapi => api}/operations/configuration/list_config_responses.go (100%)
rename {restapi => api}/operations/configuration/list_config_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/notification_endpoint_list.go (100%)
rename {restapi => api}/operations/configuration/notification_endpoint_list_parameters.go (100%)
rename {restapi => api}/operations/configuration/notification_endpoint_list_responses.go (100%)
rename {restapi => api}/operations/configuration/notification_endpoint_list_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/post_configs_import.go (100%)
rename {restapi => api}/operations/configuration/post_configs_import_parameters.go (100%)
rename {restapi => api}/operations/configuration/post_configs_import_responses.go (100%)
rename {restapi => api}/operations/configuration/post_configs_import_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/reset_config.go (100%)
rename {restapi => api}/operations/configuration/reset_config_parameters.go (100%)
rename {restapi => api}/operations/configuration/reset_config_responses.go (100%)
rename {restapi => api}/operations/configuration/reset_config_urlbuilder.go (100%)
rename {restapi => api}/operations/configuration/set_config.go (100%)
rename {restapi => api}/operations/configuration/set_config_parameters.go (100%)
rename {restapi => api}/operations/configuration/set_config_responses.go (100%)
rename {restapi => api}/operations/configuration/set_config_urlbuilder.go (100%)
rename {restapi => api}/operations/console_api.go (99%)
rename {restapi => api}/operations/group/add_group.go (100%)
rename {restapi => api}/operations/group/add_group_parameters.go (100%)
rename {restapi => api}/operations/group/add_group_responses.go (100%)
rename {restapi => api}/operations/group/add_group_urlbuilder.go (100%)
rename {restapi => api}/operations/group/group_info.go (100%)
rename {restapi => api}/operations/group/group_info_parameters.go (100%)
rename {restapi => api}/operations/group/group_info_responses.go (100%)
rename {restapi => api}/operations/group/group_info_urlbuilder.go (100%)
rename {restapi => api}/operations/group/list_groups.go (100%)
rename {restapi => api}/operations/group/list_groups_parameters.go (100%)
rename {restapi => api}/operations/group/list_groups_responses.go (100%)
rename {restapi => api}/operations/group/list_groups_urlbuilder.go (100%)
rename {restapi => api}/operations/group/remove_group.go (100%)
rename {restapi => api}/operations/group/remove_group_parameters.go (100%)
rename {restapi => api}/operations/group/remove_group_responses.go (100%)
rename {restapi => api}/operations/group/remove_group_urlbuilder.go (100%)
rename {restapi => api}/operations/group/update_group.go (100%)
rename {restapi => api}/operations/group/update_group_parameters.go (100%)
rename {restapi => api}/operations/group/update_group_responses.go (100%)
rename {restapi => api}/operations/group/update_group_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/create_configuration.go (100%)
rename {restapi => api}/operations/idp/create_configuration_parameters.go (100%)
rename {restapi => api}/operations/idp/create_configuration_responses.go (100%)
rename {restapi => api}/operations/idp/create_configuration_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/delete_configuration.go (100%)
rename {restapi => api}/operations/idp/delete_configuration_parameters.go (100%)
rename {restapi => api}/operations/idp/delete_configuration_responses.go (100%)
rename {restapi => api}/operations/idp/delete_configuration_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/get_configuration.go (100%)
rename {restapi => api}/operations/idp/get_configuration_parameters.go (100%)
rename {restapi => api}/operations/idp/get_configuration_responses.go (100%)
rename {restapi => api}/operations/idp/get_configuration_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/get_l_d_a_p_entities.go (100%)
rename {restapi => api}/operations/idp/get_l_d_a_p_entities_parameters.go (100%)
rename {restapi => api}/operations/idp/get_l_d_a_p_entities_responses.go (100%)
rename {restapi => api}/operations/idp/get_l_d_a_p_entities_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/list_configurations.go (100%)
rename {restapi => api}/operations/idp/list_configurations_parameters.go (100%)
rename {restapi => api}/operations/idp/list_configurations_responses.go (100%)
rename {restapi => api}/operations/idp/list_configurations_urlbuilder.go (100%)
rename {restapi => api}/operations/idp/update_configuration.go (100%)
rename {restapi => api}/operations/idp/update_configuration_parameters.go (100%)
rename {restapi => api}/operations/idp/update_configuration_responses.go (100%)
rename {restapi => api}/operations/idp/update_configuration_urlbuilder.go (100%)
rename {restapi => api}/operations/inspect/inspect.go (100%)
rename {restapi => api}/operations/inspect/inspect_parameters.go (100%)
rename {restapi => api}/operations/inspect/inspect_responses.go (100%)
rename {restapi => api}/operations/inspect/inspect_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_a_p_is.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_a_p_is_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_a_p_is_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_a_p_is_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_assign_policy.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_assign_policy_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_assign_policy_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_assign_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_create_key.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_create_key_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_create_key_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_create_key_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_identity.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_identity_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_identity_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_identity_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_key.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_key_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_key_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_key_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_policy.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_policy_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_policy_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_delete_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_identity.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_identity_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_identity_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_identity_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_policy.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_policy_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_policy_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_self_identity.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_self_identity_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_self_identity_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_describe_self_identity_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_get_policy.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_get_policy_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_get_policy_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_get_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_import_key.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_import_key_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_import_key_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_import_key_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_key_status.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_key_status_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_key_status_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_key_status_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_identities.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_identities_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_identities_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_identities_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_keys.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_keys_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_keys_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_keys_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_policies.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_policies_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_policies_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_list_policies_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_metrics.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_metrics_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_metrics_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_metrics_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_set_policy.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_set_policy_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_set_policy_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_set_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_status.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_status_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_status_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_status_urlbuilder.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_version.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_version_parameters.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_version_responses.go (100%)
rename {restapi => api}/operations/k_m_s/k_m_s_version_urlbuilder.go (100%)
rename {restapi => api}/operations/logging/log_search.go (100%)
rename {restapi => api}/operations/logging/log_search_parameters.go (100%)
rename {restapi => api}/operations/logging/log_search_responses.go (100%)
rename {restapi => api}/operations/logging/log_search_urlbuilder.go (100%)
rename {restapi => api}/operations/object/delete_multiple_objects.go (100%)
rename {restapi => api}/operations/object/delete_multiple_objects_parameters.go (100%)
rename {restapi => api}/operations/object/delete_multiple_objects_responses.go (100%)
rename {restapi => api}/operations/object/delete_multiple_objects_urlbuilder.go (100%)
rename {restapi => api}/operations/object/delete_object.go (100%)
rename {restapi => api}/operations/object/delete_object_parameters.go (100%)
rename {restapi => api}/operations/object/delete_object_responses.go (100%)
rename {restapi => api}/operations/object/delete_object_retention.go (100%)
rename {restapi => api}/operations/object/delete_object_retention_parameters.go (100%)
rename {restapi => api}/operations/object/delete_object_retention_responses.go (100%)
rename {restapi => api}/operations/object/delete_object_retention_urlbuilder.go (100%)
rename {restapi => api}/operations/object/delete_object_urlbuilder.go (100%)
rename {restapi => api}/operations/object/download_multiple_objects.go (100%)
rename {restapi => api}/operations/object/download_multiple_objects_parameters.go (100%)
rename {restapi => api}/operations/object/download_multiple_objects_responses.go (100%)
rename {restapi => api}/operations/object/download_multiple_objects_urlbuilder.go (100%)
rename {restapi => api}/operations/object/download_object.go (100%)
rename {restapi => api}/operations/object/download_object_parameters.go (100%)
rename {restapi => api}/operations/object/download_object_responses.go (100%)
rename {restapi => api}/operations/object/download_object_urlbuilder.go (100%)
rename {restapi => api}/operations/object/get_object_metadata.go (100%)
rename {restapi => api}/operations/object/get_object_metadata_parameters.go (100%)
rename {restapi => api}/operations/object/get_object_metadata_responses.go (100%)
rename {restapi => api}/operations/object/get_object_metadata_urlbuilder.go (100%)
rename {restapi => api}/operations/object/list_objects.go (100%)
rename {restapi => api}/operations/object/list_objects_parameters.go (100%)
rename {restapi => api}/operations/object/list_objects_responses.go (100%)
rename {restapi => api}/operations/object/list_objects_urlbuilder.go (100%)
rename {restapi => api}/operations/object/post_buckets_bucket_name_objects_upload.go (100%)
rename {restapi => api}/operations/object/post_buckets_bucket_name_objects_upload_parameters.go (100%)
rename {restapi => api}/operations/object/post_buckets_bucket_name_objects_upload_responses.go (100%)
rename {restapi => api}/operations/object/post_buckets_bucket_name_objects_upload_urlbuilder.go (100%)
rename {restapi => api}/operations/object/put_object_legal_hold.go (100%)
rename {restapi => api}/operations/object/put_object_legal_hold_parameters.go (100%)
rename {restapi => api}/operations/object/put_object_legal_hold_responses.go (100%)
rename {restapi => api}/operations/object/put_object_legal_hold_urlbuilder.go (100%)
rename {restapi => api}/operations/object/put_object_restore.go (100%)
rename {restapi => api}/operations/object/put_object_restore_parameters.go (100%)
rename {restapi => api}/operations/object/put_object_restore_responses.go (100%)
rename {restapi => api}/operations/object/put_object_restore_urlbuilder.go (100%)
rename {restapi => api}/operations/object/put_object_retention.go (100%)
rename {restapi => api}/operations/object/put_object_retention_parameters.go (100%)
rename {restapi => api}/operations/object/put_object_retention_responses.go (100%)
rename {restapi => api}/operations/object/put_object_retention_urlbuilder.go (100%)
rename {restapi => api}/operations/object/put_object_tags.go (100%)
rename {restapi => api}/operations/object/put_object_tags_parameters.go (100%)
rename {restapi => api}/operations/object/put_object_tags_responses.go (100%)
rename {restapi => api}/operations/object/put_object_tags_urlbuilder.go (100%)
rename {restapi => api}/operations/object/share_object.go (100%)
rename {restapi => api}/operations/object/share_object_parameters.go (100%)
rename {restapi => api}/operations/object/share_object_responses.go (100%)
rename {restapi => api}/operations/object/share_object_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/add_policy.go (100%)
rename {restapi => api}/operations/policy/add_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/add_policy_responses.go (100%)
rename {restapi => api}/operations/policy/add_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/get_s_a_user_policy.go (100%)
rename {restapi => api}/operations/policy/get_s_a_user_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/get_s_a_user_policy_responses.go (100%)
rename {restapi => api}/operations/policy/get_s_a_user_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/get_user_policy.go (100%)
rename {restapi => api}/operations/policy/get_user_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/get_user_policy_responses.go (100%)
rename {restapi => api}/operations/policy/get_user_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/list_groups_for_policy.go (100%)
rename {restapi => api}/operations/policy/list_groups_for_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/list_groups_for_policy_responses.go (100%)
rename {restapi => api}/operations/policy/list_groups_for_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/list_policies.go (100%)
rename {restapi => api}/operations/policy/list_policies_parameters.go (100%)
rename {restapi => api}/operations/policy/list_policies_responses.go (100%)
rename {restapi => api}/operations/policy/list_policies_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/list_users_for_policy.go (100%)
rename {restapi => api}/operations/policy/list_users_for_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/list_users_for_policy_responses.go (100%)
rename {restapi => api}/operations/policy/list_users_for_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/policy_info.go (100%)
rename {restapi => api}/operations/policy/policy_info_parameters.go (100%)
rename {restapi => api}/operations/policy/policy_info_responses.go (100%)
rename {restapi => api}/operations/policy/policy_info_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/remove_policy.go (100%)
rename {restapi => api}/operations/policy/remove_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/remove_policy_responses.go (100%)
rename {restapi => api}/operations/policy/remove_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/set_policy.go (100%)
rename {restapi => api}/operations/policy/set_policy_multiple.go (100%)
rename {restapi => api}/operations/policy/set_policy_multiple_parameters.go (100%)
rename {restapi => api}/operations/policy/set_policy_multiple_responses.go (100%)
rename {restapi => api}/operations/policy/set_policy_multiple_urlbuilder.go (100%)
rename {restapi => api}/operations/policy/set_policy_parameters.go (100%)
rename {restapi => api}/operations/policy/set_policy_responses.go (100%)
rename {restapi => api}/operations/policy/set_policy_urlbuilder.go (100%)
rename {restapi => api}/operations/profile/profiling_start.go (100%)
rename {restapi => api}/operations/profile/profiling_start_parameters.go (100%)
rename {restapi => api}/operations/profile/profiling_start_responses.go (100%)
rename {restapi => api}/operations/profile/profiling_start_urlbuilder.go (100%)
rename {restapi => api}/operations/profile/profiling_stop.go (100%)
rename {restapi => api}/operations/profile/profiling_stop_parameters.go (100%)
rename {restapi => api}/operations/profile/profiling_stop_responses.go (100%)
rename {restapi => api}/operations/profile/profiling_stop_urlbuilder.go (100%)
rename {restapi => api}/operations/release/list_releases.go (100%)
rename {restapi => api}/operations/release/list_releases_parameters.go (100%)
rename {restapi => api}/operations/release/list_releases_responses.go (100%)
rename {restapi => api}/operations/release/list_releases_urlbuilder.go (100%)
rename {restapi => api}/operations/service/restart_service.go (100%)
rename {restapi => api}/operations/service/restart_service_parameters.go (100%)
rename {restapi => api}/operations/service/restart_service_responses.go (100%)
rename {restapi => api}/operations/service/restart_service_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/create_service_account.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_creds.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_creds_parameters.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_creds_responses.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_creds_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_parameters.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_responses.go (100%)
rename {restapi => api}/operations/service_account/create_service_account_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/delete_multiple_service_accounts.go (100%)
rename {restapi => api}/operations/service_account/delete_multiple_service_accounts_parameters.go (100%)
rename {restapi => api}/operations/service_account/delete_multiple_service_accounts_responses.go (100%)
rename {restapi => api}/operations/service_account/delete_multiple_service_accounts_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/delete_service_account.go (100%)
rename {restapi => api}/operations/service_account/delete_service_account_parameters.go (100%)
rename {restapi => api}/operations/service_account/delete_service_account_responses.go (100%)
rename {restapi => api}/operations/service_account/delete_service_account_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/get_service_account.go (100%)
rename {restapi => api}/operations/service_account/get_service_account_parameters.go (100%)
rename {restapi => api}/operations/service_account/get_service_account_responses.go (100%)
rename {restapi => api}/operations/service_account/get_service_account_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/list_user_service_accounts.go (100%)
rename {restapi => api}/operations/service_account/list_user_service_accounts_parameters.go (100%)
rename {restapi => api}/operations/service_account/list_user_service_accounts_responses.go (100%)
rename {restapi => api}/operations/service_account/list_user_service_accounts_urlbuilder.go (100%)
rename {restapi => api}/operations/service_account/update_service_account.go (100%)
rename {restapi => api}/operations/service_account/update_service_account_parameters.go (100%)
rename {restapi => api}/operations/service_account/update_service_account_responses.go (100%)
rename {restapi => api}/operations/service_account/update_service_account_urlbuilder.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_info.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_info_parameters.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_info_responses.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_info_urlbuilder.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_status.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_status_parameters.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_status_responses.go (100%)
rename {restapi => api}/operations/site_replication/get_site_replication_status_urlbuilder.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_edit.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_edit_parameters.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_edit_responses.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_edit_urlbuilder.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_info_add.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_info_add_parameters.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_info_add_responses.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_info_add_urlbuilder.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_remove.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_remove_parameters.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_remove_responses.go (100%)
rename {restapi => api}/operations/site_replication/site_replication_remove_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_api_key.go (100%)
rename {restapi => api}/operations/subnet/subnet_api_key_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_api_key_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_api_key_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_info.go (100%)
rename {restapi => api}/operations/subnet/subnet_info_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_info_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_info_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_login.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_m_f_a.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_m_f_a_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_m_f_a_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_m_f_a_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_login_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_reg_token.go (100%)
rename {restapi => api}/operations/subnet/subnet_reg_token_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_reg_token_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_reg_token_urlbuilder.go (100%)
rename {restapi => api}/operations/subnet/subnet_register.go (100%)
rename {restapi => api}/operations/subnet/subnet_register_parameters.go (100%)
rename {restapi => api}/operations/subnet/subnet_register_responses.go (100%)
rename {restapi => api}/operations/subnet/subnet_register_urlbuilder.go (100%)
rename {restapi => api}/operations/support/get_call_home_option_value.go (100%)
rename {restapi => api}/operations/support/get_call_home_option_value_parameters.go (100%)
rename {restapi => api}/operations/support/get_call_home_option_value_responses.go (100%)
rename {restapi => api}/operations/support/get_call_home_option_value_urlbuilder.go (100%)
rename {restapi => api}/operations/support/set_call_home_status.go (100%)
rename {restapi => api}/operations/support/set_call_home_status_parameters.go (100%)
rename {restapi => api}/operations/support/set_call_home_status_responses.go (100%)
rename {restapi => api}/operations/support/set_call_home_status_urlbuilder.go (100%)
rename {restapi => api}/operations/system/admin_info.go (100%)
rename {restapi => api}/operations/system/admin_info_parameters.go (100%)
rename {restapi => api}/operations/system/admin_info_responses.go (100%)
rename {restapi => api}/operations/system/admin_info_urlbuilder.go (100%)
rename {restapi => api}/operations/system/arn_list.go (100%)
rename {restapi => api}/operations/system/arn_list_parameters.go (100%)
rename {restapi => api}/operations/system/arn_list_responses.go (100%)
rename {restapi => api}/operations/system/arn_list_urlbuilder.go (100%)
rename {restapi => api}/operations/system/dashboard_widget_details.go (100%)
rename {restapi => api}/operations/system/dashboard_widget_details_parameters.go (100%)
rename {restapi => api}/operations/system/dashboard_widget_details_responses.go (100%)
rename {restapi => api}/operations/system/dashboard_widget_details_urlbuilder.go (100%)
rename {restapi => api}/operations/system/list_nodes.go (100%)
rename {restapi => api}/operations/system/list_nodes_parameters.go (100%)
rename {restapi => api}/operations/system/list_nodes_responses.go (100%)
rename {restapi => api}/operations/system/list_nodes_urlbuilder.go (100%)
rename {restapi => api}/operations/tiering/add_tier.go (100%)
rename {restapi => api}/operations/tiering/add_tier_parameters.go (100%)
rename {restapi => api}/operations/tiering/add_tier_responses.go (100%)
rename {restapi => api}/operations/tiering/add_tier_urlbuilder.go (100%)
rename {restapi => api}/operations/tiering/edit_tier_credentials.go (100%)
rename {restapi => api}/operations/tiering/edit_tier_credentials_parameters.go (100%)
rename {restapi => api}/operations/tiering/edit_tier_credentials_responses.go (100%)
rename {restapi => api}/operations/tiering/edit_tier_credentials_urlbuilder.go (100%)
rename {restapi => api}/operations/tiering/get_tier.go (100%)
rename {restapi => api}/operations/tiering/get_tier_parameters.go (100%)
rename {restapi => api}/operations/tiering/get_tier_responses.go (100%)
rename {restapi => api}/operations/tiering/get_tier_urlbuilder.go (100%)
rename {restapi => api}/operations/tiering/tiers_list.go (100%)
rename {restapi => api}/operations/tiering/tiers_list_parameters.go (100%)
rename {restapi => api}/operations/tiering/tiers_list_responses.go (100%)
rename {restapi => api}/operations/tiering/tiers_list_urlbuilder.go (100%)
rename {restapi => api}/operations/user/add_user.go (100%)
rename {restapi => api}/operations/user/add_user_parameters.go (100%)
rename {restapi => api}/operations/user/add_user_responses.go (100%)
rename {restapi => api}/operations/user/add_user_urlbuilder.go (100%)
rename {restapi => api}/operations/user/bulk_update_users_groups.go (100%)
rename {restapi => api}/operations/user/bulk_update_users_groups_parameters.go (100%)
rename {restapi => api}/operations/user/bulk_update_users_groups_responses.go (100%)
rename {restapi => api}/operations/user/bulk_update_users_groups_urlbuilder.go (100%)
rename {restapi => api}/operations/user/check_user_service_accounts.go (100%)
rename {restapi => api}/operations/user/check_user_service_accounts_parameters.go (100%)
rename {restapi => api}/operations/user/check_user_service_accounts_responses.go (100%)
rename {restapi => api}/operations/user/check_user_service_accounts_urlbuilder.go (100%)
rename {restapi => api}/operations/user/create_a_user_service_account.go (100%)
rename {restapi => api}/operations/user/create_a_user_service_account_parameters.go (100%)
rename {restapi => api}/operations/user/create_a_user_service_account_responses.go (100%)
rename {restapi => api}/operations/user/create_a_user_service_account_urlbuilder.go (100%)
rename {restapi => api}/operations/user/create_service_account_credentials.go (100%)
rename {restapi => api}/operations/user/create_service_account_credentials_parameters.go (100%)
rename {restapi => api}/operations/user/create_service_account_credentials_responses.go (100%)
rename {restapi => api}/operations/user/create_service_account_credentials_urlbuilder.go (100%)
rename {restapi => api}/operations/user/get_user_info.go (100%)
rename {restapi => api}/operations/user/get_user_info_parameters.go (100%)
rename {restapi => api}/operations/user/get_user_info_responses.go (100%)
rename {restapi => api}/operations/user/get_user_info_urlbuilder.go (100%)
rename {restapi => api}/operations/user/list_a_user_service_accounts.go (100%)
rename {restapi => api}/operations/user/list_a_user_service_accounts_parameters.go (100%)
rename {restapi => api}/operations/user/list_a_user_service_accounts_responses.go (100%)
rename {restapi => api}/operations/user/list_a_user_service_accounts_urlbuilder.go (100%)
rename {restapi => api}/operations/user/list_users.go (100%)
rename {restapi => api}/operations/user/list_users_parameters.go (100%)
rename {restapi => api}/operations/user/list_users_responses.go (100%)
rename {restapi => api}/operations/user/list_users_urlbuilder.go (100%)
rename {restapi => api}/operations/user/remove_user.go (100%)
rename {restapi => api}/operations/user/remove_user_parameters.go (100%)
rename {restapi => api}/operations/user/remove_user_responses.go (100%)
rename {restapi => api}/operations/user/remove_user_urlbuilder.go (100%)
rename {restapi => api}/operations/user/update_user_groups.go (100%)
rename {restapi => api}/operations/user/update_user_groups_parameters.go (100%)
rename {restapi => api}/operations/user/update_user_groups_responses.go (100%)
rename {restapi => api}/operations/user/update_user_groups_urlbuilder.go (100%)
rename {restapi => api}/operations/user/update_user_info.go (100%)
rename {restapi => api}/operations/user/update_user_info_parameters.go (100%)
rename {restapi => api}/operations/user/update_user_info_responses.go (100%)
rename {restapi => api}/operations/user/update_user_info_urlbuilder.go (100%)
rename {restapi => api}/policy/policies.go (100%)
rename {restapi => api}/policy/policies_test.go (100%)
rename {restapi => api}/server.go (99%)
rename {restapi => api}/service_accounts_handlers.go (99%)
rename {restapi => api}/service_accounts_handlers_test.go (99%)
rename {restapi => api}/tls.go (99%)
rename {restapi => api}/user_account.go (95%)
rename {restapi => api}/user_account_test.go (97%)
rename {restapi => api}/user_bucket_quota.go (96%)
rename {restapi => api}/user_buckets.go (99%)
rename {restapi => api}/user_buckets_events.go (98%)
rename {restapi => api}/user_buckets_events_test.go (99%)
rename {restapi => api}/user_buckets_lifecycle.go (99%)
rename {restapi => api}/user_buckets_lifecycle_test.go (99%)
rename {restapi => api}/user_buckets_test.go (99%)
rename {restapi => api}/user_log_search.go (96%)
rename {restapi => api}/user_log_search_test.go (99%)
rename {restapi => api}/user_login.go (98%)
rename {restapi => api}/user_login_test.go (99%)
rename {restapi => api}/user_logout.go (96%)
rename {restapi => api}/user_logout_test.go (98%)
rename {restapi => api}/user_objects.go (99%)
rename {restapi => api}/user_objects_test.go (99%)
rename {restapi => api}/user_session.go (98%)
rename {restapi => api}/user_session_test.go (99%)
rename {restapi => api}/user_support.go (98%)
rename {restapi => api}/user_support_test.go (99%)
rename {restapi => api}/user_watch.go (99%)
rename {restapi => api}/user_watch_test.go (99%)
rename {restapi => api}/utils.go (99%)
rename {restapi => api}/utils_test.go (99%)
rename {restapi => api}/ws_handle.go (99%)
rename {restapi => api}/ws_handle_test.go (99%)
rename {restapi => api}/ws_objects.go (99%)
diff --git a/.github/workflows/jobs.yaml b/.github/workflows/jobs.yaml
index f37954981..bf6b45121 100644
--- a/.github/workflows/jobs.yaml
+++ b/.github/workflows/jobs.yaml
@@ -19,11 +19,11 @@ concurrency:
jobs:
lint-job:
name: Checking Lint
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- os: [ubuntu-latest]
+ os: [ ubuntu-latest ]
steps:
- name: Check out source code
uses: actions/checkout@v3
@@ -65,8 +65,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -110,8 +110,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -130,10 +130,10 @@ jobs:
latest-minio:
name: Build latest MinIO
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
+ go-version: [ 1.21.x ]
steps:
# To build minio image, we need to clone the repository first
- name: Clone github.com/minio/minio
@@ -168,8 +168,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -204,12 +204,12 @@ jobs:
name: Test Subpath with Nginx
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
timeout-minutes: 10
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -253,12 +253,12 @@ jobs:
name: Permissions Tests Part 1
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
timeout-minutes: 10
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -301,12 +301,12 @@ jobs:
name: Permissions Tests Part 2
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
timeout-minutes: 10
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -348,12 +348,12 @@ jobs:
name: Permissions Tests Part 3
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
timeout-minutes: 10
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -395,12 +395,12 @@ jobs:
name: Permissions Tests Part 4
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
timeout-minutes: 15
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -439,11 +439,11 @@ jobs:
name: Permissions Tests Part 5
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -482,11 +482,11 @@ jobs:
name: Permissions Tests Part 6
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -525,11 +525,11 @@ jobs:
name: Permissions Tests Part 7
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -567,11 +567,11 @@ jobs:
name: Permissions Tests Part 8
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -610,11 +610,11 @@ jobs:
name: Permissions Tests Part 9
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -656,11 +656,11 @@ jobs:
name: Permissions Tests Part A
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -702,11 +702,11 @@ jobs:
name: Permissions Tests Part B
needs:
- compile-binary
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -754,8 +754,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -781,8 +781,8 @@ jobs:
path: |
./pkg/coverage/
key: ${{ runner.os }}-coverage-pkg-2-${{ github.run_id }}
- test-restapi-on-go:
- name: Test Restapi on Go ${{ matrix.go-version }} and ${{ matrix.os }}
+ test-api-on-go:
+ name: Test API on Go ${{ matrix.go-version }} and ${{ matrix.os }}
needs:
- lint-job
- ui-assets
@@ -791,8 +791,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -812,12 +812,12 @@ jobs:
make test
- uses: actions/cache@v3
- id: coverage-cache-restapi
- name: Coverage Cache RestAPI
+ id: coverage-cache-api
+ name: Coverage Cache API
with:
path: |
- ./restapi/coverage/
- key: ${{ runner.os }}-coverage-restapi-2-${{ github.run_id }}
+ ./api/coverage/
+ key: ${{ runner.os }}-coverage-api-2-${{ github.run_id }}
b-integration-tests:
name: Integration Tests with Latest Distributed MinIO
needs:
@@ -830,7 +830,7 @@ jobs:
strategy:
matrix:
- go-version: [1.21.x]
+ go-version: [ 1.21.x ]
steps:
- name: Check out code
@@ -915,11 +915,11 @@ jobs:
- reuse-golang-dependencies
- semgrep-static-code-analysis
- latest-minio
- runs-on: [ubuntu-latest]
+ runs-on: [ ubuntu-latest ]
strategy:
matrix:
- go-version: [1.21.x]
+ go-version: [ 1.21.x ]
steps:
- name: Check out code
@@ -994,7 +994,7 @@ jobs:
strategy:
matrix:
- go-version: [1.21.x]
+ go-version: [ 1.21.x ]
steps:
- name: Check out code
@@ -1058,15 +1058,15 @@ jobs:
name: "Coverage Limit Check"
needs:
- b-integration-tests
- - test-restapi-on-go
+ - test-api-on-go
- test-pkg-on-go
- sso-integration
- replication
runs-on: ${{ matrix.os }}
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -1107,12 +1107,12 @@ jobs:
key: ${{ runner.os }}-replication-coverage-2-${{ github.run_id }}
- uses: actions/cache@v3
- id: coverage-cache-restapi
- name: Coverage Cache RestAPI
+ id: coverage-cache-api
+ name: Coverage Cache API
with:
path: |
- ./restapi/coverage/
- key: ${{ runner.os }}-coverage-restapi-2-${{ github.run_id }}
+ ./api/coverage/
+ key: ${{ runner.os }}-coverage-api-2-${{ github.run_id }}
- uses: actions/cache@v3
id: coverage-cache-pkg
@@ -1139,7 +1139,7 @@ jobs:
echo "go build gocoverage.go"
go build gocovmerge.go
echo "put together the outs for final coverage resolution"
- ./gocovmerge ../integration/coverage/system.out ../replication/coverage/replication.out ../sso-integration/coverage/sso-system.out ../restapi/coverage/coverage.out ../pkg/coverage/coverage-pkg.out > all.out
+ ./gocovmerge ../integration/coverage/system.out ../replication/coverage/replication.out ../sso-integration/coverage/sso-system.out ../api/coverage/coverage.out ../pkg/coverage/coverage-pkg.out > all.out
echo "Download mc for Ubuntu"
wget -q https://dl.min.io/client/mc/release/linux-amd64/mc
echo "Change the permissions to execute mc command"
@@ -1178,11 +1178,11 @@ jobs:
./mc cp sso-system.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
./mc cp ../sso-integration/coverage/sso-system.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
./mc cp ../sso-integration/coverage/sso-system.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
- go tool cover -html=../restapi/coverage/coverage.out -o coverage.html
+ go tool cover -html=../api/coverage/coverage.out -o coverage.html
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
- ./mc cp ../restapi/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
- ./mc cp ../restapi/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
+ ./mc cp ../api/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
+ ./mc cp ../api/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
go tool cover -html=../pkg/coverage/coverage-pkg.out -o coverage-pkg.html
./mc cp coverage-pkg.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
./mc cp coverage-pkg.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
@@ -1211,8 +1211,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
@@ -1252,8 +1252,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- go-version: [1.21.x]
- os: [ubuntu-latest]
+ go-version: [ 1.21.x ]
+ os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@v3
diff --git a/.golangci.yml b/.golangci.yml
index 1a4de9dfe..e90470499 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -46,4 +46,4 @@ run:
skip-dirs:
- pkg/clientgen
- pkg/apis/networking.gke.io
- - restapi/operations
+ - api/operations
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8cdb58025..fc23a30e1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -4,56 +4,80 @@ This is a REST portal server created using [go-swagger](https://github.com/go-sw
The API handlers are created using a YAML definition located in `swagger.YAML`.
-To add new api, the YAML file needs to be updated with all the desired apis using the [Swagger Basic Structure](https://swagger.io/docs/specification/2-0/basic-structure/), this includes paths, parameters, definitions, tags, etc.
+To add new api, the YAML file needs to be updated with all the desired apis using
+the [Swagger Basic Structure](https://swagger.io/docs/specification/2-0/basic-structure/), this includes paths,
+parameters, definitions, tags, etc.
## Generate server from YAML
+
Once the YAML file is ready we can autogenerate the code needed for the new api by just running:
Validate it:
+
```
swagger validate ./swagger.yml
```
+
Update server code:
+
```
make swagger-gen
```
This will update all the necessary code.
-`./restapi/configure_console.go` is a file that contains the handlers to be used by the application, here is the only place where we need to update our code to support the new apis. This file is not affected when running the swagger generator and it is safe to edit.
+`./api/configure_console.go` is a file that contains the handlers to be used by the application, here is the only place
+where we need to update our code to support the new apis. This file is not affected when running the swagger generator
+and it is safe to edit.
## Unit Tests
-`./restapi/handlers_test.go` needs to be updated with the proper tests for the new api.
+
+`./api/handlers_test.go` needs to be updated with the proper tests for the new api.
To run tests:
+
```
-go test ./restapi
+go test ./api
```
## Commit changes
-After verification, commit your changes. This is a [great post](https://chris.beams.io/posts/git-commit/) on how to write useful commit messages
+
+After verification, commit your changes. This is a [great post](https://chris.beams.io/posts/git-commit/) on how to
+write useful commit messages
```
$ git commit -am 'Add some feature'
```
### Push to the branch
+
Push your locally committed changes to the remote origin (your fork)
+
```
$ git push origin my-new-feature
```
### Create a Pull Request
-Pull requests can be created via GitHub. Refer to [this document](https://help.github.com/articles/creating-a-pull-request/) for detailed steps on how to create a pull request. After a Pull Request gets peer reviewed and approved, it will be merged.
+
+Pull requests can be created via GitHub. Refer
+to [this document](https://help.github.com/articles/creating-a-pull-request/) for detailed steps on how to create a pull
+request. After a Pull Request gets peer reviewed and approved, it will be merged.
## FAQs
+
### How does ``console`` manages dependencies?
+
``MinIO`` uses `go mod` to manage its dependencies.
+
- Run `go get foo/bar` in the source folder to add the dependency to `go.mod` file.
To remove a dependency
+
- Edit your code and remove the import reference.
- Run `go mod tidy` in the source folder to remove dependency from `go.mod` file.
### What are the coding guidelines for console?
-``console`` is fully conformant with Golang style. Refer: [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project. If you observe offending code, please feel free to send a pull request or ping us on [Slack](https://slack.min.io).
+
+``console`` is fully conformant with Golang style.
+Refer: [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project. If you observe
+offending code, please feel free to send a pull request or ping us on [Slack](https://slack.min.io).
diff --git a/Makefile b/Makefile
index 7adde0705..c73c7a496 100644
--- a/Makefile
+++ b/Makefile
@@ -48,14 +48,14 @@ apply-gofmt:
clean-swagger:
@echo "cleaning"
@rm -rf models
- @rm -rf restapi/operations
+ @rm -rf api/operations
swagger-console:
@echo "Generating swagger server code from yaml"
- @swagger generate server -A console --main-package=management --server-package=restapi --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
+ @swagger generate server -A console --main-package=management --server-package=api --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
@echo "Generating typescript api"
@npx swagger-typescript-api -p ./swagger.yml -o ./portal-ui/src/api -n consoleApi.ts
- @git restore restapi/server.go
+ @git restore api/server.go
assets:
@@ -78,7 +78,7 @@ test-integration:
@echo "Postgres"
@(docker run --net=mynet123 --ip=173.18.0.4 --name pgsqlcontainer --rm -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres && sleep 5)
@echo "execute test and get coverage for test-integration:"
- @(cd integration && go test -coverpkg=../restapi -c -tags testrunmain . && mkdir -p coverage && ./integration.test -test.v -test.run "^Test*" -test.coverprofile=coverage/system.out)
+ @(cd integration && go test -coverpkg=../api -c -tags testrunmain . && mkdir -p coverage && ./integration.test -test.v -test.run "^Test*" -test.coverprofile=coverage/system.out)
@(docker stop pgsqlcontainer)
@(docker stop minio)
@(docker stop minio2)
@@ -126,7 +126,7 @@ test-replication:
$(MINIO_VERSION) server /data{1...4} \
--address :9002 \
--console-address :6002)
- @(cd replication && go test -coverpkg=../restapi -c -tags testrunmain . && mkdir -p coverage && ./replication.test -test.v -test.run "^Test*" -test.coverprofile=coverage/replication.out)
+ @(cd replication && go test -coverpkg=../api -c -tags testrunmain . && mkdir -p coverage && ./replication.test -test.v -test.run "^Test*" -test.coverprofile=coverage/replication.out)
@(docker stop minio || true)
@(docker stop minio1 || true)
@(docker stop minio2 || true)
@@ -180,7 +180,7 @@ test-sso-integration:
@echo "add python module"
@(pip3 install bs4)
@echo "Executing the test:"
- @(cd sso-integration && go test -coverpkg=../restapi -c -tags testrunmain . && mkdir -p coverage && ./sso-integration.test -test.v -test.run "^Test*" -test.coverprofile=coverage/sso-system.out)
+ @(cd sso-integration && go test -coverpkg=../api -c -tags testrunmain . && mkdir -p coverage && ./sso-integration.test -test.v -test.run "^Test*" -test.coverprofile=coverage/sso-system.out)
test-permissions-1:
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
@@ -259,7 +259,7 @@ cleanup-minio-nginx:
# This is needed because tests can be in the folder or sub-folder(s), let's include them all please!.
test:
@echo "execute test and get coverage"
- @(cd restapi && mkdir -p coverage && GO111MODULE=on go test ./... -test.v -coverprofile=coverage/coverage.out)
+ @(cd api && mkdir -p coverage && GO111MODULE=on go test ./... -test.v -coverprofile=coverage/coverage.out)
# https://stackoverflow.com/questions/19200235/golang-tests-in-sub-directory
@@ -270,7 +270,7 @@ test-pkg:
@(cd pkg && mkdir -p coverage && GO111MODULE=on go test ./... -test.v -coverprofile=coverage/coverage-pkg.out)
coverage:
- @(GO111MODULE=on go test -v -coverprofile=coverage.out github.com/minio/console/restapi/... && go tool cover -html=coverage.out && open coverage.html)
+ @(GO111MODULE=on go test -v -coverprofile=coverage.out github.com/minio/console/api/... && go tool cover -html=coverage.out && open coverage.html)
clean:
@echo "Cleaning up all the generated files"
diff --git a/restapi/admin_arns.go b/api/admin_arns.go
similarity index 94%
rename from restapi/admin_arns.go
rename to api/admin_arns.go
index 8c4387293..dc7ba9483 100644
--- a/restapi/admin_arns.go
+++ b/api/admin_arns.go
@@ -14,16 +14,16 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
- systemApi "github.com/minio/console/restapi/operations/system"
+ systemApi "github.com/minio/console/api/operations/system"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
)
func registerAdminArnsHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_arns_test.go b/api/admin_arns_test.go
similarity index 96%
rename from restapi/admin_arns_test.go
rename to api/admin_arns_test.go
index cfc5703bf..6012ab437 100644
--- a/restapi/admin_arns_test.go
+++ b/api/admin_arns_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -25,11 +25,11 @@ import (
"testing"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations/system"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations/system"
"github.com/go-openapi/loads"
- "github.com/minio/console/restapi/operations"
+ "github.com/minio/console/api/operations"
"github.com/minio/madmin-go/v3"
asrt "github.com/stretchr/testify/assert"
diff --git a/restapi/admin_client_mock.go b/api/admin_client_mock.go
similarity index 99%
rename from restapi/admin_client_mock.go
rename to api/admin_client_mock.go
index 0a1c3685d..3b582f50e 100644
--- a/restapi/admin_client_mock.go
+++ b/api/admin_client_mock.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_config.go b/api/admin_config.go
similarity index 98%
rename from restapi/admin_config.go
rename to api/admin_config.go
index 3c8ba5867..931dd4e15 100644
--- a/restapi/admin_config.go
+++ b/api/admin_config.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -24,11 +24,11 @@ import (
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
madmin "github.com/minio/madmin-go/v3"
- cfgApi "github.com/minio/console/restapi/operations/configuration"
+ cfgApi "github.com/minio/console/api/operations/configuration"
)
func registerConfigHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_config_test.go b/api/admin_config_test.go
similarity index 99%
rename from restapi/admin_config_test.go
rename to api/admin_config_test.go
index 6f38ef409..8e07b880f 100644
--- a/restapi/admin_config_test.go
+++ b/api/admin_config_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_console.go b/api/admin_console.go
similarity index 99%
rename from restapi/admin_console.go
rename to api/admin_console.go
index 38f7fab87..f7e47c6b9 100644
--- a/restapi/admin_console.go
+++ b/api/admin_console.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_console_test.go b/api/admin_console_test.go
similarity index 99%
rename from restapi/admin_console_test.go
rename to api/admin_console_test.go
index 0c3d7d32b..4d6994d59 100644
--- a/restapi/admin_console_test.go
+++ b/api/admin_console_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_groups.go b/api/admin_groups.go
similarity index 98%
rename from restapi/admin_groups.go
rename to api/admin_groups.go
index 8b5ab122c..90c56003b 100644
--- a/restapi/admin_groups.go
+++ b/api/admin_groups.go
@@ -14,18 +14,18 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/pkg/utils"
- "github.com/minio/console/restapi/operations"
"github.com/minio/madmin-go/v3"
- groupApi "github.com/minio/console/restapi/operations/group"
+ groupApi "github.com/minio/console/api/operations/group"
"github.com/minio/console/models"
)
diff --git a/restapi/admin_groups_test.go b/api/admin_groups_test.go
similarity index 99%
rename from restapi/admin_groups_test.go
rename to api/admin_groups_test.go
index 38baaeb90..7dd2680e4 100644
--- a/restapi/admin_groups_test.go
+++ b/api/admin_groups_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_heal.go b/api/admin_heal.go
similarity index 99%
rename from restapi/admin_heal.go
rename to api/admin_heal.go
index 4f9b65dd1..2c574aeac 100644
--- a/restapi/admin_heal.go
+++ b/api/admin_heal.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_heal_test.go b/api/admin_heal_test.go
similarity index 99%
rename from restapi/admin_heal_test.go
rename to api/admin_heal_test.go
index 088d66593..0ca5476b3 100644
--- a/restapi/admin_heal_test.go
+++ b/api/admin_heal_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_health_info.go b/api/admin_health_info.go
similarity index 99%
rename from restapi/admin_health_info.go
rename to api/admin_health_info.go
index d92c2dd3b..a9467549f 100644
--- a/restapi/admin_health_info.go
+++ b/api/admin_health_info.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
diff --git a/restapi/admin_health_info_test.go b/api/admin_health_info_test.go
similarity index 99%
rename from restapi/admin_health_info_test.go
rename to api/admin_health_info_test.go
index 2c7f69bb4..5b82d3436 100644
--- a/restapi/admin_health_info_test.go
+++ b/api/admin_health_info_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_idp.go b/api/admin_idp.go
similarity index 98%
rename from restapi/admin_idp.go
rename to api/admin_idp.go
index 58ded179f..df2356298 100644
--- a/restapi/admin_idp.go
+++ b/api/admin_idp.go
@@ -15,7 +15,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -23,9 +23,9 @@ import (
"time"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ "github.com/minio/console/api/operations/idp"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- "github.com/minio/console/restapi/operations/idp"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_idp_test.go b/api/admin_idp_test.go
similarity index 98%
rename from restapi/admin_idp_test.go
rename to api/admin_idp_test.go
index 933bfc6d3..be009268a 100644
--- a/restapi/admin_idp_test.go
+++ b/api/admin_idp_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -27,9 +27,9 @@ import (
"github.com/minio/madmin-go/v3"
+ "github.com/minio/console/api/operations"
+ "github.com/minio/console/api/operations/idp"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- "github.com/minio/console/restapi/operations/idp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
diff --git a/restapi/admin_info.go b/api/admin_info.go
similarity index 99%
rename from restapi/admin_info.go
rename to api/admin_info.go
index a17216aae..c9c10b13b 100644
--- a/restapi/admin_info.go
+++ b/api/admin_info.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -31,9 +31,9 @@ import (
"github.com/minio/console/pkg/utils"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ systemApi "github.com/minio/console/api/operations/system"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- systemApi "github.com/minio/console/restapi/operations/system"
)
func registerAdminInfoHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_info_test.go b/api/admin_info_test.go
similarity index 97%
rename from restapi/admin_info_test.go
rename to api/admin_info_test.go
index 938874cd4..142eb1446 100644
--- a/restapi/admin_info_test.go
+++ b/api/admin_info_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -25,9 +25,9 @@ import (
"github.com/minio/console/pkg/utils"
+ "github.com/minio/console/api/operations"
+ systemApi "github.com/minio/console/api/operations/system"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- systemApi "github.com/minio/console/restapi/operations/system"
"github.com/minio/madmin-go/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
diff --git a/restapi/admin_inspect.go b/api/admin_inspect.go
similarity index 97%
rename from restapi/admin_inspect.go
rename to api/admin_inspect.go
index 5a55948f8..c59eb5c0e 100644
--- a/restapi/admin_inspect.go
+++ b/api/admin_inspect.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"encoding/base64"
@@ -26,9 +26,9 @@ import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ inspectApi "github.com/minio/console/api/operations/inspect"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- inspectApi "github.com/minio/console/restapi/operations/inspect"
"github.com/minio/madmin-go/v3"
"github.com/secure-io/sio-go"
)
diff --git a/restapi/admin_kms.go b/api/admin_kms.go
similarity index 99%
rename from restapi/admin_kms.go
rename to api/admin_kms.go
index d068fe32b..d2ba16d76 100644
--- a/restapi/admin_kms.go
+++ b/api/admin_kms.go
@@ -15,7 +15,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -23,9 +23,9 @@ import (
"sort"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ kmsAPI "github.com/minio/console/api/operations/k_m_s"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- kmsAPI "github.com/minio/console/restapi/operations/k_m_s"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_kms_test.go b/api/admin_kms_test.go
similarity index 99%
rename from restapi/admin_kms_test.go
rename to api/admin_kms_test.go
index 37a5b5a51..dc4b9bb60 100644
--- a/restapi/admin_kms_test.go
+++ b/api/admin_kms_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -23,9 +23,9 @@ import (
"os"
"testing"
+ "github.com/minio/console/api/operations"
+ kmsAPI "github.com/minio/console/api/operations/k_m_s"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- kmsAPI "github.com/minio/console/restapi/operations/k_m_s"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
diff --git a/restapi/admin_nodes.go b/api/admin_nodes.go
similarity index 93%
rename from restapi/admin_nodes.go
rename to api/admin_nodes.go
index ec509d947..a503259ac 100644
--- a/restapi/admin_nodes.go
+++ b/api/admin_nodes.go
@@ -14,15 +14,15 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ systemApi "github.com/minio/console/api/operations/system"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- systemApi "github.com/minio/console/restapi/operations/system"
)
func registerNodesHandler(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_notification_endpoints.go b/api/admin_notification_endpoints.go
similarity index 97%
rename from restapi/admin_notification_endpoints.go
rename to api/admin_notification_endpoints.go
index d41edb0bd..b43013d7b 100644
--- a/restapi/admin_notification_endpoints.go
+++ b/api/admin_notification_endpoints.go
@@ -14,16 +14,16 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"errors"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ configurationApi "github.com/minio/console/api/operations/configuration"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- configurationApi "github.com/minio/console/restapi/operations/configuration"
)
func registerAdminNotificationEndpointsHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_notification_endpoints_test.go b/api/admin_notification_endpoints_test.go
similarity index 99%
rename from restapi/admin_notification_endpoints_test.go
rename to api/admin_notification_endpoints_test.go
index 46dfd307a..231d7f105 100644
--- a/restapi/admin_notification_endpoints_test.go
+++ b/api/admin_notification_endpoints_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -24,8 +24,8 @@ import (
"github.com/go-openapi/swag"
+ cfgApi "github.com/minio/console/api/operations/configuration"
"github.com/minio/console/models"
- cfgApi "github.com/minio/console/restapi/operations/configuration"
)
func Test_addNotificationEndpoint(t *testing.T) {
diff --git a/restapi/admin_objects.go b/api/admin_objects.go
similarity index 99%
rename from restapi/admin_objects.go
rename to api/admin_objects.go
index 7a20b847a..cfb17c008 100644
--- a/restapi/admin_objects.go
+++ b/api/admin_objects.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_objects_test.go b/api/admin_objects_test.go
similarity index 99%
rename from restapi/admin_objects_test.go
rename to api/admin_objects_test.go
index f1e0b5e58..3e016fb6c 100644
--- a/restapi/admin_objects_test.go
+++ b/api/admin_objects_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_policies.go b/api/admin_policies.go
similarity index 99%
rename from restapi/admin_policies.go
rename to api/admin_policies.go
index 6edfe3e86..2e56820b3 100644
--- a/restapi/admin_policies.go
+++ b/api/admin_policies.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
@@ -24,17 +24,17 @@ import (
"sort"
"strings"
+ bucketApi "github.com/minio/console/api/operations/bucket"
+ policyApi "github.com/minio/console/api/operations/policy"
"github.com/minio/console/pkg/utils"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
- policyApi "github.com/minio/console/restapi/operations/policy"
s3 "github.com/minio/minio-go/v7"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
iampolicy "github.com/minio/pkg/v2/policy"
- policies "github.com/minio/console/restapi/policy"
+ policies "github.com/minio/console/api/policy"
)
func registersPoliciesHandler(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_policies_test.go b/api/admin_policies_test.go
similarity index 99%
rename from restapi/admin_policies_test.go
rename to api/admin_policies_test.go
index 005265691..a7d167026 100644
--- a/restapi/admin_policies_test.go
+++ b/api/admin_policies_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
diff --git a/restapi/admin_profiling.go b/api/admin_profiling.go
similarity index 99%
rename from restapi/admin_profiling.go
rename to api/admin_profiling.go
index 380e77de3..cc77f730f 100644
--- a/restapi/admin_profiling.go
+++ b/api/admin_profiling.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_profiling_test.go b/api/admin_profiling_test.go
similarity index 99%
rename from restapi/admin_profiling_test.go
rename to api/admin_profiling_test.go
index 4f19f4d8d..84c85c951 100644
--- a/restapi/admin_profiling_test.go
+++ b/api/admin_profiling_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
diff --git a/restapi/admin_releases.go b/api/admin_releases.go
similarity index 96%
rename from restapi/admin_releases.go
rename to api/admin_releases.go
index 0c28c8a82..17f21ed30 100644
--- a/restapi/admin_releases.go
+++ b/api/admin_releases.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -27,9 +27,9 @@ import (
"github.com/minio/console/pkg/utils"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ release "github.com/minio/console/api/operations/release"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- release "github.com/minio/console/restapi/operations/release"
"github.com/minio/pkg/v2/env"
)
diff --git a/restapi/admin_releases_test.go b/api/admin_releases_test.go
similarity index 95%
rename from restapi/admin_releases_test.go
rename to api/admin_releases_test.go
index df95219b5..6754f9c02 100644
--- a/restapi/admin_releases_test.go
+++ b/api/admin_releases_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"encoding/json"
@@ -24,9 +24,9 @@ import (
"os"
"testing"
+ "github.com/minio/console/api/operations"
+ release "github.com/minio/console/api/operations/release"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- release "github.com/minio/console/restapi/operations/release"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
diff --git a/restapi/admin_remote_buckets.go b/api/admin_remote_buckets.go
similarity index 99%
rename from restapi/admin_remote_buckets.go
rename to api/admin_remote_buckets.go
index da8e66809..701a2136f 100644
--- a/restapi/admin_remote_buckets.go
+++ b/api/admin_remote_buckets.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -30,9 +30,9 @@ import (
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
"github.com/minio/minio-go/v7/pkg/replication"
)
diff --git a/restapi/admin_remote_buckets_test.go b/api/admin_remote_buckets_test.go
similarity index 99%
rename from restapi/admin_remote_buckets_test.go
rename to api/admin_remote_buckets_test.go
index ab68fc9dd..2123f9fc8 100644
--- a/restapi/admin_remote_buckets_test.go
+++ b/api/admin_remote_buckets_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -27,9 +27,9 @@ import (
"github.com/minio/console/pkg/utils"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
"github.com/minio/madmin-go/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
diff --git a/restapi/admin_replication_status.go b/api/admin_replication_status.go
similarity index 95%
rename from restapi/admin_replication_status.go
rename to api/admin_replication_status.go
index 72721a175..277301af6 100644
--- a/restapi/admin_replication_status.go
+++ b/api/admin_replication_status.go
@@ -14,15 +14,15 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ siteRepApi "github.com/minio/console/api/operations/site_replication"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- siteRepApi "github.com/minio/console/restapi/operations/site_replication"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_service.go b/api/admin_service.go
similarity index 95%
rename from restapi/admin_service.go
rename to api/admin_service.go
index 25e878dac..93a7daeb8 100644
--- a/restapi/admin_service.go
+++ b/api/admin_service.go
@@ -14,17 +14,17 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"time"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- svcApi "github.com/minio/console/restapi/operations/service"
+ svcApi "github.com/minio/console/api/operations/service"
)
func registerServiceHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/admin_service_test.go b/api/admin_service_test.go
similarity index 99%
rename from restapi/admin_service_test.go
rename to api/admin_service_test.go
index 0145a7380..1ec1e896f 100644
--- a/restapi/admin_service_test.go
+++ b/api/admin_service_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_site_replication.go b/api/admin_site_replication.go
similarity index 98%
rename from restapi/admin_site_replication.go
rename to api/admin_site_replication.go
index 4e7ec97cf..59c22c470 100644
--- a/restapi/admin_site_replication.go
+++ b/api/admin_site_replication.go
@@ -14,15 +14,15 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ siteRepApi "github.com/minio/console/api/operations/site_replication"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- siteRepApi "github.com/minio/console/restapi/operations/site_replication"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_site_replication_test.go b/api/admin_site_replication_test.go
similarity index 99%
rename from restapi/admin_site_replication_test.go
rename to api/admin_site_replication_test.go
index fabba0078..b0a47770e 100644
--- a/restapi/admin_site_replication_test.go
+++ b/api/admin_site_replication_test.go
@@ -16,7 +16,7 @@
// These tests are for AdminAPI Tag based on swagger-console.yml
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_speedtest.go b/api/admin_speedtest.go
similarity index 99%
rename from restapi/admin_speedtest.go
rename to api/admin_speedtest.go
index 359be12b2..fd29706b6 100644
--- a/restapi/admin_speedtest.go
+++ b/api/admin_speedtest.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_subnet.go b/api/admin_subnet.go
similarity index 99%
rename from restapi/admin_subnet.go
rename to api/admin_subnet.go
index eaee33825..3b2ca744a 100644
--- a/restapi/admin_subnet.go
+++ b/api/admin_subnet.go
@@ -15,7 +15,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -30,10 +30,10 @@ import (
xhttp "github.com/minio/console/pkg/http"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ subnetApi "github.com/minio/console/api/operations/subnet"
"github.com/minio/console/models"
"github.com/minio/console/pkg/subnet"
- "github.com/minio/console/restapi/operations"
- subnetApi "github.com/minio/console/restapi/operations/subnet"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_subnet_test.go b/api/admin_subnet_test.go
similarity index 98%
rename from restapi/admin_subnet_test.go
rename to api/admin_subnet_test.go
index 1e898591d..257c3cc57 100644
--- a/restapi/admin_subnet_test.go
+++ b/api/admin_subnet_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -24,9 +24,9 @@ import (
"os"
"testing"
+ "github.com/minio/console/api/operations"
+ subnetApi "github.com/minio/console/api/operations/subnet"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- subnetApi "github.com/minio/console/restapi/operations/subnet"
"github.com/minio/madmin-go/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
diff --git a/restapi/admin_tiers.go b/api/admin_tiers.go
similarity index 99%
rename from restapi/admin_tiers.go
rename to api/admin_tiers.go
index a04a691e1..122bd3bc1 100644
--- a/restapi/admin_tiers.go
+++ b/api/admin_tiers.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -23,9 +23,9 @@ import (
"github.com/dustin/go-humanize"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ tieringApi "github.com/minio/console/api/operations/tiering"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- tieringApi "github.com/minio/console/restapi/operations/tiering"
"github.com/minio/madmin-go/v3"
)
diff --git a/restapi/admin_tiers_test.go b/api/admin_tiers_test.go
similarity index 98%
rename from restapi/admin_tiers_test.go
rename to api/admin_tiers_test.go
index 2681b5adf..c61c84ee5 100644
--- a/restapi/admin_tiers_test.go
+++ b/api/admin_tiers_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -22,8 +22,8 @@ import (
"fmt"
"testing"
+ tieringApi "github.com/minio/console/api/operations/tiering"
"github.com/minio/console/models"
- tieringApi "github.com/minio/console/restapi/operations/tiering"
"github.com/minio/madmin-go/v3"
"github.com/stretchr/testify/assert"
)
diff --git a/restapi/admin_trace.go b/api/admin_trace.go
similarity index 99%
rename from restapi/admin_trace.go
rename to api/admin_trace.go
index 9ece33989..8c69c178b 100644
--- a/restapi/admin_trace.go
+++ b/api/admin_trace.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_trace_test.go b/api/admin_trace_test.go
similarity index 99%
rename from restapi/admin_trace_test.go
rename to api/admin_trace_test.go
index 7e7392afa..12b7469b5 100644
--- a/restapi/admin_trace_test.go
+++ b/api/admin_trace_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/admin_users.go b/api/admin_users.go
similarity index 98%
rename from restapi/admin_users.go
rename to api/admin_users.go
index d8b5c2bf5..6cc22b305 100644
--- a/restapi/admin_users.go
+++ b/api/admin_users.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -26,11 +26,11 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ accountApi "github.com/minio/console/api/operations/account"
+ bucketApi "github.com/minio/console/api/operations/bucket"
+ userApi "github.com/minio/console/api/operations/user"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- accountApi "github.com/minio/console/restapi/operations/account"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
- userApi "github.com/minio/console/restapi/operations/user"
"github.com/minio/madmin-go/v3"
iampolicy "github.com/minio/pkg/v2/policy"
)
diff --git a/restapi/admin_users_test.go b/api/admin_users_test.go
similarity index 99%
rename from restapi/admin_users_test.go
rename to api/admin_users_test.go
index e8094af2d..41aea5e0b 100644
--- a/restapi/admin_users_test.go
+++ b/api/admin_users_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
diff --git a/restapi/client-admin.go b/api/client-admin.go
similarity index 99%
rename from restapi/client-admin.go
rename to api/client-admin.go
index 1849294ea..17a12989d 100644
--- a/restapi/client-admin.go
+++ b/api/client-admin.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
diff --git a/restapi/client.go b/api/client.go
similarity index 99%
rename from restapi/client.go
rename to api/client.go
index 93ce7bd76..0bea157b2 100644
--- a/restapi/client.go
+++ b/api/client.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/client_test.go b/api/client_test.go
similarity index 99%
rename from restapi/client_test.go
rename to api/client_test.go
index 52780e669..1bf055e56 100644
--- a/restapi/client_test.go
+++ b/api/client_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import "testing"
diff --git a/restapi/config.go b/api/config.go
similarity index 99%
rename from restapi/config.go
rename to api/config.go
index 21674fc82..04ad9ed3d 100644
--- a/restapi/config.go
+++ b/api/config.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"crypto/x509"
diff --git a/restapi/config_test.go b/api/config_test.go
similarity index 99%
rename from restapi/config_test.go
rename to api/config_test.go
index a4cb38195..7ccf88140 100644
--- a/restapi/config_test.go
+++ b/api/config_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"os"
diff --git a/restapi/configure_console.go b/api/configure_console.go
similarity index 99%
rename from restapi/configure_console.go
rename to api/configure_console.go
index acdcc9b13..dccb8f02c 100644
--- a/restapi/configure_console.go
+++ b/api/configure_console.go
@@ -16,7 +16,7 @@
// This file is safe to edit. Once it exists it will not be overwritten
-package restapi
+package api
import (
"bytes"
@@ -50,9 +50,9 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth"
- "github.com/minio/console/restapi/operations"
"github.com/unrolled/secure"
)
diff --git a/restapi/configure_console_test.go b/api/configure_console_test.go
similarity index 99%
rename from restapi/configure_console_test.go
rename to api/configure_console_test.go
index 07f897d2c..4f69c217f 100644
--- a/restapi/configure_console_test.go
+++ b/api/configure_console_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"os"
diff --git a/restapi/consts.go b/api/consts.go
similarity index 99%
rename from restapi/consts.go
rename to api/consts.go
index 85d02c460..012c1d4b6 100644
--- a/restapi/consts.go
+++ b/api/consts.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
// list of all console environment constants
const (
diff --git a/restapi/custom-server.go b/api/custom-server.go
similarity index 99%
rename from restapi/custom-server.go
rename to api/custom-server.go
index fb7937d41..95d196d15 100644
--- a/restapi/custom-server.go
+++ b/api/custom-server.go
@@ -15,7 +15,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -39,7 +39,7 @@ import (
flags "github.com/jessevdk/go-flags"
"golang.org/x/net/netutil"
- "github.com/minio/console/restapi/operations"
+ "github.com/minio/console/api/operations"
)
const (
diff --git a/restapi/doc.go b/api/doc.go
similarity index 95%
rename from restapi/doc.go
rename to api/doc.go
index 044f81eb4..8458030e3 100644
--- a/restapi/doc.go
+++ b/api/doc.go
@@ -16,7 +16,7 @@
// along with this program. If not, see .
//
-// Package restapi MinIO Console Server
+// Package api MinIO Console Server
//
// Schemes:
// http
@@ -35,4 +35,4 @@
// - application/json
//
// swagger:meta
-package restapi
+package api
diff --git a/restapi/embedded_spec.go b/api/embedded_spec.go
similarity index 99%
rename from restapi/embedded_spec.go
rename to api/embedded_spec.go
index bec6a42ea..7df225638 100644
--- a/restapi/embedded_spec.go
+++ b/api/embedded_spec.go
@@ -17,7 +17,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
diff --git a/restapi/errors.go b/api/errors.go
similarity index 99%
rename from restapi/errors.go
rename to api/errors.go
index a3f6df765..bc067bdd0 100644
--- a/restapi/errors.go
+++ b/api/errors.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/errors_test.go b/api/errors_test.go
similarity index 99%
rename from restapi/errors_test.go
rename to api/errors_test.go
index c82750312..d6751e3d2 100644
--- a/restapi/errors_test.go
+++ b/api/errors_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/license.go b/api/license.go
similarity index 98%
rename from restapi/license.go
rename to api/license.go
index 27eebb8f7..a41ebc287 100644
--- a/restapi/license.go
+++ b/api/license.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"os"
diff --git a/restapi/logs.go b/api/logs.go
similarity index 96%
rename from restapi/logs.go
rename to api/logs.go
index 1d8f3fa66..6b4afc5ab 100644
--- a/restapi/logs.go
+++ b/api/logs.go
@@ -15,7 +15,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -58,7 +58,7 @@ type Context struct {
TLSCertificate, TLSKey, TLSca string
}
-// Load loads restapi Context from command line context.
+// Load loads api Context from command line context.
func (c *Context) Load(ctx *cli.Context) error {
*c = Context{
Host: ctx.String("host"),
diff --git a/restapi/logs_test.go b/api/logs_test.go
similarity index 99%
rename from restapi/logs_test.go
rename to api/logs_test.go
index 6ec38cdc4..f9dcbff25 100644
--- a/restapi/logs_test.go
+++ b/api/logs_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"flag"
diff --git a/restapi/operations/account/account_change_password.go b/api/operations/account/account_change_password.go
similarity index 100%
rename from restapi/operations/account/account_change_password.go
rename to api/operations/account/account_change_password.go
diff --git a/restapi/operations/account/account_change_password_parameters.go b/api/operations/account/account_change_password_parameters.go
similarity index 100%
rename from restapi/operations/account/account_change_password_parameters.go
rename to api/operations/account/account_change_password_parameters.go
diff --git a/restapi/operations/account/account_change_password_responses.go b/api/operations/account/account_change_password_responses.go
similarity index 100%
rename from restapi/operations/account/account_change_password_responses.go
rename to api/operations/account/account_change_password_responses.go
diff --git a/restapi/operations/account/account_change_password_urlbuilder.go b/api/operations/account/account_change_password_urlbuilder.go
similarity index 100%
rename from restapi/operations/account/account_change_password_urlbuilder.go
rename to api/operations/account/account_change_password_urlbuilder.go
diff --git a/restapi/operations/account/change_user_password.go b/api/operations/account/change_user_password.go
similarity index 100%
rename from restapi/operations/account/change_user_password.go
rename to api/operations/account/change_user_password.go
diff --git a/restapi/operations/account/change_user_password_parameters.go b/api/operations/account/change_user_password_parameters.go
similarity index 100%
rename from restapi/operations/account/change_user_password_parameters.go
rename to api/operations/account/change_user_password_parameters.go
diff --git a/restapi/operations/account/change_user_password_responses.go b/api/operations/account/change_user_password_responses.go
similarity index 100%
rename from restapi/operations/account/change_user_password_responses.go
rename to api/operations/account/change_user_password_responses.go
diff --git a/restapi/operations/account/change_user_password_urlbuilder.go b/api/operations/account/change_user_password_urlbuilder.go
similarity index 100%
rename from restapi/operations/account/change_user_password_urlbuilder.go
rename to api/operations/account/change_user_password_urlbuilder.go
diff --git a/restapi/operations/auth/login.go b/api/operations/auth/login.go
similarity index 100%
rename from restapi/operations/auth/login.go
rename to api/operations/auth/login.go
diff --git a/restapi/operations/auth/login_detail.go b/api/operations/auth/login_detail.go
similarity index 100%
rename from restapi/operations/auth/login_detail.go
rename to api/operations/auth/login_detail.go
diff --git a/restapi/operations/auth/login_detail_parameters.go b/api/operations/auth/login_detail_parameters.go
similarity index 100%
rename from restapi/operations/auth/login_detail_parameters.go
rename to api/operations/auth/login_detail_parameters.go
diff --git a/restapi/operations/auth/login_detail_responses.go b/api/operations/auth/login_detail_responses.go
similarity index 100%
rename from restapi/operations/auth/login_detail_responses.go
rename to api/operations/auth/login_detail_responses.go
diff --git a/restapi/operations/auth/login_detail_urlbuilder.go b/api/operations/auth/login_detail_urlbuilder.go
similarity index 100%
rename from restapi/operations/auth/login_detail_urlbuilder.go
rename to api/operations/auth/login_detail_urlbuilder.go
diff --git a/restapi/operations/auth/login_oauth2_auth.go b/api/operations/auth/login_oauth2_auth.go
similarity index 100%
rename from restapi/operations/auth/login_oauth2_auth.go
rename to api/operations/auth/login_oauth2_auth.go
diff --git a/restapi/operations/auth/login_oauth2_auth_parameters.go b/api/operations/auth/login_oauth2_auth_parameters.go
similarity index 100%
rename from restapi/operations/auth/login_oauth2_auth_parameters.go
rename to api/operations/auth/login_oauth2_auth_parameters.go
diff --git a/restapi/operations/auth/login_oauth2_auth_responses.go b/api/operations/auth/login_oauth2_auth_responses.go
similarity index 100%
rename from restapi/operations/auth/login_oauth2_auth_responses.go
rename to api/operations/auth/login_oauth2_auth_responses.go
diff --git a/restapi/operations/auth/login_oauth2_auth_urlbuilder.go b/api/operations/auth/login_oauth2_auth_urlbuilder.go
similarity index 100%
rename from restapi/operations/auth/login_oauth2_auth_urlbuilder.go
rename to api/operations/auth/login_oauth2_auth_urlbuilder.go
diff --git a/restapi/operations/auth/login_parameters.go b/api/operations/auth/login_parameters.go
similarity index 100%
rename from restapi/operations/auth/login_parameters.go
rename to api/operations/auth/login_parameters.go
diff --git a/restapi/operations/auth/login_responses.go b/api/operations/auth/login_responses.go
similarity index 100%
rename from restapi/operations/auth/login_responses.go
rename to api/operations/auth/login_responses.go
diff --git a/restapi/operations/auth/login_urlbuilder.go b/api/operations/auth/login_urlbuilder.go
similarity index 100%
rename from restapi/operations/auth/login_urlbuilder.go
rename to api/operations/auth/login_urlbuilder.go
diff --git a/restapi/operations/auth/logout.go b/api/operations/auth/logout.go
similarity index 100%
rename from restapi/operations/auth/logout.go
rename to api/operations/auth/logout.go
diff --git a/restapi/operations/auth/logout_parameters.go b/api/operations/auth/logout_parameters.go
similarity index 100%
rename from restapi/operations/auth/logout_parameters.go
rename to api/operations/auth/logout_parameters.go
diff --git a/restapi/operations/auth/logout_responses.go b/api/operations/auth/logout_responses.go
similarity index 100%
rename from restapi/operations/auth/logout_responses.go
rename to api/operations/auth/logout_responses.go
diff --git a/restapi/operations/auth/logout_urlbuilder.go b/api/operations/auth/logout_urlbuilder.go
similarity index 100%
rename from restapi/operations/auth/logout_urlbuilder.go
rename to api/operations/auth/logout_urlbuilder.go
diff --git a/restapi/operations/auth/session_check.go b/api/operations/auth/session_check.go
similarity index 100%
rename from restapi/operations/auth/session_check.go
rename to api/operations/auth/session_check.go
diff --git a/restapi/operations/auth/session_check_parameters.go b/api/operations/auth/session_check_parameters.go
similarity index 100%
rename from restapi/operations/auth/session_check_parameters.go
rename to api/operations/auth/session_check_parameters.go
diff --git a/restapi/operations/auth/session_check_responses.go b/api/operations/auth/session_check_responses.go
similarity index 100%
rename from restapi/operations/auth/session_check_responses.go
rename to api/operations/auth/session_check_responses.go
diff --git a/restapi/operations/auth/session_check_urlbuilder.go b/api/operations/auth/session_check_urlbuilder.go
similarity index 100%
rename from restapi/operations/auth/session_check_urlbuilder.go
rename to api/operations/auth/session_check_urlbuilder.go
diff --git a/restapi/operations/bucket/add_bucket_lifecycle.go b/api/operations/bucket/add_bucket_lifecycle.go
similarity index 100%
rename from restapi/operations/bucket/add_bucket_lifecycle.go
rename to api/operations/bucket/add_bucket_lifecycle.go
diff --git a/restapi/operations/bucket/add_bucket_lifecycle_parameters.go b/api/operations/bucket/add_bucket_lifecycle_parameters.go
similarity index 100%
rename from restapi/operations/bucket/add_bucket_lifecycle_parameters.go
rename to api/operations/bucket/add_bucket_lifecycle_parameters.go
diff --git a/restapi/operations/bucket/add_bucket_lifecycle_responses.go b/api/operations/bucket/add_bucket_lifecycle_responses.go
similarity index 100%
rename from restapi/operations/bucket/add_bucket_lifecycle_responses.go
rename to api/operations/bucket/add_bucket_lifecycle_responses.go
diff --git a/restapi/operations/bucket/add_bucket_lifecycle_urlbuilder.go b/api/operations/bucket/add_bucket_lifecycle_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/add_bucket_lifecycle_urlbuilder.go
rename to api/operations/bucket/add_bucket_lifecycle_urlbuilder.go
diff --git a/restapi/operations/bucket/add_multi_bucket_lifecycle.go b/api/operations/bucket/add_multi_bucket_lifecycle.go
similarity index 100%
rename from restapi/operations/bucket/add_multi_bucket_lifecycle.go
rename to api/operations/bucket/add_multi_bucket_lifecycle.go
diff --git a/restapi/operations/bucket/add_multi_bucket_lifecycle_parameters.go b/api/operations/bucket/add_multi_bucket_lifecycle_parameters.go
similarity index 100%
rename from restapi/operations/bucket/add_multi_bucket_lifecycle_parameters.go
rename to api/operations/bucket/add_multi_bucket_lifecycle_parameters.go
diff --git a/restapi/operations/bucket/add_multi_bucket_lifecycle_responses.go b/api/operations/bucket/add_multi_bucket_lifecycle_responses.go
similarity index 100%
rename from restapi/operations/bucket/add_multi_bucket_lifecycle_responses.go
rename to api/operations/bucket/add_multi_bucket_lifecycle_responses.go
diff --git a/restapi/operations/bucket/add_multi_bucket_lifecycle_urlbuilder.go b/api/operations/bucket/add_multi_bucket_lifecycle_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/add_multi_bucket_lifecycle_urlbuilder.go
rename to api/operations/bucket/add_multi_bucket_lifecycle_urlbuilder.go
diff --git a/restapi/operations/bucket/add_remote_bucket.go b/api/operations/bucket/add_remote_bucket.go
similarity index 100%
rename from restapi/operations/bucket/add_remote_bucket.go
rename to api/operations/bucket/add_remote_bucket.go
diff --git a/restapi/operations/bucket/add_remote_bucket_parameters.go b/api/operations/bucket/add_remote_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/add_remote_bucket_parameters.go
rename to api/operations/bucket/add_remote_bucket_parameters.go
diff --git a/restapi/operations/bucket/add_remote_bucket_responses.go b/api/operations/bucket/add_remote_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/add_remote_bucket_responses.go
rename to api/operations/bucket/add_remote_bucket_responses.go
diff --git a/restapi/operations/bucket/add_remote_bucket_urlbuilder.go b/api/operations/bucket/add_remote_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/add_remote_bucket_urlbuilder.go
rename to api/operations/bucket/add_remote_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/bucket_info.go b/api/operations/bucket/bucket_info.go
similarity index 100%
rename from restapi/operations/bucket/bucket_info.go
rename to api/operations/bucket/bucket_info.go
diff --git a/restapi/operations/bucket/bucket_info_parameters.go b/api/operations/bucket/bucket_info_parameters.go
similarity index 100%
rename from restapi/operations/bucket/bucket_info_parameters.go
rename to api/operations/bucket/bucket_info_parameters.go
diff --git a/restapi/operations/bucket/bucket_info_responses.go b/api/operations/bucket/bucket_info_responses.go
similarity index 100%
rename from restapi/operations/bucket/bucket_info_responses.go
rename to api/operations/bucket/bucket_info_responses.go
diff --git a/restapi/operations/bucket/bucket_info_urlbuilder.go b/api/operations/bucket/bucket_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/bucket_info_urlbuilder.go
rename to api/operations/bucket/bucket_info_urlbuilder.go
diff --git a/restapi/operations/bucket/bucket_set_policy.go b/api/operations/bucket/bucket_set_policy.go
similarity index 100%
rename from restapi/operations/bucket/bucket_set_policy.go
rename to api/operations/bucket/bucket_set_policy.go
diff --git a/restapi/operations/bucket/bucket_set_policy_parameters.go b/api/operations/bucket/bucket_set_policy_parameters.go
similarity index 100%
rename from restapi/operations/bucket/bucket_set_policy_parameters.go
rename to api/operations/bucket/bucket_set_policy_parameters.go
diff --git a/restapi/operations/bucket/bucket_set_policy_responses.go b/api/operations/bucket/bucket_set_policy_responses.go
similarity index 100%
rename from restapi/operations/bucket/bucket_set_policy_responses.go
rename to api/operations/bucket/bucket_set_policy_responses.go
diff --git a/restapi/operations/bucket/bucket_set_policy_urlbuilder.go b/api/operations/bucket/bucket_set_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/bucket_set_policy_urlbuilder.go
rename to api/operations/bucket/bucket_set_policy_urlbuilder.go
diff --git a/restapi/operations/bucket/create_bucket_event.go b/api/operations/bucket/create_bucket_event.go
similarity index 100%
rename from restapi/operations/bucket/create_bucket_event.go
rename to api/operations/bucket/create_bucket_event.go
diff --git a/restapi/operations/bucket/create_bucket_event_parameters.go b/api/operations/bucket/create_bucket_event_parameters.go
similarity index 100%
rename from restapi/operations/bucket/create_bucket_event_parameters.go
rename to api/operations/bucket/create_bucket_event_parameters.go
diff --git a/restapi/operations/bucket/create_bucket_event_responses.go b/api/operations/bucket/create_bucket_event_responses.go
similarity index 100%
rename from restapi/operations/bucket/create_bucket_event_responses.go
rename to api/operations/bucket/create_bucket_event_responses.go
diff --git a/restapi/operations/bucket/create_bucket_event_urlbuilder.go b/api/operations/bucket/create_bucket_event_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/create_bucket_event_urlbuilder.go
rename to api/operations/bucket/create_bucket_event_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_access_rule_with_bucket.go b/api/operations/bucket/delete_access_rule_with_bucket.go
similarity index 100%
rename from restapi/operations/bucket/delete_access_rule_with_bucket.go
rename to api/operations/bucket/delete_access_rule_with_bucket.go
diff --git a/restapi/operations/bucket/delete_access_rule_with_bucket_parameters.go b/api/operations/bucket/delete_access_rule_with_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_access_rule_with_bucket_parameters.go
rename to api/operations/bucket/delete_access_rule_with_bucket_parameters.go
diff --git a/restapi/operations/bucket/delete_access_rule_with_bucket_responses.go b/api/operations/bucket/delete_access_rule_with_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_access_rule_with_bucket_responses.go
rename to api/operations/bucket/delete_access_rule_with_bucket_responses.go
diff --git a/restapi/operations/bucket/delete_access_rule_with_bucket_urlbuilder.go b/api/operations/bucket/delete_access_rule_with_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_access_rule_with_bucket_urlbuilder.go
rename to api/operations/bucket/delete_access_rule_with_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_all_replication_rules.go b/api/operations/bucket/delete_all_replication_rules.go
similarity index 100%
rename from restapi/operations/bucket/delete_all_replication_rules.go
rename to api/operations/bucket/delete_all_replication_rules.go
diff --git a/restapi/operations/bucket/delete_all_replication_rules_parameters.go b/api/operations/bucket/delete_all_replication_rules_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_all_replication_rules_parameters.go
rename to api/operations/bucket/delete_all_replication_rules_parameters.go
diff --git a/restapi/operations/bucket/delete_all_replication_rules_responses.go b/api/operations/bucket/delete_all_replication_rules_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_all_replication_rules_responses.go
rename to api/operations/bucket/delete_all_replication_rules_responses.go
diff --git a/restapi/operations/bucket/delete_all_replication_rules_urlbuilder.go b/api/operations/bucket/delete_all_replication_rules_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_all_replication_rules_urlbuilder.go
rename to api/operations/bucket/delete_all_replication_rules_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_bucket.go b/api/operations/bucket/delete_bucket.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket.go
rename to api/operations/bucket/delete_bucket.go
diff --git a/restapi/operations/bucket/delete_bucket_event.go b/api/operations/bucket/delete_bucket_event.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_event.go
rename to api/operations/bucket/delete_bucket_event.go
diff --git a/restapi/operations/bucket/delete_bucket_event_parameters.go b/api/operations/bucket/delete_bucket_event_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_event_parameters.go
rename to api/operations/bucket/delete_bucket_event_parameters.go
diff --git a/restapi/operations/bucket/delete_bucket_event_responses.go b/api/operations/bucket/delete_bucket_event_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_event_responses.go
rename to api/operations/bucket/delete_bucket_event_responses.go
diff --git a/restapi/operations/bucket/delete_bucket_event_urlbuilder.go b/api/operations/bucket/delete_bucket_event_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_event_urlbuilder.go
rename to api/operations/bucket/delete_bucket_event_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_bucket_lifecycle_rule.go b/api/operations/bucket/delete_bucket_lifecycle_rule.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_lifecycle_rule.go
rename to api/operations/bucket/delete_bucket_lifecycle_rule.go
diff --git a/restapi/operations/bucket/delete_bucket_lifecycle_rule_parameters.go b/api/operations/bucket/delete_bucket_lifecycle_rule_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_lifecycle_rule_parameters.go
rename to api/operations/bucket/delete_bucket_lifecycle_rule_parameters.go
diff --git a/restapi/operations/bucket/delete_bucket_lifecycle_rule_responses.go b/api/operations/bucket/delete_bucket_lifecycle_rule_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_lifecycle_rule_responses.go
rename to api/operations/bucket/delete_bucket_lifecycle_rule_responses.go
diff --git a/restapi/operations/bucket/delete_bucket_lifecycle_rule_urlbuilder.go b/api/operations/bucket/delete_bucket_lifecycle_rule_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_lifecycle_rule_urlbuilder.go
rename to api/operations/bucket/delete_bucket_lifecycle_rule_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_bucket_parameters.go b/api/operations/bucket/delete_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_parameters.go
rename to api/operations/bucket/delete_bucket_parameters.go
diff --git a/restapi/operations/bucket/delete_bucket_replication_rule.go b/api/operations/bucket/delete_bucket_replication_rule.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_replication_rule.go
rename to api/operations/bucket/delete_bucket_replication_rule.go
diff --git a/restapi/operations/bucket/delete_bucket_replication_rule_parameters.go b/api/operations/bucket/delete_bucket_replication_rule_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_replication_rule_parameters.go
rename to api/operations/bucket/delete_bucket_replication_rule_parameters.go
diff --git a/restapi/operations/bucket/delete_bucket_replication_rule_responses.go b/api/operations/bucket/delete_bucket_replication_rule_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_replication_rule_responses.go
rename to api/operations/bucket/delete_bucket_replication_rule_responses.go
diff --git a/restapi/operations/bucket/delete_bucket_replication_rule_urlbuilder.go b/api/operations/bucket/delete_bucket_replication_rule_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_replication_rule_urlbuilder.go
rename to api/operations/bucket/delete_bucket_replication_rule_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_bucket_responses.go b/api/operations/bucket/delete_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_responses.go
rename to api/operations/bucket/delete_bucket_responses.go
diff --git a/restapi/operations/bucket/delete_bucket_urlbuilder.go b/api/operations/bucket/delete_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_bucket_urlbuilder.go
rename to api/operations/bucket/delete_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_remote_bucket.go b/api/operations/bucket/delete_remote_bucket.go
similarity index 100%
rename from restapi/operations/bucket/delete_remote_bucket.go
rename to api/operations/bucket/delete_remote_bucket.go
diff --git a/restapi/operations/bucket/delete_remote_bucket_parameters.go b/api/operations/bucket/delete_remote_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_remote_bucket_parameters.go
rename to api/operations/bucket/delete_remote_bucket_parameters.go
diff --git a/restapi/operations/bucket/delete_remote_bucket_responses.go b/api/operations/bucket/delete_remote_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_remote_bucket_responses.go
rename to api/operations/bucket/delete_remote_bucket_responses.go
diff --git a/restapi/operations/bucket/delete_remote_bucket_urlbuilder.go b/api/operations/bucket/delete_remote_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_remote_bucket_urlbuilder.go
rename to api/operations/bucket/delete_remote_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/delete_selected_replication_rules.go b/api/operations/bucket/delete_selected_replication_rules.go
similarity index 100%
rename from restapi/operations/bucket/delete_selected_replication_rules.go
rename to api/operations/bucket/delete_selected_replication_rules.go
diff --git a/restapi/operations/bucket/delete_selected_replication_rules_parameters.go b/api/operations/bucket/delete_selected_replication_rules_parameters.go
similarity index 100%
rename from restapi/operations/bucket/delete_selected_replication_rules_parameters.go
rename to api/operations/bucket/delete_selected_replication_rules_parameters.go
diff --git a/restapi/operations/bucket/delete_selected_replication_rules_responses.go b/api/operations/bucket/delete_selected_replication_rules_responses.go
similarity index 100%
rename from restapi/operations/bucket/delete_selected_replication_rules_responses.go
rename to api/operations/bucket/delete_selected_replication_rules_responses.go
diff --git a/restapi/operations/bucket/delete_selected_replication_rules_urlbuilder.go b/api/operations/bucket/delete_selected_replication_rules_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/delete_selected_replication_rules_urlbuilder.go
rename to api/operations/bucket/delete_selected_replication_rules_urlbuilder.go
diff --git a/restapi/operations/bucket/disable_bucket_encryption.go b/api/operations/bucket/disable_bucket_encryption.go
similarity index 100%
rename from restapi/operations/bucket/disable_bucket_encryption.go
rename to api/operations/bucket/disable_bucket_encryption.go
diff --git a/restapi/operations/bucket/disable_bucket_encryption_parameters.go b/api/operations/bucket/disable_bucket_encryption_parameters.go
similarity index 100%
rename from restapi/operations/bucket/disable_bucket_encryption_parameters.go
rename to api/operations/bucket/disable_bucket_encryption_parameters.go
diff --git a/restapi/operations/bucket/disable_bucket_encryption_responses.go b/api/operations/bucket/disable_bucket_encryption_responses.go
similarity index 100%
rename from restapi/operations/bucket/disable_bucket_encryption_responses.go
rename to api/operations/bucket/disable_bucket_encryption_responses.go
diff --git a/restapi/operations/bucket/disable_bucket_encryption_urlbuilder.go b/api/operations/bucket/disable_bucket_encryption_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/disable_bucket_encryption_urlbuilder.go
rename to api/operations/bucket/disable_bucket_encryption_urlbuilder.go
diff --git a/restapi/operations/bucket/enable_bucket_encryption.go b/api/operations/bucket/enable_bucket_encryption.go
similarity index 100%
rename from restapi/operations/bucket/enable_bucket_encryption.go
rename to api/operations/bucket/enable_bucket_encryption.go
diff --git a/restapi/operations/bucket/enable_bucket_encryption_parameters.go b/api/operations/bucket/enable_bucket_encryption_parameters.go
similarity index 100%
rename from restapi/operations/bucket/enable_bucket_encryption_parameters.go
rename to api/operations/bucket/enable_bucket_encryption_parameters.go
diff --git a/restapi/operations/bucket/enable_bucket_encryption_responses.go b/api/operations/bucket/enable_bucket_encryption_responses.go
similarity index 100%
rename from restapi/operations/bucket/enable_bucket_encryption_responses.go
rename to api/operations/bucket/enable_bucket_encryption_responses.go
diff --git a/restapi/operations/bucket/enable_bucket_encryption_urlbuilder.go b/api/operations/bucket/enable_bucket_encryption_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/enable_bucket_encryption_urlbuilder.go
rename to api/operations/bucket/enable_bucket_encryption_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_encryption_info.go b/api/operations/bucket/get_bucket_encryption_info.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_encryption_info.go
rename to api/operations/bucket/get_bucket_encryption_info.go
diff --git a/restapi/operations/bucket/get_bucket_encryption_info_parameters.go b/api/operations/bucket/get_bucket_encryption_info_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_encryption_info_parameters.go
rename to api/operations/bucket/get_bucket_encryption_info_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_encryption_info_responses.go b/api/operations/bucket/get_bucket_encryption_info_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_encryption_info_responses.go
rename to api/operations/bucket/get_bucket_encryption_info_responses.go
diff --git a/restapi/operations/bucket/get_bucket_encryption_info_urlbuilder.go b/api/operations/bucket/get_bucket_encryption_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_encryption_info_urlbuilder.go
rename to api/operations/bucket/get_bucket_encryption_info_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_lifecycle.go b/api/operations/bucket/get_bucket_lifecycle.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_lifecycle.go
rename to api/operations/bucket/get_bucket_lifecycle.go
diff --git a/restapi/operations/bucket/get_bucket_lifecycle_parameters.go b/api/operations/bucket/get_bucket_lifecycle_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_lifecycle_parameters.go
rename to api/operations/bucket/get_bucket_lifecycle_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_lifecycle_responses.go b/api/operations/bucket/get_bucket_lifecycle_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_lifecycle_responses.go
rename to api/operations/bucket/get_bucket_lifecycle_responses.go
diff --git a/restapi/operations/bucket/get_bucket_lifecycle_urlbuilder.go b/api/operations/bucket/get_bucket_lifecycle_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_lifecycle_urlbuilder.go
rename to api/operations/bucket/get_bucket_lifecycle_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_object_locking_status.go b/api/operations/bucket/get_bucket_object_locking_status.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_object_locking_status.go
rename to api/operations/bucket/get_bucket_object_locking_status.go
diff --git a/restapi/operations/bucket/get_bucket_object_locking_status_parameters.go b/api/operations/bucket/get_bucket_object_locking_status_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_object_locking_status_parameters.go
rename to api/operations/bucket/get_bucket_object_locking_status_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_object_locking_status_responses.go b/api/operations/bucket/get_bucket_object_locking_status_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_object_locking_status_responses.go
rename to api/operations/bucket/get_bucket_object_locking_status_responses.go
diff --git a/restapi/operations/bucket/get_bucket_object_locking_status_urlbuilder.go b/api/operations/bucket/get_bucket_object_locking_status_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_object_locking_status_urlbuilder.go
rename to api/operations/bucket/get_bucket_object_locking_status_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_quota.go b/api/operations/bucket/get_bucket_quota.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_quota.go
rename to api/operations/bucket/get_bucket_quota.go
diff --git a/restapi/operations/bucket/get_bucket_quota_parameters.go b/api/operations/bucket/get_bucket_quota_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_quota_parameters.go
rename to api/operations/bucket/get_bucket_quota_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_quota_responses.go b/api/operations/bucket/get_bucket_quota_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_quota_responses.go
rename to api/operations/bucket/get_bucket_quota_responses.go
diff --git a/restapi/operations/bucket/get_bucket_quota_urlbuilder.go b/api/operations/bucket/get_bucket_quota_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_quota_urlbuilder.go
rename to api/operations/bucket/get_bucket_quota_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_replication.go b/api/operations/bucket/get_bucket_replication.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication.go
rename to api/operations/bucket/get_bucket_replication.go
diff --git a/restapi/operations/bucket/get_bucket_replication_parameters.go b/api/operations/bucket/get_bucket_replication_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_parameters.go
rename to api/operations/bucket/get_bucket_replication_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_replication_responses.go b/api/operations/bucket/get_bucket_replication_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_responses.go
rename to api/operations/bucket/get_bucket_replication_responses.go
diff --git a/restapi/operations/bucket/get_bucket_replication_rule.go b/api/operations/bucket/get_bucket_replication_rule.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_rule.go
rename to api/operations/bucket/get_bucket_replication_rule.go
diff --git a/restapi/operations/bucket/get_bucket_replication_rule_parameters.go b/api/operations/bucket/get_bucket_replication_rule_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_rule_parameters.go
rename to api/operations/bucket/get_bucket_replication_rule_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_replication_rule_responses.go b/api/operations/bucket/get_bucket_replication_rule_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_rule_responses.go
rename to api/operations/bucket/get_bucket_replication_rule_responses.go
diff --git a/restapi/operations/bucket/get_bucket_replication_rule_urlbuilder.go b/api/operations/bucket/get_bucket_replication_rule_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_rule_urlbuilder.go
rename to api/operations/bucket/get_bucket_replication_rule_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_replication_urlbuilder.go b/api/operations/bucket/get_bucket_replication_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_replication_urlbuilder.go
rename to api/operations/bucket/get_bucket_replication_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_retention_config.go b/api/operations/bucket/get_bucket_retention_config.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_retention_config.go
rename to api/operations/bucket/get_bucket_retention_config.go
diff --git a/restapi/operations/bucket/get_bucket_retention_config_parameters.go b/api/operations/bucket/get_bucket_retention_config_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_retention_config_parameters.go
rename to api/operations/bucket/get_bucket_retention_config_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_retention_config_responses.go b/api/operations/bucket/get_bucket_retention_config_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_retention_config_responses.go
rename to api/operations/bucket/get_bucket_retention_config_responses.go
diff --git a/restapi/operations/bucket/get_bucket_retention_config_urlbuilder.go b/api/operations/bucket/get_bucket_retention_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_retention_config_urlbuilder.go
rename to api/operations/bucket/get_bucket_retention_config_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_rewind.go b/api/operations/bucket/get_bucket_rewind.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_rewind.go
rename to api/operations/bucket/get_bucket_rewind.go
diff --git a/restapi/operations/bucket/get_bucket_rewind_parameters.go b/api/operations/bucket/get_bucket_rewind_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_rewind_parameters.go
rename to api/operations/bucket/get_bucket_rewind_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_rewind_responses.go b/api/operations/bucket/get_bucket_rewind_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_rewind_responses.go
rename to api/operations/bucket/get_bucket_rewind_responses.go
diff --git a/restapi/operations/bucket/get_bucket_rewind_urlbuilder.go b/api/operations/bucket/get_bucket_rewind_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_rewind_urlbuilder.go
rename to api/operations/bucket/get_bucket_rewind_urlbuilder.go
diff --git a/restapi/operations/bucket/get_bucket_versioning.go b/api/operations/bucket/get_bucket_versioning.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_versioning.go
rename to api/operations/bucket/get_bucket_versioning.go
diff --git a/restapi/operations/bucket/get_bucket_versioning_parameters.go b/api/operations/bucket/get_bucket_versioning_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_versioning_parameters.go
rename to api/operations/bucket/get_bucket_versioning_parameters.go
diff --git a/restapi/operations/bucket/get_bucket_versioning_responses.go b/api/operations/bucket/get_bucket_versioning_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_versioning_responses.go
rename to api/operations/bucket/get_bucket_versioning_responses.go
diff --git a/restapi/operations/bucket/get_bucket_versioning_urlbuilder.go b/api/operations/bucket/get_bucket_versioning_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_bucket_versioning_urlbuilder.go
rename to api/operations/bucket/get_bucket_versioning_urlbuilder.go
diff --git a/restapi/operations/bucket/get_max_share_link_exp.go b/api/operations/bucket/get_max_share_link_exp.go
similarity index 100%
rename from restapi/operations/bucket/get_max_share_link_exp.go
rename to api/operations/bucket/get_max_share_link_exp.go
diff --git a/restapi/operations/bucket/get_max_share_link_exp_parameters.go b/api/operations/bucket/get_max_share_link_exp_parameters.go
similarity index 100%
rename from restapi/operations/bucket/get_max_share_link_exp_parameters.go
rename to api/operations/bucket/get_max_share_link_exp_parameters.go
diff --git a/restapi/operations/bucket/get_max_share_link_exp_responses.go b/api/operations/bucket/get_max_share_link_exp_responses.go
similarity index 100%
rename from restapi/operations/bucket/get_max_share_link_exp_responses.go
rename to api/operations/bucket/get_max_share_link_exp_responses.go
diff --git a/restapi/operations/bucket/get_max_share_link_exp_urlbuilder.go b/api/operations/bucket/get_max_share_link_exp_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/get_max_share_link_exp_urlbuilder.go
rename to api/operations/bucket/get_max_share_link_exp_urlbuilder.go
diff --git a/restapi/operations/bucket/list_access_rules_with_bucket.go b/api/operations/bucket/list_access_rules_with_bucket.go
similarity index 100%
rename from restapi/operations/bucket/list_access_rules_with_bucket.go
rename to api/operations/bucket/list_access_rules_with_bucket.go
diff --git a/restapi/operations/bucket/list_access_rules_with_bucket_parameters.go b/api/operations/bucket/list_access_rules_with_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_access_rules_with_bucket_parameters.go
rename to api/operations/bucket/list_access_rules_with_bucket_parameters.go
diff --git a/restapi/operations/bucket/list_access_rules_with_bucket_responses.go b/api/operations/bucket/list_access_rules_with_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_access_rules_with_bucket_responses.go
rename to api/operations/bucket/list_access_rules_with_bucket_responses.go
diff --git a/restapi/operations/bucket/list_access_rules_with_bucket_urlbuilder.go b/api/operations/bucket/list_access_rules_with_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_access_rules_with_bucket_urlbuilder.go
rename to api/operations/bucket/list_access_rules_with_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/list_bucket_events.go b/api/operations/bucket/list_bucket_events.go
similarity index 100%
rename from restapi/operations/bucket/list_bucket_events.go
rename to api/operations/bucket/list_bucket_events.go
diff --git a/restapi/operations/bucket/list_bucket_events_parameters.go b/api/operations/bucket/list_bucket_events_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_bucket_events_parameters.go
rename to api/operations/bucket/list_bucket_events_parameters.go
diff --git a/restapi/operations/bucket/list_bucket_events_responses.go b/api/operations/bucket/list_bucket_events_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_bucket_events_responses.go
rename to api/operations/bucket/list_bucket_events_responses.go
diff --git a/restapi/operations/bucket/list_bucket_events_urlbuilder.go b/api/operations/bucket/list_bucket_events_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_bucket_events_urlbuilder.go
rename to api/operations/bucket/list_bucket_events_urlbuilder.go
diff --git a/restapi/operations/bucket/list_buckets.go b/api/operations/bucket/list_buckets.go
similarity index 100%
rename from restapi/operations/bucket/list_buckets.go
rename to api/operations/bucket/list_buckets.go
diff --git a/restapi/operations/bucket/list_buckets_parameters.go b/api/operations/bucket/list_buckets_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_buckets_parameters.go
rename to api/operations/bucket/list_buckets_parameters.go
diff --git a/restapi/operations/bucket/list_buckets_responses.go b/api/operations/bucket/list_buckets_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_buckets_responses.go
rename to api/operations/bucket/list_buckets_responses.go
diff --git a/restapi/operations/bucket/list_buckets_urlbuilder.go b/api/operations/bucket/list_buckets_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_buckets_urlbuilder.go
rename to api/operations/bucket/list_buckets_urlbuilder.go
diff --git a/restapi/operations/bucket/list_external_buckets.go b/api/operations/bucket/list_external_buckets.go
similarity index 100%
rename from restapi/operations/bucket/list_external_buckets.go
rename to api/operations/bucket/list_external_buckets.go
diff --git a/restapi/operations/bucket/list_external_buckets_parameters.go b/api/operations/bucket/list_external_buckets_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_external_buckets_parameters.go
rename to api/operations/bucket/list_external_buckets_parameters.go
diff --git a/restapi/operations/bucket/list_external_buckets_responses.go b/api/operations/bucket/list_external_buckets_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_external_buckets_responses.go
rename to api/operations/bucket/list_external_buckets_responses.go
diff --git a/restapi/operations/bucket/list_external_buckets_urlbuilder.go b/api/operations/bucket/list_external_buckets_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_external_buckets_urlbuilder.go
rename to api/operations/bucket/list_external_buckets_urlbuilder.go
diff --git a/restapi/operations/bucket/list_policies_with_bucket.go b/api/operations/bucket/list_policies_with_bucket.go
similarity index 100%
rename from restapi/operations/bucket/list_policies_with_bucket.go
rename to api/operations/bucket/list_policies_with_bucket.go
diff --git a/restapi/operations/bucket/list_policies_with_bucket_parameters.go b/api/operations/bucket/list_policies_with_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_policies_with_bucket_parameters.go
rename to api/operations/bucket/list_policies_with_bucket_parameters.go
diff --git a/restapi/operations/bucket/list_policies_with_bucket_responses.go b/api/operations/bucket/list_policies_with_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_policies_with_bucket_responses.go
rename to api/operations/bucket/list_policies_with_bucket_responses.go
diff --git a/restapi/operations/bucket/list_policies_with_bucket_urlbuilder.go b/api/operations/bucket/list_policies_with_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_policies_with_bucket_urlbuilder.go
rename to api/operations/bucket/list_policies_with_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/list_remote_buckets.go b/api/operations/bucket/list_remote_buckets.go
similarity index 100%
rename from restapi/operations/bucket/list_remote_buckets.go
rename to api/operations/bucket/list_remote_buckets.go
diff --git a/restapi/operations/bucket/list_remote_buckets_parameters.go b/api/operations/bucket/list_remote_buckets_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_remote_buckets_parameters.go
rename to api/operations/bucket/list_remote_buckets_parameters.go
diff --git a/restapi/operations/bucket/list_remote_buckets_responses.go b/api/operations/bucket/list_remote_buckets_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_remote_buckets_responses.go
rename to api/operations/bucket/list_remote_buckets_responses.go
diff --git a/restapi/operations/bucket/list_remote_buckets_urlbuilder.go b/api/operations/bucket/list_remote_buckets_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_remote_buckets_urlbuilder.go
rename to api/operations/bucket/list_remote_buckets_urlbuilder.go
diff --git a/restapi/operations/bucket/list_users_with_access_to_bucket.go b/api/operations/bucket/list_users_with_access_to_bucket.go
similarity index 100%
rename from restapi/operations/bucket/list_users_with_access_to_bucket.go
rename to api/operations/bucket/list_users_with_access_to_bucket.go
diff --git a/restapi/operations/bucket/list_users_with_access_to_bucket_parameters.go b/api/operations/bucket/list_users_with_access_to_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/list_users_with_access_to_bucket_parameters.go
rename to api/operations/bucket/list_users_with_access_to_bucket_parameters.go
diff --git a/restapi/operations/bucket/list_users_with_access_to_bucket_responses.go b/api/operations/bucket/list_users_with_access_to_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/list_users_with_access_to_bucket_responses.go
rename to api/operations/bucket/list_users_with_access_to_bucket_responses.go
diff --git a/restapi/operations/bucket/list_users_with_access_to_bucket_urlbuilder.go b/api/operations/bucket/list_users_with_access_to_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/list_users_with_access_to_bucket_urlbuilder.go
rename to api/operations/bucket/list_users_with_access_to_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/make_bucket.go b/api/operations/bucket/make_bucket.go
similarity index 100%
rename from restapi/operations/bucket/make_bucket.go
rename to api/operations/bucket/make_bucket.go
diff --git a/restapi/operations/bucket/make_bucket_parameters.go b/api/operations/bucket/make_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/make_bucket_parameters.go
rename to api/operations/bucket/make_bucket_parameters.go
diff --git a/restapi/operations/bucket/make_bucket_responses.go b/api/operations/bucket/make_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/make_bucket_responses.go
rename to api/operations/bucket/make_bucket_responses.go
diff --git a/restapi/operations/bucket/make_bucket_urlbuilder.go b/api/operations/bucket/make_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/make_bucket_urlbuilder.go
rename to api/operations/bucket/make_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/put_bucket_tags.go b/api/operations/bucket/put_bucket_tags.go
similarity index 100%
rename from restapi/operations/bucket/put_bucket_tags.go
rename to api/operations/bucket/put_bucket_tags.go
diff --git a/restapi/operations/bucket/put_bucket_tags_parameters.go b/api/operations/bucket/put_bucket_tags_parameters.go
similarity index 100%
rename from restapi/operations/bucket/put_bucket_tags_parameters.go
rename to api/operations/bucket/put_bucket_tags_parameters.go
diff --git a/restapi/operations/bucket/put_bucket_tags_responses.go b/api/operations/bucket/put_bucket_tags_responses.go
similarity index 100%
rename from restapi/operations/bucket/put_bucket_tags_responses.go
rename to api/operations/bucket/put_bucket_tags_responses.go
diff --git a/restapi/operations/bucket/put_bucket_tags_urlbuilder.go b/api/operations/bucket/put_bucket_tags_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/put_bucket_tags_urlbuilder.go
rename to api/operations/bucket/put_bucket_tags_urlbuilder.go
diff --git a/restapi/operations/bucket/remote_bucket_details.go b/api/operations/bucket/remote_bucket_details.go
similarity index 100%
rename from restapi/operations/bucket/remote_bucket_details.go
rename to api/operations/bucket/remote_bucket_details.go
diff --git a/restapi/operations/bucket/remote_bucket_details_parameters.go b/api/operations/bucket/remote_bucket_details_parameters.go
similarity index 100%
rename from restapi/operations/bucket/remote_bucket_details_parameters.go
rename to api/operations/bucket/remote_bucket_details_parameters.go
diff --git a/restapi/operations/bucket/remote_bucket_details_responses.go b/api/operations/bucket/remote_bucket_details_responses.go
similarity index 100%
rename from restapi/operations/bucket/remote_bucket_details_responses.go
rename to api/operations/bucket/remote_bucket_details_responses.go
diff --git a/restapi/operations/bucket/remote_bucket_details_urlbuilder.go b/api/operations/bucket/remote_bucket_details_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/remote_bucket_details_urlbuilder.go
rename to api/operations/bucket/remote_bucket_details_urlbuilder.go
diff --git a/restapi/operations/bucket/set_access_rule_with_bucket.go b/api/operations/bucket/set_access_rule_with_bucket.go
similarity index 100%
rename from restapi/operations/bucket/set_access_rule_with_bucket.go
rename to api/operations/bucket/set_access_rule_with_bucket.go
diff --git a/restapi/operations/bucket/set_access_rule_with_bucket_parameters.go b/api/operations/bucket/set_access_rule_with_bucket_parameters.go
similarity index 100%
rename from restapi/operations/bucket/set_access_rule_with_bucket_parameters.go
rename to api/operations/bucket/set_access_rule_with_bucket_parameters.go
diff --git a/restapi/operations/bucket/set_access_rule_with_bucket_responses.go b/api/operations/bucket/set_access_rule_with_bucket_responses.go
similarity index 100%
rename from restapi/operations/bucket/set_access_rule_with_bucket_responses.go
rename to api/operations/bucket/set_access_rule_with_bucket_responses.go
diff --git a/restapi/operations/bucket/set_access_rule_with_bucket_urlbuilder.go b/api/operations/bucket/set_access_rule_with_bucket_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/set_access_rule_with_bucket_urlbuilder.go
rename to api/operations/bucket/set_access_rule_with_bucket_urlbuilder.go
diff --git a/restapi/operations/bucket/set_bucket_quota.go b/api/operations/bucket/set_bucket_quota.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_quota.go
rename to api/operations/bucket/set_bucket_quota.go
diff --git a/restapi/operations/bucket/set_bucket_quota_parameters.go b/api/operations/bucket/set_bucket_quota_parameters.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_quota_parameters.go
rename to api/operations/bucket/set_bucket_quota_parameters.go
diff --git a/restapi/operations/bucket/set_bucket_quota_responses.go b/api/operations/bucket/set_bucket_quota_responses.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_quota_responses.go
rename to api/operations/bucket/set_bucket_quota_responses.go
diff --git a/restapi/operations/bucket/set_bucket_quota_urlbuilder.go b/api/operations/bucket/set_bucket_quota_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_quota_urlbuilder.go
rename to api/operations/bucket/set_bucket_quota_urlbuilder.go
diff --git a/restapi/operations/bucket/set_bucket_retention_config.go b/api/operations/bucket/set_bucket_retention_config.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_retention_config.go
rename to api/operations/bucket/set_bucket_retention_config.go
diff --git a/restapi/operations/bucket/set_bucket_retention_config_parameters.go b/api/operations/bucket/set_bucket_retention_config_parameters.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_retention_config_parameters.go
rename to api/operations/bucket/set_bucket_retention_config_parameters.go
diff --git a/restapi/operations/bucket/set_bucket_retention_config_responses.go b/api/operations/bucket/set_bucket_retention_config_responses.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_retention_config_responses.go
rename to api/operations/bucket/set_bucket_retention_config_responses.go
diff --git a/restapi/operations/bucket/set_bucket_retention_config_urlbuilder.go b/api/operations/bucket/set_bucket_retention_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_retention_config_urlbuilder.go
rename to api/operations/bucket/set_bucket_retention_config_urlbuilder.go
diff --git a/restapi/operations/bucket/set_bucket_versioning.go b/api/operations/bucket/set_bucket_versioning.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_versioning.go
rename to api/operations/bucket/set_bucket_versioning.go
diff --git a/restapi/operations/bucket/set_bucket_versioning_parameters.go b/api/operations/bucket/set_bucket_versioning_parameters.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_versioning_parameters.go
rename to api/operations/bucket/set_bucket_versioning_parameters.go
diff --git a/restapi/operations/bucket/set_bucket_versioning_responses.go b/api/operations/bucket/set_bucket_versioning_responses.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_versioning_responses.go
rename to api/operations/bucket/set_bucket_versioning_responses.go
diff --git a/restapi/operations/bucket/set_bucket_versioning_urlbuilder.go b/api/operations/bucket/set_bucket_versioning_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/set_bucket_versioning_urlbuilder.go
rename to api/operations/bucket/set_bucket_versioning_urlbuilder.go
diff --git a/restapi/operations/bucket/set_multi_bucket_replication.go b/api/operations/bucket/set_multi_bucket_replication.go
similarity index 100%
rename from restapi/operations/bucket/set_multi_bucket_replication.go
rename to api/operations/bucket/set_multi_bucket_replication.go
diff --git a/restapi/operations/bucket/set_multi_bucket_replication_parameters.go b/api/operations/bucket/set_multi_bucket_replication_parameters.go
similarity index 100%
rename from restapi/operations/bucket/set_multi_bucket_replication_parameters.go
rename to api/operations/bucket/set_multi_bucket_replication_parameters.go
diff --git a/restapi/operations/bucket/set_multi_bucket_replication_responses.go b/api/operations/bucket/set_multi_bucket_replication_responses.go
similarity index 100%
rename from restapi/operations/bucket/set_multi_bucket_replication_responses.go
rename to api/operations/bucket/set_multi_bucket_replication_responses.go
diff --git a/restapi/operations/bucket/set_multi_bucket_replication_urlbuilder.go b/api/operations/bucket/set_multi_bucket_replication_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/set_multi_bucket_replication_urlbuilder.go
rename to api/operations/bucket/set_multi_bucket_replication_urlbuilder.go
diff --git a/restapi/operations/bucket/update_bucket_lifecycle.go b/api/operations/bucket/update_bucket_lifecycle.go
similarity index 100%
rename from restapi/operations/bucket/update_bucket_lifecycle.go
rename to api/operations/bucket/update_bucket_lifecycle.go
diff --git a/restapi/operations/bucket/update_bucket_lifecycle_parameters.go b/api/operations/bucket/update_bucket_lifecycle_parameters.go
similarity index 100%
rename from restapi/operations/bucket/update_bucket_lifecycle_parameters.go
rename to api/operations/bucket/update_bucket_lifecycle_parameters.go
diff --git a/restapi/operations/bucket/update_bucket_lifecycle_responses.go b/api/operations/bucket/update_bucket_lifecycle_responses.go
similarity index 100%
rename from restapi/operations/bucket/update_bucket_lifecycle_responses.go
rename to api/operations/bucket/update_bucket_lifecycle_responses.go
diff --git a/restapi/operations/bucket/update_bucket_lifecycle_urlbuilder.go b/api/operations/bucket/update_bucket_lifecycle_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/update_bucket_lifecycle_urlbuilder.go
rename to api/operations/bucket/update_bucket_lifecycle_urlbuilder.go
diff --git a/restapi/operations/bucket/update_multi_bucket_replication.go b/api/operations/bucket/update_multi_bucket_replication.go
similarity index 100%
rename from restapi/operations/bucket/update_multi_bucket_replication.go
rename to api/operations/bucket/update_multi_bucket_replication.go
diff --git a/restapi/operations/bucket/update_multi_bucket_replication_parameters.go b/api/operations/bucket/update_multi_bucket_replication_parameters.go
similarity index 100%
rename from restapi/operations/bucket/update_multi_bucket_replication_parameters.go
rename to api/operations/bucket/update_multi_bucket_replication_parameters.go
diff --git a/restapi/operations/bucket/update_multi_bucket_replication_responses.go b/api/operations/bucket/update_multi_bucket_replication_responses.go
similarity index 100%
rename from restapi/operations/bucket/update_multi_bucket_replication_responses.go
rename to api/operations/bucket/update_multi_bucket_replication_responses.go
diff --git a/restapi/operations/bucket/update_multi_bucket_replication_urlbuilder.go b/api/operations/bucket/update_multi_bucket_replication_urlbuilder.go
similarity index 100%
rename from restapi/operations/bucket/update_multi_bucket_replication_urlbuilder.go
rename to api/operations/bucket/update_multi_bucket_replication_urlbuilder.go
diff --git a/restapi/operations/configuration/add_notification_endpoint.go b/api/operations/configuration/add_notification_endpoint.go
similarity index 100%
rename from restapi/operations/configuration/add_notification_endpoint.go
rename to api/operations/configuration/add_notification_endpoint.go
diff --git a/restapi/operations/configuration/add_notification_endpoint_parameters.go b/api/operations/configuration/add_notification_endpoint_parameters.go
similarity index 100%
rename from restapi/operations/configuration/add_notification_endpoint_parameters.go
rename to api/operations/configuration/add_notification_endpoint_parameters.go
diff --git a/restapi/operations/configuration/add_notification_endpoint_responses.go b/api/operations/configuration/add_notification_endpoint_responses.go
similarity index 100%
rename from restapi/operations/configuration/add_notification_endpoint_responses.go
rename to api/operations/configuration/add_notification_endpoint_responses.go
diff --git a/restapi/operations/configuration/add_notification_endpoint_urlbuilder.go b/api/operations/configuration/add_notification_endpoint_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/add_notification_endpoint_urlbuilder.go
rename to api/operations/configuration/add_notification_endpoint_urlbuilder.go
diff --git a/restapi/operations/configuration/config_info.go b/api/operations/configuration/config_info.go
similarity index 100%
rename from restapi/operations/configuration/config_info.go
rename to api/operations/configuration/config_info.go
diff --git a/restapi/operations/configuration/config_info_parameters.go b/api/operations/configuration/config_info_parameters.go
similarity index 100%
rename from restapi/operations/configuration/config_info_parameters.go
rename to api/operations/configuration/config_info_parameters.go
diff --git a/restapi/operations/configuration/config_info_responses.go b/api/operations/configuration/config_info_responses.go
similarity index 100%
rename from restapi/operations/configuration/config_info_responses.go
rename to api/operations/configuration/config_info_responses.go
diff --git a/restapi/operations/configuration/config_info_urlbuilder.go b/api/operations/configuration/config_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/config_info_urlbuilder.go
rename to api/operations/configuration/config_info_urlbuilder.go
diff --git a/restapi/operations/configuration/export_config.go b/api/operations/configuration/export_config.go
similarity index 100%
rename from restapi/operations/configuration/export_config.go
rename to api/operations/configuration/export_config.go
diff --git a/restapi/operations/configuration/export_config_parameters.go b/api/operations/configuration/export_config_parameters.go
similarity index 100%
rename from restapi/operations/configuration/export_config_parameters.go
rename to api/operations/configuration/export_config_parameters.go
diff --git a/restapi/operations/configuration/export_config_responses.go b/api/operations/configuration/export_config_responses.go
similarity index 100%
rename from restapi/operations/configuration/export_config_responses.go
rename to api/operations/configuration/export_config_responses.go
diff --git a/restapi/operations/configuration/export_config_urlbuilder.go b/api/operations/configuration/export_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/export_config_urlbuilder.go
rename to api/operations/configuration/export_config_urlbuilder.go
diff --git a/restapi/operations/configuration/list_config.go b/api/operations/configuration/list_config.go
similarity index 100%
rename from restapi/operations/configuration/list_config.go
rename to api/operations/configuration/list_config.go
diff --git a/restapi/operations/configuration/list_config_parameters.go b/api/operations/configuration/list_config_parameters.go
similarity index 100%
rename from restapi/operations/configuration/list_config_parameters.go
rename to api/operations/configuration/list_config_parameters.go
diff --git a/restapi/operations/configuration/list_config_responses.go b/api/operations/configuration/list_config_responses.go
similarity index 100%
rename from restapi/operations/configuration/list_config_responses.go
rename to api/operations/configuration/list_config_responses.go
diff --git a/restapi/operations/configuration/list_config_urlbuilder.go b/api/operations/configuration/list_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/list_config_urlbuilder.go
rename to api/operations/configuration/list_config_urlbuilder.go
diff --git a/restapi/operations/configuration/notification_endpoint_list.go b/api/operations/configuration/notification_endpoint_list.go
similarity index 100%
rename from restapi/operations/configuration/notification_endpoint_list.go
rename to api/operations/configuration/notification_endpoint_list.go
diff --git a/restapi/operations/configuration/notification_endpoint_list_parameters.go b/api/operations/configuration/notification_endpoint_list_parameters.go
similarity index 100%
rename from restapi/operations/configuration/notification_endpoint_list_parameters.go
rename to api/operations/configuration/notification_endpoint_list_parameters.go
diff --git a/restapi/operations/configuration/notification_endpoint_list_responses.go b/api/operations/configuration/notification_endpoint_list_responses.go
similarity index 100%
rename from restapi/operations/configuration/notification_endpoint_list_responses.go
rename to api/operations/configuration/notification_endpoint_list_responses.go
diff --git a/restapi/operations/configuration/notification_endpoint_list_urlbuilder.go b/api/operations/configuration/notification_endpoint_list_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/notification_endpoint_list_urlbuilder.go
rename to api/operations/configuration/notification_endpoint_list_urlbuilder.go
diff --git a/restapi/operations/configuration/post_configs_import.go b/api/operations/configuration/post_configs_import.go
similarity index 100%
rename from restapi/operations/configuration/post_configs_import.go
rename to api/operations/configuration/post_configs_import.go
diff --git a/restapi/operations/configuration/post_configs_import_parameters.go b/api/operations/configuration/post_configs_import_parameters.go
similarity index 100%
rename from restapi/operations/configuration/post_configs_import_parameters.go
rename to api/operations/configuration/post_configs_import_parameters.go
diff --git a/restapi/operations/configuration/post_configs_import_responses.go b/api/operations/configuration/post_configs_import_responses.go
similarity index 100%
rename from restapi/operations/configuration/post_configs_import_responses.go
rename to api/operations/configuration/post_configs_import_responses.go
diff --git a/restapi/operations/configuration/post_configs_import_urlbuilder.go b/api/operations/configuration/post_configs_import_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/post_configs_import_urlbuilder.go
rename to api/operations/configuration/post_configs_import_urlbuilder.go
diff --git a/restapi/operations/configuration/reset_config.go b/api/operations/configuration/reset_config.go
similarity index 100%
rename from restapi/operations/configuration/reset_config.go
rename to api/operations/configuration/reset_config.go
diff --git a/restapi/operations/configuration/reset_config_parameters.go b/api/operations/configuration/reset_config_parameters.go
similarity index 100%
rename from restapi/operations/configuration/reset_config_parameters.go
rename to api/operations/configuration/reset_config_parameters.go
diff --git a/restapi/operations/configuration/reset_config_responses.go b/api/operations/configuration/reset_config_responses.go
similarity index 100%
rename from restapi/operations/configuration/reset_config_responses.go
rename to api/operations/configuration/reset_config_responses.go
diff --git a/restapi/operations/configuration/reset_config_urlbuilder.go b/api/operations/configuration/reset_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/reset_config_urlbuilder.go
rename to api/operations/configuration/reset_config_urlbuilder.go
diff --git a/restapi/operations/configuration/set_config.go b/api/operations/configuration/set_config.go
similarity index 100%
rename from restapi/operations/configuration/set_config.go
rename to api/operations/configuration/set_config.go
diff --git a/restapi/operations/configuration/set_config_parameters.go b/api/operations/configuration/set_config_parameters.go
similarity index 100%
rename from restapi/operations/configuration/set_config_parameters.go
rename to api/operations/configuration/set_config_parameters.go
diff --git a/restapi/operations/configuration/set_config_responses.go b/api/operations/configuration/set_config_responses.go
similarity index 100%
rename from restapi/operations/configuration/set_config_responses.go
rename to api/operations/configuration/set_config_responses.go
diff --git a/restapi/operations/configuration/set_config_urlbuilder.go b/api/operations/configuration/set_config_urlbuilder.go
similarity index 100%
rename from restapi/operations/configuration/set_config_urlbuilder.go
rename to api/operations/configuration/set_config_urlbuilder.go
diff --git a/restapi/operations/console_api.go b/api/operations/console_api.go
similarity index 99%
rename from restapi/operations/console_api.go
rename to api/operations/console_api.go
index d4c7db8c3..7d01d4cd7 100644
--- a/restapi/operations/console_api.go
+++ b/api/operations/console_api.go
@@ -37,28 +37,28 @@ import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations/account"
+ "github.com/minio/console/api/operations/auth"
+ "github.com/minio/console/api/operations/bucket"
+ "github.com/minio/console/api/operations/configuration"
+ "github.com/minio/console/api/operations/group"
+ "github.com/minio/console/api/operations/idp"
+ "github.com/minio/console/api/operations/inspect"
+ "github.com/minio/console/api/operations/k_m_s"
+ "github.com/minio/console/api/operations/logging"
+ "github.com/minio/console/api/operations/object"
+ "github.com/minio/console/api/operations/policy"
+ "github.com/minio/console/api/operations/profile"
+ "github.com/minio/console/api/operations/release"
+ "github.com/minio/console/api/operations/service"
+ "github.com/minio/console/api/operations/service_account"
+ "github.com/minio/console/api/operations/site_replication"
+ "github.com/minio/console/api/operations/subnet"
+ "github.com/minio/console/api/operations/support"
+ "github.com/minio/console/api/operations/system"
+ "github.com/minio/console/api/operations/tiering"
+ "github.com/minio/console/api/operations/user"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations/account"
- "github.com/minio/console/restapi/operations/auth"
- "github.com/minio/console/restapi/operations/bucket"
- "github.com/minio/console/restapi/operations/configuration"
- "github.com/minio/console/restapi/operations/group"
- "github.com/minio/console/restapi/operations/idp"
- "github.com/minio/console/restapi/operations/inspect"
- "github.com/minio/console/restapi/operations/k_m_s"
- "github.com/minio/console/restapi/operations/logging"
- "github.com/minio/console/restapi/operations/object"
- "github.com/minio/console/restapi/operations/policy"
- "github.com/minio/console/restapi/operations/profile"
- "github.com/minio/console/restapi/operations/release"
- "github.com/minio/console/restapi/operations/service"
- "github.com/minio/console/restapi/operations/service_account"
- "github.com/minio/console/restapi/operations/site_replication"
- "github.com/minio/console/restapi/operations/subnet"
- "github.com/minio/console/restapi/operations/support"
- "github.com/minio/console/restapi/operations/system"
- "github.com/minio/console/restapi/operations/tiering"
- "github.com/minio/console/restapi/operations/user"
)
// NewConsoleAPI creates a new Console instance
diff --git a/restapi/operations/group/add_group.go b/api/operations/group/add_group.go
similarity index 100%
rename from restapi/operations/group/add_group.go
rename to api/operations/group/add_group.go
diff --git a/restapi/operations/group/add_group_parameters.go b/api/operations/group/add_group_parameters.go
similarity index 100%
rename from restapi/operations/group/add_group_parameters.go
rename to api/operations/group/add_group_parameters.go
diff --git a/restapi/operations/group/add_group_responses.go b/api/operations/group/add_group_responses.go
similarity index 100%
rename from restapi/operations/group/add_group_responses.go
rename to api/operations/group/add_group_responses.go
diff --git a/restapi/operations/group/add_group_urlbuilder.go b/api/operations/group/add_group_urlbuilder.go
similarity index 100%
rename from restapi/operations/group/add_group_urlbuilder.go
rename to api/operations/group/add_group_urlbuilder.go
diff --git a/restapi/operations/group/group_info.go b/api/operations/group/group_info.go
similarity index 100%
rename from restapi/operations/group/group_info.go
rename to api/operations/group/group_info.go
diff --git a/restapi/operations/group/group_info_parameters.go b/api/operations/group/group_info_parameters.go
similarity index 100%
rename from restapi/operations/group/group_info_parameters.go
rename to api/operations/group/group_info_parameters.go
diff --git a/restapi/operations/group/group_info_responses.go b/api/operations/group/group_info_responses.go
similarity index 100%
rename from restapi/operations/group/group_info_responses.go
rename to api/operations/group/group_info_responses.go
diff --git a/restapi/operations/group/group_info_urlbuilder.go b/api/operations/group/group_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/group/group_info_urlbuilder.go
rename to api/operations/group/group_info_urlbuilder.go
diff --git a/restapi/operations/group/list_groups.go b/api/operations/group/list_groups.go
similarity index 100%
rename from restapi/operations/group/list_groups.go
rename to api/operations/group/list_groups.go
diff --git a/restapi/operations/group/list_groups_parameters.go b/api/operations/group/list_groups_parameters.go
similarity index 100%
rename from restapi/operations/group/list_groups_parameters.go
rename to api/operations/group/list_groups_parameters.go
diff --git a/restapi/operations/group/list_groups_responses.go b/api/operations/group/list_groups_responses.go
similarity index 100%
rename from restapi/operations/group/list_groups_responses.go
rename to api/operations/group/list_groups_responses.go
diff --git a/restapi/operations/group/list_groups_urlbuilder.go b/api/operations/group/list_groups_urlbuilder.go
similarity index 100%
rename from restapi/operations/group/list_groups_urlbuilder.go
rename to api/operations/group/list_groups_urlbuilder.go
diff --git a/restapi/operations/group/remove_group.go b/api/operations/group/remove_group.go
similarity index 100%
rename from restapi/operations/group/remove_group.go
rename to api/operations/group/remove_group.go
diff --git a/restapi/operations/group/remove_group_parameters.go b/api/operations/group/remove_group_parameters.go
similarity index 100%
rename from restapi/operations/group/remove_group_parameters.go
rename to api/operations/group/remove_group_parameters.go
diff --git a/restapi/operations/group/remove_group_responses.go b/api/operations/group/remove_group_responses.go
similarity index 100%
rename from restapi/operations/group/remove_group_responses.go
rename to api/operations/group/remove_group_responses.go
diff --git a/restapi/operations/group/remove_group_urlbuilder.go b/api/operations/group/remove_group_urlbuilder.go
similarity index 100%
rename from restapi/operations/group/remove_group_urlbuilder.go
rename to api/operations/group/remove_group_urlbuilder.go
diff --git a/restapi/operations/group/update_group.go b/api/operations/group/update_group.go
similarity index 100%
rename from restapi/operations/group/update_group.go
rename to api/operations/group/update_group.go
diff --git a/restapi/operations/group/update_group_parameters.go b/api/operations/group/update_group_parameters.go
similarity index 100%
rename from restapi/operations/group/update_group_parameters.go
rename to api/operations/group/update_group_parameters.go
diff --git a/restapi/operations/group/update_group_responses.go b/api/operations/group/update_group_responses.go
similarity index 100%
rename from restapi/operations/group/update_group_responses.go
rename to api/operations/group/update_group_responses.go
diff --git a/restapi/operations/group/update_group_urlbuilder.go b/api/operations/group/update_group_urlbuilder.go
similarity index 100%
rename from restapi/operations/group/update_group_urlbuilder.go
rename to api/operations/group/update_group_urlbuilder.go
diff --git a/restapi/operations/idp/create_configuration.go b/api/operations/idp/create_configuration.go
similarity index 100%
rename from restapi/operations/idp/create_configuration.go
rename to api/operations/idp/create_configuration.go
diff --git a/restapi/operations/idp/create_configuration_parameters.go b/api/operations/idp/create_configuration_parameters.go
similarity index 100%
rename from restapi/operations/idp/create_configuration_parameters.go
rename to api/operations/idp/create_configuration_parameters.go
diff --git a/restapi/operations/idp/create_configuration_responses.go b/api/operations/idp/create_configuration_responses.go
similarity index 100%
rename from restapi/operations/idp/create_configuration_responses.go
rename to api/operations/idp/create_configuration_responses.go
diff --git a/restapi/operations/idp/create_configuration_urlbuilder.go b/api/operations/idp/create_configuration_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/create_configuration_urlbuilder.go
rename to api/operations/idp/create_configuration_urlbuilder.go
diff --git a/restapi/operations/idp/delete_configuration.go b/api/operations/idp/delete_configuration.go
similarity index 100%
rename from restapi/operations/idp/delete_configuration.go
rename to api/operations/idp/delete_configuration.go
diff --git a/restapi/operations/idp/delete_configuration_parameters.go b/api/operations/idp/delete_configuration_parameters.go
similarity index 100%
rename from restapi/operations/idp/delete_configuration_parameters.go
rename to api/operations/idp/delete_configuration_parameters.go
diff --git a/restapi/operations/idp/delete_configuration_responses.go b/api/operations/idp/delete_configuration_responses.go
similarity index 100%
rename from restapi/operations/idp/delete_configuration_responses.go
rename to api/operations/idp/delete_configuration_responses.go
diff --git a/restapi/operations/idp/delete_configuration_urlbuilder.go b/api/operations/idp/delete_configuration_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/delete_configuration_urlbuilder.go
rename to api/operations/idp/delete_configuration_urlbuilder.go
diff --git a/restapi/operations/idp/get_configuration.go b/api/operations/idp/get_configuration.go
similarity index 100%
rename from restapi/operations/idp/get_configuration.go
rename to api/operations/idp/get_configuration.go
diff --git a/restapi/operations/idp/get_configuration_parameters.go b/api/operations/idp/get_configuration_parameters.go
similarity index 100%
rename from restapi/operations/idp/get_configuration_parameters.go
rename to api/operations/idp/get_configuration_parameters.go
diff --git a/restapi/operations/idp/get_configuration_responses.go b/api/operations/idp/get_configuration_responses.go
similarity index 100%
rename from restapi/operations/idp/get_configuration_responses.go
rename to api/operations/idp/get_configuration_responses.go
diff --git a/restapi/operations/idp/get_configuration_urlbuilder.go b/api/operations/idp/get_configuration_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/get_configuration_urlbuilder.go
rename to api/operations/idp/get_configuration_urlbuilder.go
diff --git a/restapi/operations/idp/get_l_d_a_p_entities.go b/api/operations/idp/get_l_d_a_p_entities.go
similarity index 100%
rename from restapi/operations/idp/get_l_d_a_p_entities.go
rename to api/operations/idp/get_l_d_a_p_entities.go
diff --git a/restapi/operations/idp/get_l_d_a_p_entities_parameters.go b/api/operations/idp/get_l_d_a_p_entities_parameters.go
similarity index 100%
rename from restapi/operations/idp/get_l_d_a_p_entities_parameters.go
rename to api/operations/idp/get_l_d_a_p_entities_parameters.go
diff --git a/restapi/operations/idp/get_l_d_a_p_entities_responses.go b/api/operations/idp/get_l_d_a_p_entities_responses.go
similarity index 100%
rename from restapi/operations/idp/get_l_d_a_p_entities_responses.go
rename to api/operations/idp/get_l_d_a_p_entities_responses.go
diff --git a/restapi/operations/idp/get_l_d_a_p_entities_urlbuilder.go b/api/operations/idp/get_l_d_a_p_entities_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/get_l_d_a_p_entities_urlbuilder.go
rename to api/operations/idp/get_l_d_a_p_entities_urlbuilder.go
diff --git a/restapi/operations/idp/list_configurations.go b/api/operations/idp/list_configurations.go
similarity index 100%
rename from restapi/operations/idp/list_configurations.go
rename to api/operations/idp/list_configurations.go
diff --git a/restapi/operations/idp/list_configurations_parameters.go b/api/operations/idp/list_configurations_parameters.go
similarity index 100%
rename from restapi/operations/idp/list_configurations_parameters.go
rename to api/operations/idp/list_configurations_parameters.go
diff --git a/restapi/operations/idp/list_configurations_responses.go b/api/operations/idp/list_configurations_responses.go
similarity index 100%
rename from restapi/operations/idp/list_configurations_responses.go
rename to api/operations/idp/list_configurations_responses.go
diff --git a/restapi/operations/idp/list_configurations_urlbuilder.go b/api/operations/idp/list_configurations_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/list_configurations_urlbuilder.go
rename to api/operations/idp/list_configurations_urlbuilder.go
diff --git a/restapi/operations/idp/update_configuration.go b/api/operations/idp/update_configuration.go
similarity index 100%
rename from restapi/operations/idp/update_configuration.go
rename to api/operations/idp/update_configuration.go
diff --git a/restapi/operations/idp/update_configuration_parameters.go b/api/operations/idp/update_configuration_parameters.go
similarity index 100%
rename from restapi/operations/idp/update_configuration_parameters.go
rename to api/operations/idp/update_configuration_parameters.go
diff --git a/restapi/operations/idp/update_configuration_responses.go b/api/operations/idp/update_configuration_responses.go
similarity index 100%
rename from restapi/operations/idp/update_configuration_responses.go
rename to api/operations/idp/update_configuration_responses.go
diff --git a/restapi/operations/idp/update_configuration_urlbuilder.go b/api/operations/idp/update_configuration_urlbuilder.go
similarity index 100%
rename from restapi/operations/idp/update_configuration_urlbuilder.go
rename to api/operations/idp/update_configuration_urlbuilder.go
diff --git a/restapi/operations/inspect/inspect.go b/api/operations/inspect/inspect.go
similarity index 100%
rename from restapi/operations/inspect/inspect.go
rename to api/operations/inspect/inspect.go
diff --git a/restapi/operations/inspect/inspect_parameters.go b/api/operations/inspect/inspect_parameters.go
similarity index 100%
rename from restapi/operations/inspect/inspect_parameters.go
rename to api/operations/inspect/inspect_parameters.go
diff --git a/restapi/operations/inspect/inspect_responses.go b/api/operations/inspect/inspect_responses.go
similarity index 100%
rename from restapi/operations/inspect/inspect_responses.go
rename to api/operations/inspect/inspect_responses.go
diff --git a/restapi/operations/inspect/inspect_urlbuilder.go b/api/operations/inspect/inspect_urlbuilder.go
similarity index 100%
rename from restapi/operations/inspect/inspect_urlbuilder.go
rename to api/operations/inspect/inspect_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_a_p_is.go b/api/operations/k_m_s/k_m_s_a_p_is.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_a_p_is.go
rename to api/operations/k_m_s/k_m_s_a_p_is.go
diff --git a/restapi/operations/k_m_s/k_m_s_a_p_is_parameters.go b/api/operations/k_m_s/k_m_s_a_p_is_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_a_p_is_parameters.go
rename to api/operations/k_m_s/k_m_s_a_p_is_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_a_p_is_responses.go b/api/operations/k_m_s/k_m_s_a_p_is_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_a_p_is_responses.go
rename to api/operations/k_m_s/k_m_s_a_p_is_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_a_p_is_urlbuilder.go b/api/operations/k_m_s/k_m_s_a_p_is_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_a_p_is_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_a_p_is_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_assign_policy.go b/api/operations/k_m_s/k_m_s_assign_policy.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_assign_policy.go
rename to api/operations/k_m_s/k_m_s_assign_policy.go
diff --git a/restapi/operations/k_m_s/k_m_s_assign_policy_parameters.go b/api/operations/k_m_s/k_m_s_assign_policy_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_assign_policy_parameters.go
rename to api/operations/k_m_s/k_m_s_assign_policy_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_assign_policy_responses.go b/api/operations/k_m_s/k_m_s_assign_policy_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_assign_policy_responses.go
rename to api/operations/k_m_s/k_m_s_assign_policy_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_assign_policy_urlbuilder.go b/api/operations/k_m_s/k_m_s_assign_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_assign_policy_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_assign_policy_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_create_key.go b/api/operations/k_m_s/k_m_s_create_key.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_create_key.go
rename to api/operations/k_m_s/k_m_s_create_key.go
diff --git a/restapi/operations/k_m_s/k_m_s_create_key_parameters.go b/api/operations/k_m_s/k_m_s_create_key_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_create_key_parameters.go
rename to api/operations/k_m_s/k_m_s_create_key_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_create_key_responses.go b/api/operations/k_m_s/k_m_s_create_key_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_create_key_responses.go
rename to api/operations/k_m_s/k_m_s_create_key_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_create_key_urlbuilder.go b/api/operations/k_m_s/k_m_s_create_key_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_create_key_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_create_key_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_identity.go b/api/operations/k_m_s/k_m_s_delete_identity.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_identity.go
rename to api/operations/k_m_s/k_m_s_delete_identity.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_identity_parameters.go b/api/operations/k_m_s/k_m_s_delete_identity_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_identity_parameters.go
rename to api/operations/k_m_s/k_m_s_delete_identity_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_identity_responses.go b/api/operations/k_m_s/k_m_s_delete_identity_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_identity_responses.go
rename to api/operations/k_m_s/k_m_s_delete_identity_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_identity_urlbuilder.go b/api/operations/k_m_s/k_m_s_delete_identity_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_identity_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_delete_identity_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_key.go b/api/operations/k_m_s/k_m_s_delete_key.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_key.go
rename to api/operations/k_m_s/k_m_s_delete_key.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_key_parameters.go b/api/operations/k_m_s/k_m_s_delete_key_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_key_parameters.go
rename to api/operations/k_m_s/k_m_s_delete_key_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_key_responses.go b/api/operations/k_m_s/k_m_s_delete_key_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_key_responses.go
rename to api/operations/k_m_s/k_m_s_delete_key_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_key_urlbuilder.go b/api/operations/k_m_s/k_m_s_delete_key_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_key_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_delete_key_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_policy.go b/api/operations/k_m_s/k_m_s_delete_policy.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_policy.go
rename to api/operations/k_m_s/k_m_s_delete_policy.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_policy_parameters.go b/api/operations/k_m_s/k_m_s_delete_policy_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_policy_parameters.go
rename to api/operations/k_m_s/k_m_s_delete_policy_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_policy_responses.go b/api/operations/k_m_s/k_m_s_delete_policy_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_policy_responses.go
rename to api/operations/k_m_s/k_m_s_delete_policy_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_delete_policy_urlbuilder.go b/api/operations/k_m_s/k_m_s_delete_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_delete_policy_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_delete_policy_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_identity.go b/api/operations/k_m_s/k_m_s_describe_identity.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_identity.go
rename to api/operations/k_m_s/k_m_s_describe_identity.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_identity_parameters.go b/api/operations/k_m_s/k_m_s_describe_identity_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_identity_parameters.go
rename to api/operations/k_m_s/k_m_s_describe_identity_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_identity_responses.go b/api/operations/k_m_s/k_m_s_describe_identity_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_identity_responses.go
rename to api/operations/k_m_s/k_m_s_describe_identity_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_identity_urlbuilder.go b/api/operations/k_m_s/k_m_s_describe_identity_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_identity_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_describe_identity_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_policy.go b/api/operations/k_m_s/k_m_s_describe_policy.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_policy.go
rename to api/operations/k_m_s/k_m_s_describe_policy.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_policy_parameters.go b/api/operations/k_m_s/k_m_s_describe_policy_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_policy_parameters.go
rename to api/operations/k_m_s/k_m_s_describe_policy_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_policy_responses.go b/api/operations/k_m_s/k_m_s_describe_policy_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_policy_responses.go
rename to api/operations/k_m_s/k_m_s_describe_policy_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_policy_urlbuilder.go b/api/operations/k_m_s/k_m_s_describe_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_policy_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_describe_policy_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_self_identity.go b/api/operations/k_m_s/k_m_s_describe_self_identity.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_self_identity.go
rename to api/operations/k_m_s/k_m_s_describe_self_identity.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_self_identity_parameters.go b/api/operations/k_m_s/k_m_s_describe_self_identity_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_self_identity_parameters.go
rename to api/operations/k_m_s/k_m_s_describe_self_identity_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_self_identity_responses.go b/api/operations/k_m_s/k_m_s_describe_self_identity_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_self_identity_responses.go
rename to api/operations/k_m_s/k_m_s_describe_self_identity_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_describe_self_identity_urlbuilder.go b/api/operations/k_m_s/k_m_s_describe_self_identity_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_describe_self_identity_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_describe_self_identity_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_get_policy.go b/api/operations/k_m_s/k_m_s_get_policy.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_get_policy.go
rename to api/operations/k_m_s/k_m_s_get_policy.go
diff --git a/restapi/operations/k_m_s/k_m_s_get_policy_parameters.go b/api/operations/k_m_s/k_m_s_get_policy_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_get_policy_parameters.go
rename to api/operations/k_m_s/k_m_s_get_policy_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_get_policy_responses.go b/api/operations/k_m_s/k_m_s_get_policy_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_get_policy_responses.go
rename to api/operations/k_m_s/k_m_s_get_policy_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_get_policy_urlbuilder.go b/api/operations/k_m_s/k_m_s_get_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_get_policy_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_get_policy_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_import_key.go b/api/operations/k_m_s/k_m_s_import_key.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_import_key.go
rename to api/operations/k_m_s/k_m_s_import_key.go
diff --git a/restapi/operations/k_m_s/k_m_s_import_key_parameters.go b/api/operations/k_m_s/k_m_s_import_key_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_import_key_parameters.go
rename to api/operations/k_m_s/k_m_s_import_key_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_import_key_responses.go b/api/operations/k_m_s/k_m_s_import_key_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_import_key_responses.go
rename to api/operations/k_m_s/k_m_s_import_key_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_import_key_urlbuilder.go b/api/operations/k_m_s/k_m_s_import_key_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_import_key_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_import_key_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_key_status.go b/api/operations/k_m_s/k_m_s_key_status.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_key_status.go
rename to api/operations/k_m_s/k_m_s_key_status.go
diff --git a/restapi/operations/k_m_s/k_m_s_key_status_parameters.go b/api/operations/k_m_s/k_m_s_key_status_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_key_status_parameters.go
rename to api/operations/k_m_s/k_m_s_key_status_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_key_status_responses.go b/api/operations/k_m_s/k_m_s_key_status_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_key_status_responses.go
rename to api/operations/k_m_s/k_m_s_key_status_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_key_status_urlbuilder.go b/api/operations/k_m_s/k_m_s_key_status_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_key_status_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_key_status_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_identities.go b/api/operations/k_m_s/k_m_s_list_identities.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_identities.go
rename to api/operations/k_m_s/k_m_s_list_identities.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_identities_parameters.go b/api/operations/k_m_s/k_m_s_list_identities_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_identities_parameters.go
rename to api/operations/k_m_s/k_m_s_list_identities_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_identities_responses.go b/api/operations/k_m_s/k_m_s_list_identities_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_identities_responses.go
rename to api/operations/k_m_s/k_m_s_list_identities_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_identities_urlbuilder.go b/api/operations/k_m_s/k_m_s_list_identities_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_identities_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_list_identities_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_keys.go b/api/operations/k_m_s/k_m_s_list_keys.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_keys.go
rename to api/operations/k_m_s/k_m_s_list_keys.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_keys_parameters.go b/api/operations/k_m_s/k_m_s_list_keys_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_keys_parameters.go
rename to api/operations/k_m_s/k_m_s_list_keys_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_keys_responses.go b/api/operations/k_m_s/k_m_s_list_keys_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_keys_responses.go
rename to api/operations/k_m_s/k_m_s_list_keys_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_keys_urlbuilder.go b/api/operations/k_m_s/k_m_s_list_keys_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_keys_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_list_keys_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_policies.go b/api/operations/k_m_s/k_m_s_list_policies.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_policies.go
rename to api/operations/k_m_s/k_m_s_list_policies.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_policies_parameters.go b/api/operations/k_m_s/k_m_s_list_policies_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_policies_parameters.go
rename to api/operations/k_m_s/k_m_s_list_policies_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_policies_responses.go b/api/operations/k_m_s/k_m_s_list_policies_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_policies_responses.go
rename to api/operations/k_m_s/k_m_s_list_policies_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_list_policies_urlbuilder.go b/api/operations/k_m_s/k_m_s_list_policies_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_list_policies_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_list_policies_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_metrics.go b/api/operations/k_m_s/k_m_s_metrics.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_metrics.go
rename to api/operations/k_m_s/k_m_s_metrics.go
diff --git a/restapi/operations/k_m_s/k_m_s_metrics_parameters.go b/api/operations/k_m_s/k_m_s_metrics_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_metrics_parameters.go
rename to api/operations/k_m_s/k_m_s_metrics_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_metrics_responses.go b/api/operations/k_m_s/k_m_s_metrics_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_metrics_responses.go
rename to api/operations/k_m_s/k_m_s_metrics_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_metrics_urlbuilder.go b/api/operations/k_m_s/k_m_s_metrics_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_metrics_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_metrics_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_set_policy.go b/api/operations/k_m_s/k_m_s_set_policy.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_set_policy.go
rename to api/operations/k_m_s/k_m_s_set_policy.go
diff --git a/restapi/operations/k_m_s/k_m_s_set_policy_parameters.go b/api/operations/k_m_s/k_m_s_set_policy_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_set_policy_parameters.go
rename to api/operations/k_m_s/k_m_s_set_policy_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_set_policy_responses.go b/api/operations/k_m_s/k_m_s_set_policy_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_set_policy_responses.go
rename to api/operations/k_m_s/k_m_s_set_policy_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_set_policy_urlbuilder.go b/api/operations/k_m_s/k_m_s_set_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_set_policy_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_set_policy_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_status.go b/api/operations/k_m_s/k_m_s_status.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_status.go
rename to api/operations/k_m_s/k_m_s_status.go
diff --git a/restapi/operations/k_m_s/k_m_s_status_parameters.go b/api/operations/k_m_s/k_m_s_status_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_status_parameters.go
rename to api/operations/k_m_s/k_m_s_status_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_status_responses.go b/api/operations/k_m_s/k_m_s_status_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_status_responses.go
rename to api/operations/k_m_s/k_m_s_status_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_status_urlbuilder.go b/api/operations/k_m_s/k_m_s_status_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_status_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_status_urlbuilder.go
diff --git a/restapi/operations/k_m_s/k_m_s_version.go b/api/operations/k_m_s/k_m_s_version.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_version.go
rename to api/operations/k_m_s/k_m_s_version.go
diff --git a/restapi/operations/k_m_s/k_m_s_version_parameters.go b/api/operations/k_m_s/k_m_s_version_parameters.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_version_parameters.go
rename to api/operations/k_m_s/k_m_s_version_parameters.go
diff --git a/restapi/operations/k_m_s/k_m_s_version_responses.go b/api/operations/k_m_s/k_m_s_version_responses.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_version_responses.go
rename to api/operations/k_m_s/k_m_s_version_responses.go
diff --git a/restapi/operations/k_m_s/k_m_s_version_urlbuilder.go b/api/operations/k_m_s/k_m_s_version_urlbuilder.go
similarity index 100%
rename from restapi/operations/k_m_s/k_m_s_version_urlbuilder.go
rename to api/operations/k_m_s/k_m_s_version_urlbuilder.go
diff --git a/restapi/operations/logging/log_search.go b/api/operations/logging/log_search.go
similarity index 100%
rename from restapi/operations/logging/log_search.go
rename to api/operations/logging/log_search.go
diff --git a/restapi/operations/logging/log_search_parameters.go b/api/operations/logging/log_search_parameters.go
similarity index 100%
rename from restapi/operations/logging/log_search_parameters.go
rename to api/operations/logging/log_search_parameters.go
diff --git a/restapi/operations/logging/log_search_responses.go b/api/operations/logging/log_search_responses.go
similarity index 100%
rename from restapi/operations/logging/log_search_responses.go
rename to api/operations/logging/log_search_responses.go
diff --git a/restapi/operations/logging/log_search_urlbuilder.go b/api/operations/logging/log_search_urlbuilder.go
similarity index 100%
rename from restapi/operations/logging/log_search_urlbuilder.go
rename to api/operations/logging/log_search_urlbuilder.go
diff --git a/restapi/operations/object/delete_multiple_objects.go b/api/operations/object/delete_multiple_objects.go
similarity index 100%
rename from restapi/operations/object/delete_multiple_objects.go
rename to api/operations/object/delete_multiple_objects.go
diff --git a/restapi/operations/object/delete_multiple_objects_parameters.go b/api/operations/object/delete_multiple_objects_parameters.go
similarity index 100%
rename from restapi/operations/object/delete_multiple_objects_parameters.go
rename to api/operations/object/delete_multiple_objects_parameters.go
diff --git a/restapi/operations/object/delete_multiple_objects_responses.go b/api/operations/object/delete_multiple_objects_responses.go
similarity index 100%
rename from restapi/operations/object/delete_multiple_objects_responses.go
rename to api/operations/object/delete_multiple_objects_responses.go
diff --git a/restapi/operations/object/delete_multiple_objects_urlbuilder.go b/api/operations/object/delete_multiple_objects_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/delete_multiple_objects_urlbuilder.go
rename to api/operations/object/delete_multiple_objects_urlbuilder.go
diff --git a/restapi/operations/object/delete_object.go b/api/operations/object/delete_object.go
similarity index 100%
rename from restapi/operations/object/delete_object.go
rename to api/operations/object/delete_object.go
diff --git a/restapi/operations/object/delete_object_parameters.go b/api/operations/object/delete_object_parameters.go
similarity index 100%
rename from restapi/operations/object/delete_object_parameters.go
rename to api/operations/object/delete_object_parameters.go
diff --git a/restapi/operations/object/delete_object_responses.go b/api/operations/object/delete_object_responses.go
similarity index 100%
rename from restapi/operations/object/delete_object_responses.go
rename to api/operations/object/delete_object_responses.go
diff --git a/restapi/operations/object/delete_object_retention.go b/api/operations/object/delete_object_retention.go
similarity index 100%
rename from restapi/operations/object/delete_object_retention.go
rename to api/operations/object/delete_object_retention.go
diff --git a/restapi/operations/object/delete_object_retention_parameters.go b/api/operations/object/delete_object_retention_parameters.go
similarity index 100%
rename from restapi/operations/object/delete_object_retention_parameters.go
rename to api/operations/object/delete_object_retention_parameters.go
diff --git a/restapi/operations/object/delete_object_retention_responses.go b/api/operations/object/delete_object_retention_responses.go
similarity index 100%
rename from restapi/operations/object/delete_object_retention_responses.go
rename to api/operations/object/delete_object_retention_responses.go
diff --git a/restapi/operations/object/delete_object_retention_urlbuilder.go b/api/operations/object/delete_object_retention_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/delete_object_retention_urlbuilder.go
rename to api/operations/object/delete_object_retention_urlbuilder.go
diff --git a/restapi/operations/object/delete_object_urlbuilder.go b/api/operations/object/delete_object_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/delete_object_urlbuilder.go
rename to api/operations/object/delete_object_urlbuilder.go
diff --git a/restapi/operations/object/download_multiple_objects.go b/api/operations/object/download_multiple_objects.go
similarity index 100%
rename from restapi/operations/object/download_multiple_objects.go
rename to api/operations/object/download_multiple_objects.go
diff --git a/restapi/operations/object/download_multiple_objects_parameters.go b/api/operations/object/download_multiple_objects_parameters.go
similarity index 100%
rename from restapi/operations/object/download_multiple_objects_parameters.go
rename to api/operations/object/download_multiple_objects_parameters.go
diff --git a/restapi/operations/object/download_multiple_objects_responses.go b/api/operations/object/download_multiple_objects_responses.go
similarity index 100%
rename from restapi/operations/object/download_multiple_objects_responses.go
rename to api/operations/object/download_multiple_objects_responses.go
diff --git a/restapi/operations/object/download_multiple_objects_urlbuilder.go b/api/operations/object/download_multiple_objects_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/download_multiple_objects_urlbuilder.go
rename to api/operations/object/download_multiple_objects_urlbuilder.go
diff --git a/restapi/operations/object/download_object.go b/api/operations/object/download_object.go
similarity index 100%
rename from restapi/operations/object/download_object.go
rename to api/operations/object/download_object.go
diff --git a/restapi/operations/object/download_object_parameters.go b/api/operations/object/download_object_parameters.go
similarity index 100%
rename from restapi/operations/object/download_object_parameters.go
rename to api/operations/object/download_object_parameters.go
diff --git a/restapi/operations/object/download_object_responses.go b/api/operations/object/download_object_responses.go
similarity index 100%
rename from restapi/operations/object/download_object_responses.go
rename to api/operations/object/download_object_responses.go
diff --git a/restapi/operations/object/download_object_urlbuilder.go b/api/operations/object/download_object_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/download_object_urlbuilder.go
rename to api/operations/object/download_object_urlbuilder.go
diff --git a/restapi/operations/object/get_object_metadata.go b/api/operations/object/get_object_metadata.go
similarity index 100%
rename from restapi/operations/object/get_object_metadata.go
rename to api/operations/object/get_object_metadata.go
diff --git a/restapi/operations/object/get_object_metadata_parameters.go b/api/operations/object/get_object_metadata_parameters.go
similarity index 100%
rename from restapi/operations/object/get_object_metadata_parameters.go
rename to api/operations/object/get_object_metadata_parameters.go
diff --git a/restapi/operations/object/get_object_metadata_responses.go b/api/operations/object/get_object_metadata_responses.go
similarity index 100%
rename from restapi/operations/object/get_object_metadata_responses.go
rename to api/operations/object/get_object_metadata_responses.go
diff --git a/restapi/operations/object/get_object_metadata_urlbuilder.go b/api/operations/object/get_object_metadata_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/get_object_metadata_urlbuilder.go
rename to api/operations/object/get_object_metadata_urlbuilder.go
diff --git a/restapi/operations/object/list_objects.go b/api/operations/object/list_objects.go
similarity index 100%
rename from restapi/operations/object/list_objects.go
rename to api/operations/object/list_objects.go
diff --git a/restapi/operations/object/list_objects_parameters.go b/api/operations/object/list_objects_parameters.go
similarity index 100%
rename from restapi/operations/object/list_objects_parameters.go
rename to api/operations/object/list_objects_parameters.go
diff --git a/restapi/operations/object/list_objects_responses.go b/api/operations/object/list_objects_responses.go
similarity index 100%
rename from restapi/operations/object/list_objects_responses.go
rename to api/operations/object/list_objects_responses.go
diff --git a/restapi/operations/object/list_objects_urlbuilder.go b/api/operations/object/list_objects_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/list_objects_urlbuilder.go
rename to api/operations/object/list_objects_urlbuilder.go
diff --git a/restapi/operations/object/post_buckets_bucket_name_objects_upload.go b/api/operations/object/post_buckets_bucket_name_objects_upload.go
similarity index 100%
rename from restapi/operations/object/post_buckets_bucket_name_objects_upload.go
rename to api/operations/object/post_buckets_bucket_name_objects_upload.go
diff --git a/restapi/operations/object/post_buckets_bucket_name_objects_upload_parameters.go b/api/operations/object/post_buckets_bucket_name_objects_upload_parameters.go
similarity index 100%
rename from restapi/operations/object/post_buckets_bucket_name_objects_upload_parameters.go
rename to api/operations/object/post_buckets_bucket_name_objects_upload_parameters.go
diff --git a/restapi/operations/object/post_buckets_bucket_name_objects_upload_responses.go b/api/operations/object/post_buckets_bucket_name_objects_upload_responses.go
similarity index 100%
rename from restapi/operations/object/post_buckets_bucket_name_objects_upload_responses.go
rename to api/operations/object/post_buckets_bucket_name_objects_upload_responses.go
diff --git a/restapi/operations/object/post_buckets_bucket_name_objects_upload_urlbuilder.go b/api/operations/object/post_buckets_bucket_name_objects_upload_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/post_buckets_bucket_name_objects_upload_urlbuilder.go
rename to api/operations/object/post_buckets_bucket_name_objects_upload_urlbuilder.go
diff --git a/restapi/operations/object/put_object_legal_hold.go b/api/operations/object/put_object_legal_hold.go
similarity index 100%
rename from restapi/operations/object/put_object_legal_hold.go
rename to api/operations/object/put_object_legal_hold.go
diff --git a/restapi/operations/object/put_object_legal_hold_parameters.go b/api/operations/object/put_object_legal_hold_parameters.go
similarity index 100%
rename from restapi/operations/object/put_object_legal_hold_parameters.go
rename to api/operations/object/put_object_legal_hold_parameters.go
diff --git a/restapi/operations/object/put_object_legal_hold_responses.go b/api/operations/object/put_object_legal_hold_responses.go
similarity index 100%
rename from restapi/operations/object/put_object_legal_hold_responses.go
rename to api/operations/object/put_object_legal_hold_responses.go
diff --git a/restapi/operations/object/put_object_legal_hold_urlbuilder.go b/api/operations/object/put_object_legal_hold_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/put_object_legal_hold_urlbuilder.go
rename to api/operations/object/put_object_legal_hold_urlbuilder.go
diff --git a/restapi/operations/object/put_object_restore.go b/api/operations/object/put_object_restore.go
similarity index 100%
rename from restapi/operations/object/put_object_restore.go
rename to api/operations/object/put_object_restore.go
diff --git a/restapi/operations/object/put_object_restore_parameters.go b/api/operations/object/put_object_restore_parameters.go
similarity index 100%
rename from restapi/operations/object/put_object_restore_parameters.go
rename to api/operations/object/put_object_restore_parameters.go
diff --git a/restapi/operations/object/put_object_restore_responses.go b/api/operations/object/put_object_restore_responses.go
similarity index 100%
rename from restapi/operations/object/put_object_restore_responses.go
rename to api/operations/object/put_object_restore_responses.go
diff --git a/restapi/operations/object/put_object_restore_urlbuilder.go b/api/operations/object/put_object_restore_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/put_object_restore_urlbuilder.go
rename to api/operations/object/put_object_restore_urlbuilder.go
diff --git a/restapi/operations/object/put_object_retention.go b/api/operations/object/put_object_retention.go
similarity index 100%
rename from restapi/operations/object/put_object_retention.go
rename to api/operations/object/put_object_retention.go
diff --git a/restapi/operations/object/put_object_retention_parameters.go b/api/operations/object/put_object_retention_parameters.go
similarity index 100%
rename from restapi/operations/object/put_object_retention_parameters.go
rename to api/operations/object/put_object_retention_parameters.go
diff --git a/restapi/operations/object/put_object_retention_responses.go b/api/operations/object/put_object_retention_responses.go
similarity index 100%
rename from restapi/operations/object/put_object_retention_responses.go
rename to api/operations/object/put_object_retention_responses.go
diff --git a/restapi/operations/object/put_object_retention_urlbuilder.go b/api/operations/object/put_object_retention_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/put_object_retention_urlbuilder.go
rename to api/operations/object/put_object_retention_urlbuilder.go
diff --git a/restapi/operations/object/put_object_tags.go b/api/operations/object/put_object_tags.go
similarity index 100%
rename from restapi/operations/object/put_object_tags.go
rename to api/operations/object/put_object_tags.go
diff --git a/restapi/operations/object/put_object_tags_parameters.go b/api/operations/object/put_object_tags_parameters.go
similarity index 100%
rename from restapi/operations/object/put_object_tags_parameters.go
rename to api/operations/object/put_object_tags_parameters.go
diff --git a/restapi/operations/object/put_object_tags_responses.go b/api/operations/object/put_object_tags_responses.go
similarity index 100%
rename from restapi/operations/object/put_object_tags_responses.go
rename to api/operations/object/put_object_tags_responses.go
diff --git a/restapi/operations/object/put_object_tags_urlbuilder.go b/api/operations/object/put_object_tags_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/put_object_tags_urlbuilder.go
rename to api/operations/object/put_object_tags_urlbuilder.go
diff --git a/restapi/operations/object/share_object.go b/api/operations/object/share_object.go
similarity index 100%
rename from restapi/operations/object/share_object.go
rename to api/operations/object/share_object.go
diff --git a/restapi/operations/object/share_object_parameters.go b/api/operations/object/share_object_parameters.go
similarity index 100%
rename from restapi/operations/object/share_object_parameters.go
rename to api/operations/object/share_object_parameters.go
diff --git a/restapi/operations/object/share_object_responses.go b/api/operations/object/share_object_responses.go
similarity index 100%
rename from restapi/operations/object/share_object_responses.go
rename to api/operations/object/share_object_responses.go
diff --git a/restapi/operations/object/share_object_urlbuilder.go b/api/operations/object/share_object_urlbuilder.go
similarity index 100%
rename from restapi/operations/object/share_object_urlbuilder.go
rename to api/operations/object/share_object_urlbuilder.go
diff --git a/restapi/operations/policy/add_policy.go b/api/operations/policy/add_policy.go
similarity index 100%
rename from restapi/operations/policy/add_policy.go
rename to api/operations/policy/add_policy.go
diff --git a/restapi/operations/policy/add_policy_parameters.go b/api/operations/policy/add_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/add_policy_parameters.go
rename to api/operations/policy/add_policy_parameters.go
diff --git a/restapi/operations/policy/add_policy_responses.go b/api/operations/policy/add_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/add_policy_responses.go
rename to api/operations/policy/add_policy_responses.go
diff --git a/restapi/operations/policy/add_policy_urlbuilder.go b/api/operations/policy/add_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/add_policy_urlbuilder.go
rename to api/operations/policy/add_policy_urlbuilder.go
diff --git a/restapi/operations/policy/get_s_a_user_policy.go b/api/operations/policy/get_s_a_user_policy.go
similarity index 100%
rename from restapi/operations/policy/get_s_a_user_policy.go
rename to api/operations/policy/get_s_a_user_policy.go
diff --git a/restapi/operations/policy/get_s_a_user_policy_parameters.go b/api/operations/policy/get_s_a_user_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/get_s_a_user_policy_parameters.go
rename to api/operations/policy/get_s_a_user_policy_parameters.go
diff --git a/restapi/operations/policy/get_s_a_user_policy_responses.go b/api/operations/policy/get_s_a_user_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/get_s_a_user_policy_responses.go
rename to api/operations/policy/get_s_a_user_policy_responses.go
diff --git a/restapi/operations/policy/get_s_a_user_policy_urlbuilder.go b/api/operations/policy/get_s_a_user_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/get_s_a_user_policy_urlbuilder.go
rename to api/operations/policy/get_s_a_user_policy_urlbuilder.go
diff --git a/restapi/operations/policy/get_user_policy.go b/api/operations/policy/get_user_policy.go
similarity index 100%
rename from restapi/operations/policy/get_user_policy.go
rename to api/operations/policy/get_user_policy.go
diff --git a/restapi/operations/policy/get_user_policy_parameters.go b/api/operations/policy/get_user_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/get_user_policy_parameters.go
rename to api/operations/policy/get_user_policy_parameters.go
diff --git a/restapi/operations/policy/get_user_policy_responses.go b/api/operations/policy/get_user_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/get_user_policy_responses.go
rename to api/operations/policy/get_user_policy_responses.go
diff --git a/restapi/operations/policy/get_user_policy_urlbuilder.go b/api/operations/policy/get_user_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/get_user_policy_urlbuilder.go
rename to api/operations/policy/get_user_policy_urlbuilder.go
diff --git a/restapi/operations/policy/list_groups_for_policy.go b/api/operations/policy/list_groups_for_policy.go
similarity index 100%
rename from restapi/operations/policy/list_groups_for_policy.go
rename to api/operations/policy/list_groups_for_policy.go
diff --git a/restapi/operations/policy/list_groups_for_policy_parameters.go b/api/operations/policy/list_groups_for_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/list_groups_for_policy_parameters.go
rename to api/operations/policy/list_groups_for_policy_parameters.go
diff --git a/restapi/operations/policy/list_groups_for_policy_responses.go b/api/operations/policy/list_groups_for_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/list_groups_for_policy_responses.go
rename to api/operations/policy/list_groups_for_policy_responses.go
diff --git a/restapi/operations/policy/list_groups_for_policy_urlbuilder.go b/api/operations/policy/list_groups_for_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/list_groups_for_policy_urlbuilder.go
rename to api/operations/policy/list_groups_for_policy_urlbuilder.go
diff --git a/restapi/operations/policy/list_policies.go b/api/operations/policy/list_policies.go
similarity index 100%
rename from restapi/operations/policy/list_policies.go
rename to api/operations/policy/list_policies.go
diff --git a/restapi/operations/policy/list_policies_parameters.go b/api/operations/policy/list_policies_parameters.go
similarity index 100%
rename from restapi/operations/policy/list_policies_parameters.go
rename to api/operations/policy/list_policies_parameters.go
diff --git a/restapi/operations/policy/list_policies_responses.go b/api/operations/policy/list_policies_responses.go
similarity index 100%
rename from restapi/operations/policy/list_policies_responses.go
rename to api/operations/policy/list_policies_responses.go
diff --git a/restapi/operations/policy/list_policies_urlbuilder.go b/api/operations/policy/list_policies_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/list_policies_urlbuilder.go
rename to api/operations/policy/list_policies_urlbuilder.go
diff --git a/restapi/operations/policy/list_users_for_policy.go b/api/operations/policy/list_users_for_policy.go
similarity index 100%
rename from restapi/operations/policy/list_users_for_policy.go
rename to api/operations/policy/list_users_for_policy.go
diff --git a/restapi/operations/policy/list_users_for_policy_parameters.go b/api/operations/policy/list_users_for_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/list_users_for_policy_parameters.go
rename to api/operations/policy/list_users_for_policy_parameters.go
diff --git a/restapi/operations/policy/list_users_for_policy_responses.go b/api/operations/policy/list_users_for_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/list_users_for_policy_responses.go
rename to api/operations/policy/list_users_for_policy_responses.go
diff --git a/restapi/operations/policy/list_users_for_policy_urlbuilder.go b/api/operations/policy/list_users_for_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/list_users_for_policy_urlbuilder.go
rename to api/operations/policy/list_users_for_policy_urlbuilder.go
diff --git a/restapi/operations/policy/policy_info.go b/api/operations/policy/policy_info.go
similarity index 100%
rename from restapi/operations/policy/policy_info.go
rename to api/operations/policy/policy_info.go
diff --git a/restapi/operations/policy/policy_info_parameters.go b/api/operations/policy/policy_info_parameters.go
similarity index 100%
rename from restapi/operations/policy/policy_info_parameters.go
rename to api/operations/policy/policy_info_parameters.go
diff --git a/restapi/operations/policy/policy_info_responses.go b/api/operations/policy/policy_info_responses.go
similarity index 100%
rename from restapi/operations/policy/policy_info_responses.go
rename to api/operations/policy/policy_info_responses.go
diff --git a/restapi/operations/policy/policy_info_urlbuilder.go b/api/operations/policy/policy_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/policy_info_urlbuilder.go
rename to api/operations/policy/policy_info_urlbuilder.go
diff --git a/restapi/operations/policy/remove_policy.go b/api/operations/policy/remove_policy.go
similarity index 100%
rename from restapi/operations/policy/remove_policy.go
rename to api/operations/policy/remove_policy.go
diff --git a/restapi/operations/policy/remove_policy_parameters.go b/api/operations/policy/remove_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/remove_policy_parameters.go
rename to api/operations/policy/remove_policy_parameters.go
diff --git a/restapi/operations/policy/remove_policy_responses.go b/api/operations/policy/remove_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/remove_policy_responses.go
rename to api/operations/policy/remove_policy_responses.go
diff --git a/restapi/operations/policy/remove_policy_urlbuilder.go b/api/operations/policy/remove_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/remove_policy_urlbuilder.go
rename to api/operations/policy/remove_policy_urlbuilder.go
diff --git a/restapi/operations/policy/set_policy.go b/api/operations/policy/set_policy.go
similarity index 100%
rename from restapi/operations/policy/set_policy.go
rename to api/operations/policy/set_policy.go
diff --git a/restapi/operations/policy/set_policy_multiple.go b/api/operations/policy/set_policy_multiple.go
similarity index 100%
rename from restapi/operations/policy/set_policy_multiple.go
rename to api/operations/policy/set_policy_multiple.go
diff --git a/restapi/operations/policy/set_policy_multiple_parameters.go b/api/operations/policy/set_policy_multiple_parameters.go
similarity index 100%
rename from restapi/operations/policy/set_policy_multiple_parameters.go
rename to api/operations/policy/set_policy_multiple_parameters.go
diff --git a/restapi/operations/policy/set_policy_multiple_responses.go b/api/operations/policy/set_policy_multiple_responses.go
similarity index 100%
rename from restapi/operations/policy/set_policy_multiple_responses.go
rename to api/operations/policy/set_policy_multiple_responses.go
diff --git a/restapi/operations/policy/set_policy_multiple_urlbuilder.go b/api/operations/policy/set_policy_multiple_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/set_policy_multiple_urlbuilder.go
rename to api/operations/policy/set_policy_multiple_urlbuilder.go
diff --git a/restapi/operations/policy/set_policy_parameters.go b/api/operations/policy/set_policy_parameters.go
similarity index 100%
rename from restapi/operations/policy/set_policy_parameters.go
rename to api/operations/policy/set_policy_parameters.go
diff --git a/restapi/operations/policy/set_policy_responses.go b/api/operations/policy/set_policy_responses.go
similarity index 100%
rename from restapi/operations/policy/set_policy_responses.go
rename to api/operations/policy/set_policy_responses.go
diff --git a/restapi/operations/policy/set_policy_urlbuilder.go b/api/operations/policy/set_policy_urlbuilder.go
similarity index 100%
rename from restapi/operations/policy/set_policy_urlbuilder.go
rename to api/operations/policy/set_policy_urlbuilder.go
diff --git a/restapi/operations/profile/profiling_start.go b/api/operations/profile/profiling_start.go
similarity index 100%
rename from restapi/operations/profile/profiling_start.go
rename to api/operations/profile/profiling_start.go
diff --git a/restapi/operations/profile/profiling_start_parameters.go b/api/operations/profile/profiling_start_parameters.go
similarity index 100%
rename from restapi/operations/profile/profiling_start_parameters.go
rename to api/operations/profile/profiling_start_parameters.go
diff --git a/restapi/operations/profile/profiling_start_responses.go b/api/operations/profile/profiling_start_responses.go
similarity index 100%
rename from restapi/operations/profile/profiling_start_responses.go
rename to api/operations/profile/profiling_start_responses.go
diff --git a/restapi/operations/profile/profiling_start_urlbuilder.go b/api/operations/profile/profiling_start_urlbuilder.go
similarity index 100%
rename from restapi/operations/profile/profiling_start_urlbuilder.go
rename to api/operations/profile/profiling_start_urlbuilder.go
diff --git a/restapi/operations/profile/profiling_stop.go b/api/operations/profile/profiling_stop.go
similarity index 100%
rename from restapi/operations/profile/profiling_stop.go
rename to api/operations/profile/profiling_stop.go
diff --git a/restapi/operations/profile/profiling_stop_parameters.go b/api/operations/profile/profiling_stop_parameters.go
similarity index 100%
rename from restapi/operations/profile/profiling_stop_parameters.go
rename to api/operations/profile/profiling_stop_parameters.go
diff --git a/restapi/operations/profile/profiling_stop_responses.go b/api/operations/profile/profiling_stop_responses.go
similarity index 100%
rename from restapi/operations/profile/profiling_stop_responses.go
rename to api/operations/profile/profiling_stop_responses.go
diff --git a/restapi/operations/profile/profiling_stop_urlbuilder.go b/api/operations/profile/profiling_stop_urlbuilder.go
similarity index 100%
rename from restapi/operations/profile/profiling_stop_urlbuilder.go
rename to api/operations/profile/profiling_stop_urlbuilder.go
diff --git a/restapi/operations/release/list_releases.go b/api/operations/release/list_releases.go
similarity index 100%
rename from restapi/operations/release/list_releases.go
rename to api/operations/release/list_releases.go
diff --git a/restapi/operations/release/list_releases_parameters.go b/api/operations/release/list_releases_parameters.go
similarity index 100%
rename from restapi/operations/release/list_releases_parameters.go
rename to api/operations/release/list_releases_parameters.go
diff --git a/restapi/operations/release/list_releases_responses.go b/api/operations/release/list_releases_responses.go
similarity index 100%
rename from restapi/operations/release/list_releases_responses.go
rename to api/operations/release/list_releases_responses.go
diff --git a/restapi/operations/release/list_releases_urlbuilder.go b/api/operations/release/list_releases_urlbuilder.go
similarity index 100%
rename from restapi/operations/release/list_releases_urlbuilder.go
rename to api/operations/release/list_releases_urlbuilder.go
diff --git a/restapi/operations/service/restart_service.go b/api/operations/service/restart_service.go
similarity index 100%
rename from restapi/operations/service/restart_service.go
rename to api/operations/service/restart_service.go
diff --git a/restapi/operations/service/restart_service_parameters.go b/api/operations/service/restart_service_parameters.go
similarity index 100%
rename from restapi/operations/service/restart_service_parameters.go
rename to api/operations/service/restart_service_parameters.go
diff --git a/restapi/operations/service/restart_service_responses.go b/api/operations/service/restart_service_responses.go
similarity index 100%
rename from restapi/operations/service/restart_service_responses.go
rename to api/operations/service/restart_service_responses.go
diff --git a/restapi/operations/service/restart_service_urlbuilder.go b/api/operations/service/restart_service_urlbuilder.go
similarity index 100%
rename from restapi/operations/service/restart_service_urlbuilder.go
rename to api/operations/service/restart_service_urlbuilder.go
diff --git a/restapi/operations/service_account/create_service_account.go b/api/operations/service_account/create_service_account.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account.go
rename to api/operations/service_account/create_service_account.go
diff --git a/restapi/operations/service_account/create_service_account_creds.go b/api/operations/service_account/create_service_account_creds.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_creds.go
rename to api/operations/service_account/create_service_account_creds.go
diff --git a/restapi/operations/service_account/create_service_account_creds_parameters.go b/api/operations/service_account/create_service_account_creds_parameters.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_creds_parameters.go
rename to api/operations/service_account/create_service_account_creds_parameters.go
diff --git a/restapi/operations/service_account/create_service_account_creds_responses.go b/api/operations/service_account/create_service_account_creds_responses.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_creds_responses.go
rename to api/operations/service_account/create_service_account_creds_responses.go
diff --git a/restapi/operations/service_account/create_service_account_creds_urlbuilder.go b/api/operations/service_account/create_service_account_creds_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_creds_urlbuilder.go
rename to api/operations/service_account/create_service_account_creds_urlbuilder.go
diff --git a/restapi/operations/service_account/create_service_account_parameters.go b/api/operations/service_account/create_service_account_parameters.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_parameters.go
rename to api/operations/service_account/create_service_account_parameters.go
diff --git a/restapi/operations/service_account/create_service_account_responses.go b/api/operations/service_account/create_service_account_responses.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_responses.go
rename to api/operations/service_account/create_service_account_responses.go
diff --git a/restapi/operations/service_account/create_service_account_urlbuilder.go b/api/operations/service_account/create_service_account_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/create_service_account_urlbuilder.go
rename to api/operations/service_account/create_service_account_urlbuilder.go
diff --git a/restapi/operations/service_account/delete_multiple_service_accounts.go b/api/operations/service_account/delete_multiple_service_accounts.go
similarity index 100%
rename from restapi/operations/service_account/delete_multiple_service_accounts.go
rename to api/operations/service_account/delete_multiple_service_accounts.go
diff --git a/restapi/operations/service_account/delete_multiple_service_accounts_parameters.go b/api/operations/service_account/delete_multiple_service_accounts_parameters.go
similarity index 100%
rename from restapi/operations/service_account/delete_multiple_service_accounts_parameters.go
rename to api/operations/service_account/delete_multiple_service_accounts_parameters.go
diff --git a/restapi/operations/service_account/delete_multiple_service_accounts_responses.go b/api/operations/service_account/delete_multiple_service_accounts_responses.go
similarity index 100%
rename from restapi/operations/service_account/delete_multiple_service_accounts_responses.go
rename to api/operations/service_account/delete_multiple_service_accounts_responses.go
diff --git a/restapi/operations/service_account/delete_multiple_service_accounts_urlbuilder.go b/api/operations/service_account/delete_multiple_service_accounts_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/delete_multiple_service_accounts_urlbuilder.go
rename to api/operations/service_account/delete_multiple_service_accounts_urlbuilder.go
diff --git a/restapi/operations/service_account/delete_service_account.go b/api/operations/service_account/delete_service_account.go
similarity index 100%
rename from restapi/operations/service_account/delete_service_account.go
rename to api/operations/service_account/delete_service_account.go
diff --git a/restapi/operations/service_account/delete_service_account_parameters.go b/api/operations/service_account/delete_service_account_parameters.go
similarity index 100%
rename from restapi/operations/service_account/delete_service_account_parameters.go
rename to api/operations/service_account/delete_service_account_parameters.go
diff --git a/restapi/operations/service_account/delete_service_account_responses.go b/api/operations/service_account/delete_service_account_responses.go
similarity index 100%
rename from restapi/operations/service_account/delete_service_account_responses.go
rename to api/operations/service_account/delete_service_account_responses.go
diff --git a/restapi/operations/service_account/delete_service_account_urlbuilder.go b/api/operations/service_account/delete_service_account_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/delete_service_account_urlbuilder.go
rename to api/operations/service_account/delete_service_account_urlbuilder.go
diff --git a/restapi/operations/service_account/get_service_account.go b/api/operations/service_account/get_service_account.go
similarity index 100%
rename from restapi/operations/service_account/get_service_account.go
rename to api/operations/service_account/get_service_account.go
diff --git a/restapi/operations/service_account/get_service_account_parameters.go b/api/operations/service_account/get_service_account_parameters.go
similarity index 100%
rename from restapi/operations/service_account/get_service_account_parameters.go
rename to api/operations/service_account/get_service_account_parameters.go
diff --git a/restapi/operations/service_account/get_service_account_responses.go b/api/operations/service_account/get_service_account_responses.go
similarity index 100%
rename from restapi/operations/service_account/get_service_account_responses.go
rename to api/operations/service_account/get_service_account_responses.go
diff --git a/restapi/operations/service_account/get_service_account_urlbuilder.go b/api/operations/service_account/get_service_account_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/get_service_account_urlbuilder.go
rename to api/operations/service_account/get_service_account_urlbuilder.go
diff --git a/restapi/operations/service_account/list_user_service_accounts.go b/api/operations/service_account/list_user_service_accounts.go
similarity index 100%
rename from restapi/operations/service_account/list_user_service_accounts.go
rename to api/operations/service_account/list_user_service_accounts.go
diff --git a/restapi/operations/service_account/list_user_service_accounts_parameters.go b/api/operations/service_account/list_user_service_accounts_parameters.go
similarity index 100%
rename from restapi/operations/service_account/list_user_service_accounts_parameters.go
rename to api/operations/service_account/list_user_service_accounts_parameters.go
diff --git a/restapi/operations/service_account/list_user_service_accounts_responses.go b/api/operations/service_account/list_user_service_accounts_responses.go
similarity index 100%
rename from restapi/operations/service_account/list_user_service_accounts_responses.go
rename to api/operations/service_account/list_user_service_accounts_responses.go
diff --git a/restapi/operations/service_account/list_user_service_accounts_urlbuilder.go b/api/operations/service_account/list_user_service_accounts_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/list_user_service_accounts_urlbuilder.go
rename to api/operations/service_account/list_user_service_accounts_urlbuilder.go
diff --git a/restapi/operations/service_account/update_service_account.go b/api/operations/service_account/update_service_account.go
similarity index 100%
rename from restapi/operations/service_account/update_service_account.go
rename to api/operations/service_account/update_service_account.go
diff --git a/restapi/operations/service_account/update_service_account_parameters.go b/api/operations/service_account/update_service_account_parameters.go
similarity index 100%
rename from restapi/operations/service_account/update_service_account_parameters.go
rename to api/operations/service_account/update_service_account_parameters.go
diff --git a/restapi/operations/service_account/update_service_account_responses.go b/api/operations/service_account/update_service_account_responses.go
similarity index 100%
rename from restapi/operations/service_account/update_service_account_responses.go
rename to api/operations/service_account/update_service_account_responses.go
diff --git a/restapi/operations/service_account/update_service_account_urlbuilder.go b/api/operations/service_account/update_service_account_urlbuilder.go
similarity index 100%
rename from restapi/operations/service_account/update_service_account_urlbuilder.go
rename to api/operations/service_account/update_service_account_urlbuilder.go
diff --git a/restapi/operations/site_replication/get_site_replication_info.go b/api/operations/site_replication/get_site_replication_info.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_info.go
rename to api/operations/site_replication/get_site_replication_info.go
diff --git a/restapi/operations/site_replication/get_site_replication_info_parameters.go b/api/operations/site_replication/get_site_replication_info_parameters.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_info_parameters.go
rename to api/operations/site_replication/get_site_replication_info_parameters.go
diff --git a/restapi/operations/site_replication/get_site_replication_info_responses.go b/api/operations/site_replication/get_site_replication_info_responses.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_info_responses.go
rename to api/operations/site_replication/get_site_replication_info_responses.go
diff --git a/restapi/operations/site_replication/get_site_replication_info_urlbuilder.go b/api/operations/site_replication/get_site_replication_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_info_urlbuilder.go
rename to api/operations/site_replication/get_site_replication_info_urlbuilder.go
diff --git a/restapi/operations/site_replication/get_site_replication_status.go b/api/operations/site_replication/get_site_replication_status.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_status.go
rename to api/operations/site_replication/get_site_replication_status.go
diff --git a/restapi/operations/site_replication/get_site_replication_status_parameters.go b/api/operations/site_replication/get_site_replication_status_parameters.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_status_parameters.go
rename to api/operations/site_replication/get_site_replication_status_parameters.go
diff --git a/restapi/operations/site_replication/get_site_replication_status_responses.go b/api/operations/site_replication/get_site_replication_status_responses.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_status_responses.go
rename to api/operations/site_replication/get_site_replication_status_responses.go
diff --git a/restapi/operations/site_replication/get_site_replication_status_urlbuilder.go b/api/operations/site_replication/get_site_replication_status_urlbuilder.go
similarity index 100%
rename from restapi/operations/site_replication/get_site_replication_status_urlbuilder.go
rename to api/operations/site_replication/get_site_replication_status_urlbuilder.go
diff --git a/restapi/operations/site_replication/site_replication_edit.go b/api/operations/site_replication/site_replication_edit.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_edit.go
rename to api/operations/site_replication/site_replication_edit.go
diff --git a/restapi/operations/site_replication/site_replication_edit_parameters.go b/api/operations/site_replication/site_replication_edit_parameters.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_edit_parameters.go
rename to api/operations/site_replication/site_replication_edit_parameters.go
diff --git a/restapi/operations/site_replication/site_replication_edit_responses.go b/api/operations/site_replication/site_replication_edit_responses.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_edit_responses.go
rename to api/operations/site_replication/site_replication_edit_responses.go
diff --git a/restapi/operations/site_replication/site_replication_edit_urlbuilder.go b/api/operations/site_replication/site_replication_edit_urlbuilder.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_edit_urlbuilder.go
rename to api/operations/site_replication/site_replication_edit_urlbuilder.go
diff --git a/restapi/operations/site_replication/site_replication_info_add.go b/api/operations/site_replication/site_replication_info_add.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_info_add.go
rename to api/operations/site_replication/site_replication_info_add.go
diff --git a/restapi/operations/site_replication/site_replication_info_add_parameters.go b/api/operations/site_replication/site_replication_info_add_parameters.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_info_add_parameters.go
rename to api/operations/site_replication/site_replication_info_add_parameters.go
diff --git a/restapi/operations/site_replication/site_replication_info_add_responses.go b/api/operations/site_replication/site_replication_info_add_responses.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_info_add_responses.go
rename to api/operations/site_replication/site_replication_info_add_responses.go
diff --git a/restapi/operations/site_replication/site_replication_info_add_urlbuilder.go b/api/operations/site_replication/site_replication_info_add_urlbuilder.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_info_add_urlbuilder.go
rename to api/operations/site_replication/site_replication_info_add_urlbuilder.go
diff --git a/restapi/operations/site_replication/site_replication_remove.go b/api/operations/site_replication/site_replication_remove.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_remove.go
rename to api/operations/site_replication/site_replication_remove.go
diff --git a/restapi/operations/site_replication/site_replication_remove_parameters.go b/api/operations/site_replication/site_replication_remove_parameters.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_remove_parameters.go
rename to api/operations/site_replication/site_replication_remove_parameters.go
diff --git a/restapi/operations/site_replication/site_replication_remove_responses.go b/api/operations/site_replication/site_replication_remove_responses.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_remove_responses.go
rename to api/operations/site_replication/site_replication_remove_responses.go
diff --git a/restapi/operations/site_replication/site_replication_remove_urlbuilder.go b/api/operations/site_replication/site_replication_remove_urlbuilder.go
similarity index 100%
rename from restapi/operations/site_replication/site_replication_remove_urlbuilder.go
rename to api/operations/site_replication/site_replication_remove_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_api_key.go b/api/operations/subnet/subnet_api_key.go
similarity index 100%
rename from restapi/operations/subnet/subnet_api_key.go
rename to api/operations/subnet/subnet_api_key.go
diff --git a/restapi/operations/subnet/subnet_api_key_parameters.go b/api/operations/subnet/subnet_api_key_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_api_key_parameters.go
rename to api/operations/subnet/subnet_api_key_parameters.go
diff --git a/restapi/operations/subnet/subnet_api_key_responses.go b/api/operations/subnet/subnet_api_key_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_api_key_responses.go
rename to api/operations/subnet/subnet_api_key_responses.go
diff --git a/restapi/operations/subnet/subnet_api_key_urlbuilder.go b/api/operations/subnet/subnet_api_key_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_api_key_urlbuilder.go
rename to api/operations/subnet/subnet_api_key_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_info.go b/api/operations/subnet/subnet_info.go
similarity index 100%
rename from restapi/operations/subnet/subnet_info.go
rename to api/operations/subnet/subnet_info.go
diff --git a/restapi/operations/subnet/subnet_info_parameters.go b/api/operations/subnet/subnet_info_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_info_parameters.go
rename to api/operations/subnet/subnet_info_parameters.go
diff --git a/restapi/operations/subnet/subnet_info_responses.go b/api/operations/subnet/subnet_info_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_info_responses.go
rename to api/operations/subnet/subnet_info_responses.go
diff --git a/restapi/operations/subnet/subnet_info_urlbuilder.go b/api/operations/subnet/subnet_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_info_urlbuilder.go
rename to api/operations/subnet/subnet_info_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_login.go b/api/operations/subnet/subnet_login.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login.go
rename to api/operations/subnet/subnet_login.go
diff --git a/restapi/operations/subnet/subnet_login_m_f_a.go b/api/operations/subnet/subnet_login_m_f_a.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_m_f_a.go
rename to api/operations/subnet/subnet_login_m_f_a.go
diff --git a/restapi/operations/subnet/subnet_login_m_f_a_parameters.go b/api/operations/subnet/subnet_login_m_f_a_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_m_f_a_parameters.go
rename to api/operations/subnet/subnet_login_m_f_a_parameters.go
diff --git a/restapi/operations/subnet/subnet_login_m_f_a_responses.go b/api/operations/subnet/subnet_login_m_f_a_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_m_f_a_responses.go
rename to api/operations/subnet/subnet_login_m_f_a_responses.go
diff --git a/restapi/operations/subnet/subnet_login_m_f_a_urlbuilder.go b/api/operations/subnet/subnet_login_m_f_a_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_m_f_a_urlbuilder.go
rename to api/operations/subnet/subnet_login_m_f_a_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_login_parameters.go b/api/operations/subnet/subnet_login_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_parameters.go
rename to api/operations/subnet/subnet_login_parameters.go
diff --git a/restapi/operations/subnet/subnet_login_responses.go b/api/operations/subnet/subnet_login_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_responses.go
rename to api/operations/subnet/subnet_login_responses.go
diff --git a/restapi/operations/subnet/subnet_login_urlbuilder.go b/api/operations/subnet/subnet_login_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_login_urlbuilder.go
rename to api/operations/subnet/subnet_login_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_reg_token.go b/api/operations/subnet/subnet_reg_token.go
similarity index 100%
rename from restapi/operations/subnet/subnet_reg_token.go
rename to api/operations/subnet/subnet_reg_token.go
diff --git a/restapi/operations/subnet/subnet_reg_token_parameters.go b/api/operations/subnet/subnet_reg_token_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_reg_token_parameters.go
rename to api/operations/subnet/subnet_reg_token_parameters.go
diff --git a/restapi/operations/subnet/subnet_reg_token_responses.go b/api/operations/subnet/subnet_reg_token_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_reg_token_responses.go
rename to api/operations/subnet/subnet_reg_token_responses.go
diff --git a/restapi/operations/subnet/subnet_reg_token_urlbuilder.go b/api/operations/subnet/subnet_reg_token_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_reg_token_urlbuilder.go
rename to api/operations/subnet/subnet_reg_token_urlbuilder.go
diff --git a/restapi/operations/subnet/subnet_register.go b/api/operations/subnet/subnet_register.go
similarity index 100%
rename from restapi/operations/subnet/subnet_register.go
rename to api/operations/subnet/subnet_register.go
diff --git a/restapi/operations/subnet/subnet_register_parameters.go b/api/operations/subnet/subnet_register_parameters.go
similarity index 100%
rename from restapi/operations/subnet/subnet_register_parameters.go
rename to api/operations/subnet/subnet_register_parameters.go
diff --git a/restapi/operations/subnet/subnet_register_responses.go b/api/operations/subnet/subnet_register_responses.go
similarity index 100%
rename from restapi/operations/subnet/subnet_register_responses.go
rename to api/operations/subnet/subnet_register_responses.go
diff --git a/restapi/operations/subnet/subnet_register_urlbuilder.go b/api/operations/subnet/subnet_register_urlbuilder.go
similarity index 100%
rename from restapi/operations/subnet/subnet_register_urlbuilder.go
rename to api/operations/subnet/subnet_register_urlbuilder.go
diff --git a/restapi/operations/support/get_call_home_option_value.go b/api/operations/support/get_call_home_option_value.go
similarity index 100%
rename from restapi/operations/support/get_call_home_option_value.go
rename to api/operations/support/get_call_home_option_value.go
diff --git a/restapi/operations/support/get_call_home_option_value_parameters.go b/api/operations/support/get_call_home_option_value_parameters.go
similarity index 100%
rename from restapi/operations/support/get_call_home_option_value_parameters.go
rename to api/operations/support/get_call_home_option_value_parameters.go
diff --git a/restapi/operations/support/get_call_home_option_value_responses.go b/api/operations/support/get_call_home_option_value_responses.go
similarity index 100%
rename from restapi/operations/support/get_call_home_option_value_responses.go
rename to api/operations/support/get_call_home_option_value_responses.go
diff --git a/restapi/operations/support/get_call_home_option_value_urlbuilder.go b/api/operations/support/get_call_home_option_value_urlbuilder.go
similarity index 100%
rename from restapi/operations/support/get_call_home_option_value_urlbuilder.go
rename to api/operations/support/get_call_home_option_value_urlbuilder.go
diff --git a/restapi/operations/support/set_call_home_status.go b/api/operations/support/set_call_home_status.go
similarity index 100%
rename from restapi/operations/support/set_call_home_status.go
rename to api/operations/support/set_call_home_status.go
diff --git a/restapi/operations/support/set_call_home_status_parameters.go b/api/operations/support/set_call_home_status_parameters.go
similarity index 100%
rename from restapi/operations/support/set_call_home_status_parameters.go
rename to api/operations/support/set_call_home_status_parameters.go
diff --git a/restapi/operations/support/set_call_home_status_responses.go b/api/operations/support/set_call_home_status_responses.go
similarity index 100%
rename from restapi/operations/support/set_call_home_status_responses.go
rename to api/operations/support/set_call_home_status_responses.go
diff --git a/restapi/operations/support/set_call_home_status_urlbuilder.go b/api/operations/support/set_call_home_status_urlbuilder.go
similarity index 100%
rename from restapi/operations/support/set_call_home_status_urlbuilder.go
rename to api/operations/support/set_call_home_status_urlbuilder.go
diff --git a/restapi/operations/system/admin_info.go b/api/operations/system/admin_info.go
similarity index 100%
rename from restapi/operations/system/admin_info.go
rename to api/operations/system/admin_info.go
diff --git a/restapi/operations/system/admin_info_parameters.go b/api/operations/system/admin_info_parameters.go
similarity index 100%
rename from restapi/operations/system/admin_info_parameters.go
rename to api/operations/system/admin_info_parameters.go
diff --git a/restapi/operations/system/admin_info_responses.go b/api/operations/system/admin_info_responses.go
similarity index 100%
rename from restapi/operations/system/admin_info_responses.go
rename to api/operations/system/admin_info_responses.go
diff --git a/restapi/operations/system/admin_info_urlbuilder.go b/api/operations/system/admin_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/system/admin_info_urlbuilder.go
rename to api/operations/system/admin_info_urlbuilder.go
diff --git a/restapi/operations/system/arn_list.go b/api/operations/system/arn_list.go
similarity index 100%
rename from restapi/operations/system/arn_list.go
rename to api/operations/system/arn_list.go
diff --git a/restapi/operations/system/arn_list_parameters.go b/api/operations/system/arn_list_parameters.go
similarity index 100%
rename from restapi/operations/system/arn_list_parameters.go
rename to api/operations/system/arn_list_parameters.go
diff --git a/restapi/operations/system/arn_list_responses.go b/api/operations/system/arn_list_responses.go
similarity index 100%
rename from restapi/operations/system/arn_list_responses.go
rename to api/operations/system/arn_list_responses.go
diff --git a/restapi/operations/system/arn_list_urlbuilder.go b/api/operations/system/arn_list_urlbuilder.go
similarity index 100%
rename from restapi/operations/system/arn_list_urlbuilder.go
rename to api/operations/system/arn_list_urlbuilder.go
diff --git a/restapi/operations/system/dashboard_widget_details.go b/api/operations/system/dashboard_widget_details.go
similarity index 100%
rename from restapi/operations/system/dashboard_widget_details.go
rename to api/operations/system/dashboard_widget_details.go
diff --git a/restapi/operations/system/dashboard_widget_details_parameters.go b/api/operations/system/dashboard_widget_details_parameters.go
similarity index 100%
rename from restapi/operations/system/dashboard_widget_details_parameters.go
rename to api/operations/system/dashboard_widget_details_parameters.go
diff --git a/restapi/operations/system/dashboard_widget_details_responses.go b/api/operations/system/dashboard_widget_details_responses.go
similarity index 100%
rename from restapi/operations/system/dashboard_widget_details_responses.go
rename to api/operations/system/dashboard_widget_details_responses.go
diff --git a/restapi/operations/system/dashboard_widget_details_urlbuilder.go b/api/operations/system/dashboard_widget_details_urlbuilder.go
similarity index 100%
rename from restapi/operations/system/dashboard_widget_details_urlbuilder.go
rename to api/operations/system/dashboard_widget_details_urlbuilder.go
diff --git a/restapi/operations/system/list_nodes.go b/api/operations/system/list_nodes.go
similarity index 100%
rename from restapi/operations/system/list_nodes.go
rename to api/operations/system/list_nodes.go
diff --git a/restapi/operations/system/list_nodes_parameters.go b/api/operations/system/list_nodes_parameters.go
similarity index 100%
rename from restapi/operations/system/list_nodes_parameters.go
rename to api/operations/system/list_nodes_parameters.go
diff --git a/restapi/operations/system/list_nodes_responses.go b/api/operations/system/list_nodes_responses.go
similarity index 100%
rename from restapi/operations/system/list_nodes_responses.go
rename to api/operations/system/list_nodes_responses.go
diff --git a/restapi/operations/system/list_nodes_urlbuilder.go b/api/operations/system/list_nodes_urlbuilder.go
similarity index 100%
rename from restapi/operations/system/list_nodes_urlbuilder.go
rename to api/operations/system/list_nodes_urlbuilder.go
diff --git a/restapi/operations/tiering/add_tier.go b/api/operations/tiering/add_tier.go
similarity index 100%
rename from restapi/operations/tiering/add_tier.go
rename to api/operations/tiering/add_tier.go
diff --git a/restapi/operations/tiering/add_tier_parameters.go b/api/operations/tiering/add_tier_parameters.go
similarity index 100%
rename from restapi/operations/tiering/add_tier_parameters.go
rename to api/operations/tiering/add_tier_parameters.go
diff --git a/restapi/operations/tiering/add_tier_responses.go b/api/operations/tiering/add_tier_responses.go
similarity index 100%
rename from restapi/operations/tiering/add_tier_responses.go
rename to api/operations/tiering/add_tier_responses.go
diff --git a/restapi/operations/tiering/add_tier_urlbuilder.go b/api/operations/tiering/add_tier_urlbuilder.go
similarity index 100%
rename from restapi/operations/tiering/add_tier_urlbuilder.go
rename to api/operations/tiering/add_tier_urlbuilder.go
diff --git a/restapi/operations/tiering/edit_tier_credentials.go b/api/operations/tiering/edit_tier_credentials.go
similarity index 100%
rename from restapi/operations/tiering/edit_tier_credentials.go
rename to api/operations/tiering/edit_tier_credentials.go
diff --git a/restapi/operations/tiering/edit_tier_credentials_parameters.go b/api/operations/tiering/edit_tier_credentials_parameters.go
similarity index 100%
rename from restapi/operations/tiering/edit_tier_credentials_parameters.go
rename to api/operations/tiering/edit_tier_credentials_parameters.go
diff --git a/restapi/operations/tiering/edit_tier_credentials_responses.go b/api/operations/tiering/edit_tier_credentials_responses.go
similarity index 100%
rename from restapi/operations/tiering/edit_tier_credentials_responses.go
rename to api/operations/tiering/edit_tier_credentials_responses.go
diff --git a/restapi/operations/tiering/edit_tier_credentials_urlbuilder.go b/api/operations/tiering/edit_tier_credentials_urlbuilder.go
similarity index 100%
rename from restapi/operations/tiering/edit_tier_credentials_urlbuilder.go
rename to api/operations/tiering/edit_tier_credentials_urlbuilder.go
diff --git a/restapi/operations/tiering/get_tier.go b/api/operations/tiering/get_tier.go
similarity index 100%
rename from restapi/operations/tiering/get_tier.go
rename to api/operations/tiering/get_tier.go
diff --git a/restapi/operations/tiering/get_tier_parameters.go b/api/operations/tiering/get_tier_parameters.go
similarity index 100%
rename from restapi/operations/tiering/get_tier_parameters.go
rename to api/operations/tiering/get_tier_parameters.go
diff --git a/restapi/operations/tiering/get_tier_responses.go b/api/operations/tiering/get_tier_responses.go
similarity index 100%
rename from restapi/operations/tiering/get_tier_responses.go
rename to api/operations/tiering/get_tier_responses.go
diff --git a/restapi/operations/tiering/get_tier_urlbuilder.go b/api/operations/tiering/get_tier_urlbuilder.go
similarity index 100%
rename from restapi/operations/tiering/get_tier_urlbuilder.go
rename to api/operations/tiering/get_tier_urlbuilder.go
diff --git a/restapi/operations/tiering/tiers_list.go b/api/operations/tiering/tiers_list.go
similarity index 100%
rename from restapi/operations/tiering/tiers_list.go
rename to api/operations/tiering/tiers_list.go
diff --git a/restapi/operations/tiering/tiers_list_parameters.go b/api/operations/tiering/tiers_list_parameters.go
similarity index 100%
rename from restapi/operations/tiering/tiers_list_parameters.go
rename to api/operations/tiering/tiers_list_parameters.go
diff --git a/restapi/operations/tiering/tiers_list_responses.go b/api/operations/tiering/tiers_list_responses.go
similarity index 100%
rename from restapi/operations/tiering/tiers_list_responses.go
rename to api/operations/tiering/tiers_list_responses.go
diff --git a/restapi/operations/tiering/tiers_list_urlbuilder.go b/api/operations/tiering/tiers_list_urlbuilder.go
similarity index 100%
rename from restapi/operations/tiering/tiers_list_urlbuilder.go
rename to api/operations/tiering/tiers_list_urlbuilder.go
diff --git a/restapi/operations/user/add_user.go b/api/operations/user/add_user.go
similarity index 100%
rename from restapi/operations/user/add_user.go
rename to api/operations/user/add_user.go
diff --git a/restapi/operations/user/add_user_parameters.go b/api/operations/user/add_user_parameters.go
similarity index 100%
rename from restapi/operations/user/add_user_parameters.go
rename to api/operations/user/add_user_parameters.go
diff --git a/restapi/operations/user/add_user_responses.go b/api/operations/user/add_user_responses.go
similarity index 100%
rename from restapi/operations/user/add_user_responses.go
rename to api/operations/user/add_user_responses.go
diff --git a/restapi/operations/user/add_user_urlbuilder.go b/api/operations/user/add_user_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/add_user_urlbuilder.go
rename to api/operations/user/add_user_urlbuilder.go
diff --git a/restapi/operations/user/bulk_update_users_groups.go b/api/operations/user/bulk_update_users_groups.go
similarity index 100%
rename from restapi/operations/user/bulk_update_users_groups.go
rename to api/operations/user/bulk_update_users_groups.go
diff --git a/restapi/operations/user/bulk_update_users_groups_parameters.go b/api/operations/user/bulk_update_users_groups_parameters.go
similarity index 100%
rename from restapi/operations/user/bulk_update_users_groups_parameters.go
rename to api/operations/user/bulk_update_users_groups_parameters.go
diff --git a/restapi/operations/user/bulk_update_users_groups_responses.go b/api/operations/user/bulk_update_users_groups_responses.go
similarity index 100%
rename from restapi/operations/user/bulk_update_users_groups_responses.go
rename to api/operations/user/bulk_update_users_groups_responses.go
diff --git a/restapi/operations/user/bulk_update_users_groups_urlbuilder.go b/api/operations/user/bulk_update_users_groups_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/bulk_update_users_groups_urlbuilder.go
rename to api/operations/user/bulk_update_users_groups_urlbuilder.go
diff --git a/restapi/operations/user/check_user_service_accounts.go b/api/operations/user/check_user_service_accounts.go
similarity index 100%
rename from restapi/operations/user/check_user_service_accounts.go
rename to api/operations/user/check_user_service_accounts.go
diff --git a/restapi/operations/user/check_user_service_accounts_parameters.go b/api/operations/user/check_user_service_accounts_parameters.go
similarity index 100%
rename from restapi/operations/user/check_user_service_accounts_parameters.go
rename to api/operations/user/check_user_service_accounts_parameters.go
diff --git a/restapi/operations/user/check_user_service_accounts_responses.go b/api/operations/user/check_user_service_accounts_responses.go
similarity index 100%
rename from restapi/operations/user/check_user_service_accounts_responses.go
rename to api/operations/user/check_user_service_accounts_responses.go
diff --git a/restapi/operations/user/check_user_service_accounts_urlbuilder.go b/api/operations/user/check_user_service_accounts_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/check_user_service_accounts_urlbuilder.go
rename to api/operations/user/check_user_service_accounts_urlbuilder.go
diff --git a/restapi/operations/user/create_a_user_service_account.go b/api/operations/user/create_a_user_service_account.go
similarity index 100%
rename from restapi/operations/user/create_a_user_service_account.go
rename to api/operations/user/create_a_user_service_account.go
diff --git a/restapi/operations/user/create_a_user_service_account_parameters.go b/api/operations/user/create_a_user_service_account_parameters.go
similarity index 100%
rename from restapi/operations/user/create_a_user_service_account_parameters.go
rename to api/operations/user/create_a_user_service_account_parameters.go
diff --git a/restapi/operations/user/create_a_user_service_account_responses.go b/api/operations/user/create_a_user_service_account_responses.go
similarity index 100%
rename from restapi/operations/user/create_a_user_service_account_responses.go
rename to api/operations/user/create_a_user_service_account_responses.go
diff --git a/restapi/operations/user/create_a_user_service_account_urlbuilder.go b/api/operations/user/create_a_user_service_account_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/create_a_user_service_account_urlbuilder.go
rename to api/operations/user/create_a_user_service_account_urlbuilder.go
diff --git a/restapi/operations/user/create_service_account_credentials.go b/api/operations/user/create_service_account_credentials.go
similarity index 100%
rename from restapi/operations/user/create_service_account_credentials.go
rename to api/operations/user/create_service_account_credentials.go
diff --git a/restapi/operations/user/create_service_account_credentials_parameters.go b/api/operations/user/create_service_account_credentials_parameters.go
similarity index 100%
rename from restapi/operations/user/create_service_account_credentials_parameters.go
rename to api/operations/user/create_service_account_credentials_parameters.go
diff --git a/restapi/operations/user/create_service_account_credentials_responses.go b/api/operations/user/create_service_account_credentials_responses.go
similarity index 100%
rename from restapi/operations/user/create_service_account_credentials_responses.go
rename to api/operations/user/create_service_account_credentials_responses.go
diff --git a/restapi/operations/user/create_service_account_credentials_urlbuilder.go b/api/operations/user/create_service_account_credentials_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/create_service_account_credentials_urlbuilder.go
rename to api/operations/user/create_service_account_credentials_urlbuilder.go
diff --git a/restapi/operations/user/get_user_info.go b/api/operations/user/get_user_info.go
similarity index 100%
rename from restapi/operations/user/get_user_info.go
rename to api/operations/user/get_user_info.go
diff --git a/restapi/operations/user/get_user_info_parameters.go b/api/operations/user/get_user_info_parameters.go
similarity index 100%
rename from restapi/operations/user/get_user_info_parameters.go
rename to api/operations/user/get_user_info_parameters.go
diff --git a/restapi/operations/user/get_user_info_responses.go b/api/operations/user/get_user_info_responses.go
similarity index 100%
rename from restapi/operations/user/get_user_info_responses.go
rename to api/operations/user/get_user_info_responses.go
diff --git a/restapi/operations/user/get_user_info_urlbuilder.go b/api/operations/user/get_user_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/get_user_info_urlbuilder.go
rename to api/operations/user/get_user_info_urlbuilder.go
diff --git a/restapi/operations/user/list_a_user_service_accounts.go b/api/operations/user/list_a_user_service_accounts.go
similarity index 100%
rename from restapi/operations/user/list_a_user_service_accounts.go
rename to api/operations/user/list_a_user_service_accounts.go
diff --git a/restapi/operations/user/list_a_user_service_accounts_parameters.go b/api/operations/user/list_a_user_service_accounts_parameters.go
similarity index 100%
rename from restapi/operations/user/list_a_user_service_accounts_parameters.go
rename to api/operations/user/list_a_user_service_accounts_parameters.go
diff --git a/restapi/operations/user/list_a_user_service_accounts_responses.go b/api/operations/user/list_a_user_service_accounts_responses.go
similarity index 100%
rename from restapi/operations/user/list_a_user_service_accounts_responses.go
rename to api/operations/user/list_a_user_service_accounts_responses.go
diff --git a/restapi/operations/user/list_a_user_service_accounts_urlbuilder.go b/api/operations/user/list_a_user_service_accounts_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/list_a_user_service_accounts_urlbuilder.go
rename to api/operations/user/list_a_user_service_accounts_urlbuilder.go
diff --git a/restapi/operations/user/list_users.go b/api/operations/user/list_users.go
similarity index 100%
rename from restapi/operations/user/list_users.go
rename to api/operations/user/list_users.go
diff --git a/restapi/operations/user/list_users_parameters.go b/api/operations/user/list_users_parameters.go
similarity index 100%
rename from restapi/operations/user/list_users_parameters.go
rename to api/operations/user/list_users_parameters.go
diff --git a/restapi/operations/user/list_users_responses.go b/api/operations/user/list_users_responses.go
similarity index 100%
rename from restapi/operations/user/list_users_responses.go
rename to api/operations/user/list_users_responses.go
diff --git a/restapi/operations/user/list_users_urlbuilder.go b/api/operations/user/list_users_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/list_users_urlbuilder.go
rename to api/operations/user/list_users_urlbuilder.go
diff --git a/restapi/operations/user/remove_user.go b/api/operations/user/remove_user.go
similarity index 100%
rename from restapi/operations/user/remove_user.go
rename to api/operations/user/remove_user.go
diff --git a/restapi/operations/user/remove_user_parameters.go b/api/operations/user/remove_user_parameters.go
similarity index 100%
rename from restapi/operations/user/remove_user_parameters.go
rename to api/operations/user/remove_user_parameters.go
diff --git a/restapi/operations/user/remove_user_responses.go b/api/operations/user/remove_user_responses.go
similarity index 100%
rename from restapi/operations/user/remove_user_responses.go
rename to api/operations/user/remove_user_responses.go
diff --git a/restapi/operations/user/remove_user_urlbuilder.go b/api/operations/user/remove_user_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/remove_user_urlbuilder.go
rename to api/operations/user/remove_user_urlbuilder.go
diff --git a/restapi/operations/user/update_user_groups.go b/api/operations/user/update_user_groups.go
similarity index 100%
rename from restapi/operations/user/update_user_groups.go
rename to api/operations/user/update_user_groups.go
diff --git a/restapi/operations/user/update_user_groups_parameters.go b/api/operations/user/update_user_groups_parameters.go
similarity index 100%
rename from restapi/operations/user/update_user_groups_parameters.go
rename to api/operations/user/update_user_groups_parameters.go
diff --git a/restapi/operations/user/update_user_groups_responses.go b/api/operations/user/update_user_groups_responses.go
similarity index 100%
rename from restapi/operations/user/update_user_groups_responses.go
rename to api/operations/user/update_user_groups_responses.go
diff --git a/restapi/operations/user/update_user_groups_urlbuilder.go b/api/operations/user/update_user_groups_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/update_user_groups_urlbuilder.go
rename to api/operations/user/update_user_groups_urlbuilder.go
diff --git a/restapi/operations/user/update_user_info.go b/api/operations/user/update_user_info.go
similarity index 100%
rename from restapi/operations/user/update_user_info.go
rename to api/operations/user/update_user_info.go
diff --git a/restapi/operations/user/update_user_info_parameters.go b/api/operations/user/update_user_info_parameters.go
similarity index 100%
rename from restapi/operations/user/update_user_info_parameters.go
rename to api/operations/user/update_user_info_parameters.go
diff --git a/restapi/operations/user/update_user_info_responses.go b/api/operations/user/update_user_info_responses.go
similarity index 100%
rename from restapi/operations/user/update_user_info_responses.go
rename to api/operations/user/update_user_info_responses.go
diff --git a/restapi/operations/user/update_user_info_urlbuilder.go b/api/operations/user/update_user_info_urlbuilder.go
similarity index 100%
rename from restapi/operations/user/update_user_info_urlbuilder.go
rename to api/operations/user/update_user_info_urlbuilder.go
diff --git a/restapi/policy/policies.go b/api/policy/policies.go
similarity index 100%
rename from restapi/policy/policies.go
rename to api/policy/policies.go
diff --git a/restapi/policy/policies_test.go b/api/policy/policies_test.go
similarity index 100%
rename from restapi/policy/policies_test.go
rename to api/policy/policies_test.go
diff --git a/restapi/server.go b/api/server.go
similarity index 99%
rename from restapi/server.go
rename to api/server.go
index 7940f2b21..17047a349 100644
--- a/restapi/server.go
+++ b/api/server.go
@@ -23,7 +23,7 @@
// along with this program. If not, see .
//
-package restapi
+package api
import (
"context"
@@ -47,7 +47,7 @@ import (
flags "github.com/jessevdk/go-flags"
"golang.org/x/net/netutil"
- "github.com/minio/console/restapi/operations"
+ "github.com/minio/console/api/operations"
)
const (
diff --git a/restapi/service_accounts_handlers.go b/api/service_accounts_handlers.go
similarity index 99%
rename from restapi/service_accounts_handlers.go
rename to api/service_accounts_handlers.go
index 96ab20f87..d85022eea 100644
--- a/restapi/service_accounts_handlers.go
+++ b/api/service_accounts_handlers.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
@@ -25,11 +25,11 @@ import (
"time"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ saApi "github.com/minio/console/api/operations/service_account"
+ userApi "github.com/minio/console/api/operations/user"
"github.com/minio/console/models"
"github.com/minio/console/pkg/utils"
- "github.com/minio/console/restapi/operations"
- saApi "github.com/minio/console/restapi/operations/service_account"
- userApi "github.com/minio/console/restapi/operations/user"
"github.com/minio/madmin-go/v3"
iampolicy "github.com/minio/pkg/v2/policy"
)
diff --git a/restapi/service_accounts_handlers_test.go b/api/service_accounts_handlers_test.go
similarity index 99%
rename from restapi/service_accounts_handlers_test.go
rename to api/service_accounts_handlers_test.go
index ddc3ab80b..6da59bc00 100644
--- a/restapi/service_accounts_handlers_test.go
+++ b/api/service_accounts_handlers_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/tls.go b/api/tls.go
similarity index 99%
rename from restapi/tls.go
rename to api/tls.go
index 950944da2..f17be5278 100644
--- a/restapi/tls.go
+++ b/api/tls.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"crypto/tls"
diff --git a/restapi/user_account.go b/api/user_account.go
similarity index 95%
rename from restapi/user_account.go
rename to api/user_account.go
index bb7febaa9..00da0c043 100644
--- a/restapi/user_account.go
+++ b/api/user_account.go
@@ -14,21 +14,21 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
"net/http"
- authApi "github.com/minio/console/restapi/operations/auth"
+ authApi "github.com/minio/console/api/operations/auth"
"github.com/minio/console/pkg/auth"
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ accountApi "github.com/minio/console/api/operations/account"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- accountApi "github.com/minio/console/restapi/operations/account"
)
func registerAccountHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/user_account_test.go b/api/user_account_test.go
similarity index 97%
rename from restapi/user_account_test.go
rename to api/user_account_test.go
index c37e0ddc5..78b745fc1 100644
--- a/restapi/user_account_test.go
+++ b/api/user_account_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -22,8 +22,8 @@ import (
"net/http"
"testing"
+ accountApi "github.com/minio/console/api/operations/account"
"github.com/minio/console/models"
- accountApi "github.com/minio/console/restapi/operations/account"
"github.com/stretchr/testify/assert"
)
diff --git a/restapi/user_bucket_quota.go b/api/user_bucket_quota.go
similarity index 96%
rename from restapi/user_bucket_quota.go
rename to api/user_bucket_quota.go
index bcddd0859..22c3f6afa 100644
--- a/restapi/user_bucket_quota.go
+++ b/api/user_bucket_quota.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -22,8 +22,8 @@ import (
"fmt"
"github.com/go-openapi/runtime/middleware"
- "github.com/minio/console/restapi/operations"
- bucektApi "github.com/minio/console/restapi/operations/bucket"
+ "github.com/minio/console/api/operations"
+ bucektApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/madmin-go/v3"
diff --git a/restapi/user_buckets.go b/api/user_buckets.go
similarity index 99%
rename from restapi/user_buckets.go
rename to api/user_buckets.go
index 92170a570..b3cfd2bb4 100644
--- a/restapi/user_buckets.go
+++ b/api/user_buckets.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -35,10 +35,10 @@ import (
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth/token"
- "github.com/minio/console/restapi/operations"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
"github.com/minio/minio-go/v7/pkg/policy"
"github.com/minio/minio-go/v7/pkg/replication"
minioIAMPolicy "github.com/minio/pkg/v2/policy"
diff --git a/restapi/user_buckets_events.go b/api/user_buckets_events.go
similarity index 98%
rename from restapi/user_buckets_events.go
rename to api/user_buckets_events.go
index a90843a13..b1d173f5c 100644
--- a/restapi/user_buckets_events.go
+++ b/api/user_buckets_events.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -22,9 +22,9 @@ import (
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/swag"
+ "github.com/minio/console/api/operations"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
"github.com/minio/minio-go/v7/pkg/notification"
)
diff --git a/restapi/user_buckets_events_test.go b/api/user_buckets_events_test.go
similarity index 99%
rename from restapi/user_buckets_events_test.go
rename to api/user_buckets_events_test.go
index 989e33834..d8501c5ae 100644
--- a/restapi/user_buckets_events_test.go
+++ b/api/user_buckets_events_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_buckets_lifecycle.go b/api/user_buckets_lifecycle.go
similarity index 99%
rename from restapi/user_buckets_lifecycle.go
rename to api/user_buckets_lifecycle.go
index e6737e631..87ee48fec 100644
--- a/restapi/user_buckets_lifecycle.go
+++ b/api/user_buckets_lifecycle.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -33,9 +33,9 @@ import (
"github.com/minio/minio-go/v7/pkg/lifecycle"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
)
type MultiLifecycleResult struct {
diff --git a/restapi/user_buckets_lifecycle_test.go b/api/user_buckets_lifecycle_test.go
similarity index 99%
rename from restapi/user_buckets_lifecycle_test.go
rename to api/user_buckets_lifecycle_test.go
index 9f17def5b..6da474a37 100644
--- a/restapi/user_buckets_lifecycle_test.go
+++ b/api/user_buckets_lifecycle_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -25,7 +25,7 @@ import (
"github.com/minio/console/models"
"github.com/stretchr/testify/assert"
- bucketApi "github.com/minio/console/restapi/operations/bucket"
+ bucketApi "github.com/minio/console/api/operations/bucket"
"github.com/minio/minio-go/v7/pkg/lifecycle"
)
diff --git a/restapi/user_buckets_test.go b/api/user_buckets_test.go
similarity index 99%
rename from restapi/user_buckets_test.go
rename to api/user_buckets_test.go
index aff9bd836..438748f04 100644
--- a/restapi/user_buckets_test.go
+++ b/api/user_buckets_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_log_search.go b/api/user_log_search.go
similarity index 96%
rename from restapi/user_log_search.go
rename to api/user_log_search.go
index af45e5422..47cf03179 100644
--- a/restapi/user_log_search.go
+++ b/api/user_log_search.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -23,9 +23,9 @@ import (
"net/http"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ logApi "github.com/minio/console/api/operations/logging"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- logApi "github.com/minio/console/restapi/operations/logging"
iampolicy "github.com/minio/pkg/v2/policy"
)
diff --git a/restapi/user_log_search_test.go b/api/user_log_search_test.go
similarity index 99%
rename from restapi/user_log_search_test.go
rename to api/user_log_search_test.go
index f3c58b13c..5c4d02754 100644
--- a/restapi/user_log_search_test.go
+++ b/api/user_log_search_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"encoding/json"
diff --git a/restapi/user_login.go b/api/user_login.go
similarity index 98%
rename from restapi/user_login.go
rename to api/user_login.go
index cb5abbad3..e31b1344a 100644
--- a/restapi/user_login.go
+++ b/api/user_login.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -28,11 +28,11 @@ import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ authApi "github.com/minio/console/api/operations/auth"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth"
"github.com/minio/console/pkg/auth/idp/oauth2"
- "github.com/minio/console/restapi/operations"
- authApi "github.com/minio/console/restapi/operations/auth"
"github.com/minio/madmin-go/v3"
"github.com/minio/minio-go/v7/pkg/credentials"
"github.com/minio/pkg/v2/env"
diff --git a/restapi/user_login_test.go b/api/user_login_test.go
similarity index 99%
rename from restapi/user_login_test.go
rename to api/user_login_test.go
index 22592662b..e7e303973 100644
--- a/restapi/user_login_test.go
+++ b/api/user_login_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_logout.go b/api/user_logout.go
similarity index 96%
rename from restapi/user_logout.go
rename to api/user_logout.go
index 5da9613e8..f4856524f 100644
--- a/restapi/user_logout.go
+++ b/api/user_logout.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -27,10 +27,10 @@ import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ authApi "github.com/minio/console/api/operations/auth"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth/idp/oauth2"
- "github.com/minio/console/restapi/operations"
- authApi "github.com/minio/console/restapi/operations/auth"
)
func registerLogoutHandlers(api *operations.ConsoleAPI) {
diff --git a/restapi/user_logout_test.go b/api/user_logout_test.go
similarity index 98%
rename from restapi/user_logout_test.go
rename to api/user_logout_test.go
index 1624c9a37..a706af079 100644
--- a/restapi/user_logout_test.go
+++ b/api/user_logout_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import "testing"
diff --git a/restapi/user_objects.go b/api/user_objects.go
similarity index 99%
rename from restapi/user_objects.go
rename to api/user_objects.go
index 0517857b7..b3f225dab 100644
--- a/restapi/user_objects.go
+++ b/api/user_objects.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -37,9 +37,9 @@ import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
"github.com/klauspost/compress/zip"
+ "github.com/minio/console/api/operations"
+ objectApi "github.com/minio/console/api/operations/object"
"github.com/minio/console/models"
- "github.com/minio/console/restapi/operations"
- objectApi "github.com/minio/console/restapi/operations/object"
mc "github.com/minio/mc/cmd"
"github.com/minio/mc/pkg/probe"
"github.com/minio/minio-go/v7/pkg/tags"
diff --git a/restapi/user_objects_test.go b/api/user_objects_test.go
similarity index 99%
rename from restapi/user_objects_test.go
rename to api/user_objects_test.go
index cda213fad..247af74e0 100644
--- a/restapi/user_objects_test.go
+++ b/api/user_objects_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
@@ -29,7 +29,7 @@ import (
"time"
"github.com/go-openapi/runtime/middleware"
- "github.com/minio/console/restapi/operations/object"
+ "github.com/minio/console/api/operations/object"
"github.com/go-openapi/swag"
"github.com/minio/console/models"
diff --git a/restapi/user_session.go b/api/user_session.go
similarity index 98%
rename from restapi/user_session.go
rename to api/user_session.go
index ca394ba95..99ed10181 100644
--- a/restapi/user_session.go
+++ b/api/user_session.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"bytes"
@@ -23,7 +23,7 @@ import (
"strconv"
"time"
- policies "github.com/minio/console/restapi/policy"
+ policies "github.com/minio/console/api/policy"
"github.com/minio/madmin-go/v3"
jwtgo "github.com/golang-jwt/jwt/v4"
@@ -32,11 +32,11 @@ import (
minioIAMPolicy "github.com/minio/pkg/v2/policy"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ authApi "github.com/minio/console/api/operations/auth"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth/idp/oauth2"
"github.com/minio/console/pkg/auth/ldap"
- "github.com/minio/console/restapi/operations"
- authApi "github.com/minio/console/restapi/operations/auth"
)
type Conditions struct {
diff --git a/restapi/user_session_test.go b/api/user_session_test.go
similarity index 99%
rename from restapi/user_session_test.go
rename to api/user_session_test.go
index 17ec6fcdd..38cb07a3b 100644
--- a/restapi/user_session_test.go
+++ b/api/user_session_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_support.go b/api/user_support.go
similarity index 98%
rename from restapi/user_support.go
rename to api/user_support.go
index c64f7887d..565ad7b87 100644
--- a/restapi/user_support.go
+++ b/api/user_support.go
@@ -14,17 +14,17 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"errors"
"fmt"
"github.com/go-openapi/runtime/middleware"
+ "github.com/minio/console/api/operations"
+ "github.com/minio/console/api/operations/support"
"github.com/minio/console/models"
"github.com/minio/console/pkg/subnet"
- "github.com/minio/console/restapi/operations"
- "github.com/minio/console/restapi/operations/support"
"golang.org/x/net/context"
)
diff --git a/restapi/user_support_test.go b/api/user_support_test.go
similarity index 99%
rename from restapi/user_support_test.go
rename to api/user_support_test.go
index daa959ce7..693015ce6 100644
--- a/restapi/user_support_test.go
+++ b/api/user_support_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_watch.go b/api/user_watch.go
similarity index 99%
rename from restapi/user_watch.go
rename to api/user_watch.go
index 7860f894c..f077f001f 100644
--- a/restapi/user_watch.go
+++ b/api/user_watch.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/user_watch_test.go b/api/user_watch_test.go
similarity index 99%
rename from restapi/user_watch_test.go
rename to api/user_watch_test.go
index b77edaed9..e2bfa243f 100644
--- a/restapi/user_watch_test.go
+++ b/api/user_watch_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/utils.go b/api/utils.go
similarity index 99%
rename from restapi/utils.go
rename to api/utils.go
index 89f7c8610..69281da4d 100644
--- a/restapi/utils.go
+++ b/api/utils.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"crypto/rand"
diff --git a/restapi/utils_test.go b/api/utils_test.go
similarity index 99%
rename from restapi/utils_test.go
rename to api/utils_test.go
index 4bcdc68fb..14d418800 100644
--- a/restapi/utils_test.go
+++ b/api/utils_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"net/http"
diff --git a/restapi/ws_handle.go b/api/ws_handle.go
similarity index 99%
rename from restapi/ws_handle.go
rename to api/ws_handle.go
index 6d8b890be..18a979c72 100644
--- a/restapi/ws_handle.go
+++ b/api/ws_handle.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/ws_handle_test.go b/api/ws_handle_test.go
similarity index 99%
rename from restapi/ws_handle_test.go
rename to api/ws_handle_test.go
index cb046057d..1b775c120 100644
--- a/restapi/ws_handle_test.go
+++ b/api/ws_handle_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/restapi/ws_objects.go b/api/ws_objects.go
similarity index 99%
rename from restapi/ws_objects.go
rename to api/ws_objects.go
index ebe455c82..33e1dff23 100644
--- a/restapi/ws_objects.go
+++ b/api/ws_objects.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-package restapi
+package api
import (
"context"
diff --git a/cmd/console/app_commands.go b/cmd/console/app_commands.go
index cacd728a0..a461a0374 100644
--- a/cmd/console/app_commands.go
+++ b/cmd/console/app_commands.go
@@ -25,7 +25,7 @@ import (
"github.com/minio/console/pkg/logger"
"github.com/minio/cli"
- "github.com/minio/console/restapi"
+ "github.com/minio/console/api"
)
var appCmds = []cli.Command{
@@ -37,30 +37,30 @@ var appCmds = []cli.Command{
func StartServer(ctx *cli.Context) error {
if err := loadAllCerts(ctx); err != nil {
// Log this as a warning and continue running console without TLS certificates
- restapi.LogError("Unable to load certs: %v", err)
+ api.LogError("Unable to load certs: %v", err)
}
xctx := context.Background()
- transport := restapi.PrepareSTSClientTransport(false, restapi.LocalAddress)
+ transport := api.PrepareSTSClientTransport(false, api.LocalAddress)
if err := logger.InitializeLogger(xctx, transport.Transport); err != nil {
fmt.Println("error InitializeLogger", err)
logger.CriticalIf(xctx, err)
}
// custom error configuration
- restapi.LogInfo = logger.Info
- restapi.LogError = logger.Error
- restapi.LogIf = logger.LogIf
+ api.LogInfo = logger.Info
+ api.LogError = logger.Error
+ api.LogIf = logger.LogIf
- var rctx restapi.Context
+ var rctx api.Context
if err := rctx.Load(ctx); err != nil {
- restapi.LogError("argument validation failed: %v", err)
+ api.LogError("argument validation failed: %v", err)
return err
}
server, err := buildServer()
if err != nil {
- restapi.LogError("Unable to initialize console server: %v", err)
+ api.LogError("Unable to initialize console server: %v", err)
return err
}
@@ -70,18 +70,18 @@ func StartServer(ctx *cli.Context) error {
server.ReadTimeout = 1 * time.Hour
// no timeouts for response for downloads
server.WriteTimeout = 0
- restapi.Port = strconv.Itoa(server.Port)
- restapi.Hostname = server.Host
+ api.Port = strconv.Itoa(server.Port)
+ api.Hostname = server.Host
- if len(restapi.GlobalPublicCerts) > 0 {
+ if len(api.GlobalPublicCerts) > 0 {
// If TLS certificates are provided enforce the HTTPS schema, meaning console will redirect
// plain HTTP connections to HTTPS server
server.EnabledListeners = []string{"http", "https"}
server.TLSPort = rctx.HTTPSPort
// Need to store tls-port, tls-host un config variables so secure.middleware can read from there
- restapi.TLSPort = strconv.Itoa(server.TLSPort)
- restapi.Hostname = rctx.Host
- restapi.TLSRedirect = rctx.TLSRedirect
+ api.TLSPort = strconv.Itoa(server.TLSPort)
+ api.Hostname = rctx.Host
+ api.TLSRedirect = rctx.TLSRedirect
}
defer server.Shutdown()
diff --git a/cmd/console/server.go b/cmd/console/server.go
index 21bb5b64b..fdea79d92 100644
--- a/cmd/console/server.go
+++ b/cmd/console/server.go
@@ -25,9 +25,9 @@ import (
"github.com/go-openapi/loads"
"github.com/jessevdk/go-flags"
"github.com/minio/cli"
+ "github.com/minio/console/api"
+ "github.com/minio/console/api/operations"
"github.com/minio/console/pkg/certs"
- "github.com/minio/console/restapi"
- "github.com/minio/console/restapi/operations"
)
// starts the server
@@ -39,12 +39,12 @@ var serverCmd = cli.Command{
Flags: []cli.Flag{
cli.StringFlag{
Name: "host",
- Value: restapi.GetHostname(),
+ Value: api.GetHostname(),
Usage: "bind to a specific HOST, HOST can be an IP or hostname",
},
cli.IntFlag{
Name: "port",
- Value: restapi.GetPort(),
+ Value: api.GetPort(),
Usage: "bind to specific HTTP port",
},
// This is kept here for backward compatibility,
@@ -53,7 +53,7 @@ var serverCmd = cli.Command{
// works for both HTTP and HTTPS setup.
cli.StringFlag{
Name: "tls-host",
- Value: restapi.GetHostname(),
+ Value: api.GetHostname(),
Hidden: true,
},
cli.StringFlag{
@@ -63,12 +63,12 @@ var serverCmd = cli.Command{
},
cli.IntFlag{
Name: "tls-port",
- Value: restapi.GetTLSPort(),
+ Value: api.GetTLSPort(),
Usage: "bind to specific HTTPS port",
},
cli.StringFlag{
Name: "tls-redirect",
- Value: restapi.GetTLSRedirect(),
+ Value: api.GetTLSRedirect(),
Usage: "toggle HTTP->HTTPS redirect",
},
cli.StringFlag{
@@ -92,15 +92,15 @@ var serverCmd = cli.Command{
},
}
-func buildServer() (*restapi.Server, error) {
- swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
+func buildServer() (*api.Server, error) {
+ swaggerSpec, err := loads.Embedded(api.SwaggerJSON, api.FlatSwaggerJSON)
if err != nil {
return nil, err
}
- api := operations.NewConsoleAPI(swaggerSpec)
- api.Logger = restapi.LogInfo
- server := restapi.NewServer(api)
+ consoleAPI := operations.NewConsoleAPI(swaggerSpec)
+ consoleAPI.Logger = api.LogInfo
+ server := api.NewServer(consoleAPI)
parser := flags.NewParser(server, flags.Default)
parser.ShortDescription = "MinIO Console Server"
@@ -111,7 +111,7 @@ func buildServer() (*restapi.Server, error) {
// register all APIs
server.ConfigureAPI()
- for _, optsGroup := range api.CommandLineOptionsGroups {
+ for _, optsGroup := range consoleAPI.CommandLineOptionsGroups {
_, err := parser.AddGroup(optsGroup.ShortDescription, optsGroup.LongDescription, optsGroup.Options)
if err != nil {
return nil, err
@@ -140,7 +140,7 @@ func loadAllCerts(ctx *cli.Context) error {
}
// load the certificates and the CAs
- restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager, err = certs.GetAllCertificatesAndCAs()
+ api.GlobalRootCAs, api.GlobalPublicCerts, api.GlobalTLSCertsManager, err = certs.GetAllCertificatesAndCAs()
if err != nil {
return fmt.Errorf("unable to load certificates at %s: failed with %w", certs.GlobalCertsDir.Get(), err)
}
@@ -152,12 +152,12 @@ func loadAllCerts(ctx *cli.Context) error {
swaggerServerCACertificate := ctx.String("tls-ca")
// load tls cert and key from swagger server tls-certificate and tls-key flags
if swaggerServerCertificate != "" && swaggerServerCertificateKey != "" {
- if err = restapi.GlobalTLSCertsManager.AddCertificate(swaggerServerCertificate, swaggerServerCertificateKey); err != nil {
+ if err = api.GlobalTLSCertsManager.AddCertificate(swaggerServerCertificate, swaggerServerCertificateKey); err != nil {
return err
}
x509Certs, err := certs.ParsePublicCertFile(swaggerServerCertificate)
if err == nil {
- restapi.GlobalPublicCerts = append(restapi.GlobalPublicCerts, x509Certs...)
+ api.GlobalPublicCerts = append(api.GlobalPublicCerts, x509Certs...)
}
}
@@ -165,13 +165,13 @@ func loadAllCerts(ctx *cli.Context) error {
if swaggerServerCACertificate != "" {
caCert, caCertErr := os.ReadFile(swaggerServerCACertificate)
if caCertErr == nil {
- restapi.GlobalRootCAs.AppendCertsFromPEM(caCert)
+ api.GlobalRootCAs.AppendCertsFromPEM(caCert)
}
}
}
- if restapi.GlobalTLSCertsManager != nil {
- restapi.GlobalTLSCertsManager.ReloadOnSignal(syscall.SIGHUP)
+ if api.GlobalTLSCertsManager != nil {
+ api.GlobalTLSCertsManager.ReloadOnSignal(syscall.SIGHUP)
}
return nil
diff --git a/integration/buckets_test.go b/integration/buckets_test.go
index 2e7fab3fd..d8cf01ce0 100644
--- a/integration/buckets_test.go
+++ b/integration/buckets_test.go
@@ -30,8 +30,8 @@ import (
"time"
"github.com/go-openapi/loads"
- "github.com/minio/console/restapi"
- "github.com/minio/console/restapi/operations"
+ "github.com/minio/console/api"
+ "github.com/minio/console/api/operations"
)
var token string
@@ -55,10 +55,10 @@ func inspectHTTPResponse(httpResponse *http.Response) string {
return "Http Response: " + string(b)
}
-func initConsoleServer() (*restapi.Server, error) {
+func initConsoleServer() (*api.Server, error) {
// os.Setenv("CONSOLE_MINIO_SERVER", "localhost:9000")
- swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
+ swaggerSpec, err := loads.Embedded(api.SwaggerJSON, api.FlatSwaggerJSON)
if err != nil {
return nil, err
}
@@ -68,24 +68,24 @@ func initConsoleServer() (*restapi.Server, error) {
}
// Initialize MinIO loggers
- restapi.LogInfo = noLog
- restapi.LogError = noLog
+ api.LogInfo = noLog
+ api.LogError = noLog
- api := operations.NewConsoleAPI(swaggerSpec)
- api.Logger = noLog
+ consoleAPI := operations.NewConsoleAPI(swaggerSpec)
+ consoleAPI.Logger = noLog
- server := restapi.NewServer(api)
+ server := api.NewServer(consoleAPI)
// register all APIs
server.ConfigureAPI()
- // restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
+ // api.GlobalRootCAs, api.GlobalPublicCerts, api.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
consolePort, _ := strconv.Atoi("9090")
server.Host = "0.0.0.0"
server.Port = consolePort
- restapi.Port = "9090"
- restapi.Hostname = "0.0.0.0"
+ api.Port = "9090"
+ api.Hostname = "0.0.0.0"
return server, nil
}
diff --git a/portal-ui/build/static/js/6686.01ae5612.chunk.js.map b/portal-ui/build/static/js/6686.01ae5612.chunk.js.map
index 01f599af3..584cb5ed9 100644
--- a/portal-ui/build/static/js/6686.01ae5612.chunk.js.map
+++ b/portal-ui/build/static/js/6686.01ae5612.chunk.js.map
@@ -1 +1 @@
-{"version":3,"file":"static/js/6686.01ae5612.chunk.js","mappings":"6UAoBA,MA+BA,EA/BsCA,IAU/B,IAVgC,UACrCC,EAAS,QACTC,EAAO,YACPC,EAAW,OACXC,GAMDJ,EACC,OACEK,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,kBACLC,YAAa,SACbC,QAAQ,EACRC,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAgB,IAC5BC,WAAW,EACXX,UAAWA,EACXC,QAASA,EACTW,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAc,CAAAC,SAAA,CAAC,2DAEdX,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAAA,KAAAW,SAAIb,IAAgB,cAAUE,EAAAA,EAAAA,KAAA,KAAAW,SAAIZ,QAGtC,E,eCKN,MAAMa,EAAgBC,EAAAA,GAAOC,KAAInB,IAAA,IAAC,MAAEoB,GAAOpB,EAAA,MAAM,CAC/CqB,QAAS,OACTC,WAAY,SACZ,QAAS,CACPC,MAAO,GACPC,YAAa,EACbC,KAAMC,IAAIN,EAAO,oBAAqB,YAExC,gBAAiB,CACfK,KAAMC,IAAIN,EAAO,sBAAuB,YAE3C,IAqPD,EAnP8BO,KAC5B,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAEXnB,GAAYoB,EAAAA,EAAAA,KAAaC,GAAoBA,EAAMC,YAAYC,WAG9DC,EAASC,IAAcC,EAAAA,EAAAA,UAAoC,KAC3DC,EAAQC,IAAaF,EAAAA,EAAAA,UAAiB,KAEtCG,EAAkBC,IAAuBJ,EAAAA,EAAAA,WAAkB,IAC3DK,EAAmBC,IACxBN,EAAAA,EAAAA,aAIFO,EAAAA,EAAAA,YAAU,KACR,GAAIjC,EAAW,CACQkC,MACnBC,EAAAA,EAAIC,MACDC,2BACAC,MAAMC,IACL,IAAIC,EAA4C,GAC5CD,EAAIE,KAAKC,yBACXF,EAAgBD,EAAIE,KAAKC,wBAE3BjB,GAAWkB,EAAAA,EAAAA,IAAsBH,IACjCxB,GAAS4B,EAAAA,EAAAA,KAAsB,GAAO,IAEvCC,OAAOC,IACN9B,GAAS+B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeF,EAAIG,SACjDjC,GAAS4B,EAAAA,EAAAA,KAAsB,GAAO,GACtC,EAENV,EACF,IACC,CAAClC,EAAWgB,KAEfiB,EAAAA,EAAAA,YAAU,KACRjB,GAAS4B,EAAAA,EAAAA,KAAsB,GAAM,GACpC,CAAC5B,IAEJ,MAgCMkC,EAAe,CAAC,CAAEC,KAAM,SAAUC,QALNC,IAChCrB,EAAqBqB,GACrBvB,GAAoB,EAAK,IAKrBwB,EAAkB9B,EAAQG,QAAQ4B,GACvB,KAAX5B,GAGG4B,EAAEC,aAAaC,QAAQ9B,IAAW,IAY3C,OACElC,EAAAA,EAAAA,KAACiE,EAAAA,SAAQ,CAAAtD,UACPF,EAAAA,EAAAA,MAACyD,EAAAA,IAAU,CAAAvD,SAAA,EACTF,EAAAA,EAAAA,MAAC0D,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,GAAIC,GAAIC,EAAAA,GAAYA,YAAY5D,SAAA,EAC7CX,EAAAA,EAAAA,KAACwE,EAAAA,EAAS,CACRC,YAAY,gBACZC,SAAUvC,EACVwC,MAAOzC,EACPoC,GAAI,CAAEM,SAAU,QAElBnE,EAAAA,EAAAA,MAACoE,EAAAA,IAAG,CACFP,GAAI,CACFtD,QAAS,OACTC,WAAY,SACZ6D,eAAgB,WAChBC,IAAK,GACLpE,SAAA,EAEFX,EAAAA,EAAAA,KAACgF,EAAAA,EAAc,CAACC,QAAS,eAAetE,UACtCX,EAAAA,EAAAA,KAACkF,EAAAA,IAAM,CACLC,GAAI,4BACJC,MAAO,UACPC,QAAQ,UACRC,MAAMtF,EAAAA,EAAAA,KAACuF,EAAAA,IAAW,IAClB5B,QAASA,KACPpC,GAAS4B,EAAAA,EAAAA,KAAsB,GAAM,OAI3CnD,EAAAA,EAAAA,KAACgF,EAAAA,EAAc,CAACC,QAAS,wBAAwBtE,UAC/CX,EAAAA,EAAAA,KAACkF,EAAAA,IAAM,CACLC,GAAI,0BACJC,MAAO,wBACPC,QAAQ,aACRC,MAAMtF,EAAAA,EAAAA,KAACwF,EAAAA,IAAO,IACd7B,QAASA,KACPlC,EAASgE,EAAAA,GAAUC,uBAAuB,YAMnDnF,IAAaP,EAAAA,EAAAA,KAAC2F,EAAAA,IAAW,KACxBpF,IACAE,EAAAA,EAAAA,MAACwD,EAAAA,SAAQ,CAAAtD,SAAA,CACNoB,EAAQ6D,OAAS,IAChBnF,EAAAA,EAAAA,MAACwD,EAAAA,SAAQ,CAAAtD,SAAA,EACPX,EAAAA,EAAAA,KAAC6E,EAAAA,IAAG,CAACP,GAAI,CAAEpD,MAAO,QAASP,UACzBX,EAAAA,EAAAA,KAAC6F,EAAAA,IAAS,CACRC,YAAarC,EACbsC,QAAS,CACP,CACEX,MAAO,SACPY,WAAY,SACZC,eA/DClG,IAEnBU,EAAAA,EAAAA,MAACG,EAAa,CAAAD,SAAA,EACZX,EAAAA,EAAAA,KAACkG,EAAAA,IAAU,CAACC,UAAsB,YAAXpG,EAAuB,UAAY,KACzDA,KA4DemB,MAAO,KAET,CAAEkE,MAAO,UAAWY,WAAY,iBAElCzF,UAAWA,EACXwB,QAAS8B,EACTuC,WAAW,qBACXC,QAAQ,eACRC,kBAAmB,aAGvBtG,EAAAA,EAAAA,KAACmE,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,GAAIC,GAAI,CAAEiC,UAAW,IAAK5F,UACvCX,EAAAA,EAAAA,KAACwG,EAAAA,IAAO,CACNtG,MAAO,qBACPuG,eAAezG,EAAAA,EAAAA,KAAC0G,EAAAA,IAAU,IAC1BC,MACElG,EAAAA,EAAAA,MAACwD,EAAAA,SAAQ,CAAAtD,SAAA,CAAC,2OAMRX,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAAA,SAAM,4BACoB,KAC1BA,EAAAA,EAAAA,KAAA,KACE4G,KAAK,8FACLC,OAAO,SACPC,IAAI,WAAUnG,SACf,kBAEG,cAQI,IAAnBoB,EAAQ6D,SACP5F,EAAAA,EAAAA,KAACmE,EAAAA,IAAI,CACH4C,WAAS,EACTzC,GAAI,CACFQ,eAAgB,SAChBkC,aAAc,SACd/F,WAAY,UACZN,UAEFX,EAAAA,EAAAA,KAACmE,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,EAAE1D,UACfX,EAAAA,EAAAA,KAACwG,EAAAA,IAAO,CACNtG,MAAO,qBACPuG,eAAezG,EAAAA,EAAAA,KAAC0G,EAAAA,IAAU,IAC1BC,MACElG,EAAAA,EAAAA,MAACwD,EAAAA,SAAQ,CAAAtD,SAAA,CAAC,2OAMRX,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAAA,SAAM,kBACU,KAChBA,EAAAA,EAAAA,KAACiH,EAAAA,IAAU,CACTtD,QAASA,KACPlC,EAASgE,EAAAA,GAAUC,uBAAuB,EAC1C/E,SACH,6BAEY,gBAW5ByB,GACCpC,EAAAA,EAAAA,KAACkH,EAA6B,CAC5BtH,UAAWA,KAzLnBuH,KAEA,GAAM,OAAFA,QAAE,IAAFA,GAAAA,EAAIC,KAAM,CACZ,MAAMC,GAAYC,EAAAA,EAAAA,GAAyBH,EAAGC,MAC9C,IAAIG,EAAS,IAAAC,OAAOL,EAAGM,YACnBJ,EACF3E,EAAAA,EAAIgF,QACDC,YAAY,GAADH,OAAIH,GAASG,OAAGD,IAC3B1E,MAAK,KACJtB,GAASqG,EAAAA,EAAAA,KAAsB,IAC/BrF,EAAqB,MACrBF,GAAoB,GACpBd,GAAS4B,EAAAA,EAAAA,KAAsB,GAAM,IAEtCC,OAAOC,IACNhB,GAAoB,GACpBd,GAAS+B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeF,EAAIG,QAAQ,KAG7DjB,EAAqB,MACrBF,GAAoB,GACpBwF,QAAQC,IAAI,iCAADN,OAAkCL,EAAGC,OAEpD,GAmKUW,CAAwBzF,EAAkB,EAE5CvC,OAAM,GAAAyH,OAAsB,OAAjBlF,QAAiB,IAAjBA,OAAiB,EAAjBA,EAAmBvC,QAC9BD,YAAW,GAAA0H,OAAsB,OAAjBlF,QAAiB,IAAjBA,OAAiB,EAAjBA,EAAmByB,cACnClE,QAASA,KACPwC,GAAoB,EAAM,IAG5B,SAEG,C,kGC5RR,MAAM2F,EAAiB,kBACjBC,EAAc,eACdC,EAAc,eACdC,EAAa,cACbC,EAAa,cACbC,EAAc,eACdC,EAAa,cACbC,EAAsB,uBACtBC,EAAiB,iBACjBC,EAAY,aAEZvF,EACXwF,GAEOA,EAAqBC,KAAKC,IACxB,CACL7E,aAAa,GAADyD,OAAKoB,EAAQC,QAAO,KAAArB,OAAIoB,EAAQnB,YAC5CL,KAAMwB,EAAQC,QACdpB,WAAYmB,EAAQnB,WACpB1H,OAAQ6I,EAAQ7I,WAKf,MAAM+I,GAAAA,EACJC,GAAa,WADTD,EAEJE,MAAgB,QAFZF,EAGJG,KAAe,YAGjB,MAAMC,EAAkB,CAC7B,CACEC,cAAenB,EACfoB,YAAa,aACbC,KAAM,qBACNC,SAAUR,EAASC,IAErB,CACEI,cAAejB,EACfkB,YAAa,QACbC,KAAM,kBACNC,SAAUR,EAASE,OAErB,CACEG,cAAehB,EACfiB,YAAa,OACbC,KAAM,iBACNC,SAAUR,EAASE,OAErB,CACEG,cAAef,EACfgB,YAAa,OACbC,KAAM,iBACNC,SAAUR,EAASE,OAErB,CACEG,cAAed,EACfe,YAAa,QACbC,KAAM,kBACNC,SAAUR,EAASE,OAErB,CACEG,cAAeb,EACfc,YAAa,OACbC,KAAM,iBACNC,SAAUR,EAASE,OAErB,CACEG,cAAelB,EACfmB,YAAa,QACbC,KAAM,kBACNC,SAAUR,EAASC,IAErB,CACEI,cAAeZ,EACfa,YAAa,iBACbC,KAAM,0BACNC,SAAUR,EAASC,IAErB,CACEI,cAAeX,EACfY,YAAa,UACbC,KAAM,qBACNC,SAAUR,EAASG,MAErB,CACEE,cAAeV,EACfW,YAAa,MACbC,KAAM,gBACNC,SAAUR,EAASE,QAIjBO,EAAe,CACnB,CACEnC,KAAM,YACNhC,MAAO,kBACPoE,UAAU,EAEVvE,QAAS,iEACTvB,KAAM,SACNe,YAAa,yBAEf,CACE2C,KAAM,cACNhC,MAAO,cACPoE,UAAU,EAEVvE,QAAS,8DACTvB,KAAM,SACNe,YAAa,qBAEf,CACE2C,KAAM,UACNhC,MAAO,UACPoE,UAAU,EACV9F,KAAM,UACNe,YAAa,8BAIJgF,EAAqBC,GACTA,EAAWxH,QAAQyH,GAA0B,KAAhBA,EAAMhF,QAK/CiF,EAAmC,CAC9C,CAAC1B,GAAc,CACb,CACEd,KAAM,UACNhC,MAAO,UACPoE,UAAU,EAEVvE,QAAS,iDACTvB,KAAM,SACNe,YAAa,iBAEf,CACE2C,KAAM,QACNhC,MAAO,QACPH,QAAS,4CACTvB,KAAM,SACNe,YAAa,eAEf,CACE2C,KAAM,gBACNhC,MAAO,gBACPH,QAAS,uDACTvB,KAAM,SACNe,YAAa,uBAEf,CACE2C,KAAM,gBACNhC,MAAO,gBACPH,QAAS,uDACTvB,KAAM,SACNe,YAAa,uBAEf,CACE2C,KAAM,iBACNhC,MAAO,iBACPH,QAAS,iDACTvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QACE,gFACFvB,KAAM,SACNe,YAAa,yBAEf,CACE2C,KAAM,OACNhC,MAAO,OACPH,QAAS,4CACTvB,KAAM,UAER,CACE0D,KAAM,MACNhC,MAAO,MACPH,QAAS,4BACTvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QACE,mEACFvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QAAS,oDACTvB,KAAM,OACNe,YAAa,yBAEf,CACE2C,KAAM,iBACNhC,MAAO,iBACPH,QAAS,4CACTvB,KAAM,OACNe,YAAa,wBAEf,CACE2C,KAAM,UACNhC,MAAO,UACPH,QAAS,uDACTvB,KAAM,SACNe,YAAa,0BAEZ8E,GAEL,CAACpB,GAAa,CACZ,CACEf,KAAM,MACNoC,UAAU,EACVpE,MAAO,MACPH,QACE,sEACFvB,KAAM,OAER,CACE0D,KAAM,WACNhC,MAAO,WACPH,QAAS,4BACTvB,KAAM,SACNe,YAAa,kBAEf,CACE2C,KAAM,gBACNhC,MAAO,gBACPH,QAAS,qBACTvB,KAAM,SACNe,YAAa,uBAEf,CACE2C,KAAM,cACNhC,MAAO,cACPH,QAAS,6BACTvB,KAAM,SACNe,YAAa,qBAEf,CACE2C,KAAM,YACNhC,MAAO,YACPH,QACE,yEACFvB,KAAM,UAER,CACE0D,KAAM,UACNhC,MAAO,UACPH,QACE,0EACFvB,KAAM,UAER,CACE0D,KAAM,UACNhC,MAAO,UACPH,QACE,mEACFvB,KAAM,UAER,CACE0D,KAAM,WACNhC,MAAO,WACPH,QACE,yGACFvB,KAAM,UAER,CACE0D,KAAM,eACNhC,MAAO,eACPH,QACE,kEACFvB,KAAM,UAER,CACE0D,KAAM,gBACNhC,MAAO,gBACPH,QAAS,4DACTvB,KAAM,SACNe,YAAa,0BAEZ8E,GAEL,CAAClB,GAAc,CACb,CACEjB,KAAM,UACNoC,UAAU,EACVpE,MAAO,UACPH,QAAS,+CACTvB,KAAM,UACNe,YAAa,iBAEf,CACE2C,KAAM,MACNoC,UAAU,EACVpE,MAAO,MACPH,QAAS,wDACTvB,KAAM,SACNe,YAAa,aAEf,CACE2C,KAAM,WACNhC,MAAO,WACPH,QAAS,wBACTvB,KAAM,SACNe,YAAa,qBAEZ8E,GAEL,CAACnB,GAAa,CACZ,CACEhB,KAAM,SACNoC,UAAU,EACVpE,MAAO,SACPH,QAAS,mDACTvB,KAAM,MACNe,YAAa,iBAEf,CACE2C,KAAM,QACNoC,UAAU,EACVpE,MAAO,QACPH,QAAS,oCACTvB,KAAM,SACNe,YAAa,eAEf,CACE2C,KAAM,WACNhC,MAAO,WACPH,QAAS,gBACTvB,KAAM,SACNe,YAAa,kBAEf,CACE2C,KAAM,WACNhC,MAAO,WACPH,QAAS,gBACTvB,KAAM,SACNe,YAAa,kBAEf,CACE2C,KAAM,MACNhC,MAAO,MACPH,QAAS,uDACTvB,KAAM,SACNe,YAAa,aAEf,CACE2C,KAAM,sBACNhC,MAAO,sBACPH,QAAS,sDACTvB,KAAM,WACNe,YAAa,6BAEf,CACE2C,KAAM,qBACNhC,MAAO,qBACPH,QAAS,qDACTvB,KAAM,WACNe,YAAa,+BAEZ8E,GAEL,CAACjB,GAAa,CACZ,CACElB,KAAM,UACNoC,UAAU,EACVpE,MAAO,UACPH,QAAS,0CACTvB,KAAM,UACNe,YAAa,iBAEf,CACE2C,KAAM,UACNoC,UAAU,EACVpE,MAAO,UACPH,QAAS,4BACTvB,KAAM,SACNe,YAAa,sBAEf,CACE2C,KAAM,WACNhC,MAAO,WACPH,QAAS,gBACTvB,KAAM,SACNe,YAAa,uBAEf,CACE2C,KAAM,WACNhC,MAAO,WACPH,QAAS,gBACTvB,KAAM,SACNe,YAAa,uBAEf,CACE2C,KAAM,QACNhC,MAAO,QACPH,QAAS,aACTvB,KAAM,SACNe,YAAa,oBAEf,CACE2C,KAAM,MACNhC,MAAO,MACPH,QAAS,4BACTvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QACE,mEACFvB,KAAM,UAER,CACE0D,KAAM,gBACNhC,MAAO,gBACPH,QAAS,gEACTvB,KAAM,WACNe,YAAa,uBAEf,CACE2C,KAAM,YACNhC,MAAO,YACPH,QAAS,2CACTvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QAAS,6CACTvB,KAAM,UAER,CACE0D,KAAM,mCACNhC,MAAO,uCACPH,QAAS,yDACTvB,KAAM,SACNe,YAAa,mCAEf,CACE2C,KAAM,uBACNhC,MAAO,uBACPH,QAAS,uCACTvB,KAAM,SACNe,YAAa,8BAEf,CACE2C,KAAM,iBACNhC,MAAO,iBACPH,QAAS,sDACTvB,KAAM,SACNe,YAAa,wBAEf,CACE2C,KAAM,cACNhC,MAAO,cACPH,QAAS,iCACTvB,KAAM,SACNe,YAAa,qBAEf,CACE2C,KAAM,aACNhC,MAAO,aACPH,QAAS,8CACTvB,KAAM,SACNe,YAAa,uBAEZ8E,GAEL,CAAChB,GAAsB,CACrB,CACEnB,KAAM,MACNoC,UAAU,EACVpE,MAAO,MACPH,QACE,oEACFvB,KAAM,MACNe,YAAa,aAEf,CACE2C,KAAM,QACNoC,UAAU,EACVpE,MAAO,QACPH,QACE,oEACFvB,KAAM,SACNe,YAAa,eAEf,CACE2C,KAAM,SACNoC,UAAU,EACVpE,MAAO,SACPH,QACE,gIACFvB,KAAM,OACNe,YAAa,mBAEZ8E,GAEL,CAACf,GAAiB,CAChB,CACEpB,KAAM,WACNoC,UAAU,EACVpE,MAAO,WACPH,QACE,kEACFvB,KAAM,MACNe,YAAa,kBAEf,CACE2C,KAAM,aACNhC,MAAO,aACPH,QAAS,2CACTvB,KAAM,SACNe,YAAa,uBAEZ8E,GAEL,CAACd,GAAY,CACX,CACErB,KAAM,eACNoC,UAAU,EACVpE,MAAO,eACPH,QAAS,2CACTvB,KAAM,UACNe,YAAa,sBAEf,CACE2C,KAAM,QACNoC,UAAU,EACVpE,MAAO,QACPH,QAAS,YACTvB,KAAM,SACNe,YAAa,eAEf,CACE2C,KAAM,MACNhC,MAAO,MACPH,QAAS,4BACTvB,KAAM,UAER,CACE0D,KAAM,kBACNhC,MAAO,kBACPH,QACE,mEACFvB,KAAM,aAEL6F,IAIDM,EAA6C,CACjDC,QAAS,iBACTC,KAAM,cACNC,MAAO,eACPC,KAAM,cACNC,KAAM,cACNC,IAAK,aACLC,MAAO,eACPC,WAAY,kBACZC,cAAe,uBACfC,MAAO,gBAGIjD,EAA4BxH,GAChC+J,EAAmB/J,E","sources":["screens/Console/EventDestinations/ConfirmDeleteDestinationModal.tsx","screens/Console/EventDestinations/ListEventDestinations.tsx","screens/Console/EventDestinations/utils.ts"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"mds\";\n\nconst ConfirmDeleteDestinationModal = ({\n onConfirm,\n onClose,\n serviceName,\n status,\n}: {\n onConfirm: () => void;\n onClose: () => void;\n serviceName: string;\n status: string;\n}) => {\n return (\n }\n isLoading={false}\n onConfirm={onConfirm}\n onClose={onClose}\n confirmationContent={\n \n Are you sure you want to delete the event destination ?\n
\n {serviceName} which is {status}\n \n }\n />\n );\n};\n\nexport default ConfirmDeleteDestinationModal;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport {\n ActionLink,\n AddIcon,\n Box,\n Button,\n CircleIcon,\n DataTable,\n Grid,\n HelpBox,\n LambdaIcon,\n PageLayout,\n ProgressBar,\n RefreshIcon,\n} from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { api } from \"api\";\nimport { NotificationEndpointItem } from \"api/consoleApi\";\nimport { errorToHandler } from \"api/errors\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { TransformedEndpointItem } from \"./types\";\nimport { getNotificationConfigKey, notificationTransform } from \"./utils\";\nimport { actionsTray } from \"../Common/FormComponents/common/styleLibrary\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport {\n setErrorSnackMessage,\n setServerNeedsRestart,\n} from \"../../../systemSlice\";\nimport { AppState, useAppDispatch } from \"../../../store\";\nimport { setDestinationLoading } from \"./destinationsSlice\";\nimport SearchBox from \"../Common/SearchBox\";\nimport ConfirmDeleteDestinationModal from \"./ConfirmDeleteDestinationModal\";\nimport TooltipWrapper from \"../Common/TooltipWrapper/TooltipWrapper\";\n\nconst StatusDisplay = styled.div(({ theme }) => ({\n display: \"flex\",\n alignItems: \"center\",\n \"& svg\": {\n width: 16,\n marginRight: 5,\n fill: get(theme, \"signalColors.good\", \"#4CCB92\"),\n },\n \"& svg.offline\": {\n fill: get(theme, \"signalColors.danger\", \"#C51B3F\"),\n },\n}));\n\nconst ListEventDestinations = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n // Reducer States\n const isLoading = useSelector((state: AppState) => state.destination.loading);\n\n //Local States\n const [records, setRecords] = useState([]);\n const [filter, setFilter] = useState(\"\");\n\n const [isDelConfirmOpen, setIsDelConfirmOpen] = useState(false);\n const [selNotifyEndPoint, setSelNotifyEndpoint] =\n useState();\n\n //Effects\n // load records on mount\n useEffect(() => {\n if (isLoading) {\n const fetchRecords = () => {\n api.admin\n .notificationEndpointList()\n .then((res) => {\n let resNotEndList: NotificationEndpointItem[] = [];\n if (res.data.notification_endpoints) {\n resNotEndList = res.data.notification_endpoints;\n }\n setRecords(notificationTransform(resNotEndList));\n dispatch(setDestinationLoading(false));\n })\n .catch((err) => {\n dispatch(setErrorSnackMessage(errorToHandler(err.error)));\n dispatch(setDestinationLoading(false));\n });\n };\n fetchRecords();\n }\n }, [isLoading, dispatch]);\n\n useEffect(() => {\n dispatch(setDestinationLoading(true));\n }, [dispatch]);\n\n const resetNotificationConfig = (\n ep: TransformedEndpointItem | undefined | null,\n ) => {\n if (ep?.name) {\n const configKey = getNotificationConfigKey(ep.name);\n let accountId = `:${ep.account_id}`;\n if (configKey) {\n api.configs\n .resetConfig(`${configKey}${accountId}`)\n .then(() => {\n dispatch(setServerNeedsRestart(true));\n setSelNotifyEndpoint(null);\n setIsDelConfirmOpen(false);\n dispatch(setDestinationLoading(true));\n })\n .catch((err) => {\n setIsDelConfirmOpen(false);\n dispatch(setErrorSnackMessage(errorToHandler(err.error)));\n });\n } else {\n setSelNotifyEndpoint(null);\n setIsDelConfirmOpen(false);\n console.log(`Unable to find Config key for ${ep.name}`);\n }\n }\n };\n\n const confirmDelNotifyEndpoint = (record: TransformedEndpointItem) => {\n setSelNotifyEndpoint(record);\n setIsDelConfirmOpen(true);\n };\n\n const tableActions = [{ type: \"delete\", onClick: confirmDelNotifyEndpoint }];\n\n const filteredRecords = records.filter((b: TransformedEndpointItem) => {\n if (filter === \"\") {\n return true;\n }\n return b.service_name.indexOf(filter) >= 0;\n });\n\n const statusDisplay = (status: string) => {\n return (\n \n \n {status}\n \n );\n };\n\n return (\n \n \n \n \n \n \n }\n onClick={() => {\n dispatch(setDestinationLoading(true));\n }}\n />\n \n \n }\n onClick={() => {\n navigate(IAM_PAGES.EVENT_DESTINATIONS_ADD);\n }}\n />\n \n \n \n {isLoading && }\n {!isLoading && (\n \n {records.length > 0 && (\n \n \n \n \n \n }\n help={\n \n MinIO bucket notifications allow administrators to send\n notifications to supported external services on certain\n object or bucket events. MinIO supports bucket and\n object-level S3 events similar to the Amazon S3 Event\n Notifications.\n
\n
\n You can learn more at our{\" \"}\n \n documentation\n \n .\n \n }\n />\n \n \n )}\n {records.length === 0 && (\n \n \n }\n help={\n \n MinIO bucket notifications allow administrators to send\n notifications to supported external services on certain\n object or bucket events. MinIO supports bucket and\n object-level S3 events similar to the Amazon S3 Event\n Notifications.\n
\n
\n To get started,{\" \"}\n {\n navigate(IAM_PAGES.EVENT_DESTINATIONS_ADD);\n }}\n >\n Add an Event Destination\n \n .\n \n }\n />\n \n \n )}\n \n )}\n\n {isDelConfirmOpen ? (\n {\n resetNotificationConfig(selNotifyEndPoint);\n }}\n status={`${selNotifyEndPoint?.status}`}\n serviceName={`${selNotifyEndPoint?.service_name}`}\n onClose={() => {\n setIsDelConfirmOpen(false);\n }}\n />\n ) : null}\n \n \n );\n};\n\nexport default ListEventDestinations;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { NotificationEndpointItem } from \"api/consoleApi\";\nimport { IElementValue } from \"../Configurations/types\";\nimport { TransformedEndpointItem } from \"./types\";\n\nexport const notifyPostgres = \"notify_postgres\";\nexport const notifyMysql = \"notify_mysql\";\nexport const notifyKafka = \"notify_kafka\";\nexport const notifyAmqp = \"notify_amqp\";\nexport const notifyMqtt = \"notify_mqtt\";\nexport const notifyRedis = \"notify_redis\";\nexport const notifyNats = \"notify_nats\";\nexport const notifyElasticsearch = \"notify_elasticsearch\";\nexport const notifyWebhooks = \"notify_webhook\";\nexport const notifyNsq = \"notify_nsq\";\n\nexport const notificationTransform = (\n notificationElements: NotificationEndpointItem[],\n) => {\n return notificationElements.map((element) => {\n return {\n service_name: `${element.service}:${element.account_id}`,\n name: element.service,\n account_id: element.account_id,\n status: element.status,\n };\n }) as TransformedEndpointItem[];\n};\n\nexport class DestType {\n static DB: string = \"database\";\n static Queue: string = \"queue\";\n static Func: string = \"functions\";\n}\n\nexport const destinationList = [\n {\n actionTrigger: notifyPostgres,\n targetTitle: \"PostgreSQL\",\n logo: \"/postgres-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyKafka,\n targetTitle: \"Kafka\",\n logo: \"/kafka-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyAmqp,\n targetTitle: \"AMQP\",\n logo: \"/amqp-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyMqtt,\n targetTitle: \"MQTT\",\n logo: \"/mqtt-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyRedis,\n targetTitle: \"Redis\",\n logo: \"/redis-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyNats,\n targetTitle: \"NATS\",\n logo: \"/nats-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyMysql,\n targetTitle: \"Mysql\",\n logo: \"/mysql-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyElasticsearch,\n targetTitle: \"Elastic Search\",\n logo: \"/elasticsearch-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyWebhooks,\n targetTitle: \"Webhook\",\n logo: \"/webhooks-logo.svg\",\n category: DestType.Func,\n },\n {\n actionTrigger: notifyNsq,\n targetTitle: \"NSQ\",\n logo: \"/nsq-logo.svg\",\n category: DestType.Queue,\n },\n];\n\nconst commonFields = [\n {\n name: \"queue_dir\",\n label: \"Queue Directory\",\n required: false,\n\n tooltip: \"Staging directory for undelivered messages e.g. '/home/events'\",\n type: \"string\",\n placeholder: \"Enter Queue Directory\",\n },\n {\n name: \"queue_limit\",\n label: \"Queue Limit\",\n required: false,\n\n tooltip: \"Maximum limit for undelivered messages, defaults to '10000'\",\n type: \"number\",\n placeholder: \"Enter Queue Limit\",\n },\n {\n name: \"comment\",\n label: \"Comment\",\n required: false,\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n];\n\nexport const removeEmptyFields = (formFields: IElementValue[]) => {\n const nonEmptyFields = formFields.filter((field) => field.value !== \"\");\n\n return nonEmptyFields;\n};\n\nexport const notificationEndpointsFields: any = {\n [notifyKafka]: [\n {\n name: \"brokers\",\n label: \"Brokers\",\n required: true,\n\n tooltip: \"Comma separated list of Kafka broker addresses\",\n type: \"string\",\n placeholder: \"Enter Brokers\",\n },\n {\n name: \"topic\",\n label: \"Topic\",\n tooltip: \"Kafka topic used for bucket notifications\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"sasl_username\",\n label: \"SASL Username\",\n tooltip: \"Username for SASL/PLAIN or SASL/SCRAM authentication\",\n type: \"string\",\n placeholder: \"Enter SASL Username\",\n },\n {\n name: \"sasl_password\",\n label: \"SASL Password\",\n tooltip: \"Password for SASL/PLAIN or SASL/SCRAM authentication\",\n type: \"string\",\n placeholder: \"Enter SASL Password\",\n },\n {\n name: \"sasl_mechanism\",\n label: \"SASL Mechanism\",\n tooltip: \"SASL authentication mechanism, default 'PLAIN'\",\n type: \"string\",\n },\n {\n name: \"tls_client_auth\",\n label: \"TLS Client Auth\",\n tooltip:\n \"Client Auth determines the Kafka server's policy for TLS client authorization\",\n type: \"string\",\n placeholder: \"Enter TLS Client Auth\",\n },\n {\n name: \"sasl\",\n label: \"SASL\",\n tooltip: \"Set to 'on' to enable SASL authentication\",\n type: \"on|off\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS skip verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"client_tls_cert\",\n label: \"client TLS cert\",\n tooltip: \"Path to client certificate for mTLS authorization\",\n type: \"path\",\n placeholder: \"Enter TLS Client Cert\",\n },\n {\n name: \"client_tls_key\",\n label: \"client TLS key\",\n tooltip: \"Path to client key for mTLS authorization\",\n type: \"path\",\n placeholder: \"Enter TLS Client Key\",\n },\n {\n name: \"version\",\n label: \"Version\",\n tooltip: \"Specify the version of the Kafka cluster e.g '2.2.0'\",\n type: \"string\",\n placeholder: \"Enter Kafka Version\",\n },\n ...commonFields,\n ],\n [notifyAmqp]: [\n {\n name: \"url\",\n required: true,\n label: \"URL\",\n tooltip:\n \"AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672`\",\n type: \"url\",\n },\n {\n name: \"exchange\",\n label: \"Exchange\",\n tooltip: \"Name of the AMQP exchange\",\n type: \"string\",\n placeholder: \"Enter Exchange\",\n },\n {\n name: \"exchange_type\",\n label: \"Exchange Type\",\n tooltip: \"AMQP exchange type\",\n type: \"string\",\n placeholder: \"Enter Exchange Type\",\n },\n {\n name: \"routing_key\",\n label: \"Routing Key\",\n tooltip: \"Routing key for publishing\",\n type: \"string\",\n placeholder: \"Enter Routing Key\",\n },\n {\n name: \"mandatory\",\n label: \"Mandatory\",\n tooltip:\n \"Quietly ignore undelivered messages when set to 'off', default is 'on'\",\n type: \"on|off\",\n },\n {\n name: \"durable\",\n label: \"Durable\",\n tooltip:\n \"Persist queue across broker restarts when set to 'on', default is 'off'\",\n type: \"on|off\",\n },\n {\n name: \"no_wait\",\n label: \"No Wait\",\n tooltip:\n \"Non-blocking message delivery when set to 'on', default is 'off'\",\n type: \"on|off\",\n },\n {\n name: \"internal\",\n label: \"Internal\",\n tooltip:\n \"Set to 'on' for exchange to be not used directly by publishers, but only when bound to other exchanges\",\n type: \"on|off\",\n },\n {\n name: \"auto_deleted\",\n label: \"Auto Deleted\",\n tooltip:\n \"Auto delete queue when set to 'on', when there are no consumers\",\n type: \"on|off\",\n },\n {\n name: \"delivery_mode\",\n label: \"Delivery Mode\",\n tooltip: \"Set to '1' for non-persistent or '2' for persistent queue\",\n type: \"number\",\n placeholder: \"Enter Delivery Mode\",\n },\n ...commonFields,\n ],\n [notifyRedis]: [\n {\n name: \"address\",\n required: true,\n label: \"Address\",\n tooltip: \"Redis server's address e.g. `localhost:6379`\",\n type: \"address\",\n placeholder: \"Enter Address\",\n },\n {\n name: \"key\",\n required: true,\n label: \"Key\",\n tooltip: \"Redis key to store/update events, key is auto-created\",\n type: \"string\",\n placeholder: \"Enter Key\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"Redis server password\",\n type: \"string\",\n placeholder: \"Enter Password\",\n },\n ...commonFields,\n ],\n [notifyMqtt]: [\n {\n name: \"broker\",\n required: true,\n label: \"Broker\",\n tooltip: \"MQTT server endpoint e.g. `tcp://localhost:1883`\",\n type: \"uri\",\n placeholder: \"Enter Brokers\",\n },\n {\n name: \"topic\",\n required: true,\n label: \"Topic\",\n tooltip: \"Name of the MQTT topic to publish\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"username\",\n label: \"Username\",\n tooltip: \"MQTT username\",\n type: \"string\",\n placeholder: \"Enter Username\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"MQTT password\",\n type: \"string\",\n placeholder: \"Enter Password\",\n },\n {\n name: \"qos\",\n label: \"QOS\",\n tooltip: \"Set the quality of service priority, defaults to '0'\",\n type: \"number\",\n placeholder: \"Enter QOS\",\n },\n {\n name: \"keep_alive_interval\",\n label: \"Keep Alive Interval\",\n tooltip: \"Keep-alive interval for MQTT connections in s,m,h,d\",\n type: \"duration\",\n placeholder: \"Enter Keep Alive Interval\",\n },\n {\n name: \"reconnect_interval\",\n label: \"Reconnect Interval\",\n tooltip: \"Reconnect interval for MQTT connections in s,m,h,d\",\n type: \"duration\",\n placeholder: \"Enter Reconnect Interval\",\n },\n ...commonFields,\n ],\n [notifyNats]: [\n {\n name: \"address\",\n required: true,\n label: \"Address\",\n tooltip: \"NATS server address e.g. '0.0.0.0:4222'\",\n type: \"address\",\n placeholder: \"Enter Address\",\n },\n {\n name: \"subject\",\n required: true,\n label: \"Subject\",\n tooltip: \"NATS subscription subject\",\n type: \"string\",\n placeholder: \"Enter NATS Subject\",\n },\n {\n name: \"username\",\n label: \"Username\",\n tooltip: \"NATS username\",\n type: \"string\",\n placeholder: \"Enter NATS Username\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"NATS password\",\n type: \"string\",\n placeholder: \"Enter NATS password\",\n },\n {\n name: \"token\",\n label: \"Token\",\n tooltip: \"NATS token\",\n type: \"string\",\n placeholder: \"Enter NATS token\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"ping_interval\",\n label: \"Ping Interval\",\n tooltip: \"Client ping commands interval in s,m,h,d. Disabled by default\",\n type: \"duration\",\n placeholder: \"Enter Ping Interval\",\n },\n {\n name: \"streaming\",\n label: \"Streaming\",\n tooltip: \"Set to 'on' to use streaming NATS server\",\n type: \"on|off\",\n },\n {\n name: \"streaming_async\",\n label: \"Streaming async\",\n tooltip: \"Set to 'on' to enable asynchronous publish\",\n type: \"on|off\",\n },\n {\n name: \"streaming_max_pub_acks_in_flight\",\n label: \"Streaming max publish ACKS in flight\",\n tooltip: \"Number of messages to publish without waiting for ACKs\",\n type: \"number\",\n placeholder: \"Enter Streaming in flight value\",\n },\n {\n name: \"streaming_cluster_id\",\n label: \"Streaming Cluster ID\",\n tooltip: \"Unique ID for NATS streaming cluster\",\n type: \"string\",\n placeholder: \"Enter Streaming Cluster ID\",\n },\n {\n name: \"cert_authority\",\n label: \"Cert Authority\",\n tooltip: \"Path to certificate chain of the target NATS server\",\n type: \"string\",\n placeholder: \"Enter Cert Authority\",\n },\n {\n name: \"client_cert\",\n label: \"Client Cert\",\n tooltip: \"Client cert for NATS mTLS auth\",\n type: \"string\",\n placeholder: \"Enter Client Cert\",\n },\n {\n name: \"client_key\",\n label: \"Client Key\",\n tooltip: \"Client cert key for NATS mTLS authorization\",\n type: \"string\",\n placeholder: \"Enter Client Key\",\n },\n ...commonFields,\n ],\n [notifyElasticsearch]: [\n {\n name: \"url\",\n required: true,\n label: \"URL\",\n tooltip:\n \"Elasticsearch server's address, with optional authentication info\",\n type: \"url\",\n placeholder: \"Enter URL\",\n },\n {\n name: \"index\",\n required: true,\n label: \"Index\",\n tooltip:\n \"Elasticsearch index to store/update events, index is auto-created\",\n type: \"string\",\n placeholder: \"Enter Index\",\n },\n {\n name: \"format\",\n required: true,\n label: \"Format\",\n tooltip:\n \"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'\",\n type: \"enum\",\n placeholder: \"Enter Format\",\n },\n ...commonFields,\n ],\n [notifyWebhooks]: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n tooltip:\n \"Webhook server endpoint e.g. http://localhost:8080/minio/events\",\n type: \"url\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n label: \"Auth Token\",\n tooltip: \"Opaque string or JWT authorization token\",\n type: \"string\",\n placeholder: \"Enter auth_token\",\n },\n ...commonFields,\n ],\n [notifyNsq]: [\n {\n name: \"nsqd_address\",\n required: true,\n label: \"NSQD Address\",\n tooltip: \"NSQ server address e.g. '127.0.0.1:4150'\",\n type: \"address\",\n placeholder: \"Enter nsqd_address\",\n },\n {\n name: \"topic\",\n required: true,\n label: \"Topic\",\n tooltip: \"NSQ topic\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n ...commonFields,\n ],\n};\n\nconst serviceToConfigMap: Record = {\n webhook: \"notify_webhook\",\n amqp: \"notify_amqp\",\n kafka: \"notify_kafka\",\n mqtt: \"notify_mqtt\",\n nats: \"notify_nats\",\n nsq: \"notify_nsq\",\n mysql: \"notify_mysql\",\n postgresql: \"notify_postgres\", //looks different in server response(postgresql as opposed to postgres) from restapi/admin_notification_endpoints.go\n elasticsearch: \"notify_elasticsearch\",\n redis: \"notify_redis\",\n};\n\nexport const getNotificationConfigKey = (serviceName: string) => {\n return serviceToConfigMap[serviceName];\n};\n"],"names":["_ref","onConfirm","onClose","serviceName","status","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmModalIcon","isLoading","confirmationContent","_jsxs","React","children","StatusDisplay","styled","div","theme","display","alignItems","width","marginRight","fill","get","ListEventDestinations","dispatch","useAppDispatch","navigate","useNavigate","useSelector","state","destination","loading","records","setRecords","useState","filter","setFilter","isDelConfirmOpen","setIsDelConfirmOpen","selNotifyEndPoint","setSelNotifyEndpoint","useEffect","fetchRecords","api","admin","notificationEndpointList","then","res","resNotEndList","data","notification_endpoints","notificationTransform","setDestinationLoading","catch","err","setErrorSnackMessage","errorToHandler","error","tableActions","type","onClick","record","filteredRecords","b","service_name","indexOf","Fragment","PageLayout","Grid","item","xs","sx","actionsTray","SearchBox","placeholder","onChange","value","maxWidth","Box","justifyContent","gap","TooltipWrapper","tooltip","Button","id","label","variant","icon","RefreshIcon","AddIcon","IAM_PAGES","EVENT_DESTINATIONS_ADD","ProgressBar","length","DataTable","itemActions","columns","elementKey","renderFunction","CircleIcon","className","entityName","idField","customPaperHeight","marginTop","HelpBox","iconComponent","LambdaIcon","help","href","target","rel","container","alignContent","ActionLink","ConfirmDeleteDestinationModal","ep","name","configKey","getNotificationConfigKey","accountId","concat","account_id","configs","resetConfig","setServerNeedsRestart","console","log","resetNotificationConfig","notifyPostgres","notifyMysql","notifyKafka","notifyAmqp","notifyMqtt","notifyRedis","notifyNats","notifyElasticsearch","notifyWebhooks","notifyNsq","notificationElements","map","element","service","DestType","DB","Queue","Func","destinationList","actionTrigger","targetTitle","logo","category","commonFields","required","removeEmptyFields","formFields","field","notificationEndpointsFields","serviceToConfigMap","webhook","amqp","kafka","mqtt","nats","nsq","mysql","postgresql","elasticsearch","redis"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"static/js/6686.01ae5612.chunk.js","mappings":"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","sources":["screens/Console/EventDestinations/ConfirmDeleteDestinationModal.tsx","screens/Console/EventDestinations/ListEventDestinations.tsx","screens/Console/EventDestinations/utils.ts"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"mds\";\n\nconst ConfirmDeleteDestinationModal = ({\n onConfirm,\n onClose,\n serviceName,\n status,\n}: {\n onConfirm: () => void;\n onClose: () => void;\n serviceName: string;\n status: string;\n}) => {\n return (\n }\n isLoading={false}\n onConfirm={onConfirm}\n onClose={onClose}\n confirmationContent={\n \n Are you sure you want to delete the event destination ?\n
\n {serviceName} which is {status}\n \n }\n />\n );\n};\n\nexport default ConfirmDeleteDestinationModal;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport {\n ActionLink,\n AddIcon,\n Box,\n Button,\n CircleIcon,\n DataTable,\n Grid,\n HelpBox,\n LambdaIcon,\n PageLayout,\n ProgressBar,\n RefreshIcon,\n} from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { api } from \"api\";\nimport { NotificationEndpointItem } from \"api/consoleApi\";\nimport { errorToHandler } from \"api/errors\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { TransformedEndpointItem } from \"./types\";\nimport { getNotificationConfigKey, notificationTransform } from \"./utils\";\nimport { actionsTray } from \"../Common/FormComponents/common/styleLibrary\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport {\n setErrorSnackMessage,\n setServerNeedsRestart,\n} from \"../../../systemSlice\";\nimport { AppState, useAppDispatch } from \"../../../store\";\nimport { setDestinationLoading } from \"./destinationsSlice\";\nimport SearchBox from \"../Common/SearchBox\";\nimport ConfirmDeleteDestinationModal from \"./ConfirmDeleteDestinationModal\";\nimport TooltipWrapper from \"../Common/TooltipWrapper/TooltipWrapper\";\n\nconst StatusDisplay = styled.div(({ theme }) => ({\n display: \"flex\",\n alignItems: \"center\",\n \"& svg\": {\n width: 16,\n marginRight: 5,\n fill: get(theme, \"signalColors.good\", \"#4CCB92\"),\n },\n \"& svg.offline\": {\n fill: get(theme, \"signalColors.danger\", \"#C51B3F\"),\n },\n}));\n\nconst ListEventDestinations = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n // Reducer States\n const isLoading = useSelector((state: AppState) => state.destination.loading);\n\n //Local States\n const [records, setRecords] = useState([]);\n const [filter, setFilter] = useState(\"\");\n\n const [isDelConfirmOpen, setIsDelConfirmOpen] = useState(false);\n const [selNotifyEndPoint, setSelNotifyEndpoint] =\n useState();\n\n //Effects\n // load records on mount\n useEffect(() => {\n if (isLoading) {\n const fetchRecords = () => {\n api.admin\n .notificationEndpointList()\n .then((res) => {\n let resNotEndList: NotificationEndpointItem[] = [];\n if (res.data.notification_endpoints) {\n resNotEndList = res.data.notification_endpoints;\n }\n setRecords(notificationTransform(resNotEndList));\n dispatch(setDestinationLoading(false));\n })\n .catch((err) => {\n dispatch(setErrorSnackMessage(errorToHandler(err.error)));\n dispatch(setDestinationLoading(false));\n });\n };\n fetchRecords();\n }\n }, [isLoading, dispatch]);\n\n useEffect(() => {\n dispatch(setDestinationLoading(true));\n }, [dispatch]);\n\n const resetNotificationConfig = (\n ep: TransformedEndpointItem | undefined | null,\n ) => {\n if (ep?.name) {\n const configKey = getNotificationConfigKey(ep.name);\n let accountId = `:${ep.account_id}`;\n if (configKey) {\n api.configs\n .resetConfig(`${configKey}${accountId}`)\n .then(() => {\n dispatch(setServerNeedsRestart(true));\n setSelNotifyEndpoint(null);\n setIsDelConfirmOpen(false);\n dispatch(setDestinationLoading(true));\n })\n .catch((err) => {\n setIsDelConfirmOpen(false);\n dispatch(setErrorSnackMessage(errorToHandler(err.error)));\n });\n } else {\n setSelNotifyEndpoint(null);\n setIsDelConfirmOpen(false);\n console.log(`Unable to find Config key for ${ep.name}`);\n }\n }\n };\n\n const confirmDelNotifyEndpoint = (record: TransformedEndpointItem) => {\n setSelNotifyEndpoint(record);\n setIsDelConfirmOpen(true);\n };\n\n const tableActions = [{ type: \"delete\", onClick: confirmDelNotifyEndpoint }];\n\n const filteredRecords = records.filter((b: TransformedEndpointItem) => {\n if (filter === \"\") {\n return true;\n }\n return b.service_name.indexOf(filter) >= 0;\n });\n\n const statusDisplay = (status: string) => {\n return (\n \n \n {status}\n \n );\n };\n\n return (\n \n \n \n \n \n \n }\n onClick={() => {\n dispatch(setDestinationLoading(true));\n }}\n />\n \n \n }\n onClick={() => {\n navigate(IAM_PAGES.EVENT_DESTINATIONS_ADD);\n }}\n />\n \n \n \n {isLoading && }\n {!isLoading && (\n \n {records.length > 0 && (\n \n \n \n \n \n }\n help={\n \n MinIO bucket notifications allow administrators to send\n notifications to supported external services on certain\n object or bucket events. MinIO supports bucket and\n object-level S3 events similar to the Amazon S3 Event\n Notifications.\n
\n
\n You can learn more at our{\" \"}\n \n documentation\n \n .\n \n }\n />\n \n \n )}\n {records.length === 0 && (\n \n \n }\n help={\n \n MinIO bucket notifications allow administrators to send\n notifications to supported external services on certain\n object or bucket events. MinIO supports bucket and\n object-level S3 events similar to the Amazon S3 Event\n Notifications.\n
\n
\n To get started,{\" \"}\n {\n navigate(IAM_PAGES.EVENT_DESTINATIONS_ADD);\n }}\n >\n Add an Event Destination\n \n .\n \n }\n />\n \n \n )}\n \n )}\n\n {isDelConfirmOpen ? (\n {\n resetNotificationConfig(selNotifyEndPoint);\n }}\n status={`${selNotifyEndPoint?.status}`}\n serviceName={`${selNotifyEndPoint?.service_name}`}\n onClose={() => {\n setIsDelConfirmOpen(false);\n }}\n />\n ) : null}\n \n \n );\n};\n\nexport default ListEventDestinations;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { NotificationEndpointItem } from \"api/consoleApi\";\nimport { IElementValue } from \"../Configurations/types\";\nimport { TransformedEndpointItem } from \"./types\";\n\nexport const notifyPostgres = \"notify_postgres\";\nexport const notifyMysql = \"notify_mysql\";\nexport const notifyKafka = \"notify_kafka\";\nexport const notifyAmqp = \"notify_amqp\";\nexport const notifyMqtt = \"notify_mqtt\";\nexport const notifyRedis = \"notify_redis\";\nexport const notifyNats = \"notify_nats\";\nexport const notifyElasticsearch = \"notify_elasticsearch\";\nexport const notifyWebhooks = \"notify_webhook\";\nexport const notifyNsq = \"notify_nsq\";\n\nexport const notificationTransform = (\n notificationElements: NotificationEndpointItem[],\n) => {\n return notificationElements.map((element) => {\n return {\n service_name: `${element.service}:${element.account_id}`,\n name: element.service,\n account_id: element.account_id,\n status: element.status,\n };\n }) as TransformedEndpointItem[];\n};\n\nexport class DestType {\n static DB: string = \"database\";\n static Queue: string = \"queue\";\n static Func: string = \"functions\";\n}\n\nexport const destinationList = [\n {\n actionTrigger: notifyPostgres,\n targetTitle: \"PostgreSQL\",\n logo: \"/postgres-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyKafka,\n targetTitle: \"Kafka\",\n logo: \"/kafka-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyAmqp,\n targetTitle: \"AMQP\",\n logo: \"/amqp-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyMqtt,\n targetTitle: \"MQTT\",\n logo: \"/mqtt-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyRedis,\n targetTitle: \"Redis\",\n logo: \"/redis-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyNats,\n targetTitle: \"NATS\",\n logo: \"/nats-logo.svg\",\n category: DestType.Queue,\n },\n {\n actionTrigger: notifyMysql,\n targetTitle: \"Mysql\",\n logo: \"/mysql-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyElasticsearch,\n targetTitle: \"Elastic Search\",\n logo: \"/elasticsearch-logo.svg\",\n category: DestType.DB,\n },\n {\n actionTrigger: notifyWebhooks,\n targetTitle: \"Webhook\",\n logo: \"/webhooks-logo.svg\",\n category: DestType.Func,\n },\n {\n actionTrigger: notifyNsq,\n targetTitle: \"NSQ\",\n logo: \"/nsq-logo.svg\",\n category: DestType.Queue,\n },\n];\n\nconst commonFields = [\n {\n name: \"queue_dir\",\n label: \"Queue Directory\",\n required: false,\n\n tooltip: \"Staging directory for undelivered messages e.g. '/home/events'\",\n type: \"string\",\n placeholder: \"Enter Queue Directory\",\n },\n {\n name: \"queue_limit\",\n label: \"Queue Limit\",\n required: false,\n\n tooltip: \"Maximum limit for undelivered messages, defaults to '10000'\",\n type: \"number\",\n placeholder: \"Enter Queue Limit\",\n },\n {\n name: \"comment\",\n label: \"Comment\",\n required: false,\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n];\n\nexport const removeEmptyFields = (formFields: IElementValue[]) => {\n const nonEmptyFields = formFields.filter((field) => field.value !== \"\");\n\n return nonEmptyFields;\n};\n\nexport const notificationEndpointsFields: any = {\n [notifyKafka]: [\n {\n name: \"brokers\",\n label: \"Brokers\",\n required: true,\n\n tooltip: \"Comma separated list of Kafka broker addresses\",\n type: \"string\",\n placeholder: \"Enter Brokers\",\n },\n {\n name: \"topic\",\n label: \"Topic\",\n tooltip: \"Kafka topic used for bucket notifications\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"sasl_username\",\n label: \"SASL Username\",\n tooltip: \"Username for SASL/PLAIN or SASL/SCRAM authentication\",\n type: \"string\",\n placeholder: \"Enter SASL Username\",\n },\n {\n name: \"sasl_password\",\n label: \"SASL Password\",\n tooltip: \"Password for SASL/PLAIN or SASL/SCRAM authentication\",\n type: \"string\",\n placeholder: \"Enter SASL Password\",\n },\n {\n name: \"sasl_mechanism\",\n label: \"SASL Mechanism\",\n tooltip: \"SASL authentication mechanism, default 'PLAIN'\",\n type: \"string\",\n },\n {\n name: \"tls_client_auth\",\n label: \"TLS Client Auth\",\n tooltip:\n \"Client Auth determines the Kafka server's policy for TLS client authorization\",\n type: \"string\",\n placeholder: \"Enter TLS Client Auth\",\n },\n {\n name: \"sasl\",\n label: \"SASL\",\n tooltip: \"Set to 'on' to enable SASL authentication\",\n type: \"on|off\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS skip verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"client_tls_cert\",\n label: \"client TLS cert\",\n tooltip: \"Path to client certificate for mTLS authorization\",\n type: \"path\",\n placeholder: \"Enter TLS Client Cert\",\n },\n {\n name: \"client_tls_key\",\n label: \"client TLS key\",\n tooltip: \"Path to client key for mTLS authorization\",\n type: \"path\",\n placeholder: \"Enter TLS Client Key\",\n },\n {\n name: \"version\",\n label: \"Version\",\n tooltip: \"Specify the version of the Kafka cluster e.g '2.2.0'\",\n type: \"string\",\n placeholder: \"Enter Kafka Version\",\n },\n ...commonFields,\n ],\n [notifyAmqp]: [\n {\n name: \"url\",\n required: true,\n label: \"URL\",\n tooltip:\n \"AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672`\",\n type: \"url\",\n },\n {\n name: \"exchange\",\n label: \"Exchange\",\n tooltip: \"Name of the AMQP exchange\",\n type: \"string\",\n placeholder: \"Enter Exchange\",\n },\n {\n name: \"exchange_type\",\n label: \"Exchange Type\",\n tooltip: \"AMQP exchange type\",\n type: \"string\",\n placeholder: \"Enter Exchange Type\",\n },\n {\n name: \"routing_key\",\n label: \"Routing Key\",\n tooltip: \"Routing key for publishing\",\n type: \"string\",\n placeholder: \"Enter Routing Key\",\n },\n {\n name: \"mandatory\",\n label: \"Mandatory\",\n tooltip:\n \"Quietly ignore undelivered messages when set to 'off', default is 'on'\",\n type: \"on|off\",\n },\n {\n name: \"durable\",\n label: \"Durable\",\n tooltip:\n \"Persist queue across broker restarts when set to 'on', default is 'off'\",\n type: \"on|off\",\n },\n {\n name: \"no_wait\",\n label: \"No Wait\",\n tooltip:\n \"Non-blocking message delivery when set to 'on', default is 'off'\",\n type: \"on|off\",\n },\n {\n name: \"internal\",\n label: \"Internal\",\n tooltip:\n \"Set to 'on' for exchange to be not used directly by publishers, but only when bound to other exchanges\",\n type: \"on|off\",\n },\n {\n name: \"auto_deleted\",\n label: \"Auto Deleted\",\n tooltip:\n \"Auto delete queue when set to 'on', when there are no consumers\",\n type: \"on|off\",\n },\n {\n name: \"delivery_mode\",\n label: \"Delivery Mode\",\n tooltip: \"Set to '1' for non-persistent or '2' for persistent queue\",\n type: \"number\",\n placeholder: \"Enter Delivery Mode\",\n },\n ...commonFields,\n ],\n [notifyRedis]: [\n {\n name: \"address\",\n required: true,\n label: \"Address\",\n tooltip: \"Redis server's address e.g. `localhost:6379`\",\n type: \"address\",\n placeholder: \"Enter Address\",\n },\n {\n name: \"key\",\n required: true,\n label: \"Key\",\n tooltip: \"Redis key to store/update events, key is auto-created\",\n type: \"string\",\n placeholder: \"Enter Key\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"Redis server password\",\n type: \"string\",\n placeholder: \"Enter Password\",\n },\n ...commonFields,\n ],\n [notifyMqtt]: [\n {\n name: \"broker\",\n required: true,\n label: \"Broker\",\n tooltip: \"MQTT server endpoint e.g. `tcp://localhost:1883`\",\n type: \"uri\",\n placeholder: \"Enter Brokers\",\n },\n {\n name: \"topic\",\n required: true,\n label: \"Topic\",\n tooltip: \"Name of the MQTT topic to publish\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"username\",\n label: \"Username\",\n tooltip: \"MQTT username\",\n type: \"string\",\n placeholder: \"Enter Username\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"MQTT password\",\n type: \"string\",\n placeholder: \"Enter Password\",\n },\n {\n name: \"qos\",\n label: \"QOS\",\n tooltip: \"Set the quality of service priority, defaults to '0'\",\n type: \"number\",\n placeholder: \"Enter QOS\",\n },\n {\n name: \"keep_alive_interval\",\n label: \"Keep Alive Interval\",\n tooltip: \"Keep-alive interval for MQTT connections in s,m,h,d\",\n type: \"duration\",\n placeholder: \"Enter Keep Alive Interval\",\n },\n {\n name: \"reconnect_interval\",\n label: \"Reconnect Interval\",\n tooltip: \"Reconnect interval for MQTT connections in s,m,h,d\",\n type: \"duration\",\n placeholder: \"Enter Reconnect Interval\",\n },\n ...commonFields,\n ],\n [notifyNats]: [\n {\n name: \"address\",\n required: true,\n label: \"Address\",\n tooltip: \"NATS server address e.g. '0.0.0.0:4222'\",\n type: \"address\",\n placeholder: \"Enter Address\",\n },\n {\n name: \"subject\",\n required: true,\n label: \"Subject\",\n tooltip: \"NATS subscription subject\",\n type: \"string\",\n placeholder: \"Enter NATS Subject\",\n },\n {\n name: \"username\",\n label: \"Username\",\n tooltip: \"NATS username\",\n type: \"string\",\n placeholder: \"Enter NATS Username\",\n },\n {\n name: \"password\",\n label: \"Password\",\n tooltip: \"NATS password\",\n type: \"string\",\n placeholder: \"Enter NATS password\",\n },\n {\n name: \"token\",\n label: \"Token\",\n tooltip: \"NATS token\",\n type: \"string\",\n placeholder: \"Enter NATS token\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"ping_interval\",\n label: \"Ping Interval\",\n tooltip: \"Client ping commands interval in s,m,h,d. Disabled by default\",\n type: \"duration\",\n placeholder: \"Enter Ping Interval\",\n },\n {\n name: \"streaming\",\n label: \"Streaming\",\n tooltip: \"Set to 'on' to use streaming NATS server\",\n type: \"on|off\",\n },\n {\n name: \"streaming_async\",\n label: \"Streaming async\",\n tooltip: \"Set to 'on' to enable asynchronous publish\",\n type: \"on|off\",\n },\n {\n name: \"streaming_max_pub_acks_in_flight\",\n label: \"Streaming max publish ACKS in flight\",\n tooltip: \"Number of messages to publish without waiting for ACKs\",\n type: \"number\",\n placeholder: \"Enter Streaming in flight value\",\n },\n {\n name: \"streaming_cluster_id\",\n label: \"Streaming Cluster ID\",\n tooltip: \"Unique ID for NATS streaming cluster\",\n type: \"string\",\n placeholder: \"Enter Streaming Cluster ID\",\n },\n {\n name: \"cert_authority\",\n label: \"Cert Authority\",\n tooltip: \"Path to certificate chain of the target NATS server\",\n type: \"string\",\n placeholder: \"Enter Cert Authority\",\n },\n {\n name: \"client_cert\",\n label: \"Client Cert\",\n tooltip: \"Client cert for NATS mTLS auth\",\n type: \"string\",\n placeholder: \"Enter Client Cert\",\n },\n {\n name: \"client_key\",\n label: \"Client Key\",\n tooltip: \"Client cert key for NATS mTLS authorization\",\n type: \"string\",\n placeholder: \"Enter Client Key\",\n },\n ...commonFields,\n ],\n [notifyElasticsearch]: [\n {\n name: \"url\",\n required: true,\n label: \"URL\",\n tooltip:\n \"Elasticsearch server's address, with optional authentication info\",\n type: \"url\",\n placeholder: \"Enter URL\",\n },\n {\n name: \"index\",\n required: true,\n label: \"Index\",\n tooltip:\n \"Elasticsearch index to store/update events, index is auto-created\",\n type: \"string\",\n placeholder: \"Enter Index\",\n },\n {\n name: \"format\",\n required: true,\n label: \"Format\",\n tooltip:\n \"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'\",\n type: \"enum\",\n placeholder: \"Enter Format\",\n },\n ...commonFields,\n ],\n [notifyWebhooks]: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n tooltip:\n \"Webhook server endpoint e.g. http://localhost:8080/minio/events\",\n type: \"url\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n label: \"Auth Token\",\n tooltip: \"Opaque string or JWT authorization token\",\n type: \"string\",\n placeholder: \"Enter auth_token\",\n },\n ...commonFields,\n ],\n [notifyNsq]: [\n {\n name: \"nsqd_address\",\n required: true,\n label: \"NSQD Address\",\n tooltip: \"NSQ server address e.g. '127.0.0.1:4150'\",\n type: \"address\",\n placeholder: \"Enter nsqd_address\",\n },\n {\n name: \"topic\",\n required: true,\n label: \"Topic\",\n tooltip: \"NSQ topic\",\n type: \"string\",\n placeholder: \"Enter Topic\",\n },\n {\n name: \"tls\",\n label: \"TLS\",\n tooltip: \"Set to 'on' to enable TLS\",\n type: \"on|off\",\n },\n {\n name: \"tls_skip_verify\",\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"on\" (verify)',\n type: \"on|off\",\n },\n ...commonFields,\n ],\n};\n\nconst serviceToConfigMap: Record = {\n webhook: \"notify_webhook\",\n amqp: \"notify_amqp\",\n kafka: \"notify_kafka\",\n mqtt: \"notify_mqtt\",\n nats: \"notify_nats\",\n nsq: \"notify_nsq\",\n mysql: \"notify_mysql\",\n postgresql: \"notify_postgres\", //looks different in server response(postgresql as opposed to postgres) from api/admin_notification_endpoints.go\n elasticsearch: \"notify_elasticsearch\",\n redis: \"notify_redis\",\n};\n\nexport const getNotificationConfigKey = (serviceName: string) => {\n return serviceToConfigMap[serviceName];\n};\n"],"names":["_ref","onConfirm","onClose","serviceName","status","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmModalIcon","isLoading","confirmationContent","_jsxs","React","children","StatusDisplay","styled","div","theme","display","alignItems","width","marginRight","fill","get","ListEventDestinations","dispatch","useAppDispatch","navigate","useNavigate","useSelector","state","destination","loading","records","setRecords","useState","filter","setFilter","isDelConfirmOpen","setIsDelConfirmOpen","selNotifyEndPoint","setSelNotifyEndpoint","useEffect","fetchRecords","api","admin","notificationEndpointList","then","res","resNotEndList","data","notification_endpoints","notificationTransform","setDestinationLoading","catch","err","setErrorSnackMessage","errorToHandler","error","tableActions","type","onClick","record","filteredRecords","b","service_name","indexOf","Fragment","PageLayout","Grid","item","xs","sx","actionsTray","SearchBox","placeholder","onChange","value","maxWidth","Box","justifyContent","gap","TooltipWrapper","tooltip","Button","id","label","variant","icon","RefreshIcon","AddIcon","IAM_PAGES","EVENT_DESTINATIONS_ADD","ProgressBar","length","DataTable","itemActions","columns","elementKey","renderFunction","CircleIcon","className","entityName","idField","customPaperHeight","marginTop","HelpBox","iconComponent","LambdaIcon","help","href","target","rel","container","alignContent","ActionLink","ConfirmDeleteDestinationModal","ep","name","configKey","getNotificationConfigKey","accountId","concat","account_id","configs","resetConfig","setServerNeedsRestart","console","log","resetNotificationConfig","notifyPostgres","notifyMysql","notifyKafka","notifyAmqp","notifyMqtt","notifyRedis","notifyNats","notifyElasticsearch","notifyWebhooks","notifyNsq","notificationElements","map","element","service","DestType","DB","Queue","Func","destinationList","actionTrigger","targetTitle","logo","category","commonFields","required","removeEmptyFields","formFields","field","notificationEndpointsFields","serviceToConfigMap","webhook","amqp","kafka","mqtt","nats","nsq","mysql","postgresql","elasticsearch","redis"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/src/screens/Console/EventDestinations/utils.ts b/portal-ui/src/screens/Console/EventDestinations/utils.ts
index 295f8f468..48d1a475b 100644
--- a/portal-ui/src/screens/Console/EventDestinations/utils.ts
+++ b/portal-ui/src/screens/Console/EventDestinations/utils.ts
@@ -588,7 +588,7 @@ const serviceToConfigMap: Record = {
nats: "notify_nats",
nsq: "notify_nsq",
mysql: "notify_mysql",
- postgresql: "notify_postgres", //looks different in server response(postgresql as opposed to postgres) from restapi/admin_notification_endpoints.go
+ postgresql: "notify_postgres", //looks different in server response(postgresql as opposed to postgres) from api/admin_notification_endpoints.go
elasticsearch: "notify_elasticsearch",
redis: "notify_redis",
};
diff --git a/replication/replication_test.go b/replication/replication_test.go
index 4aeacc5ad..2405bf114 100644
--- a/replication/replication_test.go
+++ b/replication/replication_test.go
@@ -28,16 +28,16 @@ import (
"time"
"github.com/go-openapi/loads"
- "github.com/minio/console/restapi"
- "github.com/minio/console/restapi/operations"
+ "github.com/minio/console/api"
+ "github.com/minio/console/api/operations"
)
var token string
-func initConsoleServer() (*restapi.Server, error) {
+func initConsoleServer() (*api.Server, error) {
// os.Setenv("CONSOLE_MINIO_SERVER", "localhost:9000")
- swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
+ swaggerSpec, err := loads.Embedded(api.SwaggerJSON, api.FlatSwaggerJSON)
if err != nil {
return nil, err
}
@@ -47,24 +47,24 @@ func initConsoleServer() (*restapi.Server, error) {
}
// Initialize MinIO loggers
- restapi.LogInfo = noLog
- restapi.LogError = noLog
+ api.LogInfo = noLog
+ api.LogError = noLog
- api := operations.NewConsoleAPI(swaggerSpec)
- api.Logger = noLog
+ consoleAPI := operations.NewConsoleAPI(swaggerSpec)
+ consoleAPI.Logger = noLog
- server := restapi.NewServer(api)
+ server := api.NewServer(consoleAPI)
// register all APIs
server.ConfigureAPI()
- // restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
+ // api.GlobalRootCAs, api.GlobalPublicCerts, api.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
consolePort, _ := strconv.Atoi("9090")
server.Host = "0.0.0.0"
server.Port = consolePort
- restapi.Port = "9090"
- restapi.Hostname = "0.0.0.0"
+ api.Port = "9090"
+ api.Hostname = "0.0.0.0"
return server, nil
}
diff --git a/sso-integration/sso_test.go b/sso-integration/sso_test.go
index d3c4d0559..261fbe1f5 100644
--- a/sso-integration/sso_test.go
+++ b/sso-integration/sso_test.go
@@ -33,15 +33,15 @@ import (
"github.com/minio/console/models"
"github.com/go-openapi/loads"
+ "github.com/minio/console/api"
+ "github.com/minio/console/api/operations"
consoleoauth2 "github.com/minio/console/pkg/auth/idp/oauth2"
- "github.com/minio/console/restapi"
- "github.com/minio/console/restapi/operations"
"github.com/stretchr/testify/assert"
)
var token string
-func initConsoleServer(consoleIDPURL string) (*restapi.Server, error) {
+func initConsoleServer(consoleIDPURL string) (*api.Server, error) {
// Configure Console Server with vars to get the idp config from the container
pcfg := map[string]consoleoauth2.ProviderConfig{
"_": {
@@ -52,7 +52,7 @@ func initConsoleServer(consoleIDPURL string) (*restapi.Server, error) {
},
}
- swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
+ swaggerSpec, err := loads.Embedded(api.SwaggerJSON, api.FlatSwaggerJSON)
if err != nil {
return nil, err
}
@@ -62,24 +62,24 @@ func initConsoleServer(consoleIDPURL string) (*restapi.Server, error) {
}
// Initialize MinIO loggers
- restapi.LogInfo = noLog
- restapi.LogError = noLog
+ api.LogInfo = noLog
+ api.LogError = noLog
- api := operations.NewConsoleAPI(swaggerSpec)
- api.Logger = noLog
+ consoleAPI := operations.NewConsoleAPI(swaggerSpec)
+ consoleAPI.Logger = noLog
- restapi.GlobalMinIOConfig = restapi.MinIOConfig{
+ api.GlobalMinIOConfig = api.MinIOConfig{
OpenIDProviders: pcfg,
}
- server := restapi.NewServer(api)
+ server := api.NewServer(consoleAPI)
// register all APIs
server.ConfigureAPI()
server.Host = "0.0.0.0"
server.Port = 9090
- restapi.Port = "9090"
- restapi.Hostname = "0.0.0.0"
+ api.Port = "9090"
+ api.Hostname = "0.0.0.0"
return server, nil
}