@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/sae20190506",
3
- "version": "1.20.1",
3
+ "version": "1.21.0",
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.0",
23
+ "@alicloud/tea-util": "^1.4.4",
24
24
  "@alicloud/openapi-client": "^0.4.1",
25
- "@alicloud/openapi-util": "^0.2.7",
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
@@ -2900,10 +2900,12 @@ export class DescribeConfigMapResponse extends $tea.Model {
2900
2900
  export class DescribeConfigurationPriceRequest extends $tea.Model {
2901
2901
  cpu?: number;
2902
2902
  memory?: number;
2903
+ workload?: string;
2903
2904
  static names(): { [key: string]: string } {
2904
2905
  return {
2905
2906
  cpu: 'Cpu',
2906
2907
  memory: 'Memory',
2908
+ workload: 'Workload',
2907
2909
  };
2908
2910
  }
2909
2911
 
@@ -2911,6 +2913,7 @@ export class DescribeConfigurationPriceRequest extends $tea.Model {
2911
2913
  return {
2912
2914
  cpu: 'number',
2913
2915
  memory: 'number',
2916
+ workload: 'string',
2914
2917
  };
2915
2918
  }
2916
2919
 
@@ -3950,6 +3953,108 @@ export class EnableApplicationScalingRuleResponse extends $tea.Model {
3950
3953
  }
3951
3954
  }
3952
3955
 
3956
+ export class ExecJobRequest extends $tea.Model {
3957
+ appId?: string;
3958
+ command?: string;
3959
+ commandArgs?: string;
3960
+ envs?: string;
3961
+ eventId?: string;
3962
+ jarStartArgs?: string;
3963
+ jarStartOptions?: string;
3964
+ warStartOptions?: string;
3965
+ static names(): { [key: string]: string } {
3966
+ return {
3967
+ appId: 'AppId',
3968
+ command: 'Command',
3969
+ commandArgs: 'CommandArgs',
3970
+ envs: 'Envs',
3971
+ eventId: 'EventId',
3972
+ jarStartArgs: 'JarStartArgs',
3973
+ jarStartOptions: 'JarStartOptions',
3974
+ warStartOptions: 'WarStartOptions',
3975
+ };
3976
+ }
3977
+
3978
+ static types(): { [key: string]: any } {
3979
+ return {
3980
+ appId: 'string',
3981
+ command: 'string',
3982
+ commandArgs: 'string',
3983
+ envs: 'string',
3984
+ eventId: 'string',
3985
+ jarStartArgs: 'string',
3986
+ jarStartOptions: 'string',
3987
+ warStartOptions: 'string',
3988
+ };
3989
+ }
3990
+
3991
+ constructor(map?: { [key: string]: any }) {
3992
+ super(map);
3993
+ }
3994
+ }
3995
+
3996
+ export class ExecJobResponseBody extends $tea.Model {
3997
+ code?: string;
3998
+ data?: string;
3999
+ errorCode?: string;
4000
+ message?: string;
4001
+ requestId?: string;
4002
+ success?: boolean;
4003
+ traceId?: string;
4004
+ static names(): { [key: string]: string } {
4005
+ return {
4006
+ code: 'Code',
4007
+ data: 'Data',
4008
+ errorCode: 'ErrorCode',
4009
+ message: 'Message',
4010
+ requestId: 'RequestId',
4011
+ success: 'Success',
4012
+ traceId: 'TraceId',
4013
+ };
4014
+ }
4015
+
4016
+ static types(): { [key: string]: any } {
4017
+ return {
4018
+ code: 'string',
4019
+ data: 'string',
4020
+ errorCode: 'string',
4021
+ message: 'string',
4022
+ requestId: 'string',
4023
+ success: 'boolean',
4024
+ traceId: 'string',
4025
+ };
4026
+ }
4027
+
4028
+ constructor(map?: { [key: string]: any }) {
4029
+ super(map);
4030
+ }
4031
+ }
4032
+
4033
+ export class ExecJobResponse extends $tea.Model {
4034
+ headers: { [key: string]: string };
4035
+ statusCode: number;
4036
+ body: ExecJobResponseBody;
4037
+ static names(): { [key: string]: string } {
4038
+ return {
4039
+ headers: 'headers',
4040
+ statusCode: 'statusCode',
4041
+ body: 'body',
4042
+ };
4043
+ }
4044
+
4045
+ static types(): { [key: string]: any } {
4046
+ return {
4047
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4048
+ statusCode: 'number',
4049
+ body: ExecJobResponseBody,
4050
+ };
4051
+ }
4052
+
4053
+ constructor(map?: { [key: string]: any }) {
4054
+ super(map);
4055
+ }
4056
+ }
4057
+
3953
4058
  export class ListAppEventsRequest extends $tea.Model {
3954
4059
  appId?: string;
3955
4060
  currentPage?: number;
@@ -7927,6 +8032,7 @@ export class DescribeApplicationImageResponseBodyData extends $tea.Model {
7927
8032
 
7928
8033
  export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.Model {
7929
8034
  createTimeStamp?: number;
8035
+ debugStatus?: boolean;
7930
8036
  eip?: string;
7931
8037
  finishTimeStamp?: number;
7932
8038
  groupId?: string;
@@ -7941,6 +8047,7 @@ export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.
7941
8047
  static names(): { [key: string]: string } {
7942
8048
  return {
7943
8049
  createTimeStamp: 'CreateTimeStamp',
8050
+ debugStatus: 'DebugStatus',
7944
8051
  eip: 'Eip',
7945
8052
  finishTimeStamp: 'FinishTimeStamp',
7946
8053
  groupId: 'GroupId',
@@ -7958,6 +8065,7 @@ export class DescribeApplicationInstancesResponseBodyDataInstances extends $tea.
7958
8065
  static types(): { [key: string]: any } {
7959
8066
  return {
7960
8067
  createTimeStamp: 'number',
8068
+ debugStatus: 'boolean',
7961
8069
  eip: 'string',
7962
8070
  finishTimeStamp: 'number',
7963
8071
  groupId: 'string',
@@ -9245,11 +9353,13 @@ export class DescribeGreyTagRouteResponseBodyData extends $tea.Model {
9245
9353
  export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
9246
9354
  appId?: string;
9247
9355
  appName?: string;
9356
+ backendProtocol?: string;
9248
9357
  containerPort?: number;
9249
9358
  static names(): { [key: string]: string } {
9250
9359
  return {
9251
9360
  appId: 'AppId',
9252
9361
  appName: 'AppName',
9362
+ backendProtocol: 'BackendProtocol',
9253
9363
  containerPort: 'ContainerPort',
9254
9364
  };
9255
9365
  }
@@ -9258,6 +9368,7 @@ export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
9258
9368
  return {
9259
9369
  appId: 'string',
9260
9370
  appName: 'string',
9371
+ backendProtocol: 'string',
9261
9372
  containerPort: 'number',
9262
9373
  };
9263
9374
  }
@@ -9270,6 +9381,7 @@ export class DescribeIngressResponseBodyDataDefaultRule extends $tea.Model {
9270
9381
  export class DescribeIngressResponseBodyDataRules extends $tea.Model {
9271
9382
  appId?: string;
9272
9383
  appName?: string;
9384
+ backendProtocol?: string;
9273
9385
  containerPort?: number;
9274
9386
  domain?: string;
9275
9387
  path?: string;
@@ -9277,6 +9389,7 @@ export class DescribeIngressResponseBodyDataRules extends $tea.Model {
9277
9389
  return {
9278
9390
  appId: 'AppId',
9279
9391
  appName: 'AppName',
9392
+ backendProtocol: 'BackendProtocol',
9280
9393
  containerPort: 'ContainerPort',
9281
9394
  domain: 'Domain',
9282
9395
  path: 'Path',
@@ -9287,6 +9400,7 @@ export class DescribeIngressResponseBodyDataRules extends $tea.Model {
9287
9400
  return {
9288
9401
  appId: 'string',
9289
9402
  appName: 'string',
9403
+ backendProtocol: 'string',
9290
9404
  containerPort: 'number',
9291
9405
  domain: 'string',
9292
9406
  path: 'string',
@@ -12788,6 +12902,10 @@ export default class Client extends OpenApi {
12788
12902
  query["Memory"] = request.memory;
12789
12903
  }
12790
12904
 
12905
+ if (!Util.isUnset(request.workload)) {
12906
+ query["Workload"] = request.workload;
12907
+ }
12908
+
12791
12909
  let req = new $OpenApi.OpenApiRequest({
12792
12910
  headers: headers,
12793
12911
  query: OpenApiUtil.query(query),
@@ -13204,6 +13322,65 @@ export default class Client extends OpenApi {
13204
13322
  return $tea.cast<EnableApplicationScalingRuleResponse>(await this.callApi(params, req, runtime), new EnableApplicationScalingRuleResponse({}));
13205
13323
  }
13206
13324
 
13325
+ async execJob(request: ExecJobRequest): Promise<ExecJobResponse> {
13326
+ let runtime = new $Util.RuntimeOptions({ });
13327
+ let headers : {[key: string ]: string} = { };
13328
+ return await this.execJobWithOptions(request, headers, runtime);
13329
+ }
13330
+
13331
+ async execJobWithOptions(request: ExecJobRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecJobResponse> {
13332
+ Util.validateModel(request);
13333
+ let query : {[key: string ]: any} = { };
13334
+ if (!Util.isUnset(request.appId)) {
13335
+ query["AppId"] = request.appId;
13336
+ }
13337
+
13338
+ if (!Util.isUnset(request.command)) {
13339
+ query["Command"] = request.command;
13340
+ }
13341
+
13342
+ if (!Util.isUnset(request.commandArgs)) {
13343
+ query["CommandArgs"] = request.commandArgs;
13344
+ }
13345
+
13346
+ if (!Util.isUnset(request.envs)) {
13347
+ query["Envs"] = request.envs;
13348
+ }
13349
+
13350
+ if (!Util.isUnset(request.eventId)) {
13351
+ query["EventId"] = request.eventId;
13352
+ }
13353
+
13354
+ if (!Util.isUnset(request.jarStartArgs)) {
13355
+ query["JarStartArgs"] = request.jarStartArgs;
13356
+ }
13357
+
13358
+ if (!Util.isUnset(request.jarStartOptions)) {
13359
+ query["JarStartOptions"] = request.jarStartOptions;
13360
+ }
13361
+
13362
+ if (!Util.isUnset(request.warStartOptions)) {
13363
+ query["WarStartOptions"] = request.warStartOptions;
13364
+ }
13365
+
13366
+ let req = new $OpenApi.OpenApiRequest({
13367
+ headers: headers,
13368
+ query: OpenApiUtil.query(query),
13369
+ });
13370
+ let params = new $OpenApi.Params({
13371
+ action: "ExecJob",
13372
+ version: "2019-05-06",
13373
+ protocol: "HTTPS",
13374
+ pathname: `/pop/v1/sam/job/execJob`,
13375
+ method: "GET",
13376
+ authType: "AK",
13377
+ style: "ROA",
13378
+ reqBodyType: "json",
13379
+ bodyType: "json",
13380
+ });
13381
+ return $tea.cast<ExecJobResponse>(await this.callApi(params, req, runtime), new ExecJobResponse({}));
13382
+ }
13383
+
13207
13384
  async listAppEvents(request: ListAppEventsRequest): Promise<ListAppEventsResponse> {
13208
13385
  let runtime = new $Util.RuntimeOptions({ });
13209
13386
  let headers : {[key: string ]: string} = { };