@alicloud/sae20190506 1.20.1 → 1.21.0
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 +61 -0
- package/dist/client.js +138 -0
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +177 -0
package/dist/client.d.ts
CHANGED
|
@@ -1559,6 +1559,7 @@ export declare class DescribeConfigMapResponse extends $tea.Model {
|
|
|
1559
1559
|
export declare class DescribeConfigurationPriceRequest extends $tea.Model {
|
|
1560
1560
|
cpu?: number;
|
|
1561
1561
|
memory?: number;
|
|
1562
|
+
workload?: string;
|
|
1562
1563
|
static names(): {
|
|
1563
1564
|
[key: string]: string;
|
|
1564
1565
|
};
|
|
@@ -2156,6 +2157,59 @@ export declare class EnableApplicationScalingRuleResponse extends $tea.Model {
|
|
|
2156
2157
|
[key: string]: any;
|
|
2157
2158
|
});
|
|
2158
2159
|
}
|
|
2160
|
+
export declare class ExecJobRequest extends $tea.Model {
|
|
2161
|
+
appId?: string;
|
|
2162
|
+
command?: string;
|
|
2163
|
+
commandArgs?: string;
|
|
2164
|
+
envs?: string;
|
|
2165
|
+
eventId?: string;
|
|
2166
|
+
jarStartArgs?: string;
|
|
2167
|
+
jarStartOptions?: string;
|
|
2168
|
+
warStartOptions?: string;
|
|
2169
|
+
static names(): {
|
|
2170
|
+
[key: string]: string;
|
|
2171
|
+
};
|
|
2172
|
+
static types(): {
|
|
2173
|
+
[key: string]: any;
|
|
2174
|
+
};
|
|
2175
|
+
constructor(map?: {
|
|
2176
|
+
[key: string]: any;
|
|
2177
|
+
});
|
|
2178
|
+
}
|
|
2179
|
+
export declare class ExecJobResponseBody extends $tea.Model {
|
|
2180
|
+
code?: string;
|
|
2181
|
+
data?: string;
|
|
2182
|
+
errorCode?: string;
|
|
2183
|
+
message?: string;
|
|
2184
|
+
requestId?: string;
|
|
2185
|
+
success?: boolean;
|
|
2186
|
+
traceId?: string;
|
|
2187
|
+
static names(): {
|
|
2188
|
+
[key: string]: string;
|
|
2189
|
+
};
|
|
2190
|
+
static types(): {
|
|
2191
|
+
[key: string]: any;
|
|
2192
|
+
};
|
|
2193
|
+
constructor(map?: {
|
|
2194
|
+
[key: string]: any;
|
|
2195
|
+
});
|
|
2196
|
+
}
|
|
2197
|
+
export declare class ExecJobResponse extends $tea.Model {
|
|
2198
|
+
headers: {
|
|
2199
|
+
[key: string]: string;
|
|
2200
|
+
};
|
|
2201
|
+
statusCode: number;
|
|
2202
|
+
body: ExecJobResponseBody;
|
|
2203
|
+
static names(): {
|
|
2204
|
+
[key: string]: string;
|
|
2205
|
+
};
|
|
2206
|
+
static types(): {
|
|
2207
|
+
[key: string]: any;
|
|
2208
|
+
};
|
|
2209
|
+
constructor(map?: {
|
|
2210
|
+
[key: string]: any;
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2159
2213
|
export declare class ListAppEventsRequest extends $tea.Model {
|
|
2160
2214
|
appId?: string;
|
|
2161
2215
|
currentPage?: number;
|
|
@@ -4320,6 +4374,7 @@ export declare class DescribeApplicationImageResponseBodyData extends $tea.Model
|
|
|
4320
4374
|
}
|
|
4321
4375
|
export declare class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.Model {
|
|
4322
4376
|
createTimeStamp?: number;
|
|
4377
|
+
debugStatus?: boolean;
|
|
4323
4378
|
eip?: string;
|
|
4324
4379
|
finishTimeStamp?: number;
|
|
4325
4380
|
groupId?: string;
|
|
@@ -5000,6 +5055,7 @@ export declare class DescribeGreyTagRouteResponseBodyData extends $tea.Model {
|
|
|
5000
5055
|
export declare class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
5001
5056
|
appId?: string;
|
|
5002
5057
|
appName?: string;
|
|
5058
|
+
backendProtocol?: string;
|
|
5003
5059
|
containerPort?: number;
|
|
5004
5060
|
static names(): {
|
|
5005
5061
|
[key: string]: string;
|
|
@@ -5014,6 +5070,7 @@ export declare class DescribeIngressResponseBodyDataDefaultRule extends $tea.Mod
|
|
|
5014
5070
|
export declare class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
5015
5071
|
appId?: string;
|
|
5016
5072
|
appName?: string;
|
|
5073
|
+
backendProtocol?: string;
|
|
5017
5074
|
containerPort?: number;
|
|
5018
5075
|
domain?: string;
|
|
5019
5076
|
path?: string;
|
|
@@ -6206,6 +6263,10 @@ export default class Client extends OpenApi {
|
|
|
6206
6263
|
enableApplicationScalingRuleWithOptions(request: EnableApplicationScalingRuleRequest, headers: {
|
|
6207
6264
|
[key: string]: string;
|
|
6208
6265
|
}, runtime: $Util.RuntimeOptions): Promise<EnableApplicationScalingRuleResponse>;
|
|
6266
|
+
execJob(request: ExecJobRequest): Promise<ExecJobResponse>;
|
|
6267
|
+
execJobWithOptions(request: ExecJobRequest, headers: {
|
|
6268
|
+
[key: string]: string;
|
|
6269
|
+
}, runtime: $Util.RuntimeOptions): Promise<ExecJobResponse>;
|
|
6209
6270
|
listAppEvents(request: ListAppEventsRequest): Promise<ListAppEventsResponse>;
|
|
6210
6271
|
listAppEventsWithOptions(request: ListAppEventsRequest, headers: {
|
|
6211
6272
|
[key: string]: string;
|
package/dist/client.js
CHANGED
|
@@ -2263,12 +2263,14 @@ class DescribeConfigurationPriceRequest extends $tea.Model {
|
|
|
2263
2263
|
return {
|
|
2264
2264
|
cpu: 'Cpu',
|
|
2265
2265
|
memory: 'Memory',
|
|
2266
|
+
workload: 'Workload',
|
|
2266
2267
|
};
|
|
2267
2268
|
}
|
|
2268
2269
|
static types() {
|
|
2269
2270
|
return {
|
|
2270
2271
|
cpu: 'number',
|
|
2271
2272
|
memory: 'number',
|
|
2273
|
+
workload: 'string',
|
|
2272
2274
|
};
|
|
2273
2275
|
}
|
|
2274
2276
|
}
|
|
@@ -3087,6 +3089,84 @@ class EnableApplicationScalingRuleResponse extends $tea.Model {
|
|
|
3087
3089
|
}
|
|
3088
3090
|
}
|
|
3089
3091
|
exports.EnableApplicationScalingRuleResponse = EnableApplicationScalingRuleResponse;
|
|
3092
|
+
class ExecJobRequest extends $tea.Model {
|
|
3093
|
+
constructor(map) {
|
|
3094
|
+
super(map);
|
|
3095
|
+
}
|
|
3096
|
+
static names() {
|
|
3097
|
+
return {
|
|
3098
|
+
appId: 'AppId',
|
|
3099
|
+
command: 'Command',
|
|
3100
|
+
commandArgs: 'CommandArgs',
|
|
3101
|
+
envs: 'Envs',
|
|
3102
|
+
eventId: 'EventId',
|
|
3103
|
+
jarStartArgs: 'JarStartArgs',
|
|
3104
|
+
jarStartOptions: 'JarStartOptions',
|
|
3105
|
+
warStartOptions: 'WarStartOptions',
|
|
3106
|
+
};
|
|
3107
|
+
}
|
|
3108
|
+
static types() {
|
|
3109
|
+
return {
|
|
3110
|
+
appId: 'string',
|
|
3111
|
+
command: 'string',
|
|
3112
|
+
commandArgs: 'string',
|
|
3113
|
+
envs: 'string',
|
|
3114
|
+
eventId: 'string',
|
|
3115
|
+
jarStartArgs: 'string',
|
|
3116
|
+
jarStartOptions: 'string',
|
|
3117
|
+
warStartOptions: 'string',
|
|
3118
|
+
};
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
exports.ExecJobRequest = ExecJobRequest;
|
|
3122
|
+
class ExecJobResponseBody extends $tea.Model {
|
|
3123
|
+
constructor(map) {
|
|
3124
|
+
super(map);
|
|
3125
|
+
}
|
|
3126
|
+
static names() {
|
|
3127
|
+
return {
|
|
3128
|
+
code: 'Code',
|
|
3129
|
+
data: 'Data',
|
|
3130
|
+
errorCode: 'ErrorCode',
|
|
3131
|
+
message: 'Message',
|
|
3132
|
+
requestId: 'RequestId',
|
|
3133
|
+
success: 'Success',
|
|
3134
|
+
traceId: 'TraceId',
|
|
3135
|
+
};
|
|
3136
|
+
}
|
|
3137
|
+
static types() {
|
|
3138
|
+
return {
|
|
3139
|
+
code: 'string',
|
|
3140
|
+
data: 'string',
|
|
3141
|
+
errorCode: 'string',
|
|
3142
|
+
message: 'string',
|
|
3143
|
+
requestId: 'string',
|
|
3144
|
+
success: 'boolean',
|
|
3145
|
+
traceId: 'string',
|
|
3146
|
+
};
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
exports.ExecJobResponseBody = ExecJobResponseBody;
|
|
3150
|
+
class ExecJobResponse extends $tea.Model {
|
|
3151
|
+
constructor(map) {
|
|
3152
|
+
super(map);
|
|
3153
|
+
}
|
|
3154
|
+
static names() {
|
|
3155
|
+
return {
|
|
3156
|
+
headers: 'headers',
|
|
3157
|
+
statusCode: 'statusCode',
|
|
3158
|
+
body: 'body',
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
static types() {
|
|
3162
|
+
return {
|
|
3163
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3164
|
+
statusCode: 'number',
|
|
3165
|
+
body: ExecJobResponseBody,
|
|
3166
|
+
};
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
exports.ExecJobResponse = ExecJobResponse;
|
|
3090
3170
|
class ListAppEventsRequest extends $tea.Model {
|
|
3091
3171
|
constructor(map) {
|
|
3092
3172
|
super(map);
|
|
@@ -6194,6 +6274,7 @@ class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.Model {
|
|
|
6194
6274
|
static names() {
|
|
6195
6275
|
return {
|
|
6196
6276
|
createTimeStamp: 'CreateTimeStamp',
|
|
6277
|
+
debugStatus: 'DebugStatus',
|
|
6197
6278
|
eip: 'Eip',
|
|
6198
6279
|
finishTimeStamp: 'FinishTimeStamp',
|
|
6199
6280
|
groupId: 'GroupId',
|
|
@@ -6210,6 +6291,7 @@ class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.Model {
|
|
|
6210
6291
|
static types() {
|
|
6211
6292
|
return {
|
|
6212
6293
|
createTimeStamp: 'number',
|
|
6294
|
+
debugStatus: 'boolean',
|
|
6213
6295
|
eip: 'string',
|
|
6214
6296
|
finishTimeStamp: 'number',
|
|
6215
6297
|
groupId: 'string',
|
|
@@ -7213,6 +7295,7 @@ class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
|
7213
7295
|
return {
|
|
7214
7296
|
appId: 'AppId',
|
|
7215
7297
|
appName: 'AppName',
|
|
7298
|
+
backendProtocol: 'BackendProtocol',
|
|
7216
7299
|
containerPort: 'ContainerPort',
|
|
7217
7300
|
};
|
|
7218
7301
|
}
|
|
@@ -7220,6 +7303,7 @@ class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
|
|
|
7220
7303
|
return {
|
|
7221
7304
|
appId: 'string',
|
|
7222
7305
|
appName: 'string',
|
|
7306
|
+
backendProtocol: 'string',
|
|
7223
7307
|
containerPort: 'number',
|
|
7224
7308
|
};
|
|
7225
7309
|
}
|
|
@@ -7233,6 +7317,7 @@ class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
|
7233
7317
|
return {
|
|
7234
7318
|
appId: 'AppId',
|
|
7235
7319
|
appName: 'AppName',
|
|
7320
|
+
backendProtocol: 'BackendProtocol',
|
|
7236
7321
|
containerPort: 'ContainerPort',
|
|
7237
7322
|
domain: 'Domain',
|
|
7238
7323
|
path: 'Path',
|
|
@@ -7242,6 +7327,7 @@ class DescribeIngressResponseBodyDataRules extends $tea.Model {
|
|
|
7242
7327
|
return {
|
|
7243
7328
|
appId: 'string',
|
|
7244
7329
|
appName: 'string',
|
|
7330
|
+
backendProtocol: 'string',
|
|
7245
7331
|
containerPort: 'number',
|
|
7246
7332
|
domain: 'string',
|
|
7247
7333
|
path: 'string',
|
|
@@ -10067,6 +10153,9 @@ class Client extends openapi_client_1.default {
|
|
|
10067
10153
|
if (!tea_util_1.default.isUnset(request.memory)) {
|
|
10068
10154
|
query["Memory"] = request.memory;
|
|
10069
10155
|
}
|
|
10156
|
+
if (!tea_util_1.default.isUnset(request.workload)) {
|
|
10157
|
+
query["Workload"] = request.workload;
|
|
10158
|
+
}
|
|
10070
10159
|
let req = new $OpenApi.OpenApiRequest({
|
|
10071
10160
|
headers: headers,
|
|
10072
10161
|
query: openapi_util_1.default.query(query),
|
|
@@ -10442,6 +10531,55 @@ class Client extends openapi_client_1.default {
|
|
|
10442
10531
|
});
|
|
10443
10532
|
return $tea.cast(await this.callApi(params, req, runtime), new EnableApplicationScalingRuleResponse({}));
|
|
10444
10533
|
}
|
|
10534
|
+
async execJob(request) {
|
|
10535
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10536
|
+
let headers = {};
|
|
10537
|
+
return await this.execJobWithOptions(request, headers, runtime);
|
|
10538
|
+
}
|
|
10539
|
+
async execJobWithOptions(request, headers, runtime) {
|
|
10540
|
+
tea_util_1.default.validateModel(request);
|
|
10541
|
+
let query = {};
|
|
10542
|
+
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
10543
|
+
query["AppId"] = request.appId;
|
|
10544
|
+
}
|
|
10545
|
+
if (!tea_util_1.default.isUnset(request.command)) {
|
|
10546
|
+
query["Command"] = request.command;
|
|
10547
|
+
}
|
|
10548
|
+
if (!tea_util_1.default.isUnset(request.commandArgs)) {
|
|
10549
|
+
query["CommandArgs"] = request.commandArgs;
|
|
10550
|
+
}
|
|
10551
|
+
if (!tea_util_1.default.isUnset(request.envs)) {
|
|
10552
|
+
query["Envs"] = request.envs;
|
|
10553
|
+
}
|
|
10554
|
+
if (!tea_util_1.default.isUnset(request.eventId)) {
|
|
10555
|
+
query["EventId"] = request.eventId;
|
|
10556
|
+
}
|
|
10557
|
+
if (!tea_util_1.default.isUnset(request.jarStartArgs)) {
|
|
10558
|
+
query["JarStartArgs"] = request.jarStartArgs;
|
|
10559
|
+
}
|
|
10560
|
+
if (!tea_util_1.default.isUnset(request.jarStartOptions)) {
|
|
10561
|
+
query["JarStartOptions"] = request.jarStartOptions;
|
|
10562
|
+
}
|
|
10563
|
+
if (!tea_util_1.default.isUnset(request.warStartOptions)) {
|
|
10564
|
+
query["WarStartOptions"] = request.warStartOptions;
|
|
10565
|
+
}
|
|
10566
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10567
|
+
headers: headers,
|
|
10568
|
+
query: openapi_util_1.default.query(query),
|
|
10569
|
+
});
|
|
10570
|
+
let params = new $OpenApi.Params({
|
|
10571
|
+
action: "ExecJob",
|
|
10572
|
+
version: "2019-05-06",
|
|
10573
|
+
protocol: "HTTPS",
|
|
10574
|
+
pathname: `/pop/v1/sam/job/execJob`,
|
|
10575
|
+
method: "GET",
|
|
10576
|
+
authType: "AK",
|
|
10577
|
+
style: "ROA",
|
|
10578
|
+
reqBodyType: "json",
|
|
10579
|
+
bodyType: "json",
|
|
10580
|
+
});
|
|
10581
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ExecJobResponse({}));
|
|
10582
|
+
}
|
|
10445
10583
|
async listAppEvents(request) {
|
|
10446
10584
|
let runtime = new $Util.RuntimeOptions({});
|
|
10447
10585
|
let headers = {};
|