alibabacloud-esa20240910 2.36.1__py3-none-any.whl → 2.37.0__py3-none-any.whl
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.
- alibabacloud_esa20240910/__init__.py +1 -1
- alibabacloud_esa20240910/client.py +574 -0
- alibabacloud_esa20240910/models/__init__.py +46 -0
- alibabacloud_esa20240910/models/_apply_custom_hostname_certificate_request.py +34 -0
- alibabacloud_esa20240910/models/_apply_custom_hostname_certificate_response.py +54 -0
- alibabacloud_esa20240910/models/_apply_custom_hostname_certificate_response_body.py +33 -0
- alibabacloud_esa20240910/models/_create_custom_hostname_request.py +114 -0
- alibabacloud_esa20240910/models/_create_custom_hostname_response.py +54 -0
- alibabacloud_esa20240910/models/_create_custom_hostname_response_body.py +49 -0
- alibabacloud_esa20240910/models/_delete_custom_hostname_request.py +34 -0
- alibabacloud_esa20240910/models/_delete_custom_hostname_response.py +54 -0
- alibabacloud_esa20240910/models/_delete_custom_hostname_response_body.py +33 -0
- alibabacloud_esa20240910/models/_get_custom_hostname_request.py +34 -0
- alibabacloud_esa20240910/models/_get_custom_hostname_response.py +54 -0
- alibabacloud_esa20240910/models/_get_custom_hostname_response_body.py +301 -0
- alibabacloud_esa20240910/models/_list_custom_hostnames_request.py +82 -0
- alibabacloud_esa20240910/models/_list_custom_hostnames_response.py +54 -0
- alibabacloud_esa20240910/models/_list_custom_hostnames_response_body.py +298 -0
- alibabacloud_esa20240910/models/_update_custom_hostname_request.py +97 -0
- alibabacloud_esa20240910/models/_update_custom_hostname_response.py +54 -0
- alibabacloud_esa20240910/models/_update_custom_hostname_response_body.py +33 -0
- alibabacloud_esa20240910/models/_verify_custom_hostname_request.py +34 -0
- alibabacloud_esa20240910/models/_verify_custom_hostname_response.py +54 -0
- alibabacloud_esa20240910/models/_verify_custom_hostname_response_body.py +41 -0
- {alibabacloud_esa20240910-2.36.1.dist-info → alibabacloud_esa20240910-2.37.0.dist-info}/METADATA +1 -1
- {alibabacloud_esa20240910-2.36.1.dist-info → alibabacloud_esa20240910-2.37.0.dist-info}/RECORD +29 -8
- {alibabacloud_esa20240910-2.36.1.dist-info → alibabacloud_esa20240910-2.37.0.dist-info}/LICENSE +0 -0
- {alibabacloud_esa20240910-2.36.1.dist-info → alibabacloud_esa20240910-2.37.0.dist-info}/WHEEL +0 -0
- {alibabacloud_esa20240910-2.36.1.dist-info → alibabacloud_esa20240910-2.37.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.
|
|
1
|
+
__version__ = '2.37.0'
|
|
@@ -415,6 +415,76 @@ class Client(OpenApiClient):
|
|
|
415
415
|
runtime = RuntimeOptions()
|
|
416
416
|
return await self.apply_certificate_with_options_async(request, runtime)
|
|
417
417
|
|
|
418
|
+
def apply_custom_hostname_certificate_with_options(
|
|
419
|
+
self,
|
|
420
|
+
request: main_models.ApplyCustomHostnameCertificateRequest,
|
|
421
|
+
runtime: RuntimeOptions,
|
|
422
|
+
) -> main_models.ApplyCustomHostnameCertificateResponse:
|
|
423
|
+
request.validate()
|
|
424
|
+
query = {}
|
|
425
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
426
|
+
query['HostnameId'] = request.hostname_id
|
|
427
|
+
req = open_api_util_models.OpenApiRequest(
|
|
428
|
+
query = Utils.query(query)
|
|
429
|
+
)
|
|
430
|
+
params = open_api_util_models.Params(
|
|
431
|
+
action = 'ApplyCustomHostnameCertificate',
|
|
432
|
+
version = '2024-09-10',
|
|
433
|
+
protocol = 'HTTPS',
|
|
434
|
+
pathname = '/',
|
|
435
|
+
method = 'POST',
|
|
436
|
+
auth_type = 'AK',
|
|
437
|
+
style = 'RPC',
|
|
438
|
+
req_body_type = 'formData',
|
|
439
|
+
body_type = 'json'
|
|
440
|
+
)
|
|
441
|
+
return DaraCore.from_map(
|
|
442
|
+
main_models.ApplyCustomHostnameCertificateResponse(),
|
|
443
|
+
self.call_api(params, req, runtime)
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
async def apply_custom_hostname_certificate_with_options_async(
|
|
447
|
+
self,
|
|
448
|
+
request: main_models.ApplyCustomHostnameCertificateRequest,
|
|
449
|
+
runtime: RuntimeOptions,
|
|
450
|
+
) -> main_models.ApplyCustomHostnameCertificateResponse:
|
|
451
|
+
request.validate()
|
|
452
|
+
query = {}
|
|
453
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
454
|
+
query['HostnameId'] = request.hostname_id
|
|
455
|
+
req = open_api_util_models.OpenApiRequest(
|
|
456
|
+
query = Utils.query(query)
|
|
457
|
+
)
|
|
458
|
+
params = open_api_util_models.Params(
|
|
459
|
+
action = 'ApplyCustomHostnameCertificate',
|
|
460
|
+
version = '2024-09-10',
|
|
461
|
+
protocol = 'HTTPS',
|
|
462
|
+
pathname = '/',
|
|
463
|
+
method = 'POST',
|
|
464
|
+
auth_type = 'AK',
|
|
465
|
+
style = 'RPC',
|
|
466
|
+
req_body_type = 'formData',
|
|
467
|
+
body_type = 'json'
|
|
468
|
+
)
|
|
469
|
+
return DaraCore.from_map(
|
|
470
|
+
main_models.ApplyCustomHostnameCertificateResponse(),
|
|
471
|
+
await self.call_api_async(params, req, runtime)
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
def apply_custom_hostname_certificate(
|
|
475
|
+
self,
|
|
476
|
+
request: main_models.ApplyCustomHostnameCertificateRequest,
|
|
477
|
+
) -> main_models.ApplyCustomHostnameCertificateResponse:
|
|
478
|
+
runtime = RuntimeOptions()
|
|
479
|
+
return self.apply_custom_hostname_certificate_with_options(request, runtime)
|
|
480
|
+
|
|
481
|
+
async def apply_custom_hostname_certificate_async(
|
|
482
|
+
self,
|
|
483
|
+
request: main_models.ApplyCustomHostnameCertificateRequest,
|
|
484
|
+
) -> main_models.ApplyCustomHostnameCertificateResponse:
|
|
485
|
+
runtime = RuntimeOptions()
|
|
486
|
+
return await self.apply_custom_hostname_certificate_with_options_async(request, runtime)
|
|
487
|
+
|
|
418
488
|
def batch_create_records_with_options(
|
|
419
489
|
self,
|
|
420
490
|
tmp_req: main_models.BatchCreateRecordsRequest,
|
|
@@ -2245,6 +2315,108 @@ class Client(OpenApiClient):
|
|
|
2245
2315
|
runtime = RuntimeOptions()
|
|
2246
2316
|
return await self.create_compression_rule_with_options_async(request, runtime)
|
|
2247
2317
|
|
|
2318
|
+
def create_custom_hostname_with_options(
|
|
2319
|
+
self,
|
|
2320
|
+
request: main_models.CreateCustomHostnameRequest,
|
|
2321
|
+
runtime: RuntimeOptions,
|
|
2322
|
+
) -> main_models.CreateCustomHostnameResponse:
|
|
2323
|
+
request.validate()
|
|
2324
|
+
query = {}
|
|
2325
|
+
if not DaraCore.is_null(request.cas_id):
|
|
2326
|
+
query['CasId'] = request.cas_id
|
|
2327
|
+
if not DaraCore.is_null(request.cas_region):
|
|
2328
|
+
query['CasRegion'] = request.cas_region
|
|
2329
|
+
if not DaraCore.is_null(request.cert_type):
|
|
2330
|
+
query['CertType'] = request.cert_type
|
|
2331
|
+
if not DaraCore.is_null(request.certificate):
|
|
2332
|
+
query['Certificate'] = request.certificate
|
|
2333
|
+
if not DaraCore.is_null(request.hostname):
|
|
2334
|
+
query['Hostname'] = request.hostname
|
|
2335
|
+
if not DaraCore.is_null(request.private_key):
|
|
2336
|
+
query['PrivateKey'] = request.private_key
|
|
2337
|
+
if not DaraCore.is_null(request.record_id):
|
|
2338
|
+
query['RecordId'] = request.record_id
|
|
2339
|
+
if not DaraCore.is_null(request.site_id):
|
|
2340
|
+
query['SiteId'] = request.site_id
|
|
2341
|
+
if not DaraCore.is_null(request.ssl_flag):
|
|
2342
|
+
query['SslFlag'] = request.ssl_flag
|
|
2343
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2344
|
+
query = Utils.query(query)
|
|
2345
|
+
)
|
|
2346
|
+
params = open_api_util_models.Params(
|
|
2347
|
+
action = 'CreateCustomHostname',
|
|
2348
|
+
version = '2024-09-10',
|
|
2349
|
+
protocol = 'HTTPS',
|
|
2350
|
+
pathname = '/',
|
|
2351
|
+
method = 'POST',
|
|
2352
|
+
auth_type = 'AK',
|
|
2353
|
+
style = 'RPC',
|
|
2354
|
+
req_body_type = 'formData',
|
|
2355
|
+
body_type = 'json'
|
|
2356
|
+
)
|
|
2357
|
+
return DaraCore.from_map(
|
|
2358
|
+
main_models.CreateCustomHostnameResponse(),
|
|
2359
|
+
self.call_api(params, req, runtime)
|
|
2360
|
+
)
|
|
2361
|
+
|
|
2362
|
+
async def create_custom_hostname_with_options_async(
|
|
2363
|
+
self,
|
|
2364
|
+
request: main_models.CreateCustomHostnameRequest,
|
|
2365
|
+
runtime: RuntimeOptions,
|
|
2366
|
+
) -> main_models.CreateCustomHostnameResponse:
|
|
2367
|
+
request.validate()
|
|
2368
|
+
query = {}
|
|
2369
|
+
if not DaraCore.is_null(request.cas_id):
|
|
2370
|
+
query['CasId'] = request.cas_id
|
|
2371
|
+
if not DaraCore.is_null(request.cas_region):
|
|
2372
|
+
query['CasRegion'] = request.cas_region
|
|
2373
|
+
if not DaraCore.is_null(request.cert_type):
|
|
2374
|
+
query['CertType'] = request.cert_type
|
|
2375
|
+
if not DaraCore.is_null(request.certificate):
|
|
2376
|
+
query['Certificate'] = request.certificate
|
|
2377
|
+
if not DaraCore.is_null(request.hostname):
|
|
2378
|
+
query['Hostname'] = request.hostname
|
|
2379
|
+
if not DaraCore.is_null(request.private_key):
|
|
2380
|
+
query['PrivateKey'] = request.private_key
|
|
2381
|
+
if not DaraCore.is_null(request.record_id):
|
|
2382
|
+
query['RecordId'] = request.record_id
|
|
2383
|
+
if not DaraCore.is_null(request.site_id):
|
|
2384
|
+
query['SiteId'] = request.site_id
|
|
2385
|
+
if not DaraCore.is_null(request.ssl_flag):
|
|
2386
|
+
query['SslFlag'] = request.ssl_flag
|
|
2387
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2388
|
+
query = Utils.query(query)
|
|
2389
|
+
)
|
|
2390
|
+
params = open_api_util_models.Params(
|
|
2391
|
+
action = 'CreateCustomHostname',
|
|
2392
|
+
version = '2024-09-10',
|
|
2393
|
+
protocol = 'HTTPS',
|
|
2394
|
+
pathname = '/',
|
|
2395
|
+
method = 'POST',
|
|
2396
|
+
auth_type = 'AK',
|
|
2397
|
+
style = 'RPC',
|
|
2398
|
+
req_body_type = 'formData',
|
|
2399
|
+
body_type = 'json'
|
|
2400
|
+
)
|
|
2401
|
+
return DaraCore.from_map(
|
|
2402
|
+
main_models.CreateCustomHostnameResponse(),
|
|
2403
|
+
await self.call_api_async(params, req, runtime)
|
|
2404
|
+
)
|
|
2405
|
+
|
|
2406
|
+
def create_custom_hostname(
|
|
2407
|
+
self,
|
|
2408
|
+
request: main_models.CreateCustomHostnameRequest,
|
|
2409
|
+
) -> main_models.CreateCustomHostnameResponse:
|
|
2410
|
+
runtime = RuntimeOptions()
|
|
2411
|
+
return self.create_custom_hostname_with_options(request, runtime)
|
|
2412
|
+
|
|
2413
|
+
async def create_custom_hostname_async(
|
|
2414
|
+
self,
|
|
2415
|
+
request: main_models.CreateCustomHostnameRequest,
|
|
2416
|
+
) -> main_models.CreateCustomHostnameResponse:
|
|
2417
|
+
runtime = RuntimeOptions()
|
|
2418
|
+
return await self.create_custom_hostname_with_options_async(request, runtime)
|
|
2419
|
+
|
|
2248
2420
|
def create_custom_scene_policy_with_options(
|
|
2249
2421
|
self,
|
|
2250
2422
|
request: main_models.CreateCustomScenePolicyRequest,
|
|
@@ -7145,6 +7317,76 @@ class Client(OpenApiClient):
|
|
|
7145
7317
|
runtime = RuntimeOptions()
|
|
7146
7318
|
return await self.delete_compression_rule_with_options_async(request, runtime)
|
|
7147
7319
|
|
|
7320
|
+
def delete_custom_hostname_with_options(
|
|
7321
|
+
self,
|
|
7322
|
+
request: main_models.DeleteCustomHostnameRequest,
|
|
7323
|
+
runtime: RuntimeOptions,
|
|
7324
|
+
) -> main_models.DeleteCustomHostnameResponse:
|
|
7325
|
+
request.validate()
|
|
7326
|
+
query = {}
|
|
7327
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
7328
|
+
query['HostnameId'] = request.hostname_id
|
|
7329
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7330
|
+
query = Utils.query(query)
|
|
7331
|
+
)
|
|
7332
|
+
params = open_api_util_models.Params(
|
|
7333
|
+
action = 'DeleteCustomHostname',
|
|
7334
|
+
version = '2024-09-10',
|
|
7335
|
+
protocol = 'HTTPS',
|
|
7336
|
+
pathname = '/',
|
|
7337
|
+
method = 'POST',
|
|
7338
|
+
auth_type = 'AK',
|
|
7339
|
+
style = 'RPC',
|
|
7340
|
+
req_body_type = 'formData',
|
|
7341
|
+
body_type = 'json'
|
|
7342
|
+
)
|
|
7343
|
+
return DaraCore.from_map(
|
|
7344
|
+
main_models.DeleteCustomHostnameResponse(),
|
|
7345
|
+
self.call_api(params, req, runtime)
|
|
7346
|
+
)
|
|
7347
|
+
|
|
7348
|
+
async def delete_custom_hostname_with_options_async(
|
|
7349
|
+
self,
|
|
7350
|
+
request: main_models.DeleteCustomHostnameRequest,
|
|
7351
|
+
runtime: RuntimeOptions,
|
|
7352
|
+
) -> main_models.DeleteCustomHostnameResponse:
|
|
7353
|
+
request.validate()
|
|
7354
|
+
query = {}
|
|
7355
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
7356
|
+
query['HostnameId'] = request.hostname_id
|
|
7357
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7358
|
+
query = Utils.query(query)
|
|
7359
|
+
)
|
|
7360
|
+
params = open_api_util_models.Params(
|
|
7361
|
+
action = 'DeleteCustomHostname',
|
|
7362
|
+
version = '2024-09-10',
|
|
7363
|
+
protocol = 'HTTPS',
|
|
7364
|
+
pathname = '/',
|
|
7365
|
+
method = 'POST',
|
|
7366
|
+
auth_type = 'AK',
|
|
7367
|
+
style = 'RPC',
|
|
7368
|
+
req_body_type = 'formData',
|
|
7369
|
+
body_type = 'json'
|
|
7370
|
+
)
|
|
7371
|
+
return DaraCore.from_map(
|
|
7372
|
+
main_models.DeleteCustomHostnameResponse(),
|
|
7373
|
+
await self.call_api_async(params, req, runtime)
|
|
7374
|
+
)
|
|
7375
|
+
|
|
7376
|
+
def delete_custom_hostname(
|
|
7377
|
+
self,
|
|
7378
|
+
request: main_models.DeleteCustomHostnameRequest,
|
|
7379
|
+
) -> main_models.DeleteCustomHostnameResponse:
|
|
7380
|
+
runtime = RuntimeOptions()
|
|
7381
|
+
return self.delete_custom_hostname_with_options(request, runtime)
|
|
7382
|
+
|
|
7383
|
+
async def delete_custom_hostname_async(
|
|
7384
|
+
self,
|
|
7385
|
+
request: main_models.DeleteCustomHostnameRequest,
|
|
7386
|
+
) -> main_models.DeleteCustomHostnameResponse:
|
|
7387
|
+
runtime = RuntimeOptions()
|
|
7388
|
+
return await self.delete_custom_hostname_with_options_async(request, runtime)
|
|
7389
|
+
|
|
7148
7390
|
def delete_custom_scene_policy_with_options(
|
|
7149
7391
|
self,
|
|
7150
7392
|
request: main_models.DeleteCustomScenePolicyRequest,
|
|
@@ -13063,6 +13305,76 @@ class Client(OpenApiClient):
|
|
|
13063
13305
|
runtime = RuntimeOptions()
|
|
13064
13306
|
return await self.get_cross_border_optimization_with_options_async(request, runtime)
|
|
13065
13307
|
|
|
13308
|
+
def get_custom_hostname_with_options(
|
|
13309
|
+
self,
|
|
13310
|
+
request: main_models.GetCustomHostnameRequest,
|
|
13311
|
+
runtime: RuntimeOptions,
|
|
13312
|
+
) -> main_models.GetCustomHostnameResponse:
|
|
13313
|
+
request.validate()
|
|
13314
|
+
query = {}
|
|
13315
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
13316
|
+
query['HostnameId'] = request.hostname_id
|
|
13317
|
+
req = open_api_util_models.OpenApiRequest(
|
|
13318
|
+
query = Utils.query(query)
|
|
13319
|
+
)
|
|
13320
|
+
params = open_api_util_models.Params(
|
|
13321
|
+
action = 'GetCustomHostname',
|
|
13322
|
+
version = '2024-09-10',
|
|
13323
|
+
protocol = 'HTTPS',
|
|
13324
|
+
pathname = '/',
|
|
13325
|
+
method = 'POST',
|
|
13326
|
+
auth_type = 'AK',
|
|
13327
|
+
style = 'RPC',
|
|
13328
|
+
req_body_type = 'formData',
|
|
13329
|
+
body_type = 'json'
|
|
13330
|
+
)
|
|
13331
|
+
return DaraCore.from_map(
|
|
13332
|
+
main_models.GetCustomHostnameResponse(),
|
|
13333
|
+
self.call_api(params, req, runtime)
|
|
13334
|
+
)
|
|
13335
|
+
|
|
13336
|
+
async def get_custom_hostname_with_options_async(
|
|
13337
|
+
self,
|
|
13338
|
+
request: main_models.GetCustomHostnameRequest,
|
|
13339
|
+
runtime: RuntimeOptions,
|
|
13340
|
+
) -> main_models.GetCustomHostnameResponse:
|
|
13341
|
+
request.validate()
|
|
13342
|
+
query = {}
|
|
13343
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
13344
|
+
query['HostnameId'] = request.hostname_id
|
|
13345
|
+
req = open_api_util_models.OpenApiRequest(
|
|
13346
|
+
query = Utils.query(query)
|
|
13347
|
+
)
|
|
13348
|
+
params = open_api_util_models.Params(
|
|
13349
|
+
action = 'GetCustomHostname',
|
|
13350
|
+
version = '2024-09-10',
|
|
13351
|
+
protocol = 'HTTPS',
|
|
13352
|
+
pathname = '/',
|
|
13353
|
+
method = 'POST',
|
|
13354
|
+
auth_type = 'AK',
|
|
13355
|
+
style = 'RPC',
|
|
13356
|
+
req_body_type = 'formData',
|
|
13357
|
+
body_type = 'json'
|
|
13358
|
+
)
|
|
13359
|
+
return DaraCore.from_map(
|
|
13360
|
+
main_models.GetCustomHostnameResponse(),
|
|
13361
|
+
await self.call_api_async(params, req, runtime)
|
|
13362
|
+
)
|
|
13363
|
+
|
|
13364
|
+
def get_custom_hostname(
|
|
13365
|
+
self,
|
|
13366
|
+
request: main_models.GetCustomHostnameRequest,
|
|
13367
|
+
) -> main_models.GetCustomHostnameResponse:
|
|
13368
|
+
runtime = RuntimeOptions()
|
|
13369
|
+
return self.get_custom_hostname_with_options(request, runtime)
|
|
13370
|
+
|
|
13371
|
+
async def get_custom_hostname_async(
|
|
13372
|
+
self,
|
|
13373
|
+
request: main_models.GetCustomHostnameRequest,
|
|
13374
|
+
) -> main_models.GetCustomHostnameResponse:
|
|
13375
|
+
runtime = RuntimeOptions()
|
|
13376
|
+
return await self.get_custom_hostname_with_options_async(request, runtime)
|
|
13377
|
+
|
|
13066
13378
|
def get_development_mode_with_options(
|
|
13067
13379
|
self,
|
|
13068
13380
|
request: main_models.GetDevelopmentModeRequest,
|
|
@@ -18393,6 +18705,100 @@ class Client(OpenApiClient):
|
|
|
18393
18705
|
runtime = RuntimeOptions()
|
|
18394
18706
|
return await self.list_compression_rules_with_options_async(request, runtime)
|
|
18395
18707
|
|
|
18708
|
+
def list_custom_hostnames_with_options(
|
|
18709
|
+
self,
|
|
18710
|
+
request: main_models.ListCustomHostnamesRequest,
|
|
18711
|
+
runtime: RuntimeOptions,
|
|
18712
|
+
) -> main_models.ListCustomHostnamesResponse:
|
|
18713
|
+
request.validate()
|
|
18714
|
+
query = {}
|
|
18715
|
+
if not DaraCore.is_null(request.hostname):
|
|
18716
|
+
query['Hostname'] = request.hostname
|
|
18717
|
+
if not DaraCore.is_null(request.name_match_type):
|
|
18718
|
+
query['NameMatchType'] = request.name_match_type
|
|
18719
|
+
if not DaraCore.is_null(request.page_number):
|
|
18720
|
+
query['PageNumber'] = request.page_number
|
|
18721
|
+
if not DaraCore.is_null(request.page_size):
|
|
18722
|
+
query['PageSize'] = request.page_size
|
|
18723
|
+
if not DaraCore.is_null(request.record_id):
|
|
18724
|
+
query['RecordId'] = request.record_id
|
|
18725
|
+
if not DaraCore.is_null(request.site_id):
|
|
18726
|
+
query['SiteId'] = request.site_id
|
|
18727
|
+
if not DaraCore.is_null(request.status):
|
|
18728
|
+
query['Status'] = request.status
|
|
18729
|
+
req = open_api_util_models.OpenApiRequest(
|
|
18730
|
+
query = Utils.query(query)
|
|
18731
|
+
)
|
|
18732
|
+
params = open_api_util_models.Params(
|
|
18733
|
+
action = 'ListCustomHostnames',
|
|
18734
|
+
version = '2024-09-10',
|
|
18735
|
+
protocol = 'HTTPS',
|
|
18736
|
+
pathname = '/',
|
|
18737
|
+
method = 'POST',
|
|
18738
|
+
auth_type = 'AK',
|
|
18739
|
+
style = 'RPC',
|
|
18740
|
+
req_body_type = 'formData',
|
|
18741
|
+
body_type = 'json'
|
|
18742
|
+
)
|
|
18743
|
+
return DaraCore.from_map(
|
|
18744
|
+
main_models.ListCustomHostnamesResponse(),
|
|
18745
|
+
self.call_api(params, req, runtime)
|
|
18746
|
+
)
|
|
18747
|
+
|
|
18748
|
+
async def list_custom_hostnames_with_options_async(
|
|
18749
|
+
self,
|
|
18750
|
+
request: main_models.ListCustomHostnamesRequest,
|
|
18751
|
+
runtime: RuntimeOptions,
|
|
18752
|
+
) -> main_models.ListCustomHostnamesResponse:
|
|
18753
|
+
request.validate()
|
|
18754
|
+
query = {}
|
|
18755
|
+
if not DaraCore.is_null(request.hostname):
|
|
18756
|
+
query['Hostname'] = request.hostname
|
|
18757
|
+
if not DaraCore.is_null(request.name_match_type):
|
|
18758
|
+
query['NameMatchType'] = request.name_match_type
|
|
18759
|
+
if not DaraCore.is_null(request.page_number):
|
|
18760
|
+
query['PageNumber'] = request.page_number
|
|
18761
|
+
if not DaraCore.is_null(request.page_size):
|
|
18762
|
+
query['PageSize'] = request.page_size
|
|
18763
|
+
if not DaraCore.is_null(request.record_id):
|
|
18764
|
+
query['RecordId'] = request.record_id
|
|
18765
|
+
if not DaraCore.is_null(request.site_id):
|
|
18766
|
+
query['SiteId'] = request.site_id
|
|
18767
|
+
if not DaraCore.is_null(request.status):
|
|
18768
|
+
query['Status'] = request.status
|
|
18769
|
+
req = open_api_util_models.OpenApiRequest(
|
|
18770
|
+
query = Utils.query(query)
|
|
18771
|
+
)
|
|
18772
|
+
params = open_api_util_models.Params(
|
|
18773
|
+
action = 'ListCustomHostnames',
|
|
18774
|
+
version = '2024-09-10',
|
|
18775
|
+
protocol = 'HTTPS',
|
|
18776
|
+
pathname = '/',
|
|
18777
|
+
method = 'POST',
|
|
18778
|
+
auth_type = 'AK',
|
|
18779
|
+
style = 'RPC',
|
|
18780
|
+
req_body_type = 'formData',
|
|
18781
|
+
body_type = 'json'
|
|
18782
|
+
)
|
|
18783
|
+
return DaraCore.from_map(
|
|
18784
|
+
main_models.ListCustomHostnamesResponse(),
|
|
18785
|
+
await self.call_api_async(params, req, runtime)
|
|
18786
|
+
)
|
|
18787
|
+
|
|
18788
|
+
def list_custom_hostnames(
|
|
18789
|
+
self,
|
|
18790
|
+
request: main_models.ListCustomHostnamesRequest,
|
|
18791
|
+
) -> main_models.ListCustomHostnamesResponse:
|
|
18792
|
+
runtime = RuntimeOptions()
|
|
18793
|
+
return self.list_custom_hostnames_with_options(request, runtime)
|
|
18794
|
+
|
|
18795
|
+
async def list_custom_hostnames_async(
|
|
18796
|
+
self,
|
|
18797
|
+
request: main_models.ListCustomHostnamesRequest,
|
|
18798
|
+
) -> main_models.ListCustomHostnamesResponse:
|
|
18799
|
+
runtime = RuntimeOptions()
|
|
18800
|
+
return await self.list_custom_hostnames_with_options_async(request, runtime)
|
|
18801
|
+
|
|
18396
18802
|
def list_esaipinfo_with_options(
|
|
18397
18803
|
self,
|
|
18398
18804
|
request: main_models.ListESAIPInfoRequest,
|
|
@@ -25625,6 +26031,104 @@ class Client(OpenApiClient):
|
|
|
25625
26031
|
runtime = RuntimeOptions()
|
|
25626
26032
|
return await self.update_cross_border_optimization_with_options_async(request, runtime)
|
|
25627
26033
|
|
|
26034
|
+
def update_custom_hostname_with_options(
|
|
26035
|
+
self,
|
|
26036
|
+
request: main_models.UpdateCustomHostnameRequest,
|
|
26037
|
+
runtime: RuntimeOptions,
|
|
26038
|
+
) -> main_models.UpdateCustomHostnameResponse:
|
|
26039
|
+
request.validate()
|
|
26040
|
+
query = {}
|
|
26041
|
+
if not DaraCore.is_null(request.cas_id):
|
|
26042
|
+
query['CasId'] = request.cas_id
|
|
26043
|
+
if not DaraCore.is_null(request.cas_region):
|
|
26044
|
+
query['CasRegion'] = request.cas_region
|
|
26045
|
+
if not DaraCore.is_null(request.cert_type):
|
|
26046
|
+
query['CertType'] = request.cert_type
|
|
26047
|
+
if not DaraCore.is_null(request.certificate):
|
|
26048
|
+
query['Certificate'] = request.certificate
|
|
26049
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
26050
|
+
query['HostnameId'] = request.hostname_id
|
|
26051
|
+
if not DaraCore.is_null(request.private_key):
|
|
26052
|
+
query['PrivateKey'] = request.private_key
|
|
26053
|
+
if not DaraCore.is_null(request.record_id):
|
|
26054
|
+
query['RecordId'] = request.record_id
|
|
26055
|
+
if not DaraCore.is_null(request.ssl_flag):
|
|
26056
|
+
query['SslFlag'] = request.ssl_flag
|
|
26057
|
+
req = open_api_util_models.OpenApiRequest(
|
|
26058
|
+
query = Utils.query(query)
|
|
26059
|
+
)
|
|
26060
|
+
params = open_api_util_models.Params(
|
|
26061
|
+
action = 'UpdateCustomHostname',
|
|
26062
|
+
version = '2024-09-10',
|
|
26063
|
+
protocol = 'HTTPS',
|
|
26064
|
+
pathname = '/',
|
|
26065
|
+
method = 'POST',
|
|
26066
|
+
auth_type = 'AK',
|
|
26067
|
+
style = 'RPC',
|
|
26068
|
+
req_body_type = 'formData',
|
|
26069
|
+
body_type = 'json'
|
|
26070
|
+
)
|
|
26071
|
+
return DaraCore.from_map(
|
|
26072
|
+
main_models.UpdateCustomHostnameResponse(),
|
|
26073
|
+
self.call_api(params, req, runtime)
|
|
26074
|
+
)
|
|
26075
|
+
|
|
26076
|
+
async def update_custom_hostname_with_options_async(
|
|
26077
|
+
self,
|
|
26078
|
+
request: main_models.UpdateCustomHostnameRequest,
|
|
26079
|
+
runtime: RuntimeOptions,
|
|
26080
|
+
) -> main_models.UpdateCustomHostnameResponse:
|
|
26081
|
+
request.validate()
|
|
26082
|
+
query = {}
|
|
26083
|
+
if not DaraCore.is_null(request.cas_id):
|
|
26084
|
+
query['CasId'] = request.cas_id
|
|
26085
|
+
if not DaraCore.is_null(request.cas_region):
|
|
26086
|
+
query['CasRegion'] = request.cas_region
|
|
26087
|
+
if not DaraCore.is_null(request.cert_type):
|
|
26088
|
+
query['CertType'] = request.cert_type
|
|
26089
|
+
if not DaraCore.is_null(request.certificate):
|
|
26090
|
+
query['Certificate'] = request.certificate
|
|
26091
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
26092
|
+
query['HostnameId'] = request.hostname_id
|
|
26093
|
+
if not DaraCore.is_null(request.private_key):
|
|
26094
|
+
query['PrivateKey'] = request.private_key
|
|
26095
|
+
if not DaraCore.is_null(request.record_id):
|
|
26096
|
+
query['RecordId'] = request.record_id
|
|
26097
|
+
if not DaraCore.is_null(request.ssl_flag):
|
|
26098
|
+
query['SslFlag'] = request.ssl_flag
|
|
26099
|
+
req = open_api_util_models.OpenApiRequest(
|
|
26100
|
+
query = Utils.query(query)
|
|
26101
|
+
)
|
|
26102
|
+
params = open_api_util_models.Params(
|
|
26103
|
+
action = 'UpdateCustomHostname',
|
|
26104
|
+
version = '2024-09-10',
|
|
26105
|
+
protocol = 'HTTPS',
|
|
26106
|
+
pathname = '/',
|
|
26107
|
+
method = 'POST',
|
|
26108
|
+
auth_type = 'AK',
|
|
26109
|
+
style = 'RPC',
|
|
26110
|
+
req_body_type = 'formData',
|
|
26111
|
+
body_type = 'json'
|
|
26112
|
+
)
|
|
26113
|
+
return DaraCore.from_map(
|
|
26114
|
+
main_models.UpdateCustomHostnameResponse(),
|
|
26115
|
+
await self.call_api_async(params, req, runtime)
|
|
26116
|
+
)
|
|
26117
|
+
|
|
26118
|
+
def update_custom_hostname(
|
|
26119
|
+
self,
|
|
26120
|
+
request: main_models.UpdateCustomHostnameRequest,
|
|
26121
|
+
) -> main_models.UpdateCustomHostnameResponse:
|
|
26122
|
+
runtime = RuntimeOptions()
|
|
26123
|
+
return self.update_custom_hostname_with_options(request, runtime)
|
|
26124
|
+
|
|
26125
|
+
async def update_custom_hostname_async(
|
|
26126
|
+
self,
|
|
26127
|
+
request: main_models.UpdateCustomHostnameRequest,
|
|
26128
|
+
) -> main_models.UpdateCustomHostnameResponse:
|
|
26129
|
+
runtime = RuntimeOptions()
|
|
26130
|
+
return await self.update_custom_hostname_with_options_async(request, runtime)
|
|
26131
|
+
|
|
25628
26132
|
def update_custom_scene_policy_with_options(
|
|
25629
26133
|
self,
|
|
25630
26134
|
request: main_models.UpdateCustomScenePolicyRequest,
|
|
@@ -30899,6 +31403,76 @@ class Client(OpenApiClient):
|
|
|
30899
31403
|
runtime = RuntimeOptions()
|
|
30900
31404
|
return await self.upload_site_origin_client_certificate_with_options_async(request, runtime)
|
|
30901
31405
|
|
|
31406
|
+
def verify_custom_hostname_with_options(
|
|
31407
|
+
self,
|
|
31408
|
+
request: main_models.VerifyCustomHostnameRequest,
|
|
31409
|
+
runtime: RuntimeOptions,
|
|
31410
|
+
) -> main_models.VerifyCustomHostnameResponse:
|
|
31411
|
+
request.validate()
|
|
31412
|
+
query = {}
|
|
31413
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
31414
|
+
query['HostnameId'] = request.hostname_id
|
|
31415
|
+
req = open_api_util_models.OpenApiRequest(
|
|
31416
|
+
query = Utils.query(query)
|
|
31417
|
+
)
|
|
31418
|
+
params = open_api_util_models.Params(
|
|
31419
|
+
action = 'VerifyCustomHostname',
|
|
31420
|
+
version = '2024-09-10',
|
|
31421
|
+
protocol = 'HTTPS',
|
|
31422
|
+
pathname = '/',
|
|
31423
|
+
method = 'POST',
|
|
31424
|
+
auth_type = 'AK',
|
|
31425
|
+
style = 'RPC',
|
|
31426
|
+
req_body_type = 'formData',
|
|
31427
|
+
body_type = 'json'
|
|
31428
|
+
)
|
|
31429
|
+
return DaraCore.from_map(
|
|
31430
|
+
main_models.VerifyCustomHostnameResponse(),
|
|
31431
|
+
self.call_api(params, req, runtime)
|
|
31432
|
+
)
|
|
31433
|
+
|
|
31434
|
+
async def verify_custom_hostname_with_options_async(
|
|
31435
|
+
self,
|
|
31436
|
+
request: main_models.VerifyCustomHostnameRequest,
|
|
31437
|
+
runtime: RuntimeOptions,
|
|
31438
|
+
) -> main_models.VerifyCustomHostnameResponse:
|
|
31439
|
+
request.validate()
|
|
31440
|
+
query = {}
|
|
31441
|
+
if not DaraCore.is_null(request.hostname_id):
|
|
31442
|
+
query['HostnameId'] = request.hostname_id
|
|
31443
|
+
req = open_api_util_models.OpenApiRequest(
|
|
31444
|
+
query = Utils.query(query)
|
|
31445
|
+
)
|
|
31446
|
+
params = open_api_util_models.Params(
|
|
31447
|
+
action = 'VerifyCustomHostname',
|
|
31448
|
+
version = '2024-09-10',
|
|
31449
|
+
protocol = 'HTTPS',
|
|
31450
|
+
pathname = '/',
|
|
31451
|
+
method = 'POST',
|
|
31452
|
+
auth_type = 'AK',
|
|
31453
|
+
style = 'RPC',
|
|
31454
|
+
req_body_type = 'formData',
|
|
31455
|
+
body_type = 'json'
|
|
31456
|
+
)
|
|
31457
|
+
return DaraCore.from_map(
|
|
31458
|
+
main_models.VerifyCustomHostnameResponse(),
|
|
31459
|
+
await self.call_api_async(params, req, runtime)
|
|
31460
|
+
)
|
|
31461
|
+
|
|
31462
|
+
def verify_custom_hostname(
|
|
31463
|
+
self,
|
|
31464
|
+
request: main_models.VerifyCustomHostnameRequest,
|
|
31465
|
+
) -> main_models.VerifyCustomHostnameResponse:
|
|
31466
|
+
runtime = RuntimeOptions()
|
|
31467
|
+
return self.verify_custom_hostname_with_options(request, runtime)
|
|
31468
|
+
|
|
31469
|
+
async def verify_custom_hostname_async(
|
|
31470
|
+
self,
|
|
31471
|
+
request: main_models.VerifyCustomHostnameRequest,
|
|
31472
|
+
) -> main_models.VerifyCustomHostnameResponse:
|
|
31473
|
+
runtime = RuntimeOptions()
|
|
31474
|
+
return await self.verify_custom_hostname_with_options_async(request, runtime)
|
|
31475
|
+
|
|
30902
31476
|
def verify_site_with_options(
|
|
30903
31477
|
self,
|
|
30904
31478
|
request: main_models.VerifySiteRequest,
|