@alicloud/sae20190506 1.21.1 → 1.21.2

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.21.1",
3
+ "version": "1.21.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3357,6 +3357,90 @@ export class DescribeInstanceSpecificationsResponse extends $tea.Model {
3357
3357
  }
3358
3358
  }
3359
3359
 
3360
+ export class DescribeJobStatusRequest extends $tea.Model {
3361
+ appId?: string;
3362
+ jobId?: string;
3363
+ static names(): { [key: string]: string } {
3364
+ return {
3365
+ appId: 'AppId',
3366
+ jobId: 'JobId',
3367
+ };
3368
+ }
3369
+
3370
+ static types(): { [key: string]: any } {
3371
+ return {
3372
+ appId: 'string',
3373
+ jobId: 'string',
3374
+ };
3375
+ }
3376
+
3377
+ constructor(map?: { [key: string]: any }) {
3378
+ super(map);
3379
+ }
3380
+ }
3381
+
3382
+ export class DescribeJobStatusResponseBody extends $tea.Model {
3383
+ code?: string;
3384
+ data?: DescribeJobStatusResponseBodyData;
3385
+ errorCode?: string;
3386
+ message?: string;
3387
+ requestId?: string;
3388
+ success?: boolean;
3389
+ traceId?: string;
3390
+ static names(): { [key: string]: string } {
3391
+ return {
3392
+ code: 'Code',
3393
+ data: 'Data',
3394
+ errorCode: 'ErrorCode',
3395
+ message: 'Message',
3396
+ requestId: 'RequestId',
3397
+ success: 'Success',
3398
+ traceId: 'TraceId',
3399
+ };
3400
+ }
3401
+
3402
+ static types(): { [key: string]: any } {
3403
+ return {
3404
+ code: 'string',
3405
+ data: DescribeJobStatusResponseBodyData,
3406
+ errorCode: 'string',
3407
+ message: 'string',
3408
+ requestId: 'string',
3409
+ success: 'boolean',
3410
+ traceId: 'string',
3411
+ };
3412
+ }
3413
+
3414
+ constructor(map?: { [key: string]: any }) {
3415
+ super(map);
3416
+ }
3417
+ }
3418
+
3419
+ export class DescribeJobStatusResponse extends $tea.Model {
3420
+ headers: { [key: string]: string };
3421
+ statusCode: number;
3422
+ body: DescribeJobStatusResponseBody;
3423
+ static names(): { [key: string]: string } {
3424
+ return {
3425
+ headers: 'headers',
3426
+ statusCode: 'statusCode',
3427
+ body: 'body',
3428
+ };
3429
+ }
3430
+
3431
+ static types(): { [key: string]: any } {
3432
+ return {
3433
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3434
+ statusCode: 'number',
3435
+ body: DescribeJobStatusResponseBody,
3436
+ };
3437
+ }
3438
+
3439
+ constructor(map?: { [key: string]: any }) {
3440
+ super(map);
3441
+ }
3442
+ }
3443
+
3360
3444
  export class DescribeNamespaceRequest extends $tea.Model {
3361
3445
  namespaceId?: string;
3362
3446
  static names(): { [key: string]: string } {
@@ -9507,6 +9591,46 @@ export class DescribeInstanceSpecificationsResponseBodyData extends $tea.Model {
9507
9591
  }
9508
9592
  }
9509
9593
 
9594
+ export class DescribeJobStatusResponseBodyData extends $tea.Model {
9595
+ active?: number;
9596
+ completionTime?: number;
9597
+ failed?: number;
9598
+ jobId?: string;
9599
+ message?: string;
9600
+ startTime?: number;
9601
+ state?: string;
9602
+ succeeded?: number;
9603
+ static names(): { [key: string]: string } {
9604
+ return {
9605
+ active: 'Active',
9606
+ completionTime: 'CompletionTime',
9607
+ failed: 'Failed',
9608
+ jobId: 'JobId',
9609
+ message: 'Message',
9610
+ startTime: 'StartTime',
9611
+ state: 'State',
9612
+ succeeded: 'Succeeded',
9613
+ };
9614
+ }
9615
+
9616
+ static types(): { [key: string]: any } {
9617
+ return {
9618
+ active: 'number',
9619
+ completionTime: 'number',
9620
+ failed: 'number',
9621
+ jobId: 'string',
9622
+ message: 'string',
9623
+ startTime: 'number',
9624
+ state: 'string',
9625
+ succeeded: 'number',
9626
+ };
9627
+ }
9628
+
9629
+ constructor(map?: { [key: string]: any }) {
9630
+ super(map);
9631
+ }
9632
+ }
9633
+
9510
9634
  export class DescribeNamespaceResponseBodyData extends $tea.Model {
9511
9635
  namespaceDescription?: string;
9512
9636
  namespaceId?: string;
@@ -13110,6 +13234,41 @@ export default class Client extends OpenApi {
13110
13234
  return $tea.cast<DescribeInstanceSpecificationsResponse>(await this.callApi(params, req, runtime), new DescribeInstanceSpecificationsResponse({}));
13111
13235
  }
13112
13236
 
13237
+ async describeJobStatus(request: DescribeJobStatusRequest): Promise<DescribeJobStatusResponse> {
13238
+ let runtime = new $Util.RuntimeOptions({ });
13239
+ let headers : {[key: string ]: string} = { };
13240
+ return await this.describeJobStatusWithOptions(request, headers, runtime);
13241
+ }
13242
+
13243
+ async describeJobStatusWithOptions(request: DescribeJobStatusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeJobStatusResponse> {
13244
+ Util.validateModel(request);
13245
+ let query : {[key: string ]: any} = { };
13246
+ if (!Util.isUnset(request.appId)) {
13247
+ query["AppId"] = request.appId;
13248
+ }
13249
+
13250
+ if (!Util.isUnset(request.jobId)) {
13251
+ query["JobId"] = request.jobId;
13252
+ }
13253
+
13254
+ let req = new $OpenApi.OpenApiRequest({
13255
+ headers: headers,
13256
+ query: OpenApiUtil.query(query),
13257
+ });
13258
+ let params = new $OpenApi.Params({
13259
+ action: "DescribeJobStatus",
13260
+ version: "2019-05-06",
13261
+ protocol: "HTTPS",
13262
+ pathname: `/pop/v1/sam/job/describeJobStatus`,
13263
+ method: "GET",
13264
+ authType: "AK",
13265
+ style: "ROA",
13266
+ reqBodyType: "json",
13267
+ bodyType: "json",
13268
+ });
13269
+ return $tea.cast<DescribeJobStatusResponse>(await this.callApi(params, req, runtime), new DescribeJobStatusResponse({}));
13270
+ }
13271
+
13113
13272
  async describeNamespace(request: DescribeNamespaceRequest): Promise<DescribeNamespaceResponse> {
13114
13273
  let runtime = new $Util.RuntimeOptions({ });
13115
13274
  let headers : {[key: string ]: string} = { };