@alicloud/sae20190506 1.21.0 → 1.21.3

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 CHANGED
@@ -307,16 +307,12 @@ export declare class CreateApplicationRequest extends $tea.Model {
307
307
  jarStartOptions?: string;
308
308
  jdk?: string;
309
309
  kafkaConfigs?: string;
310
- kafkaEndpoint?: string;
311
- kafkaInstanceId?: string;
312
- kafkaLogfileConfig?: string;
313
310
  liveness?: string;
314
311
  memory?: number;
315
312
  mountDesc?: string;
316
313
  mountHost?: string;
317
314
  namespaceId?: string;
318
315
  nasId?: string;
319
- openCollectToKafka?: boolean;
320
316
  ossAkId?: string;
321
317
  ossAkSecret?: string;
322
318
  ossMountDescs?: string;
@@ -926,16 +922,12 @@ export declare class DeployApplicationRequest extends $tea.Model {
926
922
  jarStartOptions?: string;
927
923
  jdk?: string;
928
924
  kafkaConfigs?: string;
929
- kafkaEndpoint?: string;
930
- kafkaInstanceId?: string;
931
- kafkaLogfileConfig?: string;
932
925
  liveness?: string;
933
926
  minReadyInstanceRatio?: number;
934
927
  minReadyInstances?: number;
935
928
  mountDesc?: string;
936
929
  mountHost?: string;
937
930
  nasId?: string;
938
- openCollectToKafka?: boolean;
939
931
  ossAkId?: string;
940
932
  ossAkSecret?: string;
941
933
  ossMountDescs?: string;
@@ -1810,6 +1802,53 @@ export declare class DescribeInstanceSpecificationsResponse extends $tea.Model {
1810
1802
  [key: string]: any;
1811
1803
  });
1812
1804
  }
1805
+ export declare class DescribeJobStatusRequest extends $tea.Model {
1806
+ appId?: string;
1807
+ jobId?: string;
1808
+ static names(): {
1809
+ [key: string]: string;
1810
+ };
1811
+ static types(): {
1812
+ [key: string]: any;
1813
+ };
1814
+ constructor(map?: {
1815
+ [key: string]: any;
1816
+ });
1817
+ }
1818
+ export declare class DescribeJobStatusResponseBody extends $tea.Model {
1819
+ code?: string;
1820
+ data?: DescribeJobStatusResponseBodyData;
1821
+ errorCode?: string;
1822
+ message?: string;
1823
+ requestId?: string;
1824
+ success?: boolean;
1825
+ traceId?: string;
1826
+ static names(): {
1827
+ [key: string]: string;
1828
+ };
1829
+ static types(): {
1830
+ [key: string]: any;
1831
+ };
1832
+ constructor(map?: {
1833
+ [key: string]: any;
1834
+ });
1835
+ }
1836
+ export declare class DescribeJobStatusResponse extends $tea.Model {
1837
+ headers: {
1838
+ [key: string]: string;
1839
+ };
1840
+ statusCode: number;
1841
+ body: DescribeJobStatusResponseBody;
1842
+ static names(): {
1843
+ [key: string]: string;
1844
+ };
1845
+ static types(): {
1846
+ [key: string]: any;
1847
+ };
1848
+ constructor(map?: {
1849
+ [key: string]: any;
1850
+ });
1851
+ }
1813
1852
  export declare class DescribeNamespaceRequest extends $tea.Model {
1814
1853
  namespaceId?: string;
1815
1854
  static names(): {
@@ -2178,7 +2217,7 @@ export declare class ExecJobRequest extends $tea.Model {
2178
2217
  }
2179
2218
  export declare class ExecJobResponseBody extends $tea.Model {
2180
2219
  code?: string;
2181
- data?: string;
2220
+ data?: ExecJobResponseBodyData;
2182
2221
  errorCode?: string;
2183
2222
  message?: string;
2184
2223
  requestId?: string;
@@ -4292,6 +4331,7 @@ export declare class DescribeApplicationConfigResponseBodyData extends $tea.Mode
4292
4331
  mountDesc?: DescribeApplicationConfigResponseBodyDataMountDesc[];
4293
4332
  mountHost?: string;
4294
4333
  mseApplicationId?: string;
4334
+ mseFeatureConfig?: string;
4295
4335
  namespaceId?: string;
4296
4336
  nasId?: string;
4297
4337
  ossAkId?: string;
@@ -5124,6 +5164,25 @@ export declare class DescribeInstanceSpecificationsResponseBodyData extends $tea
5124
5164
  [key: string]: any;
5125
5165
  });
5126
5166
  }
