localstack/localstack

View on GitHub
localstack/aws/api/apigateway/__init__.py

Summary

Maintainability
F
2 wks
Test Coverage

File __init__.py has 2187 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from datetime import datetime
from typing import IO, Dict, Iterable, List, Optional, TypedDict, Union

from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler

Severity: Major
Found in localstack/aws/api/apigateway/__init__.py - About 6 days to fix

    ApigatewayApi has 120 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ApigatewayApi:
        service = "apigateway"
        version = "2015-07-09"
    
        @handler("CreateApiKey")
    Severity: Major
    Found in localstack/aws/api/apigateway/__init__.py - About 2 days to fix

      Function create_domain_name has 15 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def create_domain_name(
      Severity: Major
      Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

        Function create_rest_api has 13 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def create_rest_api(
        Severity: Major
        Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

          Function create_stage has 13 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def create_stage(
          Severity: Major
          Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

            Function put_method has 13 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def put_method(
            Severity: Major
            Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

              Function create_deployment has 11 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def create_deployment(
              Severity: Major
              Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                Function test_invoke_method has 11 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def test_invoke_method(
                Severity: Major
                Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                  Function create_api_key has 10 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def create_api_key(
                  Severity: Major
                  Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                    Function put_integration_response has 10 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def put_integration_response(
                    Severity: Major
                    Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                      Function test_invoke_authorizer has 10 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def test_invoke_authorizer(
                      Severity: Major
                      Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                        Function create_usage_plan has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def create_usage_plan(
                        Severity: Major
                        Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                          Function put_method_response has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def put_method_response(
                          Severity: Major
                          Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                            Function get_usage has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def get_usage(
                            Severity: Major
                            Found in localstack/aws/api/apigateway/__init__.py - About 1 hr to fix

                              Function create_model has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def create_model(
                              Severity: Major
                              Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                Function update_method_response has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def update_method_response(
                                Severity: Major
                                Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                  Function update_integration_response has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def update_integration_response(
                                  Severity: Major
                                  Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                    Function put_gateway_response has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def put_gateway_response(
                                    Severity: Major
                                    Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                      Function get_export has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def get_export(
                                      Severity: Major
                                      Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                        Function get_api_keys has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def get_api_keys(
                                        Severity: Major
                                        Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                          Function put_rest_api has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              def put_rest_api(
                                          Severity: Major
                                          Found in localstack/aws/api/apigateway/__init__.py - About 50 mins to fix

                                            Function create_base_path_mapping has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                def create_base_path_mapping(
                                            Severity: Minor
                                            Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                              Function create_request_validator has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  def create_request_validator(
                                              Severity: Minor
                                              Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                Function create_documentation_version has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    def create_documentation_version(
                                                Severity: Minor
                                                Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                  Function delete_method_response has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      def delete_method_response(
                                                  Severity: Minor
                                                  Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                    Function get_usage_plan_keys has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        def get_usage_plan_keys(
                                                    Severity: Minor
                                                    Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                      Function get_integration_response has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          def get_integration_response(
                                                      Severity: Minor
                                                      Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                        Function update_integration has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            def update_integration(
                                                        Severity: Minor
                                                        Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                          Function get_resources has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              def get_resources(
                                                          Severity: Minor
                                                          Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                            Function update_method has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                def update_method(
                                                            Severity: Minor
                                                            Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                              Function create_vpc_link has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  def create_vpc_link(
                                                              Severity: Minor
                                                              Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                                Function get_sdk has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    def get_sdk(
                                                                Severity: Minor
                                                                Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                                  Function delete_integration_response has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      def delete_integration_response(
                                                                  Severity: Minor
                                                                  Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                                    Function get_method_response has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                        def get_method_response(
                                                                    Severity: Minor
                                                                    Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                                      Function import_documentation_parts has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                          def import_documentation_parts(
                                                                      Severity: Minor
                                                                      Found in localstack/aws/api/apigateway/__init__.py - About 45 mins to fix

                                                                        Function create_resource has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                            def create_resource(
                                                                        Severity: Minor
                                                                        Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                          Function create_documentation_part has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                              def create_documentation_part(
                                                                          Severity: Minor
                                                                          Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                            Function get_models has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                            Open

                                                                                def get_models(
                                                                            Severity: Minor
                                                                            Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                              Function import_rest_api has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                                  def import_rest_api(
                                                                              Severity: Minor
                                                                              Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                Function update_documentation_version has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                Open

                                                                                    def update_documentation_version(
                                                                                Severity: Minor
                                                                                Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                  Function update_base_path_mapping has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                  Open

                                                                                      def update_base_path_mapping(
                                                                                  Severity: Minor
                                                                                  Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                    Function update_stage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                    Open

                                                                                        def update_stage(
                                                                                    Severity: Minor
                                                                                    Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                      Function update_usage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                          def update_usage(
                                                                                      Severity: Minor
                                                                                      Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                        Function get_gateway_responses has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                            def get_gateway_responses(
                                                                                        Severity: Minor
                                                                                        Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                          Function update_resource has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                          Open

                                                                                              def update_resource(
                                                                                          Severity: Minor
                                                                                          Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                            Function create_usage_plan_key has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                            Open

                                                                                                def create_usage_plan_key(
                                                                                            Severity: Minor
                                                                                            Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                              Function get_integration has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_integration(
                                                                                              Severity: Minor
                                                                                              Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                Function update_deployment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    def update_deployment(
                                                                                                Severity: Minor
                                                                                                Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                  Function update_authorizer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                      def update_authorizer(
                                                                                                  Severity: Minor
                                                                                                  Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                    Function update_documentation_part has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                        def update_documentation_part(
                                                                                                    Severity: Minor
                                                                                                    Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                      Function update_request_validator has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                          def update_request_validator(
                                                                                                      Severity: Minor
                                                                                                      Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                        Function get_authorizers has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                            def get_authorizers(
                                                                                                        Severity: Minor
                                                                                                        Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                          Function get_method has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              def get_method(
                                                                                                          Severity: Minor
                                                                                                          Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                            Function get_tags has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                def get_tags(
                                                                                                            Severity: Minor
                                                                                                            Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                              Function get_usage_plans has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  def get_usage_plans(
                                                                                                              Severity: Minor
                                                                                                              Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                Function update_model has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                    def update_model(
                                                                                                                Severity: Minor
                                                                                                                Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                  Function delete_method has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      def delete_method(
                                                                                                                  Severity: Minor
                                                                                                                  Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                    Function get_base_path_mappings has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                        def get_base_path_mappings(
                                                                                                                    Severity: Minor
                                                                                                                    Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                      Function get_deployments has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                          def get_deployments(
                                                                                                                      Severity: Minor
                                                                                                                      Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                        Function get_model has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                            def get_model(
                                                                                                                        Severity: Minor
                                                                                                                        Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                          Function get_resource has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              def get_resource(
                                                                                                                          Severity: Minor
                                                                                                                          Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                            Function import_api_keys has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                def import_api_keys(
                                                                                                                            Severity: Minor
                                                                                                                            Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                              Function get_deployment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  def get_deployment(
                                                                                                                              Severity: Minor
                                                                                                                              Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                                Function get_documentation_versions has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    def get_documentation_versions(
                                                                                                                                Severity: Minor
                                                                                                                                Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                                  Function delete_integration has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      def delete_integration(
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                                    Function get_request_validators has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                        def get_request_validators(
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                                      Function update_gateway_response has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                          def update_gateway_response(
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in localstack/aws/api/apigateway/__init__.py - About 35 mins to fix

                                                                                                                                        There are no issues that match your filters.

                                                                                                                                        Category
                                                                                                                                        Status