Skip to content

Commit 12a2411

Browse files
committed
fix schema.json
1 parent 287e380 commit 12a2411

File tree

3 files changed

+96
-9
lines changed

3 files changed

+96
-9
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Component
33
Name: fc3
44
Provider:
55
- 阿里云
6-
Version: 0.1.2
6+
Version: dev
77
Description: 阿里云函数计算全生命周期管理
88
HomePage: https://github.com/devsapp/fc3
99
Organization: 阿里云函数计算(FC)

src/schema.json

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,29 @@
884884
],
885885
"type": "string"
886886
},
887+
"IScalingConfig": {
888+
"properties": {
889+
"horizontalScalingPolicies": {
890+
"items": {
891+
"$ref": "#/definitions/ScalingPolicy"
892+
},
893+
"type": "array"
894+
},
895+
"minInstances": {
896+
"type": "number"
897+
},
898+
"residentPoolId": {
899+
"type": "string"
900+
},
901+
"scheduledPolicies": {
902+
"items": {
903+
"$ref": "#/definitions/ScheduledPolicy"
904+
},
905+
"type": "array"
906+
}
907+
},
908+
"type": "object"
909+
},
887910
"ISessionAffinityConfig": {
888911
"properties": {
889912
"affinityHeaderFieldName": {
@@ -1058,6 +1081,35 @@
10581081
],
10591082
"type": "object"
10601083
},
1084+
"ScalingPolicy": {
1085+
"properties": {
1086+
"endTime": {
1087+
"type": "string"
1088+
},
1089+
"maxInstances": {
1090+
"type": "number"
1091+
},
1092+
"metricTarget": {
1093+
"type": "number"
1094+
},
1095+
"metricType": {
1096+
"type": "string"
1097+
},
1098+
"minInstances": {
1099+
"type": "number"
1100+
},
1101+
"name": {
1102+
"type": "string"
1103+
},
1104+
"startTime": {
1105+
"type": "string"
1106+
},
1107+
"timeZone": {
1108+
"type": "string"
1109+
}
1110+
},
1111+
"type": "object"
1112+
},
10611113
"ScheduledAction": {
10621114
"properties": {
10631115
"endTime": {
@@ -1089,6 +1141,29 @@
10891141
],
10901142
"type": "object"
10911143
},
1144+
"ScheduledPolicy": {
1145+
"properties": {
1146+
"endTime": {
1147+
"type": "string"
1148+
},
1149+
"name": {
1150+
"type": "string"
1151+
},
1152+
"scheduleExpression": {
1153+
"type": "string"
1154+
},
1155+
"startTime": {
1156+
"type": "string"
1157+
},
1158+
"target": {
1159+
"type": "number"
1160+
},
1161+
"timeZone": {
1162+
"type": "string"
1163+
}
1164+
},
1165+
"type": "object"
1166+
},
10921167
"TargetTrackingPolicy": {
10931168
"properties": {
10941169
"endTime": {
@@ -1246,7 +1321,15 @@
12461321
]
12471322
},
12481323
"ossMountConfig": {
1249-
"$ref": "#/definitions/IOssMountConfig"
1324+
"anyOf": [
1325+
{
1326+
"$ref": "#/definitions/IOssMountConfig"
1327+
},
1328+
{
1329+
"const": "auto",
1330+
"type": "string"
1331+
}
1332+
]
12501333
},
12511334
"provisionConfig": {
12521335
"$ref": "#/definitions/IProvisionConfig"
@@ -1260,6 +1343,9 @@
12601343
"runtime": {
12611344
"$ref": "#/definitions/IRuntime"
12621345
},
1346+
"scalingConfig": {
1347+
"$ref": "#/definitions/IScalingConfig"
1348+
},
12631349
"sessionAffinity": {
12641350
"type": "string"
12651351
},
@@ -1273,6 +1359,7 @@
12731359
}
12741360
]
12751361
},
1362+
"supplement": {},
12761363
"tags": {
12771364
"items": {
12781365
"$ref": "#/definitions/ITags"

0 commit comments

Comments
 (0)