5167
+ export declare class DescribeJobStatusResponseBodyData extends $tea.Model {
5168
+ active?: number;
5169
+ completionTime?: number;
5170
+ failed?: number;
5171
+ jobId?: string;
5172
+ message?: string;
5173
+ startTime?: number;
5174
+ state?: string;
5175
+ succeeded?: number;
5176
+ static names(): {
5177
+ [key: string]: string;
5178
+ };
5179
+ static types(): {
5180
+ [key: string]: any;
5181
+ };
5182
+ constructor(map?: {
5183
+ [key: string]: any;
5184
+ });
5185
+ }
5127
5186
  export declare class DescribeNamespaceResponseBodyData extends $tea.Model {
5128
5187
  namespaceDescription?: string;
5129
5188
  namespaceId?: string;
@@ -5316,6 +5375,21 @@ export declare class DescribeRegionsResponseBodyRegions extends $tea.Model {
5316
5375
  [key: string]: any;
5317
5376
  });
5318
5377
  }
5378
+ export declare class ExecJobResponseBodyData extends $tea.Model {
5379
+ code?: string;
5380
+ data?: string;
5381
+ msg?: string;
5382
+ success?: string;
5383
+ static names(): {
5384
+ [key: string]: string;
5385
+ };
5386
+ static types(): {
5387
+ [key: string]: any;
5388
+ };
5389
+ constructor(map?: {
5390
+ [key: string]: any;
5391
+ });
5392
+ }
5319
5393
  export declare class ListAppEventsResponseBodyDataAppEventEntity extends $tea.Model {
5320
5394
  eventType?: string;
5321
5395
  firstTimestamp?: string;
@@ -6231,6 +6305,10 @@ export default class Client extends OpenApi {
6231
6305
  describeInstanceSpecificationsWithOptions(headers: {
6232
6306
  [key: string]: string;
6233
6307
  }, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceSpecificationsResponse>;
6308
+ describeJobStatus(request: DescribeJobStatusRequest): Promise<DescribeJobStatusResponse>;
6309
+ describeJobStatusWithOptions(request: DescribeJobStatusRequest, headers: {
6310
+ [key: string]: string;
6311
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeJobStatusResponse>;
6234
6312
  describeNamespace(request: DescribeNamespaceRequest): Promise<DescribeNamespaceResponse>;
6235
6313
  describeNamespaceWithOptions(request: DescribeNamespaceRequest, headers: {
6236
6314
  [key: string]: string;
package/dist/client.js CHANGED
@@ -442,16 +442,12 @@ class CreateApplicationRequest extends $tea.Model {
442
442
  jarStartOptions: 'JarStartOptions',
443
443
  jdk: 'Jdk',
444
444
  kafkaConfigs: 'KafkaConfigs',
445
- kafkaEndpoint: 'KafkaEndpoint',
446
- kafkaInstanceId: 'KafkaInstanceId',
447
- kafkaLogfileConfig: 'KafkaLogfileConfig',
448
445
  liveness: 'Liveness',
449
446
  memory: 'Memory',
450
447
  mountDesc: 'MountDesc',
451
448
  mountHost: 'MountHost',
452
449
  namespaceId: 'NamespaceId',
453
450
  nasId: 'NasId',
454
- openCollectToKafka: 'OpenCollectToKafka',
455
451
  ossAkId: 'OssAkId',
456
452
  ossAkSecret: 'OssAkSecret',
457
453
  ossMountDescs: 'OssMountDescs',
@@ -498,16 +494,12 @@ class CreateApplicationRequest extends $tea.Model {
498
494
  jarStartOptions: 'string',
499
495
  jdk: 'string',
500
496
  kafkaConfigs: 'string',
501
- kafkaEndpoint: 'string',
502
- kafkaInstanceId: 'string',
503
- kafkaLogfileConfig: 'string',
504
497
  liveness: 'string',
505
498
  memory: 'number',
506
499
  mountDesc: 'string',
507
500
  mountHost: 'string',
508
501
  namespaceId: 'string',
509
502
  nasId: 'string',
510
- openCollectToKafka: 'boolean',
511
503
  ossAkId: 'string',
512
504
  ossAkSecret: 'string',
513
505
  ossMountDescs: 'string',
@@ -1343,16 +1335,12 @@ class DeployApplicationRequest extends $tea.Model {
1343
1335
  jarStartOptions: 'JarStartOptions',
1344
1336
  jdk: 'Jdk',
1345
1337
  kafkaConfigs: 'KafkaConfigs',
1346
- kafkaEndpoint: 'KafkaEndpoint',
1347
- kafkaInstanceId: 'KafkaInstanceId',
1348
- kafkaLogfileConfig: 'KafkaLogfileConfig',
1349
1338
  liveness: 'Liveness',
1350
1339
  minReadyInstanceRatio: 'MinReadyInstanceRatio',
1351
1340
  minReadyInstances: 'MinReadyInstances',
1352
1341
  mountDesc: 'MountDesc',
1353
1342
  mountHost: 'MountHost',
1354
1343
  nasId: 'NasId',
1355
- openCollectToKafka: 'OpenCollectToKafka',
1356
1344
  ossAkId: 'OssAkId',
1357
1345
  ossAkSecret: 'OssAkSecret',
1358
1346
  ossMountDescs: 'OssMountDescs',
@@ -1395,16 +1383,12 @@ class DeployApplicationRequest extends $tea.Model {
1395
1383
  jarStartOptions: 'string',
1396
1384
  jdk: 'string',
1397
1385
  kafkaConfigs: 'string',
1398
- kafkaEndpoint: 'string',
1399
- kafkaInstanceId: 'string',
1400
- kafkaLogfileConfig: 'string',
1401
1386
  liveness: 'string',
1402
1387
  minReadyInstanceRatio: 'number',
1403
1388
  minReadyInstances: 'number',
1404
1389
  mountDesc: 'string',
1405
1390
  mountHost: 'string',
1406
1391
  nasId: 'string',
1407
- openCollectToKafka: 'boolean',
1408
1392
  ossAkId: 'string',
1409
1393
  ossAkSecret: 'string',
1410
1394
  ossMountDescs: 'string',
@@ -2611,6 +2595,72 @@ class DescribeInstanceSpecificationsResponse extends $tea.Model {
2611
2595
  }
2612
2596
  }
2613
2597
  exports.DescribeInstanceSpecificationsResponse = DescribeInstanceSpecificationsResponse;
2598
+ class DescribeJobStatusRequest extends $tea.Model {
2599
+ constructor(map) {
2600
+ super(map);
2601
+ }
2602
+ static names() {
2603
+ return {
2604
+ appId: 'AppId',
2605
+ jobId: 'JobId',
2606
+ };
2607
+ }
2608
+ static types() {
2609
+ return {
2610
+ appId: 'string',
2611
+ jobId: 'string',
2612
+ };
2613
+ }
2614
+ }
2615
+ exports.DescribeJobStatusRequest = DescribeJobStatusRequest;
2616
+ class DescribeJobStatusResponseBody extends $tea.Model {
2617
+ constructor(map) {
2618
+ super(map);
2619
+ }
2620
+ static names() {
2621
+ return {
2622
+ code: 'Code',
2623
+ data: 'Data',
2624
+ errorCode: 'ErrorCode',
2625
+ message: 'Message',
2626
+ requestId: 'RequestId',
2627
+ success: 'Success',
2628
+ traceId: 'TraceId',
2629
+ };
2630
+ }
2631
+ static types() {
2632
+ return {
2633
+ code: 'string',
2634
+ data: DescribeJobStatusResponseBodyData,
2635
+ errorCode: 'string',
2636
+ message: 'string',
2637
+ requestId: 'string',
2638
+ success: 'boolean',
2639
+ traceId: 'string',
2640
+ };
2641
+ }
2642
+ }
2643
+ exports.DescribeJobStatusResponseBody = DescribeJobStatusResponseBody;
2644
+ class DescribeJobStatusResponse extends $tea.Model {
2645
+ constructor(map) {
2646
+ super(map);
2647
+ }
2648
+ static names() {
2649
+ return {
2650
+ headers: 'headers',
2651
+ statusCode: 'statusCode',
2652
+ body: 'body',
2653
+ };
2654
+ }
2655
+ static types() {
2656
+ return {
2657
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2658
+ statusCode: 'number',
2659
+ body: DescribeJobStatusResponseBody,
2660
+ };
2661
+ }
2662
+ }
2663
+ exports.DescribeJobStatusResponse = DescribeJobStatusResponse;
2614
2664
  class DescribeNamespaceRequest extends $tea.Model {
2615
2665
  constructor(map) {
2616
2666
  super(map);
@@ -3137,7 +3187,7 @@ class ExecJobResponseBody extends $tea.Model {
3137
3187
  static types() {
3138
3188
  return {
3139
3189
  code: 'string',
3140
- data: 'string',
3190
+ data: ExecJobResponseBodyData,
3141
3191
  errorCode: 'string',
3142
3192
  message: 'string',
3143
3193
  requestId: 'string',
@@ -6107,6 +6157,7 @@ class DescribeApplicationConfigResponseBodyData extends $tea.Model {
6107
6157
  mountDesc: 'MountDesc',
6108
6158
  mountHost: 'MountHost',
6109
6159
  mseApplicationId: 'MseApplicationId',
6160
+ mseFeatureConfig: 'MseFeatureConfig',
6110
6161
  namespaceId: 'NamespaceId',
6111
6162
  nasId: 'NasId',
6112
6163
  ossAkId: 'OssAkId',
@@ -6167,6 +6218,7 @@ class DescribeApplicationConfigResponseBodyData extends $tea.Model {
6167
6218
  mountDesc: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataMountDesc },
6168
6219
  mountHost: 'string',
6169
6220
  mseApplicationId: 'string',
6221
+ mseFeatureConfig: 'string',
6170
6222
  namespaceId: 'string',
6171
6223
  nasId: 'string',
6172
6224
  ossAkId: 'string',
@@ -7399,6 +7451,36 @@ class DescribeInstanceSpecificationsResponseBodyData extends $tea.Model {
7399
7451
  }
7400
7452
  }
7401
7453
  exports.DescribeInstanceSpecificationsResponseBodyData = DescribeInstanceSpecificationsResponseBodyData;
7454
+ class DescribeJobStatusResponseBodyData extends $tea.Model {
7455
+ constructor(map) {
7456
+ super(map);
7457
+ }
7458
+ static names() {
7459
+ return {
7460
+ active: 'Active',
7461
+ completionTime: 'CompletionTime',
7462
+ failed: 'Failed',
7463
+ jobId: 'JobId',
7464
+ message: 'Message',
7465
+ startTime: 'StartTime',
7466
+ state: 'State',
7467
+ succeeded: 'Succeeded',
7468
+ };
7469
+ }
7470
+ static types() {
7471
+ return {
7472
+ active: 'number',
7473
+ completionTime: 'number',
7474
+ failed: 'number',
7475
+ jobId: 'string',
7476
+ message: 'string',
7477
+ startTime: 'number',
7478
+ state: 'string',
7479
+ succeeded: 'number',
7480
+ };
7481
+ }
7482
+ }
7483
+ exports.DescribeJobStatusResponseBodyData = DescribeJobStatusResponseBodyData;
7402
7484
  class DescribeNamespaceResponseBodyData extends $tea.Model {
7403
7485
  constructor(map) {
7404
7486
  super(map);
@@ -7695,6 +7777,28 @@ class DescribeRegionsResponseBodyRegions extends $tea.Model {
7695
7777
  }
7696
7778
  }
7697
7779
  exports.DescribeRegionsResponseBodyRegions = DescribeRegionsResponseBodyRegions;
7780
+ class ExecJobResponseBodyData extends $tea.Model {
7781
+ constructor(map) {
7782
+ super(map);
7783
+ }
7784
+ static names() {
7785
+ return {
7786
+ code: 'Code',
7787
+ data: 'Data',
7788
+ msg: 'Msg',
7789
+ success: 'Success',
7790
+ };
7791
+ }
7792
+ static types() {
7793
+ return {
7794
+ code: 'string',
7795
+ data: 'string',
7796
+ msg: 'string',
7797
+ success: 'string',
7798
+ };
7799
+ }
7800
+ }
7801
+ exports.ExecJobResponseBodyData = ExecJobResponseBodyData;
7698
7802
  class ListAppEventsResponseBodyDataAppEventEntity extends $tea.Model {
7699
7803
  constructor(map) {
7700
7804
  super(map);
@@ -9076,15 +9180,6 @@ class Client extends openapi_client_1.default {
9076
9180
  if (!tea_util_1.default.isUnset(request.kafkaConfigs)) {
9077
9181
  query["KafkaConfigs"] = request.kafkaConfigs;
9078
9182
  }
9079
- if (!tea_util_1.default.isUnset(request.kafkaEndpoint)) {
9080
- query["KafkaEndpoint"] = request.kafkaEndpoint;
9081
- }
9082
- if (!tea_util_1.default.isUnset(request.kafkaInstanceId)) {
9083
- query["KafkaInstanceId"] = request.kafkaInstanceId;
9084
- }
9085
- if (!tea_util_1.default.isUnset(request.kafkaLogfileConfig)) {
9086
- query["KafkaLogfileConfig"] = request.kafkaLogfileConfig;
9087
- }
9088
9183
  if (!tea_util_1.default.isUnset(request.liveness)) {
9089
9184
  query["Liveness"] = request.liveness;
9090
9185
  }
@@ -9103,9 +9198,6 @@ class Client extends openapi_client_1.default {
9103
9198
  if (!tea_util_1.default.isUnset(request.nasId)) {
9104
9199
  query["NasId"] = request.nasId;
9105
9200
  }
9106
- if (!tea_util_1.default.isUnset(request.openCollectToKafka)) {
9107
- query["OpenCollectToKafka"] = request.openCollectToKafka;
9108
- }
9109
9201
  if (!tea_util_1.default.isUnset(request.packageType)) {
9110
9202
  query["PackageType"] = request.packageType;
9111
9203
  }
@@ -9649,15 +9741,6 @@ class Client extends openapi_client_1.default {
9649
9741
  if (!tea_util_1.default.isUnset(request.kafkaConfigs)) {
9650
9742
  query["KafkaConfigs"] = request.kafkaConfigs;
9651
9743
  }
9652
- if (!tea_util_1.default.isUnset(request.kafkaEndpoint)) {
9653
- query["KafkaEndpoint"] = request.kafkaEndpoint;
9654
- }
9655
- if (!tea_util_1.default.isUnset(request.kafkaInstanceId)) {
9656
- query["KafkaInstanceId"] = request.kafkaInstanceId;
9657
- }
9658
- if (!tea_util_1.default.isUnset(request.kafkaLogfileConfig)) {
9659
- query["KafkaLogfileConfig"] = request.kafkaLogfileConfig;
9660
- }
9661
9744
  if (!tea_util_1.default.isUnset(request.liveness)) {
9662
9745
  query["Liveness"] = request.liveness;
9663
9746
  }
@@ -9676,9 +9759,6 @@ class Client extends openapi_client_1.default {
9676
9759
  if (!tea_util_1.default.isUnset(request.nasId)) {
9677
9760
  query["NasId"] = request.nasId;
9678
9761
  }
9679
- if (!tea_util_1.default.isUnset(request.openCollectToKafka)) {
9680
- query["OpenCollectToKafka"] = request.openCollectToKafka;
9681
- }
9682
9762
  if (!tea_util_1.default.isUnset(request.packageUrl)) {
9683
9763
  query["PackageUrl"] = request.packageUrl;
9684
9764
  }
@@ -10301,6 +10381,37 @@ class Client extends openapi_client_1.default {
10301
10381
  });
10302
10382
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceSpecificationsResponse({}));
10303
10383
  }
10384
+ async describeJobStatus(request) {
10385
+ let runtime = new $Util.RuntimeOptions({});
10386
+ let headers = {};
10387
+ return await this.describeJobStatusWithOptions(request, headers, runtime);
10388
+ }
10389
+ async describeJobStatusWithOptions(request, headers, runtime) {
10390
+ tea_util_1.default.validateModel(request);
10391
+ let query = {};
10392
+ if (!tea_util_1.default.isUnset(request.appId)) {
10393
+ query["AppId"] = request.appId;
10394
+ }
10395
+ if (!tea_util_1.default.isUnset(request.jobId)) {
10396
+ query["JobId"] = request.jobId;
10397
+ }
10398
+ let req = new $OpenApi.OpenApiRequest({
10399
+ headers: headers,
10400
+ query: openapi_util_1.default.query(query),
10401
+ });
10402
+ let params = new $OpenApi.Params({
10403
+ action: "DescribeJobStatus",
10404
+ version: "2019-05-06",
10405
+ protocol: "HTTPS",
10406
+ pathname: `/pop/v1/sam/job/describeJobStatus`,
10407
+ method: "GET",
10408
+ authType: "AK",
10409
+ style: "ROA",
10410
+ reqBodyType: "json",
10411
+ bodyType: "json",
10412
+ });
10413
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeJobStatusResponse({}));
10414
+ }
10304
10415
  async describeNamespace(request) {
10305
10416
  let runtime = new $Util.RuntimeOptions({});
10306
10417
  let headers = {};