@alicloud/sae20190506 1.20.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +79 -0
- package/dist/client.js +172 -0
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +222 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/sae20190506",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
|
-
"@alicloud/tea-util": "^1.4.
|
|
23
|
+
"@alicloud/tea-util": "^1.4.4",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.1",
|
|
25
|
-
"@alicloud/openapi-util": "^0.2.
|
|
25
|
+
"@alicloud/openapi-util": "^0.2.9",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -568,6 +568,7 @@ export class CreateApplicationRequest extends $tea.Model {
|
|
|
568
568
|
vpcId?: string;
|
|
569
569
|
warStartOptions?: string;
|
|
570
570
|
webContainer?: string;
|
|
571
|
+
mseFeatureConfig?: string;
|
|
571
572
|
static names(): { [key: string]: string } {
|
|
572
573
|
return {
|
|
573
574
|
acrAssumeRoleArn: 'AcrAssumeRoleArn',
|
|
@@ -622,6 +623,7 @@ export class CreateApplicationRequest extends $tea.Model {
|
|
|
622
623
|
vpcId: 'VpcId',
|
|
623
624
|
warStartOptions: 'WarStartOptions',
|
|
624
625
|
webContainer: 'WebContainer',
|
|
626
|
+
mseFeatureConfig: 'mseFeatureConfig',
|
|
625
627
|
};
|
|
626
628
|
}
|
|
627
629
|
|
|
@@ -679,6 +681,7 @@ export class CreateApplicationRequest extends $tea.Model {
|
|
|
679
681
|
vpcId: 'string',
|
|
680
682
|
warStartOptions: 'string',
|
|
681
683
|
webContainer: 'string',
|
|
684
|
+
mseFeatureConfig: 'string',
|
|
682
685
|
};
|
|
683
686
|
}
|
|
684
687
|
|
|
@@ -1714,6 +1717,7 @@ export class DeployApplicationRequest extends $tea.Model {
|
|
|
1714
1717
|
minReadyInstances?: number;
|
|
1715
1718
|
mountDesc?: string;
|
|
1716
1719
|
mountHost?: string;
|
|
1720
|
+
mseFeatureConfig?: string;
|
|
1717
1721
|
nasId?: string;
|
|
1718
1722
|
openCollectToKafka?: boolean;
|
|
1719
1723
|
ossAkId?: string;
|
|
@@ -1764,6 +1768,7 @@ export class DeployApplicationRequest extends $tea.Model {
|
|
|
1764
1768
|
minReadyInstances: 'MinReadyInstances',
|
|
1765
1769
|
mountDesc: 'MountDesc',
|
|
1766
1770
|
mountHost: 'MountHost',
|
|
1771
|
+
mseFeatureConfig: 'MseFeatureConfig',
|
|
1767
1772
|
nasId: 'NasId',
|
|
1768
1773
|
openCollectToKafka: 'OpenCollectToKafka',
|
|
1769
1774
|
ossAkId: 'OssAkId',
|
|
@@ -1817,6 +1822,7 @@ export class DeployApplicationRequest extends $tea.Model {
|
|
|
1817
1822
|
minReadyInstances: 'number',
|
|
1818
1823
|
mountDesc: 'string',
|
|
1819
1824
|
mountHost: 'string',
|
|
1825
|
+
mseFeatureConfig: 'string',
|
|
1820
1826
|
nasId: 'string',
|
|
1821
1827
|
openCollectToKafka: 'boolean',
|
|
1822
1828
|
ossAkId: 'string',
|
|
@@ -2900,10 +2906,12 @@ export class DescribeConfigMapResponse extends $tea.Model {
|
|
|
2900
2906
|
export class DescribeConfigurationPriceRequest extends $tea.Model {
|
|
2901
2907
|
cpu?: number;
|
|
2902
2908
|
memory?: number;
|
|
2909
|
+
workload?: string;
|
|
2903
2910
|
static names(): { [key: string]: string } {
|
|
2904
2911
|
return {
|
|
2905
2912
|
cpu: 'Cpu',
|
|
2906
2913
|
memory: 'Memory',
|
|
2914
|
+
workload: 'Workload',
|
|
2907
2915
|
};
|
|
2908
2916
|
}
|
|
2909
2917
|
|
|
@@ -2911,6 +2919,7 @@ export class DescribeConfigurationPriceRequest extends $tea.Model {
|
|
|
2911
2919
|
return {
|
|
2912
2920
|
cpu: 'number',
|
|
2913
2921
|
memory: 'number',
|
|
2922
|
+
workload: 'string',
|
|
2914
2923
|
};
|
|
2915
2924
|
}
|
|
2916
2925
|
|
|
@@ -3950,6 +3959,108 @@ export class EnableApplicationScalingRuleResponse extends $tea.Model {
|
|
|
3950
3959
|
}
|
|
3951
3960
|
}
|
|
3952
3961
|
|
|
3962
|
+
export class ExecJobRequest extends $tea.Model {
|
|
3963
|
+
appId?: string;
|
|
3964
|
+
command?: string;
|
|
3965
|
+
commandArgs?: string;
|
|
3966
|
+
envs?: string;
|
|
3967
|
+
eventId?: string;
|
|
3968
|
+
jarStartArgs?: string;
|
|
3969
|
+
jarStartOptions?: string;
|
|
3970
|
+
warStartOptions?: string;
|
|
3971
|
+
static names(): { [key: string]: string } {
|
|
3972
|
+
return {
|
|
3973
|
+
appId: 'AppId',
|
|
3974
|
+
command: 'Command',
|
|
3975
|
+
commandArgs: 'CommandArgs',
|
|
3976
|
+
envs: 'Envs',
|
|
3977
|
+
eventId: 'EventId',
|
|
3978
|
+
jarStartArgs: 'JarStartArgs',
|
|
3979
|
+
jarStartOptions: 'JarStartOptions',
|
|
3980
|
+
warStartOptions: 'WarStartOptions',
|
|
3981
|
+
};
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3984
|
+
static types(): { [key: string]: any } {
|
|
3985
|
+
return {
|
|
3986
|
+
appId: 'string',
|
|
3987
|
+
command: 'string',
|
|
3988
|
+
commandArgs: 'string',
|
|
3989
|
+
envs: 'string',
|
|
3990
|
+
eventId: 'string',
|
|
3991
|
+
jarStartArgs: 'string',
|
|
3992
|
+
jarStartOptions: 'string',
|
|
3993
|
+
warStartOptions: 'string',
|
|
3994
|
+
};
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
constructor(map?: { [key: string]: any }) {
|
|
3998
|
+
super(map);
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
|
|
4002
|
+
export class ExecJobResponseBody extends $tea.Model {
|
|
4003
|
+
code?: string;
|
|
4004
|
+
data?: ExecJobResponseBodyData;
|
|
4005
|
+
errorCode?: string;
|
|
4006
|
+
message?: string;
|
|
4007
|
+
requestId?: string;
|
|
4008
|
+
success?: boolean;
|
|
4009
|
+
traceId?: string;
|
|
4010
|
+
static names(): { [key: string]: string } {
|
|
4011
|
+
return {
|
|
4012
|
+
code: 'Code',
|
|
4013
|
+
data: 'Data',
|
|
4014
|
+
errorCode: 'ErrorCode',
|
|
4015
|
+
message: 'Message',
|
|
4016
|
+
requestId: 'RequestId',
|
|
4017
|
+
success: 'Success',
|
|
4018
|
+
traceId: 'TraceId',
|
|
4019
|
+
};
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
static types(): { [key: string]: any } {
|
|
4023
|
+
return {
|
|
4024
|
+
code: 'string',
|
|
4025
|
+
data: ExecJobResponseBodyData,
|
|
4026
|
+
errorCode: 'string',
|
|
4027
|
+
message: 'string',
|
|
4028
|
+
requestId: 'string',
|
|
4029
|
+
success: 'boolean',
|
|
4030
|
+
traceId: 'string',
|
|
4031
|
+
};
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
constructor(map?: { [key: string]: any }) {
|
|
4035
|
+
super(map);
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4039
|
+
export class ExecJobResponse extends $tea.Model {
|
|
4040
|
+
headers: { [key: string]: string };
|
|
4041
|
+
statusCode: number;
|
|
4042
|
+
body: ExecJobResponseBody;
|
|
4043
|
+
static names(): { [key: string]: string } {
|
|
4044
|
+
return {
|
|
4045
|
+
headers: 'headers',
|
|
4046
|
+
statusCode: 'statusCode',
|
|
4047
|
+
body: 'body',
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
static types(): { [key: string]: any } {
|
|
4052
|
+
return {
|
|
4053
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4054
|
+
statusCode: 'number',
|
|
4055
|
+
body: ExecJobResponseBody,
|
|
4056
|
+
};
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
constructor(map?: { [key: string]: any }) {
|
|
4060
|
+
super(map);
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
|
|
3953
4064
|
export class ListAppEventsRequest extends $tea.Model {
|
|
3954
4065
|
appId?: string;
|
|
3955
4066
|
currentPage?: number;
|
|
@@ -7678,6 +7789,7 @@ export class DescribeApplicationConfigResponseBodyData extends $tea.Model {
|
|
|
7678
7789
|
mountDesc?: DescribeApplicationConfigResponseBodyDataMountDesc[];
|
|
7679
7790
|
mountHost?: string;
|
|
7680
7791
|
mseApplicationId?: string;
|
|
7792
|
+
mseFeatureConfig?: string;
|
|
7681
7793
|
namespaceId?: string;
|
|
7682
7794
|
nasId?: string;
|
|
7683
7795
|
ossAkId?: string;
|
|
@@ -7736,6 +7848,7 @@ export class DescribeApplicationConfigResponseBodyData extends $tea.Model {
|
|
|
7736
7848
|
mountDesc: 'MountDesc',
|
|
7737
7849
|
mountHost: 'MountHost',
|
|
7738
7850
|
mseApplicationId: 'MseApplicationId',
|
|
7851
|
+
mseFeatureConfig: 'MseFeatureConfig',
|
|
7739
7852
|
namespaceId: 'NamespaceId',
|
|
7740
7853
|
nasId: 'NasId',
|
|
7741
7854
|
ossAkId: 'OssAkId',
|
|
@@ -7797,6 +7910,7 @@ export class DescribeApplicationConfigResponseBodyData extends $tea.Model {
|
|
|
7797
7910
|
mountDesc: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataMountDesc },
|
|
7798
7911
|
mountHost: 'string',
|
|
7799
7912
|
mseApplicationId: 'string',
|
|
7913
|
+
mseFeatureConfig: 'string',
|
|
7800
7914
|
namespaceId: 'string',
|
|
7801
7915
|
nasId: 'string',
|
|
7802
7916
|
ossAkId: 'string',
|
|
@@ -7927,6 +8041,7 @@ export class DescribeApplicationImageResponseBodyData extends $tea.Model {
|
|
|
7927
8041
|
|
|
7928
8042
|
export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.Model {
|
|
7929
8043
|
createTimeStamp?: number;
|
|
8044
|
+
debugStatus?: boolean;
|
|
7930
8045
|
eip?: string;
|
|
7931
8046
|
finishTimeStamp?: number;
|
|
7932
8047
|
groupId?: string;
|
|
@@ -7941,6 +8056,7 @@ export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.
|
|
|
7941
8056
|
static names(): { [key: string]: string } {
|
|
7942
8057
|
return {
|
|
7943
8058
|
createTimeStamp: 'CreateTimeStamp',
|
|
8059
|
+
debugStatus: 'DebugStatus',
|
|
7944
8060
|
eip: 'Eip',
|
|
7945
8061
|
finishTimeStamp: 'FinishTimeStamp',
|
|
7946
8062
|
groupId: 'GroupId',
|
|
@@ -7958,6 +8074,7 @@ export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.
|
|
|
7958
8074
|
static types(): { [key: string]: any } {
|
|
7959
8075
|
return {
|
|
7960
8076
|
createTimeStamp: 'number',
|
|
8077
|
+
debugStatus: 'boolean',
|
|
7961
8078
|
eip: 'string',
|
|
7962
8079
|
finishTimeStamp: 'number',
|
|
7963
8080
|
groupId: 'string',
|
|
@@ -9245,11 +9362,13 @@ export class DescribeGreyTagRouteResponseBodyData extends $tea.Model {
|
|
|
9245
9362
|
export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
9246
9363
|
appId?: string;
|
|
9247
9364
|
appName?: string;
|
|
9365
|
+
backendProtocol?: string;
|
|
9248
9366
|
containerPort?: number;
|
|
9249
9367
|
static names(): { [key: string]: string } {
|
|
9250
9368
|
return {
|
|
9251
9369
|
appId: 'AppId',
|
|
9252
9370
|
appName: 'AppName',
|
|
9371
|
+
backendProtocol: 'BackendProtocol',
|
|
9253
9372
|
containerPort: 'ContainerPort',
|
|
9254
9373
|
};
|
|
9255
9374
|
}
|
|
@@ -9258,6 +9377,7 @@ export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
|
9258
9377
|
return {
|
|
9259
9378
|
appId: 'string',
|
|
9260
9379
|
appName: 'string',
|
|
9380
|
+
backendProtocol: 'string',
|
|
9261
9381
|
containerPort: 'number',
|
|
9262
9382
|
};
|
|
9263
9383
|
}
|
|
@@ -9270,6 +9390,7 @@ export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
|
9270
9390
|
export class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
9271
9391
|
appId?: string;
|
|
9272
9392
|
appName?: string;
|
|
9393
|
+
backendProtocol?: string;
|
|
9273
9394
|
containerPort?: number;
|
|
9274
9395
|
domain?: string;
|
|
9275
9396
|
path?: string;
|
|
@@ -9277,6 +9398,7 @@ export class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
|
9277
9398
|
return {
|
|
9278
9399
|
appId: 'AppId',
|
|
9279
9400
|
appName: 'AppName',
|
|
9401
|
+
backendProtocol: 'BackendProtocol',
|
|
9280
9402
|
containerPort: 'ContainerPort',
|
|
9281
9403
|
domain: 'Domain',
|
|
9282
9404
|
path: 'Path',
|
|
@@ -9287,6 +9409,7 @@ export class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
|
9287
9409
|
return {
|
|
9288
9410
|
appId: 'string',
|
|
9289
9411
|
appName: 'string',
|
|
9412
|
+
backendProtocol: 'string',
|
|
9290
9413
|
containerPort: 'number',
|
|
9291
9414
|
domain: 'string',
|
|
9292
9415
|
path: 'string',
|
|
@@ -9773,6 +9896,34 @@ export class DescribeRegionsResponseBodyRegions extends $tea.Model {
|
|
|
9773
9896
|
}
|
|
9774
9897
|
}
|
|
9775
9898
|
|
|
9899
|
+
export class ExecJobResponseBodyData extends $tea.Model {
|
|
9900
|
+
code?: string;
|
|
9901
|
+
data?: string;
|
|
9902
|
+
msg?: string;
|
|
9903
|
+
success?: string;
|
|
9904
|
+
static names(): { [key: string]: string } {
|
|
9905
|
+
return {
|
|
9906
|
+
code: 'Code',
|
|
9907
|
+
data: 'Data',
|
|
9908
|
+
msg: 'Msg',
|
|
9909
|
+
success: 'Success',
|
|
9910
|
+
};
|
|
9911
|
+
}
|
|
9912
|
+
|
|
9913
|
+
static types(): { [key: string]: any } {
|
|
9914
|
+
return {
|
|
9915
|
+
code: 'string',
|
|
9916
|
+
data: 'string',
|
|
9917
|
+
msg: 'string',
|
|
9918
|
+
success: 'string',
|
|
9919
|
+
};
|
|
9920
|
+
}
|
|
9921
|
+
|
|
9922
|
+
constructor(map?: { [key: string]: any }) {
|
|
9923
|
+
super(map);
|
|
9924
|
+
}
|
|
9925
|
+
}
|
|
9926
|
+
|
|
9776
9927
|
export class ListAppEventsResponseBodyDataAppEventEntity extends $tea.Model {
|
|
9777
9928
|
eventType?: string;
|
|
9778
9929
|
firstTimestamp?: string;
|
|
@@ -11629,6 +11780,10 @@ export default class Client extends OpenApi {
|
|
|
11629
11780
|
query["WebContainer"] = request.webContainer;
|
|
11630
11781
|
}
|
|
11631
11782
|
|
|
11783
|
+
if (!Util.isUnset(request.mseFeatureConfig)) {
|
|
11784
|
+
query["mseFeatureConfig"] = request.mseFeatureConfig;
|
|
11785
|
+
}
|
|
11786
|
+
|
|
11632
11787
|
let body : {[key: string ]: any} = { };
|
|
11633
11788
|
if (!Util.isUnset(request.acrInstanceId)) {
|
|
11634
11789
|
body["AcrInstanceId"] = request.acrInstanceId;
|
|
@@ -12231,6 +12386,10 @@ export default class Client extends OpenApi {
|
|
|
12231
12386
|
query["MountHost"] = request.mountHost;
|
|
12232
12387
|
}
|
|
12233
12388
|
|
|
12389
|
+
if (!Util.isUnset(request.mseFeatureConfig)) {
|
|
12390
|
+
query["MseFeatureConfig"] = request.mseFeatureConfig;
|
|
12391
|
+
}
|
|
12392
|
+
|
|
12234
12393
|
if (!Util.isUnset(request.nasId)) {
|
|
12235
12394
|
query["NasId"] = request.nasId;
|
|
12236
12395
|
}
|
|
@@ -12788,6 +12947,10 @@ export default class Client extends OpenApi {
|
|
|
12788
12947
|
query["Memory"] = request.memory;
|
|
12789
12948
|
}
|
|
12790
12949
|
|
|
12950
|
+
if (!Util.isUnset(request.workload)) {
|
|
12951
|
+
query["Workload"] = request.workload;
|
|
12952
|
+
}
|
|
12953
|
+
|
|
12791
12954
|
let req = new $OpenApi.OpenApiRequest({
|
|
12792
12955
|
headers: headers,
|
|
12793
12956
|
query: OpenApiUtil.query(query),
|
|
@@ -13204,6 +13367,65 @@ export default class Client extends OpenApi {
|
|
|
13204
13367
|
return $tea.cast<EnableApplicationScalingRuleResponse>(await this.callApi(params, req, runtime), new EnableApplicationScalingRuleResponse({}));
|
|
13205
13368
|
}
|
|
13206
13369
|
|
|
13370
|
+
async execJob(request: ExecJobRequest): Promise<ExecJobResponse> {
|
|
13371
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13372
|
+
let headers : {[key: string ]: string} = { };
|
|
13373
|
+
return await this.execJobWithOptions(request, headers, runtime);
|
|
13374
|
+
}
|
|
13375
|
+
|
|
13376
|
+
async execJobWithOptions(request: ExecJobRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecJobResponse> {
|
|
13377
|
+
Util.validateModel(request);
|
|
13378
|
+
let query : {[key: string ]: any} = { };
|
|
13379
|
+
if (!Util.isUnset(request.appId)) {
|
|
13380
|
+
query["AppId"] = request.appId;
|
|
13381
|
+
}
|
|
13382
|
+
|
|
13383
|
+
if (!Util.isUnset(request.command)) {
|
|
13384
|
+
query["Command"] = request.command;
|
|
13385
|
+
}
|
|
13386
|
+
|
|
13387
|
+
if (!Util.isUnset(request.commandArgs)) {
|
|
13388
|
+
query["CommandArgs"] = request.commandArgs;
|
|
13389
|
+
}
|
|
13390
|
+
|
|
13391
|
+
if (!Util.isUnset(request.envs)) {
|
|
13392
|
+
query["Envs"] = request.envs;
|
|
13393
|
+
}
|
|
13394
|
+
|
|
13395
|
+
if (!Util.isUnset(request.eventId)) {
|
|
13396
|
+
query["EventId"] = request.eventId;
|
|
13397
|
+
}
|
|
13398
|
+
|
|
13399
|
+
if (!Util.isUnset(request.jarStartArgs)) {
|
|
13400
|
+
query["JarStartArgs"] = request.jarStartArgs;
|
|
13401
|
+
}
|
|
13402
|
+
|
|
13403
|
+
if (!Util.isUnset(request.jarStartOptions)) {
|
|
13404
|
+
query["JarStartOptions"] = request.jarStartOptions;
|
|
13405
|
+
}
|
|
13406
|
+
|
|
13407
|
+
if (!Util.isUnset(request.warStartOptions)) {
|
|
13408
|
+
query["WarStartOptions"] = request.warStartOptions;
|
|
13409
|
+
}
|
|
13410
|
+
|
|
13411
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13412
|
+
headers: headers,
|
|
13413
|
+
query: OpenApiUtil.query(query),
|
|
13414
|
+
});
|
|
13415
|
+
let params = new $OpenApi.Params({
|
|
13416
|
+
action: "ExecJob",
|
|
13417
|
+
version: "2019-05-06",
|
|
13418
|
+
protocol: "HTTPS",
|
|
13419
|
+
pathname: `/pop/v1/sam/job/execJob`,
|
|
13420
|
+
method: "GET",
|
|
13421
|
+
authType: "AK",
|
|
13422
|
+
style: "ROA",
|
|
13423
|
+
reqBodyType: "json",
|
|
13424
|
+
bodyType: "json",
|
|
13425
|
+
});
|
|
13426
|
+
return $tea.cast<ExecJobResponse>(await this.callApi(params, req, runtime), new ExecJobResponse({}));
|
|
13427
|
+
}
|
|
13428
|
+
|
|
13207
13429
|
async listAppEvents(request: ListAppEventsRequest): Promise<ListAppEventsResponse> {
|
|
13208
13430
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13209
13431
|
let headers : {[key: string ]: string} = { };
|