@alicloud/esa20240910 2.8.3 → 2.8.4
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 +0 -140
- package/dist/client.js +5 -138
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +0 -227
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -23478,173 +23478,6 @@ export class UpdateKvNamespaceResponse extends $tea.Model {
|
|
|
23478
23478
|
}
|
|
23479
23479
|
}
|
|
23480
23480
|
|
|
23481
|
-
export class UpdateListRequest extends $tea.Model {
|
|
23482
|
-
/**
|
|
23483
|
-
* @remarks
|
|
23484
|
-
* The new description of the list.
|
|
23485
|
-
*
|
|
23486
|
-
* @example
|
|
23487
|
-
* a custom list
|
|
23488
|
-
*/
|
|
23489
|
-
description?: string;
|
|
23490
|
-
/**
|
|
23491
|
-
* @remarks
|
|
23492
|
-
* The ID of the custom list, which can be obtained by calling the [ListLists](https://help.aliyun.com/document_detail/2850217.html) operation.
|
|
23493
|
-
*
|
|
23494
|
-
* This parameter is required.
|
|
23495
|
-
*
|
|
23496
|
-
* @example
|
|
23497
|
-
* 40000001
|
|
23498
|
-
*/
|
|
23499
|
-
id?: number;
|
|
23500
|
-
/**
|
|
23501
|
-
* @remarks
|
|
23502
|
-
* The items in the updated list. The value is a JSON array.
|
|
23503
|
-
*
|
|
23504
|
-
* @example
|
|
23505
|
-
* a custom list
|
|
23506
|
-
*/
|
|
23507
|
-
items?: string[];
|
|
23508
|
-
/**
|
|
23509
|
-
* @remarks
|
|
23510
|
-
* The new name of the list.
|
|
23511
|
-
*
|
|
23512
|
-
* @example
|
|
23513
|
-
* example
|
|
23514
|
-
*/
|
|
23515
|
-
name?: string;
|
|
23516
|
-
static names(): { [key: string]: string } {
|
|
23517
|
-
return {
|
|
23518
|
-
description: 'Description',
|
|
23519
|
-
id: 'Id',
|
|
23520
|
-
items: 'Items',
|
|
23521
|
-
name: 'Name',
|
|
23522
|
-
};
|
|
23523
|
-
}
|
|
23524
|
-
|
|
23525
|
-
static types(): { [key: string]: any } {
|
|
23526
|
-
return {
|
|
23527
|
-
description: 'string',
|
|
23528
|
-
id: 'number',
|
|
23529
|
-
items: { 'type': 'array', 'itemType': 'string' },
|
|
23530
|
-
name: 'string',
|
|
23531
|
-
};
|
|
23532
|
-
}
|
|
23533
|
-
|
|
23534
|
-
constructor(map?: { [key: string]: any }) {
|
|
23535
|
-
super(map);
|
|
23536
|
-
}
|
|
23537
|
-
}
|
|
23538
|
-
|
|
23539
|
-
export class UpdateListShrinkRequest extends $tea.Model {
|
|
23540
|
-
/**
|
|
23541
|
-
* @remarks
|
|
23542
|
-
* The new description of the list.
|
|
23543
|
-
*
|
|
23544
|
-
* @example
|
|
23545
|
-
* a custom list
|
|
23546
|
-
*/
|
|
23547
|
-
description?: string;
|
|
23548
|
-
/**
|
|
23549
|
-
* @remarks
|
|
23550
|
-
* The ID of the custom list, which can be obtained by calling the [ListLists](https://help.aliyun.com/document_detail/2850217.html) operation.
|
|
23551
|
-
*
|
|
23552
|
-
* This parameter is required.
|
|
23553
|
-
*
|
|
23554
|
-
* @example
|
|
23555
|
-
* 40000001
|
|
23556
|
-
*/
|
|
23557
|
-
id?: number;
|
|
23558
|
-
/**
|
|
23559
|
-
* @remarks
|
|
23560
|
-
* The items in the updated list. The value is a JSON array.
|
|
23561
|
-
*
|
|
23562
|
-
* @example
|
|
23563
|
-
* a custom list
|
|
23564
|
-
*/
|
|
23565
|
-
itemsShrink?: string;
|
|
23566
|
-
/**
|
|
23567
|
-
* @remarks
|
|
23568
|
-
* The new name of the list.
|
|
23569
|
-
*
|
|
23570
|
-
* @example
|
|
23571
|
-
* example
|
|
23572
|
-
*/
|
|
23573
|
-
name?: string;
|
|
23574
|
-
static names(): { [key: string]: string } {
|
|
23575
|
-
return {
|
|
23576
|
-
description: 'Description',
|
|
23577
|
-
id: 'Id',
|
|
23578
|
-
itemsShrink: 'Items',
|
|
23579
|
-
name: 'Name',
|
|
23580
|
-
};
|
|
23581
|
-
}
|
|
23582
|
-
|
|
23583
|
-
static types(): { [key: string]: any } {
|
|
23584
|
-
return {
|
|
23585
|
-
description: 'string',
|
|
23586
|
-
id: 'number',
|
|
23587
|
-
itemsShrink: 'string',
|
|
23588
|
-
name: 'string',
|
|
23589
|
-
};
|
|
23590
|
-
}
|
|
23591
|
-
|
|
23592
|
-
constructor(map?: { [key: string]: any }) {
|
|
23593
|
-
super(map);
|
|
23594
|
-
}
|
|
23595
|
-
}
|
|
23596
|
-
|
|
23597
|
-
export class UpdateListResponseBody extends $tea.Model {
|
|
23598
|
-
/**
|
|
23599
|
-
* @remarks
|
|
23600
|
-
* The request ID.
|
|
23601
|
-
*
|
|
23602
|
-
* @example
|
|
23603
|
-
* 36af3fcc-43d0-441c-86b1-428951dc8225
|
|
23604
|
-
*/
|
|
23605
|
-
requestId?: string;
|
|
23606
|
-
static names(): { [key: string]: string } {
|
|
23607
|
-
return {
|
|
23608
|
-
requestId: 'RequestId',
|
|
23609
|
-
};
|
|
23610
|
-
}
|
|
23611
|
-
|
|
23612
|
-
static types(): { [key: string]: any } {
|
|
23613
|
-
return {
|
|
23614
|
-
requestId: 'string',
|
|
23615
|
-
};
|
|
23616
|
-
}
|
|
23617
|
-
|
|
23618
|
-
constructor(map?: { [key: string]: any }) {
|
|
23619
|
-
super(map);
|
|
23620
|
-
}
|
|
23621
|
-
}
|
|
23622
|
-
|
|
23623
|
-
export class UpdateListResponse extends $tea.Model {
|
|
23624
|
-
headers?: { [key: string]: string };
|
|
23625
|
-
statusCode?: number;
|
|
23626
|
-
body?: UpdateListResponseBody;
|
|
23627
|
-
static names(): { [key: string]: string } {
|
|
23628
|
-
return {
|
|
23629
|
-
headers: 'headers',
|
|
23630
|
-
statusCode: 'statusCode',
|
|
23631
|
-
body: 'body',
|
|
23632
|
-
};
|
|
23633
|
-
}
|
|
23634
|
-
|
|
23635
|
-
static types(): { [key: string]: any } {
|
|
23636
|
-
return {
|
|
23637
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
23638
|
-
statusCode: 'number',
|
|
23639
|
-
body: UpdateListResponseBody,
|
|
23640
|
-
};
|
|
23641
|
-
}
|
|
23642
|
-
|
|
23643
|
-
constructor(map?: { [key: string]: any }) {
|
|
23644
|
-
super(map);
|
|
23645
|
-
}
|
|
23646
|
-
}
|
|
23647
|
-
|
|
23648
23481
|
export class UpdateOriginProtectionRequest extends $tea.Model {
|
|
23649
23482
|
/**
|
|
23650
23483
|
* @remarks
|
|
@@ -47079,66 +46912,6 @@ export default class Client extends OpenApi {
|
|
|
47079
46912
|
return await this.updateKvNamespaceWithOptions(request, runtime);
|
|
47080
46913
|
}
|
|
47081
46914
|
|
|
47082
|
-
/**
|
|
47083
|
-
* Updates a custom list.
|
|
47084
|
-
*
|
|
47085
|
-
* @param tmpReq - UpdateListRequest
|
|
47086
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
47087
|
-
* @returns UpdateListResponse
|
|
47088
|
-
*/
|
|
47089
|
-
async updateListWithOptions(tmpReq: UpdateListRequest, runtime: $Util.RuntimeOptions): Promise<UpdateListResponse> {
|
|
47090
|
-
Util.validateModel(tmpReq);
|
|
47091
|
-
let request = new UpdateListShrinkRequest({ });
|
|
47092
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
47093
|
-
if (!Util.isUnset(tmpReq.items)) {
|
|
47094
|
-
request.itemsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.items, "Items", "json");
|
|
47095
|
-
}
|
|
47096
|
-
|
|
47097
|
-
let body : {[key: string ]: any} = { };
|
|
47098
|
-
if (!Util.isUnset(request.description)) {
|
|
47099
|
-
body["Description"] = request.description;
|
|
47100
|
-
}
|
|
47101
|
-
|
|
47102
|
-
if (!Util.isUnset(request.id)) {
|
|
47103
|
-
body["Id"] = request.id;
|
|
47104
|
-
}
|
|
47105
|
-
|
|
47106
|
-
if (!Util.isUnset(request.itemsShrink)) {
|
|
47107
|
-
body["Items"] = request.itemsShrink;
|
|
47108
|
-
}
|
|
47109
|
-
|
|
47110
|
-
if (!Util.isUnset(request.name)) {
|
|
47111
|
-
body["Name"] = request.name;
|
|
47112
|
-
}
|
|
47113
|
-
|
|
47114
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
47115
|
-
body: OpenApiUtil.parseToMap(body),
|
|
47116
|
-
});
|
|
47117
|
-
let params = new $OpenApi.Params({
|
|
47118
|
-
action: "UpdateList",
|
|
47119
|
-
version: "2024-09-10",
|
|
47120
|
-
protocol: "HTTPS",
|
|
47121
|
-
pathname: "/",
|
|
47122
|
-
method: "POST",
|
|
47123
|
-
authType: "AK",
|
|
47124
|
-
style: "RPC",
|
|
47125
|
-
reqBodyType: "formData",
|
|
47126
|
-
bodyType: "json",
|
|
47127
|
-
});
|
|
47128
|
-
return $tea.cast<UpdateListResponse>(await this.callApi(params, req, runtime), new UpdateListResponse({}));
|
|
47129
|
-
}
|
|
47130
|
-
|
|
47131
|
-
/**
|
|
47132
|
-
* Updates a custom list.
|
|
47133
|
-
*
|
|
47134
|
-
* @param request - UpdateListRequest
|
|
47135
|
-
* @returns UpdateListResponse
|
|
47136
|
-
*/
|
|
47137
|
-
async updateList(request: UpdateListRequest): Promise<UpdateListResponse> {
|
|
47138
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
47139
|
-
return await this.updateListWithOptions(request, runtime);
|
|
47140
|
-
}
|
|
47141
|
-
|
|
47142
46915
|
/**
|
|
47143
46916
|
* Enables or disables IP convergence.
|
|
47144
46917
|
*
|