@alicloud/eas20210701 4.1.0 → 4.2.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 +112 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +132 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3227,6 +3227,75 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
3229
|
|
|
3230
|
+
export class DescribeSpotDiscountHistoryRequest extends $tea.Model {
|
|
3231
|
+
instanceType?: string;
|
|
3232
|
+
isProtect?: boolean;
|
|
3233
|
+
static names(): { [key: string]: string } {
|
|
3234
|
+
return {
|
|
3235
|
+
instanceType: 'InstanceType',
|
|
3236
|
+
isProtect: 'IsProtect',
|
|
3237
|
+
};
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
static types(): { [key: string]: any } {
|
|
3241
|
+
return {
|
|
3242
|
+
instanceType: 'string',
|
|
3243
|
+
isProtect: 'boolean',
|
|
3244
|
+
};
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
constructor(map?: { [key: string]: any }) {
|
|
3248
|
+
super(map);
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
export class DescribeSpotDiscountHistoryResponseBody extends $tea.Model {
|
|
3253
|
+
requestId?: string;
|
|
3254
|
+
spotDiscounts?: DescribeSpotDiscountHistoryResponseBodySpotDiscounts[];
|
|
3255
|
+
static names(): { [key: string]: string } {
|
|
3256
|
+
return {
|
|
3257
|
+
requestId: 'RequestId',
|
|
3258
|
+
spotDiscounts: 'SpotDiscounts',
|
|
3259
|
+
};
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
static types(): { [key: string]: any } {
|
|
3263
|
+
return {
|
|
3264
|
+
requestId: 'string',
|
|
3265
|
+
spotDiscounts: { 'type': 'array', 'itemType': DescribeSpotDiscountHistoryResponseBodySpotDiscounts },
|
|
3266
|
+
};
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
constructor(map?: { [key: string]: any }) {
|
|
3270
|
+
super(map);
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
export class DescribeSpotDiscountHistoryResponse extends $tea.Model {
|
|
3275
|
+
headers?: { [key: string]: string };
|
|
3276
|
+
statusCode?: number;
|
|
3277
|
+
body?: DescribeSpotDiscountHistoryResponseBody;
|
|
3278
|
+
static names(): { [key: string]: string } {
|
|
3279
|
+
return {
|
|
3280
|
+
headers: 'headers',
|
|
3281
|
+
statusCode: 'statusCode',
|
|
3282
|
+
body: 'body',
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
static types(): { [key: string]: any } {
|
|
3287
|
+
return {
|
|
3288
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3289
|
+
statusCode: 'number',
|
|
3290
|
+
body: DescribeSpotDiscountHistoryResponseBody,
|
|
3291
|
+
};
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
constructor(map?: { [key: string]: any }) {
|
|
3295
|
+
super(map);
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3230
3299
|
export class DevelopServiceRequest extends $tea.Model {
|
|
3231
3300
|
exit?: string;
|
|
3232
3301
|
static names(): { [key: string]: string } {
|
|
@@ -6001,6 +6070,34 @@ export class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.
|
|
|
6001
6070
|
}
|
|
6002
6071
|
}
|
|
6003
6072
|
|
|
6073
|
+
export class DescribeSpotDiscountHistoryResponseBodySpotDiscounts extends $tea.Model {
|
|
6074
|
+
instanceType?: string;
|
|
6075
|
+
spotDiscount?: string;
|
|
6076
|
+
timestamp?: string;
|
|
6077
|
+
zoneId?: string;
|
|
6078
|
+
static names(): { [key: string]: string } {
|
|
6079
|
+
return {
|
|
6080
|
+
instanceType: 'InstanceType',
|
|
6081
|
+
spotDiscount: 'SpotDiscount',
|
|
6082
|
+
timestamp: 'Timestamp',
|
|
6083
|
+
zoneId: 'ZoneId',
|
|
6084
|
+
};
|
|
6085
|
+
}
|
|
6086
|
+
|
|
6087
|
+
static types(): { [key: string]: any } {
|
|
6088
|
+
return {
|
|
6089
|
+
instanceType: 'string',
|
|
6090
|
+
spotDiscount: 'string',
|
|
6091
|
+
timestamp: 'string',
|
|
6092
|
+
zoneId: 'string',
|
|
6093
|
+
};
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
constructor(map?: { [key: string]: any }) {
|
|
6097
|
+
super(map);
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
|
|
6004
6101
|
export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
6005
6102
|
availableAgent?: number;
|
|
6006
6103
|
createTime?: string;
|
|
@@ -7672,6 +7769,41 @@ export default class Client extends OpenApi {
|
|
|
7672
7769
|
return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
7673
7770
|
}
|
|
7674
7771
|
|
|
7772
|
+
async describeSpotDiscountHistoryWithOptions(request: DescribeSpotDiscountHistoryRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeSpotDiscountHistoryResponse> {
|
|
7773
|
+
Util.validateModel(request);
|
|
7774
|
+
let query : {[key: string ]: any} = { };
|
|
7775
|
+
if (!Util.isUnset(request.instanceType)) {
|
|
7776
|
+
query["InstanceType"] = request.instanceType;
|
|
7777
|
+
}
|
|
7778
|
+
|
|
7779
|
+
if (!Util.isUnset(request.isProtect)) {
|
|
7780
|
+
query["IsProtect"] = request.isProtect;
|
|
7781
|
+
}
|
|
7782
|
+
|
|
7783
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7784
|
+
headers: headers,
|
|
7785
|
+
query: OpenApiUtil.query(query),
|
|
7786
|
+
});
|
|
7787
|
+
let params = new $OpenApi.Params({
|
|
7788
|
+
action: "DescribeSpotDiscountHistory",
|
|
7789
|
+
version: "2021-07-01",
|
|
7790
|
+
protocol: "HTTPS",
|
|
7791
|
+
pathname: `/api/v2/public/spot_discount`,
|
|
7792
|
+
method: "GET",
|
|
7793
|
+
authType: "AK",
|
|
7794
|
+
style: "ROA",
|
|
7795
|
+
reqBodyType: "json",
|
|
7796
|
+
bodyType: "json",
|
|
7797
|
+
});
|
|
7798
|
+
return $tea.cast<DescribeSpotDiscountHistoryResponse>(await this.callApi(params, req, runtime), new DescribeSpotDiscountHistoryResponse({}));
|
|
7799
|
+
}
|
|
7800
|
+
|
|
7801
|
+
async describeSpotDiscountHistory(request: DescribeSpotDiscountHistoryRequest): Promise<DescribeSpotDiscountHistoryResponse> {
|
|
7802
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
7803
|
+
let headers : {[key: string ]: string} = { };
|
|
7804
|
+
return await this.describeSpotDiscountHistoryWithOptions(request, headers, runtime);
|
|
7805
|
+
}
|
|
7806
|
+
|
|
7675
7807
|
async developServiceWithOptions(ClusterId: string, ServiceName: string, request: DevelopServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DevelopServiceResponse> {
|
|
7676
7808
|
Util.validateModel(request);
|
|
7677
7809
|
let query : {[key: string ]: any} = { };
|