Google Cloud Function中的openapi.yaml文件在哪里? [英] Where is openapi.yaml file in Google Cloud Function?

查看:87
本文介绍了Google Cloud Function中的openapi.yaml文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个简单的Google Cloud Function,并希望

I created a simple Google Cloud Function and would like to restrict API access with API keys. It says I need to edit openapi.yaml file. I am not able to find it.

在哪里可以找到Google Cloud项目的openapi.yaml文件?

Where I can find openapi.yaml file for Google Cloud project?

推荐答案

看看此文档:

https://cloud.google.com /endpoints/docs/openapi/get-started-cloud-functions#endpoints_configure

该文件对应于手动定义的OpenAPI(以前称为Swagger)定义,该定义描述(在这种情况下)您的Cloud Function.

The file corresponds to a manually-defined OpenAPI (formerly Swagger) definition that describes (in this case) your Cloud Function.

您应该能够使用该部分中显示的示例作为您要部署到服务管理的特定于您的Cloud Function的Open API文件的基础.

You should be able to use the example shown in that section as the basis for a Open API file specific to your Cloud Function that you will deploy to Service Management.

这篇关于Google Cloud Function中的openapi.yaml文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