alibabacloud-polardb20170801 6.4.1__py3-none-any.whl → 6.6.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_polardb20170801/__init__.py +1 -1
- alibabacloud_polardb20170801/client.py +586 -1
- alibabacloud_polardb20170801/models/__init__.py +52 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_log_files_request.py +93 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_log_files_response.py +54 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_log_files_response_body.py +165 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_metrics_request.py +92 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_metrics_response.py +54 -0
- alibabacloud_polardb20170801/models/_describe_aidbcluster_task_metrics_response_body.py +221 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_chat_records_request.py +42 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_chat_records_response.py +54 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_chat_records_response_body.py +112 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_session_status_request.py +42 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_session_status_response.py +54 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_session_status_response_body.py +41 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_user_sessions_request.py +33 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_user_sessions_response.py +54 -0
- alibabacloud_polardb20170801/models/_describe_polar_agent_user_sessions_response_body.py +95 -0
- alibabacloud_polardb20170801/models/_get_polar_agent_request.py +58 -0
- alibabacloud_polardb20170801/models/_get_polar_agent_response.py +54 -0
- alibabacloud_polardb20170801/models/_get_polar_agent_response_body.py +197 -0
- {alibabacloud_polardb20170801-6.4.1.dist-info → alibabacloud_polardb20170801-6.6.0.dist-info}/METADATA +1 -1
- {alibabacloud_polardb20170801-6.4.1.dist-info → alibabacloud_polardb20170801-6.6.0.dist-info}/RECORD +26 -8
- {alibabacloud_polardb20170801-6.4.1.dist-info → alibabacloud_polardb20170801-6.6.0.dist-info}/LICENSE +0 -0
- {alibabacloud_polardb20170801-6.4.1.dist-info → alibabacloud_polardb20170801-6.6.0.dist-info}/WHEEL +0 -0
- {alibabacloud_polardb20170801-6.4.1.dist-info → alibabacloud_polardb20170801-6.6.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '6.
|
|
1
|
+
__version__ = '6.6.0'
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import json
|
|
6
|
+
|
|
7
|
+
from typing import Dict, Generator, AsyncGenerator
|
|
6
8
|
|
|
7
9
|
from alibabacloud_polardb20170801 import models as main_models
|
|
8
10
|
from alibabacloud_tea_openapi import utils_models as open_api_util_models
|
|
9
11
|
from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
|
10
12
|
from alibabacloud_tea_openapi.utils import Utils
|
|
11
13
|
from darabonba.core import DaraCore as DaraCore
|
|
14
|
+
from darabonba.core import DaraCore
|
|
12
15
|
from darabonba.runtime import RuntimeOptions
|
|
13
16
|
|
|
14
17
|
"""
|
|
@@ -7567,6 +7570,202 @@ class Client(OpenApiClient):
|
|
|
7567
7570
|
runtime = RuntimeOptions()
|
|
7568
7571
|
return await self.describe_aidbcluster_performance_with_options_async(request, runtime)
|
|
7569
7572
|
|
|
7573
|
+
def describe_aidbcluster_task_log_files_with_options(
|
|
7574
|
+
self,
|
|
7575
|
+
request: main_models.DescribeAIDBClusterTaskLogFilesRequest,
|
|
7576
|
+
runtime: RuntimeOptions,
|
|
7577
|
+
) -> main_models.DescribeAIDBClusterTaskLogFilesResponse:
|
|
7578
|
+
request.validate()
|
|
7579
|
+
query = {}
|
|
7580
|
+
if not DaraCore.is_null(request.dbcluster_id):
|
|
7581
|
+
query['DBClusterId'] = request.dbcluster_id
|
|
7582
|
+
if not DaraCore.is_null(request.end_time):
|
|
7583
|
+
query['EndTime'] = request.end_time
|
|
7584
|
+
if not DaraCore.is_null(request.log_type):
|
|
7585
|
+
query['LogType'] = request.log_type
|
|
7586
|
+
if not DaraCore.is_null(request.page_number):
|
|
7587
|
+
query['PageNumber'] = request.page_number
|
|
7588
|
+
if not DaraCore.is_null(request.page_size):
|
|
7589
|
+
query['PageSize'] = request.page_size
|
|
7590
|
+
if not DaraCore.is_null(request.relative_dbcluster_id):
|
|
7591
|
+
query['RelativeDBClusterId'] = request.relative_dbcluster_id
|
|
7592
|
+
if not DaraCore.is_null(request.reverse):
|
|
7593
|
+
query['Reverse'] = request.reverse
|
|
7594
|
+
if not DaraCore.is_null(request.start_time):
|
|
7595
|
+
query['StartTime'] = request.start_time
|
|
7596
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7597
|
+
query = Utils.query(query)
|
|
7598
|
+
)
|
|
7599
|
+
params = open_api_util_models.Params(
|
|
7600
|
+
action = 'DescribeAIDBClusterTaskLogFiles',
|
|
7601
|
+
version = '2017-08-01',
|
|
7602
|
+
protocol = 'HTTPS',
|
|
7603
|
+
pathname = '/',
|
|
7604
|
+
method = 'POST',
|
|
7605
|
+
auth_type = 'AK',
|
|
7606
|
+
style = 'RPC',
|
|
7607
|
+
req_body_type = 'formData',
|
|
7608
|
+
body_type = 'json'
|
|
7609
|
+
)
|
|
7610
|
+
return DaraCore.from_map(
|
|
7611
|
+
main_models.DescribeAIDBClusterTaskLogFilesResponse(),
|
|
7612
|
+
self.call_api(params, req, runtime)
|
|
7613
|
+
)
|
|
7614
|
+
|
|
7615
|
+
async def describe_aidbcluster_task_log_files_with_options_async(
|
|
7616
|
+
self,
|
|
7617
|
+
request: main_models.DescribeAIDBClusterTaskLogFilesRequest,
|
|
7618
|
+
runtime: RuntimeOptions,
|
|
7619
|
+
) -> main_models.DescribeAIDBClusterTaskLogFilesResponse:
|
|
7620
|
+
request.validate()
|
|
7621
|
+
query = {}
|
|
7622
|
+
if not DaraCore.is_null(request.dbcluster_id):
|
|
7623
|
+
query['DBClusterId'] = request.dbcluster_id
|
|
7624
|
+
if not DaraCore.is_null(request.end_time):
|
|
7625
|
+
query['EndTime'] = request.end_time
|
|
7626
|
+
if not DaraCore.is_null(request.log_type):
|
|
7627
|
+
query['LogType'] = request.log_type
|
|
7628
|
+
if not DaraCore.is_null(request.page_number):
|
|
7629
|
+
query['PageNumber'] = request.page_number
|
|
7630
|
+
if not DaraCore.is_null(request.page_size):
|
|
7631
|
+
query['PageSize'] = request.page_size
|
|
7632
|
+
if not DaraCore.is_null(request.relative_dbcluster_id):
|
|
7633
|
+
query['RelativeDBClusterId'] = request.relative_dbcluster_id
|
|
7634
|
+
if not DaraCore.is_null(request.reverse):
|
|
7635
|
+
query['Reverse'] = request.reverse
|
|
7636
|
+
if not DaraCore.is_null(request.start_time):
|
|
7637
|
+
query['StartTime'] = request.start_time
|
|
7638
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7639
|
+
query = Utils.query(query)
|
|
7640
|
+
)
|
|
7641
|
+
params = open_api_util_models.Params(
|
|
7642
|
+
action = 'DescribeAIDBClusterTaskLogFiles',
|
|
7643
|
+
version = '2017-08-01',
|
|
7644
|
+
protocol = 'HTTPS',
|
|
7645
|
+
pathname = '/',
|
|
7646
|
+
method = 'POST',
|
|
7647
|
+
auth_type = 'AK',
|
|
7648
|
+
style = 'RPC',
|
|
7649
|
+
req_body_type = 'formData',
|
|
7650
|
+
body_type = 'json'
|
|
7651
|
+
)
|
|
7652
|
+
return DaraCore.from_map(
|
|
7653
|
+
main_models.DescribeAIDBClusterTaskLogFilesResponse(),
|
|
7654
|
+
await self.call_api_async(params, req, runtime)
|
|
7655
|
+
)
|
|
7656
|
+
|
|
7657
|
+
def describe_aidbcluster_task_log_files(
|
|
7658
|
+
self,
|
|
7659
|
+
request: main_models.DescribeAIDBClusterTaskLogFilesRequest,
|
|
7660
|
+
) -> main_models.DescribeAIDBClusterTaskLogFilesResponse:
|
|
7661
|
+
runtime = RuntimeOptions()
|
|
7662
|
+
return self.describe_aidbcluster_task_log_files_with_options(request, runtime)
|
|
7663
|
+
|
|
7664
|
+
async def describe_aidbcluster_task_log_files_async(
|
|
7665
|
+
self,
|
|
7666
|
+
request: main_models.DescribeAIDBClusterTaskLogFilesRequest,
|
|
7667
|
+
) -> main_models.DescribeAIDBClusterTaskLogFilesResponse:
|
|
7668
|
+
runtime = RuntimeOptions()
|
|
7669
|
+
return await self.describe_aidbcluster_task_log_files_with_options_async(request, runtime)
|
|
7670
|
+
|
|
7671
|
+
def describe_aidbcluster_task_metrics_with_options(
|
|
7672
|
+
self,
|
|
7673
|
+
request: main_models.DescribeAIDBClusterTaskMetricsRequest,
|
|
7674
|
+
runtime: RuntimeOptions,
|
|
7675
|
+
) -> main_models.DescribeAIDBClusterTaskMetricsResponse:
|
|
7676
|
+
request.validate()
|
|
7677
|
+
query = {}
|
|
7678
|
+
if not DaraCore.is_null(request.dbcluster_id):
|
|
7679
|
+
query['DBClusterId'] = request.dbcluster_id
|
|
7680
|
+
if not DaraCore.is_null(request.end_time):
|
|
7681
|
+
query['EndTime'] = request.end_time
|
|
7682
|
+
if not DaraCore.is_null(request.metric_type):
|
|
7683
|
+
query['MetricType'] = request.metric_type
|
|
7684
|
+
if not DaraCore.is_null(request.page_number):
|
|
7685
|
+
query['PageNumber'] = request.page_number
|
|
7686
|
+
if not DaraCore.is_null(request.page_size):
|
|
7687
|
+
query['PageSize'] = request.page_size
|
|
7688
|
+
if not DaraCore.is_null(request.relative_dbcluster_id):
|
|
7689
|
+
query['RelativeDBClusterId'] = request.relative_dbcluster_id
|
|
7690
|
+
if not DaraCore.is_null(request.reverse):
|
|
7691
|
+
query['Reverse'] = request.reverse
|
|
7692
|
+
if not DaraCore.is_null(request.start_time):
|
|
7693
|
+
query['StartTime'] = request.start_time
|
|
7694
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7695
|
+
query = Utils.query(query)
|
|
7696
|
+
)
|
|
7697
|
+
params = open_api_util_models.Params(
|
|
7698
|
+
action = 'DescribeAIDBClusterTaskMetrics',
|
|
7699
|
+
version = '2017-08-01',
|
|
7700
|
+
protocol = 'HTTPS',
|
|
7701
|
+
pathname = '/',
|
|
7702
|
+
method = 'POST',
|
|
7703
|
+
auth_type = 'AK',
|
|
7704
|
+
style = 'RPC',
|
|
7705
|
+
req_body_type = 'formData',
|
|
7706
|
+
body_type = 'json'
|
|
7707
|
+
)
|
|
7708
|
+
return DaraCore.from_map(
|
|
7709
|
+
main_models.DescribeAIDBClusterTaskMetricsResponse(),
|
|
7710
|
+
self.call_api(params, req, runtime)
|
|
7711
|
+
)
|
|
7712
|
+
|
|
7713
|
+
async def describe_aidbcluster_task_metrics_with_options_async(
|
|
7714
|
+
self,
|
|
7715
|
+
request: main_models.DescribeAIDBClusterTaskMetricsRequest,
|
|
7716
|
+
runtime: RuntimeOptions,
|
|
7717
|
+
) -> main_models.DescribeAIDBClusterTaskMetricsResponse:
|
|
7718
|
+
request.validate()
|
|
7719
|
+
query = {}
|
|
7720
|
+
if not DaraCore.is_null(request.dbcluster_id):
|
|
7721
|
+
query['DBClusterId'] = request.dbcluster_id
|
|
7722
|
+
if not DaraCore.is_null(request.end_time):
|
|
7723
|
+
query['EndTime'] = request.end_time
|
|
7724
|
+
if not DaraCore.is_null(request.metric_type):
|
|
7725
|
+
query['MetricType'] = request.metric_type
|
|
7726
|
+
if not DaraCore.is_null(request.page_number):
|
|
7727
|
+
query['PageNumber'] = request.page_number
|
|
7728
|
+
if not DaraCore.is_null(request.page_size):
|
|
7729
|
+
query['PageSize'] = request.page_size
|
|
7730
|
+
if not DaraCore.is_null(request.relative_dbcluster_id):
|
|
7731
|
+
query['RelativeDBClusterId'] = request.relative_dbcluster_id
|
|
7732
|
+
if not DaraCore.is_null(request.reverse):
|
|
7733
|
+
query['Reverse'] = request.reverse
|
|
7734
|
+
if not DaraCore.is_null(request.start_time):
|
|
7735
|
+
query['StartTime'] = request.start_time
|
|
7736
|
+
req = open_api_util_models.OpenApiRequest(
|
|
7737
|
+
query = Utils.query(query)
|
|
7738
|
+
)
|
|
7739
|
+
params = open_api_util_models.Params(
|
|
7740
|
+
action = 'DescribeAIDBClusterTaskMetrics',
|
|
7741
|
+
version = '2017-08-01',
|
|
7742
|
+
protocol = 'HTTPS',
|
|
7743
|
+
pathname = '/',
|
|
7744
|
+
method = 'POST',
|
|
7745
|
+
auth_type = 'AK',
|
|
7746
|
+
style = 'RPC',
|
|
7747
|
+
req_body_type = 'formData',
|
|
7748
|
+
body_type = 'json'
|
|
7749
|
+
)
|
|
7750
|
+
return DaraCore.from_map(
|
|
7751
|
+
main_models.DescribeAIDBClusterTaskMetricsResponse(),
|
|
7752
|
+
await self.call_api_async(params, req, runtime)
|
|
7753
|
+
)
|
|
7754
|
+
|
|
7755
|
+
def describe_aidbcluster_task_metrics(
|
|
7756
|
+
self,
|
|
7757
|
+
request: main_models.DescribeAIDBClusterTaskMetricsRequest,
|
|
7758
|
+
) -> main_models.DescribeAIDBClusterTaskMetricsResponse:
|
|
7759
|
+
runtime = RuntimeOptions()
|
|
7760
|
+
return self.describe_aidbcluster_task_metrics_with_options(request, runtime)
|
|
7761
|
+
|
|
7762
|
+
async def describe_aidbcluster_task_metrics_async(
|
|
7763
|
+
self,
|
|
7764
|
+
request: main_models.DescribeAIDBClusterTaskMetricsRequest,
|
|
7765
|
+
) -> main_models.DescribeAIDBClusterTaskMetricsResponse:
|
|
7766
|
+
runtime = RuntimeOptions()
|
|
7767
|
+
return await self.describe_aidbcluster_task_metrics_with_options_async(request, runtime)
|
|
7768
|
+
|
|
7570
7769
|
def describe_aidbclusters_with_options(
|
|
7571
7770
|
self,
|
|
7572
7771
|
request: main_models.DescribeAIDBClustersRequest,
|
|
@@ -15997,6 +16196,224 @@ class Client(OpenApiClient):
|
|
|
15997
16196
|
runtime = RuntimeOptions()
|
|
15998
16197
|
return await self.describe_pending_maintenance_actions_with_options_async(request, runtime)
|
|
15999
16198
|
|
|
16199
|
+
def describe_polar_agent_chat_records_with_options(
|
|
16200
|
+
self,
|
|
16201
|
+
request: main_models.DescribePolarAgentChatRecordsRequest,
|
|
16202
|
+
runtime: RuntimeOptions,
|
|
16203
|
+
) -> main_models.DescribePolarAgentChatRecordsResponse:
|
|
16204
|
+
request.validate()
|
|
16205
|
+
query = {}
|
|
16206
|
+
if not DaraCore.is_null(request.session_id):
|
|
16207
|
+
query['SessionId'] = request.session_id
|
|
16208
|
+
if not DaraCore.is_null(request.source):
|
|
16209
|
+
query['Source'] = request.source
|
|
16210
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16211
|
+
query = Utils.query(query)
|
|
16212
|
+
)
|
|
16213
|
+
params = open_api_util_models.Params(
|
|
16214
|
+
action = 'DescribePolarAgentChatRecords',
|
|
16215
|
+
version = '2017-08-01',
|
|
16216
|
+
protocol = 'HTTPS',
|
|
16217
|
+
pathname = '/',
|
|
16218
|
+
method = 'POST',
|
|
16219
|
+
auth_type = 'AK',
|
|
16220
|
+
style = 'RPC',
|
|
16221
|
+
req_body_type = 'formData',
|
|
16222
|
+
body_type = 'json'
|
|
16223
|
+
)
|
|
16224
|
+
return DaraCore.from_map(
|
|
16225
|
+
main_models.DescribePolarAgentChatRecordsResponse(),
|
|
16226
|
+
self.call_api(params, req, runtime)
|
|
16227
|
+
)
|
|
16228
|
+
|
|
16229
|
+
async def describe_polar_agent_chat_records_with_options_async(
|
|
16230
|
+
self,
|
|
16231
|
+
request: main_models.DescribePolarAgentChatRecordsRequest,
|
|
16232
|
+
runtime: RuntimeOptions,
|
|
16233
|
+
) -> main_models.DescribePolarAgentChatRecordsResponse:
|
|
16234
|
+
request.validate()
|
|
16235
|
+
query = {}
|
|
16236
|
+
if not DaraCore.is_null(request.session_id):
|
|
16237
|
+
query['SessionId'] = request.session_id
|
|
16238
|
+
if not DaraCore.is_null(request.source):
|
|
16239
|
+
query['Source'] = request.source
|
|
16240
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16241
|
+
query = Utils.query(query)
|
|
16242
|
+
)
|
|
16243
|
+
params = open_api_util_models.Params(
|
|
16244
|
+
action = 'DescribePolarAgentChatRecords',
|
|
16245
|
+
version = '2017-08-01',
|
|
16246
|
+
protocol = 'HTTPS',
|
|
16247
|
+
pathname = '/',
|
|
16248
|
+
method = 'POST',
|
|
16249
|
+
auth_type = 'AK',
|
|
16250
|
+
style = 'RPC',
|
|
16251
|
+
req_body_type = 'formData',
|
|
16252
|
+
body_type = 'json'
|
|
16253
|
+
)
|
|
16254
|
+
return DaraCore.from_map(
|
|
16255
|
+
main_models.DescribePolarAgentChatRecordsResponse(),
|
|
16256
|
+
await self.call_api_async(params, req, runtime)
|
|
16257
|
+
)
|
|
16258
|
+
|
|
16259
|
+
def describe_polar_agent_chat_records(
|
|
16260
|
+
self,
|
|
16261
|
+
request: main_models.DescribePolarAgentChatRecordsRequest,
|
|
16262
|
+
) -> main_models.DescribePolarAgentChatRecordsResponse:
|
|
16263
|
+
runtime = RuntimeOptions()
|
|
16264
|
+
return self.describe_polar_agent_chat_records_with_options(request, runtime)
|
|
16265
|
+
|
|
16266
|
+
async def describe_polar_agent_chat_records_async(
|
|
16267
|
+
self,
|
|
16268
|
+
request: main_models.DescribePolarAgentChatRecordsRequest,
|
|
16269
|
+
) -> main_models.DescribePolarAgentChatRecordsResponse:
|
|
16270
|
+
runtime = RuntimeOptions()
|
|
16271
|
+
return await self.describe_polar_agent_chat_records_with_options_async(request, runtime)
|
|
16272
|
+
|
|
16273
|
+
def describe_polar_agent_session_status_with_options(
|
|
16274
|
+
self,
|
|
16275
|
+
request: main_models.DescribePolarAgentSessionStatusRequest,
|
|
16276
|
+
runtime: RuntimeOptions,
|
|
16277
|
+
) -> main_models.DescribePolarAgentSessionStatusResponse:
|
|
16278
|
+
request.validate()
|
|
16279
|
+
query = {}
|
|
16280
|
+
if not DaraCore.is_null(request.session_id):
|
|
16281
|
+
query['SessionId'] = request.session_id
|
|
16282
|
+
if not DaraCore.is_null(request.source):
|
|
16283
|
+
query['Source'] = request.source
|
|
16284
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16285
|
+
query = Utils.query(query)
|
|
16286
|
+
)
|
|
16287
|
+
params = open_api_util_models.Params(
|
|
16288
|
+
action = 'DescribePolarAgentSessionStatus',
|
|
16289
|
+
version = '2017-08-01',
|
|
16290
|
+
protocol = 'HTTPS',
|
|
16291
|
+
pathname = '/',
|
|
16292
|
+
method = 'POST',
|
|
16293
|
+
auth_type = 'AK',
|
|
16294
|
+
style = 'RPC',
|
|
16295
|
+
req_body_type = 'formData',
|
|
16296
|
+
body_type = 'json'
|
|
16297
|
+
)
|
|
16298
|
+
return DaraCore.from_map(
|
|
16299
|
+
main_models.DescribePolarAgentSessionStatusResponse(),
|
|
16300
|
+
self.call_api(params, req, runtime)
|
|
16301
|
+
)
|
|
16302
|
+
|
|
16303
|
+
async def describe_polar_agent_session_status_with_options_async(
|
|
16304
|
+
self,
|
|
16305
|
+
request: main_models.DescribePolarAgentSessionStatusRequest,
|
|
16306
|
+
runtime: RuntimeOptions,
|
|
16307
|
+
) -> main_models.DescribePolarAgentSessionStatusResponse:
|
|
16308
|
+
request.validate()
|
|
16309
|
+
query = {}
|
|
16310
|
+
if not DaraCore.is_null(request.session_id):
|
|
16311
|
+
query['SessionId'] = request.session_id
|
|
16312
|
+
if not DaraCore.is_null(request.source):
|
|
16313
|
+
query['Source'] = request.source
|
|
16314
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16315
|
+
query = Utils.query(query)
|
|
16316
|
+
)
|
|
16317
|
+
params = open_api_util_models.Params(
|
|
16318
|
+
action = 'DescribePolarAgentSessionStatus',
|
|
16319
|
+
version = '2017-08-01',
|
|
16320
|
+
protocol = 'HTTPS',
|
|
16321
|
+
pathname = '/',
|
|
16322
|
+
method = 'POST',
|
|
16323
|
+
auth_type = 'AK',
|
|
16324
|
+
style = 'RPC',
|
|
16325
|
+
req_body_type = 'formData',
|
|
16326
|
+
body_type = 'json'
|
|
16327
|
+
)
|
|
16328
|
+
return DaraCore.from_map(
|
|
16329
|
+
main_models.DescribePolarAgentSessionStatusResponse(),
|
|
16330
|
+
await self.call_api_async(params, req, runtime)
|
|
16331
|
+
)
|
|
16332
|
+
|
|
16333
|
+
def describe_polar_agent_session_status(
|
|
16334
|
+
self,
|
|
16335
|
+
request: main_models.DescribePolarAgentSessionStatusRequest,
|
|
16336
|
+
) -> main_models.DescribePolarAgentSessionStatusResponse:
|
|
16337
|
+
runtime = RuntimeOptions()
|
|
16338
|
+
return self.describe_polar_agent_session_status_with_options(request, runtime)
|
|
16339
|
+
|
|
16340
|
+
async def describe_polar_agent_session_status_async(
|
|
16341
|
+
self,
|
|
16342
|
+
request: main_models.DescribePolarAgentSessionStatusRequest,
|
|
16343
|
+
) -> main_models.DescribePolarAgentSessionStatusResponse:
|
|
16344
|
+
runtime = RuntimeOptions()
|
|
16345
|
+
return await self.describe_polar_agent_session_status_with_options_async(request, runtime)
|
|
16346
|
+
|
|
16347
|
+
def describe_polar_agent_user_sessions_with_options(
|
|
16348
|
+
self,
|
|
16349
|
+
request: main_models.DescribePolarAgentUserSessionsRequest,
|
|
16350
|
+
runtime: RuntimeOptions,
|
|
16351
|
+
) -> main_models.DescribePolarAgentUserSessionsResponse:
|
|
16352
|
+
request.validate()
|
|
16353
|
+
query = {}
|
|
16354
|
+
if not DaraCore.is_null(request.source):
|
|
16355
|
+
query['Source'] = request.source
|
|
16356
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16357
|
+
query = Utils.query(query)
|
|
16358
|
+
)
|
|
16359
|
+
params = open_api_util_models.Params(
|
|
16360
|
+
action = 'DescribePolarAgentUserSessions',
|
|
16361
|
+
version = '2017-08-01',
|
|
16362
|
+
protocol = 'HTTPS',
|
|
16363
|
+
pathname = '/',
|
|
16364
|
+
method = 'POST',
|
|
16365
|
+
auth_type = 'AK',
|
|
16366
|
+
style = 'RPC',
|
|
16367
|
+
req_body_type = 'formData',
|
|
16368
|
+
body_type = 'json'
|
|
16369
|
+
)
|
|
16370
|
+
return DaraCore.from_map(
|
|
16371
|
+
main_models.DescribePolarAgentUserSessionsResponse(),
|
|
16372
|
+
self.call_api(params, req, runtime)
|
|
16373
|
+
)
|
|
16374
|
+
|
|
16375
|
+
async def describe_polar_agent_user_sessions_with_options_async(
|
|
16376
|
+
self,
|
|
16377
|
+
request: main_models.DescribePolarAgentUserSessionsRequest,
|
|
16378
|
+
runtime: RuntimeOptions,
|
|
16379
|
+
) -> main_models.DescribePolarAgentUserSessionsResponse:
|
|
16380
|
+
request.validate()
|
|
16381
|
+
query = {}
|
|
16382
|
+
if not DaraCore.is_null(request.source):
|
|
16383
|
+
query['Source'] = request.source
|
|
16384
|
+
req = open_api_util_models.OpenApiRequest(
|
|
16385
|
+
query = Utils.query(query)
|
|
16386
|
+
)
|
|
16387
|
+
params = open_api_util_models.Params(
|
|
16388
|
+
action = 'DescribePolarAgentUserSessions',
|
|
16389
|
+
version = '2017-08-01',
|
|
16390
|
+
protocol = 'HTTPS',
|
|
16391
|
+
pathname = '/',
|
|
16392
|
+
method = 'POST',
|
|
16393
|
+
auth_type = 'AK',
|
|
16394
|
+
style = 'RPC',
|
|
16395
|
+
req_body_type = 'formData',
|
|
16396
|
+
body_type = 'json'
|
|
16397
|
+
)
|
|
16398
|
+
return DaraCore.from_map(
|
|
16399
|
+
main_models.DescribePolarAgentUserSessionsResponse(),
|
|
16400
|
+
await self.call_api_async(params, req, runtime)
|
|
16401
|
+
)
|
|
16402
|
+
|
|
16403
|
+
def describe_polar_agent_user_sessions(
|
|
16404
|
+
self,
|
|
16405
|
+
request: main_models.DescribePolarAgentUserSessionsRequest,
|
|
16406
|
+
) -> main_models.DescribePolarAgentUserSessionsResponse:
|
|
16407
|
+
runtime = RuntimeOptions()
|
|
16408
|
+
return self.describe_polar_agent_user_sessions_with_options(request, runtime)
|
|
16409
|
+
|
|
16410
|
+
async def describe_polar_agent_user_sessions_async(
|
|
16411
|
+
self,
|
|
16412
|
+
request: main_models.DescribePolarAgentUserSessionsRequest,
|
|
16413
|
+
) -> main_models.DescribePolarAgentUserSessionsResponse:
|
|
16414
|
+
runtime = RuntimeOptions()
|
|
16415
|
+
return await self.describe_polar_agent_user_sessions_with_options_async(request, runtime)
|
|
16416
|
+
|
|
16000
16417
|
def describe_polar_fs_attribute_with_options(
|
|
16001
16418
|
self,
|
|
16002
16419
|
request: main_models.DescribePolarFsAttributeRequest,
|
|
@@ -18819,6 +19236,174 @@ class Client(OpenApiClient):
|
|
|
18819
19236
|
runtime = RuntimeOptions()
|
|
18820
19237
|
return await self.generate_upgrade_report_for_sync_clone_with_options_async(request, runtime)
|
|
18821
19238
|
|
|
19239
|
+
def get_polar_agent_with_sse(
|
|
19240
|
+
self,
|
|
19241
|
+
request: main_models.GetPolarAgentRequest,
|
|
19242
|
+
runtime: RuntimeOptions,
|
|
19243
|
+
) -> Generator[main_models.GetPolarAgentResponse, None, None]:
|
|
19244
|
+
request.validate()
|
|
19245
|
+
query = {}
|
|
19246
|
+
if not DaraCore.is_null(request.extra_info):
|
|
19247
|
+
query['ExtraInfo'] = request.extra_info
|
|
19248
|
+
if not DaraCore.is_null(request.query):
|
|
19249
|
+
query['Query'] = request.query
|
|
19250
|
+
if not DaraCore.is_null(request.session_id):
|
|
19251
|
+
query['SessionId'] = request.session_id
|
|
19252
|
+
if not DaraCore.is_null(request.source):
|
|
19253
|
+
query['Source'] = request.source
|
|
19254
|
+
req = open_api_util_models.OpenApiRequest(
|
|
19255
|
+
query = Utils.query(query)
|
|
19256
|
+
)
|
|
19257
|
+
params = open_api_util_models.Params(
|
|
19258
|
+
action = 'GetPolarAgent',
|
|
19259
|
+
version = '2017-08-01',
|
|
19260
|
+
protocol = 'HTTPS',
|
|
19261
|
+
pathname = '/',
|
|
19262
|
+
method = 'POST',
|
|
19263
|
+
auth_type = 'AK',
|
|
19264
|
+
style = 'RPC',
|
|
19265
|
+
req_body_type = 'formData',
|
|
19266
|
+
body_type = 'json'
|
|
19267
|
+
)
|
|
19268
|
+
sse_resp = self.call_sseapi(params, req, runtime)
|
|
19269
|
+
for resp in sse_resp:
|
|
19270
|
+
data = json.loads(resp.event.data)
|
|
19271
|
+
yield DaraCore.from_map(
|
|
19272
|
+
main_models.GetPolarAgentResponse(),
|
|
19273
|
+
{
|
|
19274
|
+
'statusCode': resp.status_code,
|
|
19275
|
+
'headers': resp.headers,
|
|
19276
|
+
'body': DaraCore.merge({
|
|
19277
|
+
'RequestId': resp.event.id,
|
|
19278
|
+
'Message': resp.event.event
|
|
19279
|
+
}, data)
|
|
19280
|
+
})
|
|
19281
|
+
|
|
19282
|
+
async def get_polar_agent_with_sse_async(
|
|
19283
|
+
self,
|
|
19284
|
+
request: main_models.GetPolarAgentRequest,
|
|
19285
|
+
runtime: RuntimeOptions,
|
|
19286
|
+
) -> AsyncGenerator[main_models.GetPolarAgentResponse, None, None]:
|
|
19287
|
+
request.validate()
|
|
19288
|
+
query = {}
|
|
19289
|
+
if not DaraCore.is_null(request.extra_info):
|
|
19290
|
+
query['ExtraInfo'] = request.extra_info
|
|
19291
|
+
if not DaraCore.is_null(request.query):
|
|
19292
|
+
query['Query'] = request.query
|
|
19293
|
+
if not DaraCore.is_null(request.session_id):
|
|
19294
|
+
query['SessionId'] = request.session_id
|
|
19295
|
+
if not DaraCore.is_null(request.source):
|
|
19296
|
+
query['Source'] = request.source
|
|
19297
|
+
req = open_api_util_models.OpenApiRequest(
|
|
19298
|
+
query = Utils.query(query)
|
|
19299
|
+
)
|
|
19300
|
+
params = open_api_util_models.Params(
|
|
19301
|
+
action = 'GetPolarAgent',
|
|
19302
|
+
version = '2017-08-01',
|
|
19303
|
+
protocol = 'HTTPS',
|
|
19304
|
+
pathname = '/',
|
|
19305
|
+
method = 'POST',
|
|
19306
|
+
auth_type = 'AK',
|
|
19307
|
+
style = 'RPC',
|
|
19308
|
+
req_body_type = 'formData',
|
|
19309
|
+
body_type = 'json'
|
|
19310
|
+
)
|
|
19311
|
+
sse_resp = self.call_sseapi_async(params, req, runtime)
|
|
19312
|
+
async for resp in sse_resp:
|
|
19313
|
+
data = json.loads(resp.event.data)
|
|
19314
|
+
yield DaraCore.from_map(
|
|
19315
|
+
main_models.GetPolarAgentResponse(),
|
|
19316
|
+
{
|
|
19317
|
+
'statusCode': resp.status_code,
|
|
19318
|
+
'headers': resp.headers,
|
|
19319
|
+
'body': DaraCore.merge({
|
|
19320
|
+
'RequestId': resp.event.id,
|
|
19321
|
+
'Message': resp.event.event
|
|
19322
|
+
}, data)
|
|
19323
|
+
})
|
|
19324
|
+
|
|
19325
|
+
def get_polar_agent_with_options(
|
|
19326
|
+
self,
|
|
19327
|
+
request: main_models.GetPolarAgentRequest,
|
|
19328
|
+
runtime: RuntimeOptions,
|
|
19329
|
+
) -> main_models.GetPolarAgentResponse:
|
|
19330
|
+
request.validate()
|
|
19331
|
+
query = {}
|
|
19332
|
+
if not DaraCore.is_null(request.extra_info):
|
|
19333
|
+
query['ExtraInfo'] = request.extra_info
|
|
19334
|
+
if not DaraCore.is_null(request.query):
|
|
19335
|
+
query['Query'] = request.query
|
|
19336
|
+
if not DaraCore.is_null(request.session_id):
|
|
19337
|
+
query['SessionId'] = request.session_id
|
|
19338
|
+
if not DaraCore.is_null(request.source):
|
|
19339
|
+
query['Source'] = request.source
|
|
19340
|
+
req = open_api_util_models.OpenApiRequest(
|
|
19341
|
+
query = Utils.query(query)
|
|
19342
|
+
)
|
|
19343
|
+
params = open_api_util_models.Params(
|
|
19344
|
+
action = 'GetPolarAgent',
|
|
19345
|
+
version = '2017-08-01',
|
|
19346
|
+
protocol = 'HTTPS',
|
|
19347
|
+
pathname = '/',
|
|
19348
|
+
method = 'POST',
|
|
19349
|
+
auth_type = 'AK',
|
|
19350
|
+
style = 'RPC',
|
|
19351
|
+
req_body_type = 'formData',
|
|
19352
|
+
body_type = 'json'
|
|
19353
|
+
)
|
|
19354
|
+
return DaraCore.from_map(
|
|
19355
|
+
main_models.GetPolarAgentResponse(),
|
|
19356
|
+
self.call_api(params, req, runtime)
|
|
19357
|
+
)
|
|
19358
|
+
|
|
19359
|
+
async def get_polar_agent_with_options_async(
|
|
19360
|
+
self,
|
|
19361
|
+
request: main_models.GetPolarAgentRequest,
|
|
19362
|
+
runtime: RuntimeOptions,
|
|
19363
|
+
) -> main_models.GetPolarAgentResponse:
|
|
19364
|
+
request.validate()
|
|
19365
|
+
query = {}
|
|
19366
|
+
if not DaraCore.is_null(request.extra_info):
|
|
19367
|
+
query['ExtraInfo'] = request.extra_info
|
|
19368
|
+
if not DaraCore.is_null(request.query):
|
|
19369
|
+
query['Query'] = request.query
|
|
19370
|
+
if not DaraCore.is_null(request.session_id):
|
|
19371
|
+
query['SessionId'] = request.session_id
|
|
19372
|
+
if not DaraCore.is_null(request.source):
|
|
19373
|
+
query['Source'] = request.source
|
|
19374
|
+
req = open_api_util_models.OpenApiRequest(
|
|
19375
|
+
query = Utils.query(query)
|
|
19376
|
+
)
|
|
19377
|
+
params = open_api_util_models.Params(
|
|
19378
|
+
action = 'GetPolarAgent',
|
|
19379
|
+
version = '2017-08-01',
|
|
19380
|
+
protocol = 'HTTPS',
|
|
19381
|
+
pathname = '/',
|
|
19382
|
+
method = 'POST',
|
|
19383
|
+
auth_type = 'AK',
|
|
19384
|
+
style = 'RPC',
|
|
19385
|
+
req_body_type = 'formData',
|
|
19386
|
+
body_type = 'json'
|
|
19387
|
+
)
|
|
19388
|
+
return DaraCore.from_map(
|
|
19389
|
+
main_models.GetPolarAgentResponse(),
|
|
19390
|
+
await self.call_api_async(params, req, runtime)
|
|
19391
|
+
)
|
|
19392
|
+
|
|
19393
|
+
def get_polar_agent(
|
|
19394
|
+
self,
|
|
19395
|
+
request: main_models.GetPolarAgentRequest,
|
|
19396
|
+
) -> main_models.GetPolarAgentResponse:
|
|
19397
|
+
runtime = RuntimeOptions()
|
|
19398
|
+
return self.get_polar_agent_with_options(request, runtime)
|
|
19399
|
+
|
|
19400
|
+
async def get_polar_agent_async(
|
|
19401
|
+
self,
|
|
19402
|
+
request: main_models.GetPolarAgentRequest,
|
|
19403
|
+
) -> main_models.GetPolarAgentResponse:
|
|
19404
|
+
runtime = RuntimeOptions()
|
|
19405
|
+
return await self.get_polar_agent_with_options_async(request, runtime)
|
|
19406
|
+
|
|
18822
19407
|
def grant_account_privilege_with_options(
|
|
18823
19408
|
self,
|
|
18824
19409
|
request: main_models.GrantAccountPrivilegeRequest,
|