Har*_*til 0 google-api-python-client google-kubernetes-engine google-container-registry
API客户端库是否支持在Google容器引擎上创建和删除窗格和作业?
鉴于Kubernetes带有Swagger规范(1.2,而不是最新版本),您可以使用swagger-codegen为其生成Python API客户端.
以下是使用https://generator.swagger.io生成Python API客户端的示例:
curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/swagger-spec/v1.json"}' https://generator.swagger.io/api/gen/clients/python
Run Code Online (Sandbox Code Playgroud)
返回带有URL的JSON以下载压缩的Python API客户端.
参考:https://github.com/swagger-api/swagger-codegen#online-generators
如果您需要有关swagger codegen或Python API客户端的帮助,请通过https://github.com/swagger-api/swagger-codegen/issues打开一张票
| 归档时间: |
|
| 查看次数: |
395 次 |
| 最近记录: |