From e3fdac07112b5a7340dd626f8dff01b3d5e68d42 Mon Sep 17 00:00:00 2001 From: yateeshc <96212247+yateeshc@users.noreply.github.com> Date: Wed, 19 Apr 2023 00:20:04 -0700 Subject: [PATCH] rename hasBearerMethods to hasHttpBearerMethods (#15259) --- .../src/main/resources/python-legacy/configuration.mustache | 4 ++-- .../src/main/resources/python-nextgen/configuration.mustache | 4 ++-- .../src/main/resources/python/configuration.handlebars | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache index 14604352cc3..f294be583fe 100644 --- a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache @@ -229,11 +229,11 @@ conf = {{{packageName}}}.Configuration( """ {{/hasOAuthMethods}} {{^hasOAuthMethods}} -{{#hasBearerMethods}} +{{#hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """ -{{/hasBearerMethods}} +{{/hasHttpBearerMethods}} {{/hasOAuthMethods}} self.logger = {} """Logging Settings diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache index 77b44197b2f..3849fa4e330 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache @@ -199,11 +199,11 @@ conf = {{{packageName}}}.Configuration( """ {{/hasOAuthMethods}} {{^hasOAuthMethods}} -{{#hasBearerMethods}} +{{#hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """ -{{/hasBearerMethods}} +{{/hasHttpBearerMethods}} {{/hasOAuthMethods}} self.logger = {} """Logging Settings diff --git a/modules/openapi-generator/src/main/resources/python/configuration.handlebars b/modules/openapi-generator/src/main/resources/python/configuration.handlebars index c66365cefdb..d6a5898e669 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.handlebars +++ b/modules/openapi-generator/src/main/resources/python/configuration.handlebars @@ -182,7 +182,7 @@ conf = {{{packageName}}}.Configuration( server_variables=None, server_operation_index=None, server_operation_variables=None, -{{#or hasOAuthMethods hasBearerMethods}} +{{#or hasOAuthMethods hasHttpBearerMethods}} access_token=None, {{/or}} ): @@ -235,7 +235,7 @@ conf = {{{packageName}}}.Configuration( """The HTTP signing configuration """ {{/if}} -{{#or hasOAuthMethods hasBearerMethods}} +{{#or hasOAuthMethods hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """