Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #10647
Closed
Open
Issue created Oct 20, 2021 by Administrator@rootContributor

[REQ] add no_proxy support to python client

Created by: itaru2622

Is your feature request related to a problem? Please describe.

add 'no_proxy' feature supporting in python client besides current 'proxy' and 'proxy_headers' features.

there is no 'no_proxy' feature in current python client as below:

https://github.com/OpenAPITools/openapi-generator/blob/c16562995b2a19615c9e355a73091732257aa93f/modules/openapi-generator/src/main/resources/python/configuration.mustache#L278-L283

https://github.com/OpenAPITools/openapi-generator/blob/c16562995b2a19615c9e355a73091732257aa93f/modules/openapi-generator/src/main/resources/python/rest.mustache#L67-L69

as the result, it needs to set/unset proxy parameter according to the destinations.

for example, kubernets(CNCF) provides its API in openapi definition. and CNCF official python client, using the code generated by openapi-generator, access to cloud servers as well as on-premise servers. as the result, user needs to set/unset proxy parameter according to the destinations. it is bothering task.

Describe the solution you'd like

add no_proxy parameter in configuration.py, then rest.py chooses either ProxyManager or PoolManager according to the parameters(proxy and no_proxy).

Describe alternatives you've considered

Additional context

Assignee
Assign to
Time tracking