@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/dist/client.d.ts +70 -0
- package/dist/client.js +127 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +159 -0
package/dist/client.d.ts
CHANGED
|
@@ -1812,6 +1812,53 @@ export declare class DescribeInstanceSpecificationsResponse extends $tea.Model {
|
|
|
1812
1812
|
[key: string]: any;
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
|
+
export declare class DescribeJobStatusRequest extends $tea.Model {
|
|
1816
|
+
appId?: string;
|
|
1817
|
+
jobId?: string;
|
|
1818
|
+
static names(): {
|
|
1819
|
+
[key: string]: string;
|
|
1820
|
+
};
|
|
1821
|
+
static types(): {
|
|
1822
|
+
[key: string]: any;
|
|
1823
|
+
};
|
|
1824
|
+
constructor(map?: {
|
|
1825
|
+
[key: string]: any;
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
export declare class DescribeJobStatusResponseBody extends $tea.Model {
|
|
1829
|
+
code?: string;
|
|
1830
|
+
data?: DescribeJobStatusResponseBodyData;
|
|
1831
|
+
errorCode?: string;
|
|
1832
|
+
message?: string;
|
|
1833
|
+
requestId?: string;
|
|
1834
|
+
success?: boolean;
|
|
1835
|
+
traceId?: string;
|
|
1836
|
+
static names(): {
|
|
1837
|
+
[key: string]: string;
|
|
1838
|
+
};
|
|
1839
|
+
static types(): {
|
|
1840
|
+
[key: string]: any;
|
|
1841
|
+
};
|
|
1842
|
+
constructor(map?: {
|
|
1843
|
+
[key: string]: any;
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
export declare class DescribeJobStatusResponse extends $tea.Model {
|
|
1847
|
+
headers: {
|
|
1848
|
+
[key: string]: string;
|
|
1849
|
+
};
|
|
1850
|
+
statusCode: number;
|
|
1851
|
+
body: DescribeJobStatusResponseBody;
|
|
1852
|
+
static names(): {
|
|
1853
|
+
[key: string]: string;
|
|
1854
|
+
};
|
|
1855
|
+
static types(): {
|
|
1856
|
+
[key: string]: any;
|
|
1857
|
+
};
|
|
1858
|
+
constructor(map?: {
|
|
1859
|
+
[key: string]: any;
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1815
1862
|
export declare class DescribeNamespaceRequest extends $tea.Model {
|
|
1816
1863
|
namespaceId?: string;
|
|
1817
1864
|
static names(): {
|
|
@@ -5127,6 +5174,25 @@ export declare class DescribeInstanceSpecificationsResponseBodyData extends $tea
|
|
|
5127
5174
|
[key: string]: any;
|
|
5128
5175
|
});
|
|
5129
5176
|
}
|
|
5177
|
+
export declare class DescribeJobStatusResponseBodyData extends $tea.Model {
|
|
5178
|
+
active?: number;
|
|
5179
|
+
completionTime?: number;
|
|
5180
|
+
failed?: number;
|
|
5181
|
+
jobId?: string;
|
|
5182
|
+
message?: string;
|
|
5183
|
+
startTime?: number;
|
|
5184
|
+
state?: string;
|
|
5185
|
+
succeeded?: number;
|
|
5186
|
+
static names(): {
|
|
5187
|
+
[key: string]: string;
|
|
5188
|
+
};
|
|
5189
|
+
static types(): {
|
|
5190
|
+
[key: string]: any;
|
|
5191
|
+
};
|
|
5192
|
+
constructor(map?: {
|
|
5193
|
+
[key: string]: any;
|
|
5194
|
+
});
|
|
5195
|
+
}
|
|
5130
5196
|
export declare class DescribeNamespaceResponseBodyData extends $tea.Model {
|
|
5131
5197
|
namespaceDescription?: string;
|
|
5132
5198
|
namespaceId?: string;
|
|
@@ -6249,6 +6315,10 @@ export default class Client extends OpenApi {
|
|
|
6249
6315
|
describeInstanceSpecificationsWithOptions(headers: {
|
|
6250
6316
|
[key: string]: string;
|
|
6251
6317
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceSpecificationsResponse>;
|
|
6318
|
+
describeJobStatus(request: DescribeJobStatusRequest): Promise<DescribeJobStatusResponse>;
|
|
6319
|
+
describeJobStatusWithOptions(request: DescribeJobStatusRequest, headers: {
|
|
6320
|
+
[key: string]: string;
|
|
6321
|
+
}, runtime: $Util.RuntimeOptions): Promise<DescribeJobStatusResponse>;
|
|
6252
6322
|
describeNamespace(request: DescribeNamespaceRequest): Promise<DescribeNamespaceResponse>;
|
|
6253
6323
|
describeNamespaceWithOptions(request: DescribeNamespaceRequest, headers: {
|
|
6254
6324
|
[key: string]: string;
|
package/dist/client.js
CHANGED
|
@@ -2615,6 +2615,72 @@ class DescribeInstanceSpecificationsResponse extends $tea.Model {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
2617
|
exports.DescribeInstanceSpecificationsResponse = DescribeInstanceSpecificationsResponse;
|
|
2618
|
+
class DescribeJobStatusRequest extends $tea.Model {
|
|
2619
|
+
constructor(map) {
|
|
2620
|
+
super(map);
|
|
2621
|
+
}
|
|
2622
|
+
static names() {
|
|
2623
|
+
return {
|
|
2624
|
+
appId: 'AppId',
|
|
2625
|
+
jobId: 'JobId',
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
static types() {
|
|
2629
|
+
return {
|
|
2630
|
+
appId: 'string',
|
|
2631
|
+
jobId: 'string',
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
exports.DescribeJobStatusRequest = DescribeJobStatusRequest;
|
|
2636
|
+
class DescribeJobStatusResponseBody extends $tea.Model {
|
|
2637
|
+
constructor(map) {
|
|
2638
|
+
super(map);
|
|
2639
|
+
}
|
|
2640
|
+
static names() {
|
|
2641
|
+
return {
|
|
2642
|
+
code: 'Code',
|
|
2643
|
+
data: 'Data',
|
|
2644
|
+
errorCode: 'ErrorCode',
|
|
2645
|
+
message: 'Message',
|
|
2646
|
+
requestId: 'RequestId',
|
|
2647
|
+
success: 'Success',
|
|
2648
|
+
traceId: 'TraceId',
|
|
2649
|
+
};
|
|
2650
|
+
}
|
|
2651
|
+
static types() {
|
|
2652
|
+
return {
|
|
2653
|
+
code: 'string',
|
|
2654
|
+
data: DescribeJobStatusResponseBodyData,
|
|
2655
|
+
errorCode: 'string',
|
|
2656
|
+
message: 'string',
|
|
2657
|
+
requestId: 'string',
|
|
2658
|
+
success: 'boolean',
|
|
2659
|
+
traceId: 'string',
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
exports.DescribeJobStatusResponseBody = DescribeJobStatusResponseBody;
|
|
2664
|
+
class DescribeJobStatusResponse extends $tea.Model {
|
|
2665
|
+
constructor(map) {
|
|
2666
|
+
super(map);
|
|
2667
|
+
}
|
|
2668
|
+
static names() {
|
|
2669
|
+
return {
|
|
2670
|
+
headers: 'headers',
|
|
2671
|
+
statusCode: 'statusCode',
|
|
2672
|
+
body: 'body',
|
|
2673
|
+
};
|
|
2674
|
+
}
|
|
2675
|
+
static types() {
|
|
2676
|
+
return {
|
|
2677
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2678
|
+
statusCode: 'number',
|
|
2679
|
+
body: DescribeJobStatusResponseBody,
|
|
2680
|
+
};
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
exports.DescribeJobStatusResponse = DescribeJobStatusResponse;
|
|
2618
2684
|
class DescribeNamespaceRequest extends $tea.Model {
|
|
2619
2685
|
constructor(map) {
|
|
2620
2686
|
super(map);
|
|
@@ -7405,6 +7471,36 @@ class DescribeInstanceSpecificationsResponseBodyData extends $tea.Model {
|
|
|
7405
7471
|
}
|
|
7406
7472
|
}
|
|
7407
7473
|
exports.DescribeInstanceSpecificationsResponseBodyData = DescribeInstanceSpecificationsResponseBodyData;
|
|
7474
|
+
class DescribeJobStatusResponseBodyData extends $tea.Model {
|
|
7475
|
+
constructor(map) {
|
|
7476
|
+
super(map);
|
|
7477
|
+
}
|
|
7478
|
+
static names() {
|
|
7479
|
+
return {
|
|
7480
|
+
active: 'Active',
|
|
7481
|
+
completionTime: 'CompletionTime',
|
|
7482
|
+
failed: 'Failed',
|
|
7483
|
+
jobId: 'JobId',
|
|
7484
|
+
message: 'Message',
|
|
7485
|
+
startTime: 'StartTime',
|
|
7486
|
+
state: 'State',
|
|
7487
|
+
succeeded: 'Succeeded',
|
|
7488
|
+
};
|
|
7489
|
+
}
|
|
7490
|
+
static types() {
|
|
7491
|
+
return {
|
|
7492
|
+
active: 'number',
|
|
7493
|
+
completionTime: 'number',
|
|
7494
|
+
failed: 'number',
|
|
7495
|
+
jobId: 'string',
|
|
7496
|
+
message: 'string',
|
|
7497
|
+
startTime: 'number',
|
|
7498
|
+
state: 'string',
|
|
7499
|
+
succeeded: 'number',
|
|
7500
|
+
};
|
|
7501
|
+
}
|
|
7502
|
+
}
|
|
7503
|
+
exports.DescribeJobStatusResponseBodyData = DescribeJobStatusResponseBodyData;
|
|
7408
7504
|
class DescribeNamespaceResponseBodyData extends $tea.Model {
|
|
7409
7505
|
constructor(map) {
|
|
7410
7506
|
super(map);
|
|
@@ -10335,6 +10431,37 @@ class Client extends openapi_client_1.default {
|
|
|
10335
10431
|
});
|
|
10336
10432
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceSpecificationsResponse({}));
|
|
10337
10433
|
}
|
|
10434
|
+
async describeJobStatus(request) {
|
|
10435
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10436
|
+
let headers = {};
|
|
10437
|
+
return await this.describeJobStatusWithOptions(request, headers, runtime);
|
|
10438
|
+
}
|
|
10439
|
+
async describeJobStatusWithOptions(request, headers, runtime) {
|
|
10440
|
+
tea_util_1.default.validateModel(request);
|
|
10441
|
+
let query = {};
|
|
10442
|
+
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
10443
|
+
query["AppId"] = request.appId;
|
|
10444
|
+
}
|
|
10445
|
+
if (!tea_util_1.default.isUnset(request.jobId)) {
|
|
10446
|
+
query["JobId"] = request.jobId;
|
|
10447
|
+
}
|
|
10448
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10449
|
+
headers: headers,
|
|
10450
|
+
query: openapi_util_1.default.query(query),
|
|
10451
|
+
});
|
|
10452
|
+
let params = new $OpenApi.Params({
|
|
10453
|
+
action: "DescribeJobStatus",
|
|
10454
|
+
version: "2019-05-06",
|
|
10455
|
+
protocol: "HTTPS",
|
|
10456
|
+
pathname: `/pop/v1/sam/job/describeJobStatus`,
|
|
10457
|
+
method: "GET",
|
|
10458
|
+
authType: "AK",
|
|
10459
|
+
style: "ROA",
|
|
10460
|
+
reqBodyType: "json",
|
|
10461
|
+
bodyType: "json",
|
|
10462
|
+
});
|
|
10463
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeJobStatusResponse({}));
|
|
10464
|
+
}
|
|
10338
10465
|
async describeNamespace(request) {
|
|
10339
10466
|
let runtime = new $Util.RuntimeOptions({});
|
|
10340
10467
|
let headers = {};
|