@alicloud/esa20240910 2.0.1 → 2.1.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 +409 -0
- package/dist/client.js +466 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +681 -13
package/src/client.ts
CHANGED
|
@@ -4818,6 +4818,167 @@ export class DeleteCustomScenePolicyResponse extends $tea.Model {
|
|
|
4818
4818
|
}
|
|
4819
4819
|
}
|
|
4820
4820
|
|
|
4821
|
+
export class DeleteKvRequest extends $tea.Model {
|
|
4822
|
+
/**
|
|
4823
|
+
* @remarks
|
|
4824
|
+
* This parameter is required.
|
|
4825
|
+
*
|
|
4826
|
+
* @example
|
|
4827
|
+
* test_key
|
|
4828
|
+
*/
|
|
4829
|
+
key?: string;
|
|
4830
|
+
/**
|
|
4831
|
+
* @remarks
|
|
4832
|
+
* This parameter is required.
|
|
4833
|
+
*
|
|
4834
|
+
* @example
|
|
4835
|
+
* test_namespace
|
|
4836
|
+
*/
|
|
4837
|
+
namespace?: string;
|
|
4838
|
+
static names(): { [key: string]: string } {
|
|
4839
|
+
return {
|
|
4840
|
+
key: 'Key',
|
|
4841
|
+
namespace: 'Namespace',
|
|
4842
|
+
};
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4845
|
+
static types(): { [key: string]: any } {
|
|
4846
|
+
return {
|
|
4847
|
+
key: 'string',
|
|
4848
|
+
namespace: 'string',
|
|
4849
|
+
};
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4852
|
+
constructor(map?: { [key: string]: any }) {
|
|
4853
|
+
super(map);
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4856
|
+
|
|
4857
|
+
export class DeleteKvResponseBody extends $tea.Model {
|
|
4858
|
+
/**
|
|
4859
|
+
* @remarks
|
|
4860
|
+
* Id of the request
|
|
4861
|
+
*
|
|
4862
|
+
* @example
|
|
4863
|
+
* EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
|
|
4864
|
+
*/
|
|
4865
|
+
requestId?: string;
|
|
4866
|
+
static names(): { [key: string]: string } {
|
|
4867
|
+
return {
|
|
4868
|
+
requestId: 'RequestId',
|
|
4869
|
+
};
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4872
|
+
static types(): { [key: string]: any } {
|
|
4873
|
+
return {
|
|
4874
|
+
requestId: 'string',
|
|
4875
|
+
};
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4878
|
+
constructor(map?: { [key: string]: any }) {
|
|
4879
|
+
super(map);
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
|
|
4883
|
+
export class DeleteKvResponse extends $tea.Model {
|
|
4884
|
+
headers?: { [key: string]: string };
|
|
4885
|
+
statusCode?: number;
|
|
4886
|
+
body?: DeleteKvResponseBody;
|
|
4887
|
+
static names(): { [key: string]: string } {
|
|
4888
|
+
return {
|
|
4889
|
+
headers: 'headers',
|
|
4890
|
+
statusCode: 'statusCode',
|
|
4891
|
+
body: 'body',
|
|
4892
|
+
};
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
static types(): { [key: string]: any } {
|
|
4896
|
+
return {
|
|
4897
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4898
|
+
statusCode: 'number',
|
|
4899
|
+
body: DeleteKvResponseBody,
|
|
4900
|
+
};
|
|
4901
|
+
}
|
|
4902
|
+
|
|
4903
|
+
constructor(map?: { [key: string]: any }) {
|
|
4904
|
+
super(map);
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
export class DeleteKvNamespaceRequest extends $tea.Model {
|
|
4909
|
+
/**
|
|
4910
|
+
* @remarks
|
|
4911
|
+
* This parameter is required.
|
|
4912
|
+
*
|
|
4913
|
+
* @example
|
|
4914
|
+
* test_namespace
|
|
4915
|
+
*/
|
|
4916
|
+
namespace?: string;
|
|
4917
|
+
static names(): { [key: string]: string } {
|
|
4918
|
+
return {
|
|
4919
|
+
namespace: 'Namespace',
|
|
4920
|
+
};
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
static types(): { [key: string]: any } {
|
|
4924
|
+
return {
|
|
4925
|
+
namespace: 'string',
|
|
4926
|
+
};
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
constructor(map?: { [key: string]: any }) {
|
|
4930
|
+
super(map);
|
|
4931
|
+
}
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
export class DeleteKvNamespaceResponseBody extends $tea.Model {
|
|
4935
|
+
/**
|
|
4936
|
+
* @example
|
|
4937
|
+
* EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
|
|
4938
|
+
*/
|
|
4939
|
+
requestId?: string;
|
|
4940
|
+
static names(): { [key: string]: string } {
|
|
4941
|
+
return {
|
|
4942
|
+
requestId: 'RequestId',
|
|
4943
|
+
};
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4946
|
+
static types(): { [key: string]: any } {
|
|
4947
|
+
return {
|
|
4948
|
+
requestId: 'string',
|
|
4949
|
+
};
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
constructor(map?: { [key: string]: any }) {
|
|
4953
|
+
super(map);
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
|
|
4957
|
+
export class DeleteKvNamespaceResponse extends $tea.Model {
|
|
4958
|
+
headers?: { [key: string]: string };
|
|
4959
|
+
statusCode?: number;
|
|
4960
|
+
body?: DeleteKvNamespaceResponseBody;
|
|
4961
|
+
static names(): { [key: string]: string } {
|
|
4962
|
+
return {
|
|
4963
|
+
headers: 'headers',
|
|
4964
|
+
statusCode: 'statusCode',
|
|
4965
|
+
body: 'body',
|
|
4966
|
+
};
|
|
4967
|
+
}
|
|
4968
|
+
|
|
4969
|
+
static types(): { [key: string]: any } {
|
|
4970
|
+
return {
|
|
4971
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4972
|
+
statusCode: 'number',
|
|
4973
|
+
body: DeleteKvNamespaceResponseBody,
|
|
4974
|
+
};
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
constructor(map?: { [key: string]: any }) {
|
|
4978
|
+
super(map);
|
|
4979
|
+
}
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4821
4982
|
export class DeleteListRequest extends $tea.Model {
|
|
4822
4983
|
/**
|
|
4823
4984
|
* @remarks
|
|
@@ -6386,6 +6547,61 @@ export class DescribeIPRangeListResponse extends $tea.Model {
|
|
|
6386
6547
|
}
|
|
6387
6548
|
}
|
|
6388
6549
|
|
|
6550
|
+
export class DescribeKvAccountStatusResponseBody extends $tea.Model {
|
|
6551
|
+
/**
|
|
6552
|
+
* @example
|
|
6553
|
+
* EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
|
|
6554
|
+
*/
|
|
6555
|
+
requestId?: string;
|
|
6556
|
+
/**
|
|
6557
|
+
* @example
|
|
6558
|
+
* online
|
|
6559
|
+
*/
|
|
6560
|
+
status?: string;
|
|
6561
|
+
static names(): { [key: string]: string } {
|
|
6562
|
+
return {
|
|
6563
|
+
requestId: 'RequestId',
|
|
6564
|
+
status: 'Status',
|
|
6565
|
+
};
|
|
6566
|
+
}
|
|
6567
|
+
|
|
6568
|
+
static types(): { [key: string]: any } {
|
|
6569
|
+
return {
|
|
6570
|
+
requestId: 'string',
|
|
6571
|
+
status: 'string',
|
|
6572
|
+
};
|
|
6573
|
+
}
|
|
6574
|
+
|
|
6575
|
+
constructor(map?: { [key: string]: any }) {
|
|
6576
|
+
super(map);
|
|
6577
|
+
}
|
|
6578
|
+
}
|
|
6579
|
+
|
|
6580
|
+
export class DescribeKvAccountStatusResponse extends $tea.Model {
|
|
6581
|
+
headers?: { [key: string]: string };
|
|
6582
|
+
statusCode?: number;
|
|
6583
|
+
body?: DescribeKvAccountStatusResponseBody;
|
|
6584
|
+
static names(): { [key: string]: string } {
|
|
6585
|
+
return {
|
|
6586
|
+
headers: 'headers',
|
|
6587
|
+
statusCode: 'statusCode',
|
|
6588
|
+
body: 'body',
|
|
6589
|
+
};
|
|
6590
|
+
}
|
|
6591
|
+
|
|
6592
|
+
static types(): { [key: string]: any } {
|
|
6593
|
+
return {
|
|
6594
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6595
|
+
statusCode: 'number',
|
|
6596
|
+
body: DescribeKvAccountStatusResponseBody,
|
|
6597
|
+
};
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
constructor(map?: { [key: string]: any }) {
|
|
6601
|
+
super(map);
|
|
6602
|
+
}
|
|
6603
|
+
}
|
|
6604
|
+
|
|
6389
6605
|
export class DescribePreloadTasksRequest extends $tea.Model {
|
|
6390
6606
|
/**
|
|
6391
6607
|
* @example
|
|
@@ -7016,7 +7232,159 @@ export class ExportRecordsResponse extends $tea.Model {
|
|
|
7016
7232
|
return {
|
|
7017
7233
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7018
7234
|
statusCode: 'number',
|
|
7019
|
-
body: ExportRecordsResponseBody,
|
|
7235
|
+
body: ExportRecordsResponseBody,
|
|
7236
|
+
};
|
|
7237
|
+
}
|
|
7238
|
+
|
|
7239
|
+
constructor(map?: { [key: string]: any }) {
|
|
7240
|
+
super(map);
|
|
7241
|
+
}
|
|
7242
|
+
}
|
|
7243
|
+
|
|
7244
|
+
export class GetCacheReserveSpecificationResponseBody extends $tea.Model {
|
|
7245
|
+
cacheReserveCapacity?: string[];
|
|
7246
|
+
cacheReserveRegion?: string[];
|
|
7247
|
+
/**
|
|
7248
|
+
* @remarks
|
|
7249
|
+
* Id of the request
|
|
7250
|
+
*/
|
|
7251
|
+
requestId?: string;
|
|
7252
|
+
static names(): { [key: string]: string } {
|
|
7253
|
+
return {
|
|
7254
|
+
cacheReserveCapacity: 'CacheReserveCapacity',
|
|
7255
|
+
cacheReserveRegion: 'CacheReserveRegion',
|
|
7256
|
+
requestId: 'RequestId',
|
|
7257
|
+
};
|
|
7258
|
+
}
|
|
7259
|
+
|
|
7260
|
+
static types(): { [key: string]: any } {
|
|
7261
|
+
return {
|
|
7262
|
+
cacheReserveCapacity: { 'type': 'array', 'itemType': 'string' },
|
|
7263
|
+
cacheReserveRegion: { 'type': 'array', 'itemType': 'string' },
|
|
7264
|
+
requestId: 'string',
|
|
7265
|
+
};
|
|
7266
|
+
}
|
|
7267
|
+
|
|
7268
|
+
constructor(map?: { [key: string]: any }) {
|
|
7269
|
+
super(map);
|
|
7270
|
+
}
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7273
|
+
export class GetCacheReserveSpecificationResponse extends $tea.Model {
|
|
7274
|
+
headers?: { [key: string]: string };
|
|
7275
|
+
statusCode?: number;
|
|
7276
|
+
body?: GetCacheReserveSpecificationResponseBody;
|
|
7277
|
+
static names(): { [key: string]: string } {
|
|
7278
|
+
return {
|
|
7279
|
+
headers: 'headers',
|
|
7280
|
+
statusCode: 'statusCode',
|
|
7281
|
+
body: 'body',
|
|
7282
|
+
};
|
|
7283
|
+
}
|
|
7284
|
+
|
|
7285
|
+
static types(): { [key: string]: any } {
|
|
7286
|
+
return {
|
|
7287
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7288
|
+
statusCode: 'number',
|
|
7289
|
+
body: GetCacheReserveSpecificationResponseBody,
|
|
7290
|
+
};
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7293
|
+
constructor(map?: { [key: string]: any }) {
|
|
7294
|
+
super(map);
|
|
7295
|
+
}
|
|
7296
|
+
}
|
|
7297
|
+
|
|
7298
|
+
export class GetKvRequest extends $tea.Model {
|
|
7299
|
+
/**
|
|
7300
|
+
* @example
|
|
7301
|
+
* true
|
|
7302
|
+
*/
|
|
7303
|
+
base64?: boolean;
|
|
7304
|
+
/**
|
|
7305
|
+
* @remarks
|
|
7306
|
+
* This parameter is required.
|
|
7307
|
+
*
|
|
7308
|
+
* @example
|
|
7309
|
+
* test_key
|
|
7310
|
+
*/
|
|
7311
|
+
key?: string;
|
|
7312
|
+
/**
|
|
7313
|
+
* @remarks
|
|
7314
|
+
* This parameter is required.
|
|
7315
|
+
*
|
|
7316
|
+
* @example
|
|
7317
|
+
* test_namespace
|
|
7318
|
+
*/
|
|
7319
|
+
namespace?: string;
|
|
7320
|
+
static names(): { [key: string]: string } {
|
|
7321
|
+
return {
|
|
7322
|
+
base64: 'Base64',
|
|
7323
|
+
key: 'Key',
|
|
7324
|
+
namespace: 'Namespace',
|
|
7325
|
+
};
|
|
7326
|
+
}
|
|
7327
|
+
|
|
7328
|
+
static types(): { [key: string]: any } {
|
|
7329
|
+
return {
|
|
7330
|
+
base64: 'boolean',
|
|
7331
|
+
key: 'string',
|
|
7332
|
+
namespace: 'string',
|
|
7333
|
+
};
|
|
7334
|
+
}
|
|
7335
|
+
|
|
7336
|
+
constructor(map?: { [key: string]: any }) {
|
|
7337
|
+
super(map);
|
|
7338
|
+
}
|
|
7339
|
+
}
|
|
7340
|
+
|
|
7341
|
+
export class GetKvResponseBody extends $tea.Model {
|
|
7342
|
+
/**
|
|
7343
|
+
* @example
|
|
7344
|
+
* EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
|
|
7345
|
+
*/
|
|
7346
|
+
requestId?: string;
|
|
7347
|
+
/**
|
|
7348
|
+
* @example
|
|
7349
|
+
* test_value
|
|
7350
|
+
*/
|
|
7351
|
+
value?: string;
|
|
7352
|
+
static names(): { [key: string]: string } {
|
|
7353
|
+
return {
|
|
7354
|
+
requestId: 'RequestId',
|
|
7355
|
+
value: 'Value',
|
|
7356
|
+
};
|
|
7357
|
+
}
|
|
7358
|
+
|
|
7359
|
+
static types(): { [key: string]: any } {
|
|
7360
|
+
return {
|
|
7361
|
+
requestId: 'string',
|
|
7362
|
+
value: 'string',
|
|
7363
|
+
};
|
|
7364
|
+
}
|
|
7365
|
+
|
|
7366
|
+
constructor(map?: { [key: string]: any }) {
|
|
7367
|
+
super(map);
|
|
7368
|
+
}
|
|
7369
|
+
}
|
|
7370
|
+
|
|
7371
|
+
export class GetKvResponse extends $tea.Model {
|
|
7372
|
+
headers?: { [key: string]: string };
|
|
7373
|
+
statusCode?: number;
|
|
7374
|
+
body?: GetKvResponseBody;
|
|
7375
|
+
static names(): { [key: string]: string } {
|
|
7376
|
+
return {
|
|
7377
|
+
headers: 'headers',
|
|
7378
|
+
statusCode: 'statusCode',
|
|
7379
|
+
body: 'body',
|
|
7380
|
+
};
|
|
7381
|
+
}
|
|
7382
|
+
|
|
7383
|
+
static types(): { [key: string]: any } {
|
|
7384
|
+
return {
|
|
7385
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7386
|
+
statusCode: 'number',
|
|
7387
|
+
body: GetKvResponseBody,
|
|
7020
7388
|
};
|
|
7021
7389
|
}
|
|
7022
7390
|
|
|
@@ -7025,27 +7393,73 @@ export class ExportRecordsResponse extends $tea.Model {
|
|
|
7025
7393
|
}
|
|
7026
7394
|
}
|
|
7027
7395
|
|
|
7028
|
-
export class
|
|
7029
|
-
cacheReserveCapacity?: string[];
|
|
7030
|
-
cacheReserveRegion?: string[];
|
|
7396
|
+
export class GetKvAccountResponseBody extends $tea.Model {
|
|
7031
7397
|
/**
|
|
7032
|
-
* @
|
|
7033
|
-
*
|
|
7398
|
+
* @example
|
|
7399
|
+
* 1073741824
|
|
7400
|
+
*/
|
|
7401
|
+
capacity?: number;
|
|
7402
|
+
/**
|
|
7403
|
+
* @example
|
|
7404
|
+
* 1 GB
|
|
7405
|
+
*/
|
|
7406
|
+
capacityString?: string;
|
|
7407
|
+
/**
|
|
7408
|
+
* @example
|
|
7409
|
+
* 10048576
|
|
7410
|
+
*/
|
|
7411
|
+
capacityUsed?: number;
|
|
7412
|
+
/**
|
|
7413
|
+
* @example
|
|
7414
|
+
* 100 MB
|
|
7415
|
+
*/
|
|
7416
|
+
capacityUsedString?: string;
|
|
7417
|
+
namespaceList?: GetKvAccountResponseBodyNamespaceList[];
|
|
7418
|
+
/**
|
|
7419
|
+
* @example
|
|
7420
|
+
* 10
|
|
7421
|
+
*/
|
|
7422
|
+
namespaceQuota?: number;
|
|
7423
|
+
/**
|
|
7424
|
+
* @example
|
|
7425
|
+
* 1
|
|
7426
|
+
*/
|
|
7427
|
+
namespaceUsed?: number;
|
|
7428
|
+
/**
|
|
7429
|
+
* @example
|
|
7430
|
+
* EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
|
|
7034
7431
|
*/
|
|
7035
7432
|
requestId?: string;
|
|
7433
|
+
/**
|
|
7434
|
+
* @example
|
|
7435
|
+
* online
|
|
7436
|
+
*/
|
|
7437
|
+
status?: string;
|
|
7036
7438
|
static names(): { [key: string]: string } {
|
|
7037
7439
|
return {
|
|
7038
|
-
|
|
7039
|
-
|
|
7440
|
+
capacity: 'Capacity',
|
|
7441
|
+
capacityString: 'CapacityString',
|
|
7442
|
+
capacityUsed: 'CapacityUsed',
|
|
7443
|
+
capacityUsedString: 'CapacityUsedString',
|
|
7444
|
+
namespaceList: 'NamespaceList',
|
|
7445
|
+
namespaceQuota: 'NamespaceQuota',
|
|
7446
|
+
namespaceUsed: 'NamespaceUsed',
|
|
7040
7447
|
requestId: 'RequestId',
|
|
7448
|
+
status: 'Status',
|
|
7041
7449
|
};
|
|
7042
7450
|
}
|
|
7043
7451
|
|
|
7044
7452
|
static types(): { [key: string]: any } {
|
|
7045
7453
|
return {
|
|
7046
|
-
|
|
7047
|
-
|
|
7454
|
+
capacity: 'number',
|
|
7455
|
+
capacityString: 'string',
|
|
7456
|
+
capacityUsed: 'number',
|
|
7457
|
+
capacityUsedString: 'string',
|
|
7458
|
+
namespaceList: { 'type': 'array', 'itemType': GetKvAccountResponseBodyNamespaceList },
|
|
7459
|
+
namespaceQuota: 'number',
|
|
7460
|
+
namespaceUsed: 'number',
|
|
7048
7461
|
requestId: 'string',
|
|
7462
|
+
status: 'string',
|
|
7049
7463
|
};
|
|
7050
7464
|
}
|
|
7051
7465
|
|
|
@@ -7054,10 +7468,10 @@ export class GetCacheReserveSpecificationResponseBody extends $tea.Model {
|
|
|
7054
7468
|
}
|
|
7055
7469
|
}
|
|
7056
7470
|
|
|
7057
|
-
export class
|
|
7471
|
+
export class GetKvAccountResponse extends $tea.Model {
|
|
7058
7472
|
headers?: { [key: string]: string };
|
|
7059
7473
|
statusCode?: number;
|
|
7060
|
-
body?:
|
|
7474
|
+
body?: GetKvAccountResponseBody;
|
|
7061
7475
|
static names(): { [key: string]: string } {
|
|
7062
7476
|
return {
|
|
7063
7477
|
headers: 'headers',
|
|
@@ -7070,7 +7484,7 @@ export class GetCacheReserveSpecificationResponse extends $tea.Model {
|
|
|
7070
7484
|
return {
|
|
7071
7485
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7072
7486
|
statusCode: 'number',
|
|
7073
|
-
body:
|
|
7487
|
+
body: GetKvAccountResponseBody,
|
|
7074
7488
|
};
|
|
7075
7489
|
}
|
|
7076
7490
|
|
|
@@ -19959,6 +20373,78 @@ export class DescribePurgeTasksResponseBodyTasks extends $tea.Model {
|
|
|
19959
20373
|
}
|
|
19960
20374
|
}
|
|
19961
20375
|
|
|
20376
|
+
export class GetKvAccountResponseBodyNamespaceList extends $tea.Model {
|
|
20377
|
+
/**
|
|
20378
|
+
* @example
|
|
20379
|
+
* 1073741824
|
|
20380
|
+
*/
|
|
20381
|
+
capacity?: number;
|
|
20382
|
+
/**
|
|
20383
|
+
* @example
|
|
20384
|
+
* 1 GB
|
|
20385
|
+
*/
|
|
20386
|
+
capacityString?: string;
|
|
20387
|
+
/**
|
|
20388
|
+
* @example
|
|
20389
|
+
* 100048576
|
|
20390
|
+
*/
|
|
20391
|
+
capacityUsed?: number;
|
|
20392
|
+
/**
|
|
20393
|
+
* @example
|
|
20394
|
+
* 100 MB
|
|
20395
|
+
*/
|
|
20396
|
+
capacityUsedString?: string;
|
|
20397
|
+
/**
|
|
20398
|
+
* @example
|
|
20399
|
+
* the first namespace
|
|
20400
|
+
*/
|
|
20401
|
+
description?: string;
|
|
20402
|
+
/**
|
|
20403
|
+
* @example
|
|
20404
|
+
* test_namespace
|
|
20405
|
+
*/
|
|
20406
|
+
namespace?: string;
|
|
20407
|
+
/**
|
|
20408
|
+
* @example
|
|
20409
|
+
* 643355322374688768
|
|
20410
|
+
*/
|
|
20411
|
+
namespaceId?: string;
|
|
20412
|
+
/**
|
|
20413
|
+
* @example
|
|
20414
|
+
* online
|
|
20415
|
+
*/
|
|
20416
|
+
status?: string;
|
|
20417
|
+
static names(): { [key: string]: string } {
|
|
20418
|
+
return {
|
|
20419
|
+
capacity: 'Capacity',
|
|
20420
|
+
capacityString: 'CapacityString',
|
|
20421
|
+
capacityUsed: 'CapacityUsed',
|
|
20422
|
+
capacityUsedString: 'CapacityUsedString',
|
|
20423
|
+
description: 'Description',
|
|
20424
|
+
namespace: 'Namespace',
|
|
20425
|
+
namespaceId: 'NamespaceId',
|
|
20426
|
+
status: 'Status',
|
|
20427
|
+
};
|
|
20428
|
+
}
|
|
20429
|
+
|
|
20430
|
+
static types(): { [key: string]: any } {
|
|
20431
|
+
return {
|
|
20432
|
+
capacity: 'number',
|
|
20433
|
+
capacityString: 'string',
|
|
20434
|
+
capacityUsed: 'number',
|
|
20435
|
+
capacityUsedString: 'string',
|
|
20436
|
+
description: 'string',
|
|
20437
|
+
namespace: 'string',
|
|
20438
|
+
namespaceId: 'string',
|
|
20439
|
+
status: 'string',
|
|
20440
|
+
};
|
|
20441
|
+
}
|
|
20442
|
+
|
|
20443
|
+
constructor(map?: { [key: string]: any }) {
|
|
20444
|
+
super(map);
|
|
20445
|
+
}
|
|
20446
|
+
}
|
|
20447
|
+
|
|
19962
20448
|
export class GetRecordResponseBodyRecordModelAuthConf extends $tea.Model {
|
|
19963
20449
|
/**
|
|
19964
20450
|
* @example
|
|
@@ -25691,6 +26177,86 @@ export default class Client extends OpenApi {
|
|
|
25691
26177
|
return await this.deleteCustomScenePolicyWithOptions(request, runtime);
|
|
25692
26178
|
}
|
|
25693
26179
|
|
|
26180
|
+
/**
|
|
26181
|
+
* 删除Namespace的Key-Value对
|
|
26182
|
+
*
|
|
26183
|
+
* @param request - DeleteKvRequest
|
|
26184
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
26185
|
+
* @returns DeleteKvResponse
|
|
26186
|
+
*/
|
|
26187
|
+
async deleteKvWithOptions(request: DeleteKvRequest, runtime: $Util.RuntimeOptions): Promise<DeleteKvResponse> {
|
|
26188
|
+
Util.validateModel(request);
|
|
26189
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
26190
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
26191
|
+
query: OpenApiUtil.query(query),
|
|
26192
|
+
});
|
|
26193
|
+
let params = new $OpenApi.Params({
|
|
26194
|
+
action: "DeleteKv",
|
|
26195
|
+
version: "2024-09-10",
|
|
26196
|
+
protocol: "HTTPS",
|
|
26197
|
+
pathname: "/",
|
|
26198
|
+
method: "GET",
|
|
26199
|
+
authType: "AK",
|
|
26200
|
+
style: "RPC",
|
|
26201
|
+
reqBodyType: "formData",
|
|
26202
|
+
bodyType: "json",
|
|
26203
|
+
});
|
|
26204
|
+
return $tea.cast<DeleteKvResponse>(await this.callApi(params, req, runtime), new DeleteKvResponse({}));
|
|
26205
|
+
}
|
|
26206
|
+
|
|
26207
|
+
/**
|
|
26208
|
+
* 删除Namespace的Key-Value对
|
|
26209
|
+
*
|
|
26210
|
+
* @param request - DeleteKvRequest
|
|
26211
|
+
* @returns DeleteKvResponse
|
|
26212
|
+
*/
|
|
26213
|
+
async deleteKv(request: DeleteKvRequest): Promise<DeleteKvResponse> {
|
|
26214
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
26215
|
+
return await this.deleteKvWithOptions(request, runtime);
|
|
26216
|
+
}
|
|
26217
|
+
|
|
26218
|
+
/**
|
|
26219
|
+
* 删除Namespace
|
|
26220
|
+
*
|
|
26221
|
+
* @param request - DeleteKvNamespaceRequest
|
|
26222
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
26223
|
+
* @returns DeleteKvNamespaceResponse
|
|
26224
|
+
*/
|
|
26225
|
+
async deleteKvNamespaceWithOptions(request: DeleteKvNamespaceRequest, runtime: $Util.RuntimeOptions): Promise<DeleteKvNamespaceResponse> {
|
|
26226
|
+
Util.validateModel(request);
|
|
26227
|
+
let query = { };
|
|
26228
|
+
if (!Util.isUnset(request.namespace)) {
|
|
26229
|
+
query["Namespace"] = request.namespace;
|
|
26230
|
+
}
|
|
26231
|
+
|
|
26232
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
26233
|
+
query: OpenApiUtil.query(query),
|
|
26234
|
+
});
|
|
26235
|
+
let params = new $OpenApi.Params({
|
|
26236
|
+
action: "DeleteKvNamespace",
|
|
26237
|
+
version: "2024-09-10",
|
|
26238
|
+
protocol: "HTTPS",
|
|
26239
|
+
pathname: "/",
|
|
26240
|
+
method: "POST",
|
|
26241
|
+
authType: "AK",
|
|
26242
|
+
style: "RPC",
|
|
26243
|
+
reqBodyType: "formData",
|
|
26244
|
+
bodyType: "json",
|
|
26245
|
+
});
|
|
26246
|
+
return $tea.cast<DeleteKvNamespaceResponse>(await this.callApi(params, req, runtime), new DeleteKvNamespaceResponse({}));
|
|
26247
|
+
}
|
|
26248
|
+
|
|
26249
|
+
/**
|
|
26250
|
+
* 删除Namespace
|
|
26251
|
+
*
|
|
26252
|
+
* @param request - DeleteKvNamespaceRequest
|
|
26253
|
+
* @returns DeleteKvNamespaceResponse
|
|
26254
|
+
*/
|
|
26255
|
+
async deleteKvNamespace(request: DeleteKvNamespaceRequest): Promise<DeleteKvNamespaceResponse> {
|
|
26256
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
26257
|
+
return await this.deleteKvNamespaceWithOptions(request, runtime);
|
|
26258
|
+
}
|
|
26259
|
+
|
|
25694
26260
|
/**
|
|
25695
26261
|
* 删除自定义列表
|
|
25696
26262
|
*
|
|
@@ -26509,6 +27075,38 @@ export default class Client extends OpenApi {
|
|
|
26509
27075
|
return await this.describeIPRangeListWithOptions(runtime);
|
|
26510
27076
|
}
|
|
26511
27077
|
|
|
27078
|
+
/**
|
|
27079
|
+
* 查询账户的KV状态信
|
|
27080
|
+
*
|
|
27081
|
+
* @param request - DescribeKvAccountStatusRequest
|
|
27082
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
27083
|
+
* @returns DescribeKvAccountStatusResponse
|
|
27084
|
+
*/
|
|
27085
|
+
async describeKvAccountStatusWithOptions(runtime: $Util.RuntimeOptions): Promise<DescribeKvAccountStatusResponse> {
|
|
27086
|
+
let req = new $OpenApi.OpenApiRequest({ });
|
|
27087
|
+
let params = new $OpenApi.Params({
|
|
27088
|
+
action: "DescribeKvAccountStatus",
|
|
27089
|
+
version: "2024-09-10",
|
|
27090
|
+
protocol: "HTTPS",
|
|
27091
|
+
pathname: "/",
|
|
27092
|
+
method: "GET",
|
|
27093
|
+
authType: "AK",
|
|
27094
|
+
style: "RPC",
|
|
27095
|
+
reqBodyType: "formData",
|
|
27096
|
+
bodyType: "json",
|
|
27097
|
+
});
|
|
27098
|
+
return $tea.cast<DescribeKvAccountStatusResponse>(await this.callApi(params, req, runtime), new DescribeKvAccountStatusResponse({}));
|
|
27099
|
+
}
|
|
27100
|
+
|
|
27101
|
+
/**
|
|
27102
|
+
* 查询账户的KV状态信
|
|
27103
|
+
* @returns DescribeKvAccountStatusResponse
|
|
27104
|
+
*/
|
|
27105
|
+
async describeKvAccountStatus(): Promise<DescribeKvAccountStatusResponse> {
|
|
27106
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
27107
|
+
return await this.describeKvAccountStatusWithOptions(runtime);
|
|
27108
|
+
}
|
|
27109
|
+
|
|
26512
27110
|
/**
|
|
26513
27111
|
* 预热任务查询接口
|
|
26514
27112
|
*
|
|
@@ -26797,6 +27395,76 @@ export default class Client extends OpenApi {
|
|
|
26797
27395
|
return await this.getCacheReserveSpecificationWithOptions(runtime);
|
|
26798
27396
|
}
|
|
26799
27397
|
|
|
27398
|
+
/**
|
|
27399
|
+
* 查询Key-Value对的某个Key值
|
|
27400
|
+
*
|
|
27401
|
+
* @param request - GetKvRequest
|
|
27402
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
27403
|
+
* @returns GetKvResponse
|
|
27404
|
+
*/
|
|
27405
|
+
async getKvWithOptions(request: GetKvRequest, runtime: $Util.RuntimeOptions): Promise<GetKvResponse> {
|
|
27406
|
+
Util.validateModel(request);
|
|
27407
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
27408
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
27409
|
+
query: OpenApiUtil.query(query),
|
|
27410
|
+
});
|
|
27411
|
+
let params = new $OpenApi.Params({
|
|
27412
|
+
action: "GetKv",
|
|
27413
|
+
version: "2024-09-10",
|
|
27414
|
+
protocol: "HTTPS",
|
|
27415
|
+
pathname: "/",
|
|
27416
|
+
method: "GET",
|
|
27417
|
+
authType: "AK",
|
|
27418
|
+
style: "RPC",
|
|
27419
|
+
reqBodyType: "formData",
|
|
27420
|
+
bodyType: "json",
|
|
27421
|
+
});
|
|
27422
|
+
return $tea.cast<GetKvResponse>(await this.callApi(params, req, runtime), new GetKvResponse({}));
|
|
27423
|
+
}
|
|
27424
|
+
|
|
27425
|
+
/**
|
|
27426
|
+
* 查询Key-Value对的某个Key值
|
|
27427
|
+
*
|
|
27428
|
+
* @param request - GetKvRequest
|
|
27429
|
+
* @returns GetKvResponse
|
|
27430
|
+
*/
|
|
27431
|
+
async getKv(request: GetKvRequest): Promise<GetKvResponse> {
|
|
27432
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
27433
|
+
return await this.getKvWithOptions(request, runtime);
|
|
27434
|
+
}
|
|
27435
|
+
|
|
27436
|
+
/**
|
|
27437
|
+
* 列出账号下的NS
|
|
27438
|
+
*
|
|
27439
|
+
* @param request - GetKvAccountRequest
|
|
27440
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
27441
|
+
* @returns GetKvAccountResponse
|
|
27442
|
+
*/
|
|
27443
|
+
async getKvAccountWithOptions(runtime: $Util.RuntimeOptions): Promise<GetKvAccountResponse> {
|
|
27444
|
+
let req = new $OpenApi.OpenApiRequest({ });
|
|
27445
|
+
let params = new $OpenApi.Params({
|
|
27446
|
+
action: "GetKvAccount",
|
|
27447
|
+
version: "2024-09-10",
|
|
27448
|
+
protocol: "HTTPS",
|
|
27449
|
+
pathname: "/",
|
|
27450
|
+
method: "GET",
|
|
27451
|
+
authType: "AK",
|
|
27452
|
+
style: "RPC",
|
|
27453
|
+
reqBodyType: "formData",
|
|
27454
|
+
bodyType: "json",
|
|
27455
|
+
});
|
|
27456
|
+
return $tea.cast<GetKvAccountResponse>(await this.callApi(params, req, runtime), new GetKvAccountResponse({}));
|
|
27457
|
+
}
|
|
27458
|
+
|
|
27459
|
+
/**
|
|
27460
|
+
* 列出账号下的NS
|
|
27461
|
+
* @returns GetKvAccountResponse
|
|
27462
|
+
*/
|
|
27463
|
+
async getKvAccount(): Promise<GetKvAccountResponse> {
|
|
27464
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
27465
|
+
return await this.getKvAccountWithOptions(runtime);
|
|
27466
|
+
}
|
|
27467
|
+
|
|
26800
27468
|
/**
|
|
26801
27469
|
* 查询Namespace信息
|
|
26802
27470
|
*
|