将 OpenAPI 规范重新部署到 App Engine 标准环境中

Redeploying OpenAPI spec into App Engine standard environment

当我对 OpenAPI 规范进行一些更改时,不涉及任何代码更改,我是否需要随着新规范重新部署代码?

当我使用 gcloud service-management deploy 命令部署 OpenAPI 规范时,我返回它的输出新服务配置版本,我应该将其设置为 app.yaml 文件中的 ENDPOINTS_SERVICE_VERSION 参数。

我不确定,但看起来我每次部署新版本的 OpenAPI 规范时都必须重新部署应用程序,即使应用程序代码没有更改,我仍然需要将其指向正确的位置具有新 ENDPOINTS_SERVICE_VERSION 值的服务配置版本,对吗?

如果是这样,那么它与 "Redeployment" 部分下 AE flex 环境的 How API Deployment Works 文档中描述的内容不同,其中描述如下:

You can use the gcloud service-management deploy command to update just the API specification without redeploying your backend API server code or the Extensible Service Proxy. This is useful if you are changing a configuration-only detail.

When you change the API specification, the Service Control API backing your running service instances will pick up the change because as it depends on the same service configuration.

也许有人可以帮助阐明在 AE 标准环境下它究竟是如何工作的?

您在使用 Endpoints Frameworks 吗?如果是这样,那么您必须在制作新的服务配置版本时部署该应用程序,因为正如您提到的,app.yaml 指定要使用的服务配置。