From f624ee07837a21791863c3e40d10496c335c8ab8 Mon Sep 17 00:00:00 2001 From: Leospard <694963063@qq.com> Date: Mon, 14 Nov 2022 16:37:47 +0800 Subject: [PATCH 1/2] update Version --- .../kafka-producer-golang/publish.yaml | 2 +- .../kafka-trigger-golang/publish.yaml | 2 +- .../timer-trigger-golang/publish.yaml | 2 +- .../kafka-producer-java/publish.yaml | 2 +- .../kafka-trigger-java/publish.yaml | 2 +- .../timer-trigger-java/publish.yaml | 2 +- .../kafka-producer-nodejs/publish.yaml | 2 +- .../kafka-trigger-nodejs/publish.yaml | 2 +- .../timer-trigger-nodejs/publish.yaml | 2 +- .../kafka-trigger-python/publish.yaml | 2 +- .../timer-trigger-python/publish.yaml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-producer-golang/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-producer-golang/publish.yaml index 7047817e..73fa30e9 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-producer-golang/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-producer-golang/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-producer-fc-event-golang Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-trigger-golang/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-trigger-golang/publish.yaml index ceac509e..c30b8d92 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-trigger-golang/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-golang/kafka-trigger-golang/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-trigger-fc-event-golang Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-golang/timer-trigger-golang/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-golang/timer-trigger-golang/publish.yaml index d372d2fa..a2e96714 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-golang/timer-trigger-golang/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-golang/timer-trigger-golang/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: timer-trigger-fc-event-golang Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-java/kafka-producer-java/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-java/kafka-producer-java/publish.yaml index 53e11dfd..f3af8273 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-java/kafka-producer-java/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-java/kafka-producer-java/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-producer-fc-event-java11 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-java/kafka-trigger-java/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-java/kafka-trigger-java/publish.yaml index f12d8746..2042eab3 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-java/kafka-trigger-java/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-java/kafka-trigger-java/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-trigger-fc-event-java11 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-java/timer-trigger-java/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-java/timer-trigger-java/publish.yaml index be7cf7a9..fba32380 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-java/timer-trigger-java/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-java/timer-trigger-java/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: timer-trigger-fc-event-java11 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-producer-nodejs/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-producer-nodejs/publish.yaml index 93b5200d..7aa16381 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-producer-nodejs/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-producer-nodejs/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-producer-fc-event-nodejs14 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-trigger-nodejs/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-trigger-nodejs/publish.yaml index 85c08513..2d26dea5 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-trigger-nodejs/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-nodejs/kafka-trigger-nodejs/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-trigger-fc-event-nodejs14 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-nodejs/timer-trigger-nodejs/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-nodejs/timer-trigger-nodejs/publish.yaml index 83bb88bd..f4c3e9ec 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-nodejs/timer-trigger-nodejs/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-nodejs/timer-trigger-nodejs/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: timer-trigger-fc-event-nodejs14 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-trigger-python/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-trigger-python/publish.yaml index 6b04e159..7f05f2b2 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-trigger-python/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-trigger-python/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: kafka-trigger-fc-event-python3 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/timer-trigger-python/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-python/timer-trigger-python/publish.yaml index c6ccd824..f7c7915b 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/timer-trigger-python/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-python/timer-trigger-python/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: timer-trigger-fc-event-python3 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: From 1677ef2daefd831d4f0f6fe823dbeb4a7e9ad5d3 Mon Sep 17 00:00:00 2001 From: Leospard <694963063@qq.com> Date: Mon, 14 Nov 2022 17:13:02 +0800 Subject: [PATCH 2/2] add python3.9 kafka producer --- .../kafka-producer-python3.9/README-en.md | 6 +++--- .../kafka-producer-python3.9/README.md | 6 +++--- .../kafka-producer-python3.9/publish.yaml | 8 ++++---- .../kafka-producer-python3.9/src/README-en.md | 4 ++-- .../kafka-producer-python3.9/src/README.md | 4 ++-- .../kafka-producer-python3.9/src/s.yaml | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README-en.md b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README-en.md index 1ac567c9..55e00881 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README-en.md +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README-en.md @@ -1,4 +1,4 @@ -# kafka-producer-fc-event-python3 help documentation +# kafka-producer-fc-event-python3.9 help documentation

