File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ export default class ScfEntity extends BaseEntity {
200
200
delete reqInputs . InstallDependency ;
201
201
delete reqInputs . DeployMode ;
202
202
delete reqInputs . ProtocolType ;
203
+ delete reqInputs . NodeType ;
204
+ delete reqInputs . NodeSpec ;
203
205
204
206
// +++++++++++++++++++++++
205
207
// FIXME: 以下是函数绑定层逻辑,当函数有一个层,更新的时候想删除,需要传递参数 Layers 不能为空,必须包含特殊元素:{ LayerName: '', LayerVersion: 0 }
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ export interface BaseFunctionConfig {
65
65
InstallDependency ?: 'TRUE' | 'FALSE' ;
66
66
ProtocolType ?: string ;
67
67
ProtocolParams ?: ProtocolParams ;
68
+ NodeType ?: string ;
69
+ NodeSpec ?: string ;
68
70
}
69
71
70
72
export interface TriggerType {
@@ -164,6 +166,8 @@ export interface ScfCreateFunctionInputs {
164
166
publicAccess ?: boolean ;
165
167
eip ?: boolean ;
166
168
l5Enable ?: boolean ;
169
+ nodeType ?: string ;
170
+ nodeSpec ?: string ;
167
171
168
172
role ?: string ;
169
173
description ?: string ;
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => {
22
22
InstallDependency : inputs . installDependency === true ? 'TRUE' : 'FALSE' ,
23
23
} ;
24
24
25
+ if ( inputs . nodeType ) {
26
+ functionInputs . NodeType = inputs . nodeType ;
27
+ }
28
+
29
+ if ( inputs . nodeSpec ) {
30
+ functionInputs . NodeSpec = inputs . nodeSpec ;
31
+ }
32
+
25
33
if ( inputs . initTimeout ) {
26
34
functionInputs . InitTimeout = inputs . initTimeout ;
27
35
}
You can’t perform that action at this time.
0 commit comments