@@ -85,9 +85,9 @@ Using this item, verify that your operational account has the following product - Deploy via [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install): - [Install Serverless Devs Cli Developer Tools](https://www.serverless-devs.com/serverless-devs/install), and perform [Authorization Information Configuration](https://www.serverless-devs.com/ fc/config); - - Initialize the project: `s init kafka-producer-fc-event-python3 -d kafka-producer-fc-event-python3` + - Initialize the project: `s init kafka-producer-fc-event-python39 -d kafka-producer-fc-event-python39` - Fill in the parameters described in the above modules - - Go to the project directory, `cd kafka-producer-fc-event-python3` + - Go to the project directory, `cd kafka-producer-fc-event-python39` - Do project deployment: `s deploy -y` - local debugging - Enter the application project project and execute the following command: `s invoke -e '{"Key": "test python3 kafka producer"}'`. diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README.md b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README.md index c67c317c..6e358d23 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README.md +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/README.md @@ -1,4 +1,4 @@ -# kafka-producer-fc-event-python3 帮助文档 +# kafka-producer-fc-event-python3.9 帮助文档

@@ -84,9 +84,9 @@ - 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署: - [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://www.serverless-devs.com/fc/config) ; - - 初始化项目:`s init kafka-producer-fc-event-python3 -d kafka-producer-fc-event-python3` + - 初始化项目:`s init kafka-producer-fc-event-python39 -d kafka-producer-fc-event-python39` - 填入在以上模块介绍的参数 - - 进入项目目录,`cd kafka-producer-fc-event-python3` + - 进入项目目录,`cd kafka-producer-fc-event-python39` - 进行项目部署: `s deploy -y` - 本地调试 - 进入应用项目工程下,执行下面命令:`s invoke -e '{"Key": "test python3 kafka producer"}'`。 diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/publish.yaml b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/publish.yaml index dcb3378c..46b938ba 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/publish.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/publish.yaml @@ -1,8 +1,8 @@ Type: Application -Name: kafka-producer-fc-event-python3 +Name: kafka-producer-fc-event-python39 Provider: - 阿里云 -Version: dev +Version: 0.0.1 Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算 HomePage: https://github.com/devsapp/start-fc Tags: @@ -11,7 +11,7 @@ Tags: Category: 新手入门 Service: 函数计算: - Runtime: Python3 + Runtime: Python3.9 Authorities: - AliyunFCFullAccess - AliyunKafkaFullAccess @@ -62,7 +62,7 @@ Parameters: functionName: title: 函数名 type: string - default: kafka-producer-event-function-python3 + default: kafka-producer-event-function-python39 description: 数据预处理函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-128 之间 vpcId: title: kafka 实例所在 vpc id diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README-en.md b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README-en.md index 208e5c3e..4918ad73 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README-en.md +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README-en.md @@ -1,4 +1,4 @@ -# Python3 Kafka message queue producer example +# Python3.9 Kafka message queue producer example This example shows you the Python [Message Queue Kafka](https://help.aliyun.com/document_detail/68151.html?spm=5176.167616.J_5253785160.5.2dfe6feexRPqMj) producer example. (See Kafka Trigger Example for Consumer Example) @@ -53,7 +53,7 @@ When creating a service, select AliyunFcDefaultRole in `Service Role` in `Advanc - Select `Create from scratch with standard Runtime` - Fill in the function name - Select the code upload method `Upload code via zip package` to upload the corresponding code zip package - - Select the operating environment Python3.6 + - Select the operating environment Python3.9 - Select function trigger method: trigger by event request - Use default for other settings diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README.md b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README.md index 3502a42b..7bfb6ab0 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README.md +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/README.md @@ -1,4 +1,4 @@ -# Python3 Kafka消息队列生产者示例 +# Python3.9 Kafka消息队列生产者示例 本示例为您展示了 Python 的 [消息队列Kafka](https://help.aliyun.com/document_detail/68151.html?spm=5176.167616.J_5253785160.5.2dfe6feexRPqMj) 生产者示例。(消费者示例见Kafka触发器示例) @@ -53,7 +53,7 @@ zip code.zip -r ./* - 选择 `使用标准 Runtime 从零创建` - 填入函数名称 - 代码上传方式选择`通过zip包上传代码`上传相应代码压缩包 - - 选择运行环境Python3.6 + - 选择运行环境Python3.9 - 选择函数触发方式:通过事件请求触发 - 其他设置使用默认 diff --git a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/s.yaml b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/s.yaml index 86196d2d..5fb90609 100644 --- a/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/s.yaml +++ b/quick-start-sample-codes/quick-start-sample-codes-python/kafka-producer-python3.9/src/s.yaml @@ -40,7 +40,7 @@ services: function: name: "{{functionName}}" description: 'kafka producer by serverless devs' - runtime: python3 + runtime: python3.9 codeUri: ./code handler: index.handler memorySize: 128