byteplus-python-sdk-v2 3.0.59__py2.py3-none-any.whl → 3.0.60__py2.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.
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/METADATA +3 -1
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/RECORD +88 -53
- byteplussdkaidap/__init__.py +35 -0
- byteplussdkaidap/api/aidap_api.py +1177 -13
- byteplussdkaidap/models/__init__.py +35 -0
- byteplussdkaidap/models/bind_pages_project_request.py +230 -0
- byteplussdkaidap/models/bind_pages_project_response.py +95 -0
- byteplussdkaidap/models/binding_for_describe_pages_binding_output.py +253 -0
- byteplussdkaidap/models/branch_settings_for_create_branch_input.py +29 -3
- byteplussdkaidap/models/branch_usage_for_create_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branch_detail_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branches_list_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_child_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_default_branch_list_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_default_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_restorable_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_reset_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_set_as_default_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_update_branch_output.py +79 -1
- byteplussdkaidap/models/create_sql_concurrency_control_rule_request.py +442 -0
- byteplussdkaidap/models/create_sql_concurrency_control_rule_response.py +175 -0
- byteplussdkaidap/models/custom_quota_for_describe_baas_ai_user_summaries_output.py +27 -1
- byteplussdkaidap/models/custom_quota_for_modify_baas_ai_user_quotas_input.py +27 -1
- byteplussdkaidap/models/delete_sql_concurrency_control_rule_request.py +238 -0
- byteplussdkaidap/models/delete_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/describe_pages_binding_request.py +151 -0
- byteplussdkaidap/models/describe_pages_binding_response.py +149 -0
- byteplussdkaidap/models/describe_sql_concurrency_control_rules_request.py +466 -0
- byteplussdkaidap/models/describe_sql_concurrency_control_rules_response.py +201 -0
- byteplussdkaidap/models/describe_workspaces_request.py +27 -1
- byteplussdkaidap/models/describe_workspaces_response.py +53 -1
- byteplussdkaidap/models/limit_config_for_create_sql_concurrency_control_rule_input.py +260 -0
- byteplussdkaidap/models/limit_config_for_modify_sql_concurrency_control_rule_input.py +260 -0
- byteplussdkaidap/models/list_pages_project_request.py +227 -0
- byteplussdkaidap/models/list_pages_project_response.py +201 -0
- byteplussdkaidap/models/match_for_create_sql_concurrency_control_rule_input.py +182 -0
- byteplussdkaidap/models/modify_compute_parameters_request.py +243 -0
- byteplussdkaidap/models/modify_compute_parameters_response.py +95 -0
- byteplussdkaidap/models/modify_compute_spec_request.py +34 -1
- byteplussdkaidap/models/modify_sql_concurrency_control_rule_request.py +264 -0
- byteplussdkaidap/models/modify_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/pages_project_for_describe_pages_binding_output.py +357 -0
- byteplussdkaidap/models/parameter_for_modify_compute_parameters_input.py +149 -0
- byteplussdkaidap/models/project_for_list_pages_project_output.py +357 -0
- byteplussdkaidap/models/restore_settings_for_branch_restore_input.py +27 -1
- byteplussdkaidap/models/rule_for_describe_sql_concurrency_control_rules_output.py +565 -0
- byteplussdkaidap/models/start_workspace_request.py +27 -1
- byteplussdkaidap/models/supabase_binding_for_describe_pages_binding_output.py +253 -0
- byteplussdkaidap/models/supabase_binding_for_list_pages_project_output.py +253 -0
- byteplussdkaidap/models/suspend_workspace_request.py +124 -0
- byteplussdkaidap/models/suspend_workspace_response.py +95 -0
- byteplussdkaidap/models/switch_sql_concurrency_control_rule_request.py +265 -0
- byteplussdkaidap/models/switch_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/sync_pages_deploy_env_vars_request.py +178 -0
- byteplussdkaidap/models/sync_pages_deploy_env_vars_response.py +95 -0
- byteplussdkaidap/models/unbind_pages_project_request.py +151 -0
- byteplussdkaidap/models/unbind_pages_project_response.py +95 -0
- byteplussdkaidap/models/usage_for_describe_baas_ai_user_summaries_output.py +53 -1
- byteplussdkaidap/models/user_default_quota_for_describe_baas_ai_global_quota_output.py +27 -1
- byteplussdkaidap/models/user_default_quota_for_modify_baas_ai_global_quota_input.py +27 -1
- byteplussdkaidap/models/volc_supabase_filter_for_list_pages_project_input.py +149 -0
- byteplussdkaidap/models/workspace_usage_for_create_workspace_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_list_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspaces_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_list_workspace_usage_top_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_compute_settings_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_workspace_name_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_workspace_settings_output.py +81 -3
- byteplussdkcore/api_client.py +18 -14
- byteplussdkcore/auth/providers/sts_provider.py +0 -2
- byteplussdkcore/configuration.py +91 -21
- byteplussdkcore/interceptor/chain.py +23 -0
- byteplussdkcore/interceptor/interceptors/build_request_interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/request.py +7 -2
- byteplussdkcore/interceptor/interceptors/resolve_endpoint_interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/runtime_options_interceptor.py +28 -15
- byteplussdkcore/interceptor/interceptors/sign_request_interceptor.py +20 -0
- byteplussdkcore/retryer/retryer.py +89 -10
- byteplussdkllmshield/__init__.py +8 -0
- byteplussdkllmshield/api/llm_shield_sdk_v2.py +53 -5
- byteplussdkllmshield/models/llm_shield_sign.py +3 -3
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/NOTICE.md +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/top_level.txt +0 -0
|
@@ -41,7 +41,10 @@ class WorkspaceUsageForModifyComputeSettingsOutput(object):
|
|
|
41
41
|
'function_call_num': 'int',
|
|
42
42
|
'service_time_seconds': 'int',
|
|
43
43
|
'stat_time': 'str',
|
|
44
|
-
'storage_size_used_bytes': 'int'
|
|
44
|
+
'storage_size_used_bytes': 'int',
|
|
45
|
+
'vector_read_vcu': 'float',
|
|
46
|
+
'vector_storage_size_used_bytes': 'int',
|
|
47
|
+
'vector_write_vcu': 'float'
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
attribute_map = {
|
|
@@ -53,10 +56,13 @@ class WorkspaceUsageForModifyComputeSettingsOutput(object):
|
|
|
53
56
|
'function_call_num': 'FunctionCallNum',
|
|
54
57
|
'service_time_seconds': 'ServiceTimeSeconds',
|
|
55
58
|
'stat_time': 'StatTime',
|
|
56
|
-
'storage_size_used_bytes': 'StorageSizeUsedBytes'
|
|
59
|
+
'storage_size_used_bytes': 'StorageSizeUsedBytes',
|
|
60
|
+
'vector_read_vcu': 'VectorReadVCU',
|
|
61
|
+
'vector_storage_size_used_bytes': 'VectorStorageSizeUsedBytes',
|
|
62
|
+
'vector_write_vcu': 'VectorWriteVCU'
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, _configuration=None): # noqa: E501
|
|
65
|
+
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, vector_read_vcu=None, vector_storage_size_used_bytes=None, vector_write_vcu=None, _configuration=None): # noqa: E501
|
|
60
66
|
"""WorkspaceUsageForModifyComputeSettingsOutput - a model defined in Swagger""" # noqa: E501
|
|
61
67
|
if _configuration is None:
|
|
62
68
|
_configuration = Configuration()
|
|
@@ -71,6 +77,9 @@ class WorkspaceUsageForModifyComputeSettingsOutput(object):
|
|
|
71
77
|
self._service_time_seconds = None
|
|
72
78
|
self._stat_time = None
|
|
73
79
|
self._storage_size_used_bytes = None
|
|
80
|
+
self._vector_read_vcu = None
|
|
81
|
+
self._vector_storage_size_used_bytes = None
|
|
82
|
+
self._vector_write_vcu = None
|
|
74
83
|
self.discriminator = None
|
|
75
84
|
|
|
76
85
|
if branch_compute_time_seconds is not None:
|
|
@@ -91,6 +100,12 @@ class WorkspaceUsageForModifyComputeSettingsOutput(object):
|
|
|
91
100
|
self.stat_time = stat_time
|
|
92
101
|
if storage_size_used_bytes is not None:
|
|
93
102
|
self.storage_size_used_bytes = storage_size_used_bytes
|
|
103
|
+
if vector_read_vcu is not None:
|
|
104
|
+
self.vector_read_vcu = vector_read_vcu
|
|
105
|
+
if vector_storage_size_used_bytes is not None:
|
|
106
|
+
self.vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
107
|
+
if vector_write_vcu is not None:
|
|
108
|
+
self.vector_write_vcu = vector_write_vcu
|
|
94
109
|
|
|
95
110
|
@property
|
|
96
111
|
def branch_compute_time_seconds(self):
|
|
@@ -281,6 +296,69 @@ class WorkspaceUsageForModifyComputeSettingsOutput(object):
|
|
|
281
296
|
|
|
282
297
|
self._storage_size_used_bytes = storage_size_used_bytes
|
|
283
298
|
|
|
299
|
+
@property
|
|
300
|
+
def vector_read_vcu(self):
|
|
301
|
+
"""Gets the vector_read_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The vector_read_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
305
|
+
:rtype: float
|
|
306
|
+
"""
|
|
307
|
+
return self._vector_read_vcu
|
|
308
|
+
|
|
309
|
+
@vector_read_vcu.setter
|
|
310
|
+
def vector_read_vcu(self, vector_read_vcu):
|
|
311
|
+
"""Sets the vector_read_vcu of this WorkspaceUsageForModifyComputeSettingsOutput.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param vector_read_vcu: The vector_read_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
315
|
+
:type: float
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._vector_read_vcu = vector_read_vcu
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def vector_storage_size_used_bytes(self):
|
|
322
|
+
"""Gets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
:return: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
326
|
+
:rtype: int
|
|
327
|
+
"""
|
|
328
|
+
return self._vector_storage_size_used_bytes
|
|
329
|
+
|
|
330
|
+
@vector_storage_size_used_bytes.setter
|
|
331
|
+
def vector_storage_size_used_bytes(self, vector_storage_size_used_bytes):
|
|
332
|
+
"""Sets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyComputeSettingsOutput.
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param vector_storage_size_used_bytes: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
336
|
+
:type: int
|
|
337
|
+
"""
|
|
338
|
+
|
|
339
|
+
self._vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def vector_write_vcu(self):
|
|
343
|
+
"""Gets the vector_write_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The vector_write_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
347
|
+
:rtype: float
|
|
348
|
+
"""
|
|
349
|
+
return self._vector_write_vcu
|
|
350
|
+
|
|
351
|
+
@vector_write_vcu.setter
|
|
352
|
+
def vector_write_vcu(self, vector_write_vcu):
|
|
353
|
+
"""Sets the vector_write_vcu of this WorkspaceUsageForModifyComputeSettingsOutput.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param vector_write_vcu: The vector_write_vcu of this WorkspaceUsageForModifyComputeSettingsOutput. # noqa: E501
|
|
357
|
+
:type: float
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._vector_write_vcu = vector_write_vcu
|
|
361
|
+
|
|
284
362
|
def to_dict(self):
|
|
285
363
|
"""Returns the model properties as a dict"""
|
|
286
364
|
result = {}
|
|
@@ -41,7 +41,10 @@ class WorkspaceUsageForModifyWorkspaceNameOutput(object):
|
|
|
41
41
|
'function_call_num': 'int',
|
|
42
42
|
'service_time_seconds': 'int',
|
|
43
43
|
'stat_time': 'str',
|
|
44
|
-
'storage_size_used_bytes': 'int'
|
|
44
|
+
'storage_size_used_bytes': 'int',
|
|
45
|
+
'vector_read_vcu': 'float',
|
|
46
|
+
'vector_storage_size_used_bytes': 'int',
|
|
47
|
+
'vector_write_vcu': 'float'
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
attribute_map = {
|
|
@@ -53,10 +56,13 @@ class WorkspaceUsageForModifyWorkspaceNameOutput(object):
|
|
|
53
56
|
'function_call_num': 'FunctionCallNum',
|
|
54
57
|
'service_time_seconds': 'ServiceTimeSeconds',
|
|
55
58
|
'stat_time': 'StatTime',
|
|
56
|
-
'storage_size_used_bytes': 'StorageSizeUsedBytes'
|
|
59
|
+
'storage_size_used_bytes': 'StorageSizeUsedBytes',
|
|
60
|
+
'vector_read_vcu': 'VectorReadVCU',
|
|
61
|
+
'vector_storage_size_used_bytes': 'VectorStorageSizeUsedBytes',
|
|
62
|
+
'vector_write_vcu': 'VectorWriteVCU'
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, _configuration=None): # noqa: E501
|
|
65
|
+
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, vector_read_vcu=None, vector_storage_size_used_bytes=None, vector_write_vcu=None, _configuration=None): # noqa: E501
|
|
60
66
|
"""WorkspaceUsageForModifyWorkspaceNameOutput - a model defined in Swagger""" # noqa: E501
|
|
61
67
|
if _configuration is None:
|
|
62
68
|
_configuration = Configuration()
|
|
@@ -71,6 +77,9 @@ class WorkspaceUsageForModifyWorkspaceNameOutput(object):
|
|
|
71
77
|
self._service_time_seconds = None
|
|
72
78
|
self._stat_time = None
|
|
73
79
|
self._storage_size_used_bytes = None
|
|
80
|
+
self._vector_read_vcu = None
|
|
81
|
+
self._vector_storage_size_used_bytes = None
|
|
82
|
+
self._vector_write_vcu = None
|
|
74
83
|
self.discriminator = None
|
|
75
84
|
|
|
76
85
|
if branch_compute_time_seconds is not None:
|
|
@@ -91,6 +100,12 @@ class WorkspaceUsageForModifyWorkspaceNameOutput(object):
|
|
|
91
100
|
self.stat_time = stat_time
|
|
92
101
|
if storage_size_used_bytes is not None:
|
|
93
102
|
self.storage_size_used_bytes = storage_size_used_bytes
|
|
103
|
+
if vector_read_vcu is not None:
|
|
104
|
+
self.vector_read_vcu = vector_read_vcu
|
|
105
|
+
if vector_storage_size_used_bytes is not None:
|
|
106
|
+
self.vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
107
|
+
if vector_write_vcu is not None:
|
|
108
|
+
self.vector_write_vcu = vector_write_vcu
|
|
94
109
|
|
|
95
110
|
@property
|
|
96
111
|
def branch_compute_time_seconds(self):
|
|
@@ -281,6 +296,69 @@ class WorkspaceUsageForModifyWorkspaceNameOutput(object):
|
|
|
281
296
|
|
|
282
297
|
self._storage_size_used_bytes = storage_size_used_bytes
|
|
283
298
|
|
|
299
|
+
@property
|
|
300
|
+
def vector_read_vcu(self):
|
|
301
|
+
"""Gets the vector_read_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The vector_read_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
305
|
+
:rtype: float
|
|
306
|
+
"""
|
|
307
|
+
return self._vector_read_vcu
|
|
308
|
+
|
|
309
|
+
@vector_read_vcu.setter
|
|
310
|
+
def vector_read_vcu(self, vector_read_vcu):
|
|
311
|
+
"""Sets the vector_read_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param vector_read_vcu: The vector_read_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
315
|
+
:type: float
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._vector_read_vcu = vector_read_vcu
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def vector_storage_size_used_bytes(self):
|
|
322
|
+
"""Gets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
:return: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
326
|
+
:rtype: int
|
|
327
|
+
"""
|
|
328
|
+
return self._vector_storage_size_used_bytes
|
|
329
|
+
|
|
330
|
+
@vector_storage_size_used_bytes.setter
|
|
331
|
+
def vector_storage_size_used_bytes(self, vector_storage_size_used_bytes):
|
|
332
|
+
"""Sets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceNameOutput.
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param vector_storage_size_used_bytes: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
336
|
+
:type: int
|
|
337
|
+
"""
|
|
338
|
+
|
|
339
|
+
self._vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def vector_write_vcu(self):
|
|
343
|
+
"""Gets the vector_write_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The vector_write_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
347
|
+
:rtype: float
|
|
348
|
+
"""
|
|
349
|
+
return self._vector_write_vcu
|
|
350
|
+
|
|
351
|
+
@vector_write_vcu.setter
|
|
352
|
+
def vector_write_vcu(self, vector_write_vcu):
|
|
353
|
+
"""Sets the vector_write_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param vector_write_vcu: The vector_write_vcu of this WorkspaceUsageForModifyWorkspaceNameOutput. # noqa: E501
|
|
357
|
+
:type: float
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._vector_write_vcu = vector_write_vcu
|
|
361
|
+
|
|
284
362
|
def to_dict(self):
|
|
285
363
|
"""Returns the model properties as a dict"""
|
|
286
364
|
result = {}
|
|
@@ -41,7 +41,10 @@ class WorkspaceUsageForModifyWorkspaceSettingsOutput(object):
|
|
|
41
41
|
'function_call_num': 'int',
|
|
42
42
|
'service_time_seconds': 'int',
|
|
43
43
|
'stat_time': 'str',
|
|
44
|
-
'storage_size_used_bytes': 'int'
|
|
44
|
+
'storage_size_used_bytes': 'int',
|
|
45
|
+
'vector_read_vcu': 'float',
|
|
46
|
+
'vector_storage_size_used_bytes': 'int',
|
|
47
|
+
'vector_write_vcu': 'float'
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
attribute_map = {
|
|
@@ -53,10 +56,13 @@ class WorkspaceUsageForModifyWorkspaceSettingsOutput(object):
|
|
|
53
56
|
'function_call_num': 'FunctionCallNum',
|
|
54
57
|
'service_time_seconds': 'ServiceTimeSeconds',
|
|
55
58
|
'stat_time': 'StatTime',
|
|
56
|
-
'storage_size_used_bytes': 'StorageSizeUsedBytes'
|
|
59
|
+
'storage_size_used_bytes': 'StorageSizeUsedBytes',
|
|
60
|
+
'vector_read_vcu': 'VectorReadVCU',
|
|
61
|
+
'vector_storage_size_used_bytes': 'VectorStorageSizeUsedBytes',
|
|
62
|
+
'vector_write_vcu': 'VectorWriteVCU'
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, _configuration=None): # noqa: E501
|
|
65
|
+
def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, vector_read_vcu=None, vector_storage_size_used_bytes=None, vector_write_vcu=None, _configuration=None): # noqa: E501
|
|
60
66
|
"""WorkspaceUsageForModifyWorkspaceSettingsOutput - a model defined in Swagger""" # noqa: E501
|
|
61
67
|
if _configuration is None:
|
|
62
68
|
_configuration = Configuration()
|
|
@@ -71,6 +77,9 @@ class WorkspaceUsageForModifyWorkspaceSettingsOutput(object):
|
|
|
71
77
|
self._service_time_seconds = None
|
|
72
78
|
self._stat_time = None
|
|
73
79
|
self._storage_size_used_bytes = None
|
|
80
|
+
self._vector_read_vcu = None
|
|
81
|
+
self._vector_storage_size_used_bytes = None
|
|
82
|
+
self._vector_write_vcu = None
|
|
74
83
|
self.discriminator = None
|
|
75
84
|
|
|
76
85
|
if branch_compute_time_seconds is not None:
|
|
@@ -91,6 +100,12 @@ class WorkspaceUsageForModifyWorkspaceSettingsOutput(object):
|
|
|
91
100
|
self.stat_time = stat_time
|
|
92
101
|
if storage_size_used_bytes is not None:
|
|
93
102
|
self.storage_size_used_bytes = storage_size_used_bytes
|
|
103
|
+
if vector_read_vcu is not None:
|
|
104
|
+
self.vector_read_vcu = vector_read_vcu
|
|
105
|
+
if vector_storage_size_used_bytes is not None:
|
|
106
|
+
self.vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
107
|
+
if vector_write_vcu is not None:
|
|
108
|
+
self.vector_write_vcu = vector_write_vcu
|
|
94
109
|
|
|
95
110
|
@property
|
|
96
111
|
def branch_compute_time_seconds(self):
|
|
@@ -281,6 +296,69 @@ class WorkspaceUsageForModifyWorkspaceSettingsOutput(object):
|
|
|
281
296
|
|
|
282
297
|
self._storage_size_used_bytes = storage_size_used_bytes
|
|
283
298
|
|
|
299
|
+
@property
|
|
300
|
+
def vector_read_vcu(self):
|
|
301
|
+
"""Gets the vector_read_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The vector_read_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
305
|
+
:rtype: float
|
|
306
|
+
"""
|
|
307
|
+
return self._vector_read_vcu
|
|
308
|
+
|
|
309
|
+
@vector_read_vcu.setter
|
|
310
|
+
def vector_read_vcu(self, vector_read_vcu):
|
|
311
|
+
"""Sets the vector_read_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param vector_read_vcu: The vector_read_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
315
|
+
:type: float
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._vector_read_vcu = vector_read_vcu
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def vector_storage_size_used_bytes(self):
|
|
322
|
+
"""Gets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
:return: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
326
|
+
:rtype: int
|
|
327
|
+
"""
|
|
328
|
+
return self._vector_storage_size_used_bytes
|
|
329
|
+
|
|
330
|
+
@vector_storage_size_used_bytes.setter
|
|
331
|
+
def vector_storage_size_used_bytes(self, vector_storage_size_used_bytes):
|
|
332
|
+
"""Sets the vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceSettingsOutput.
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param vector_storage_size_used_bytes: The vector_storage_size_used_bytes of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
336
|
+
:type: int
|
|
337
|
+
"""
|
|
338
|
+
|
|
339
|
+
self._vector_storage_size_used_bytes = vector_storage_size_used_bytes
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def vector_write_vcu(self):
|
|
343
|
+
"""Gets the vector_write_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The vector_write_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
347
|
+
:rtype: float
|
|
348
|
+
"""
|
|
349
|
+
return self._vector_write_vcu
|
|
350
|
+
|
|
351
|
+
@vector_write_vcu.setter
|
|
352
|
+
def vector_write_vcu(self, vector_write_vcu):
|
|
353
|
+
"""Sets the vector_write_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param vector_write_vcu: The vector_write_vcu of this WorkspaceUsageForModifyWorkspaceSettingsOutput. # noqa: E501
|
|
357
|
+
:type: float
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._vector_write_vcu = vector_write_vcu
|
|
361
|
+
|
|
284
362
|
def to_dict(self):
|
|
285
363
|
"""Returns the model properties as a dict"""
|
|
286
364
|
result = {}
|
byteplussdkcore/api_client.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import absolute_import
|
|
4
4
|
|
|
5
|
-
import copy
|
|
6
5
|
import datetime
|
|
7
6
|
import logging
|
|
8
7
|
import time
|
|
@@ -18,6 +17,7 @@ from byteplussdkcore.interceptor import BuildRequestInterceptor, RuntimeOptionsI
|
|
|
18
17
|
ResolveEndpointInterceptor, SignRequestInterceptor, DeserializedResponseInterceptor, InterceptorContext, Request, \
|
|
19
18
|
Response, InterceptorChain
|
|
20
19
|
from byteplussdkcore.observability.debugger import sdk_core_logger, LogLevel
|
|
20
|
+
from byteplussdkcore.retryer.backoff_strategy import ExponentialWithRandomJitterBackoffStrategy
|
|
21
21
|
|
|
22
22
|
logger = logging.getLogger(__name__)
|
|
23
23
|
|
|
@@ -59,16 +59,17 @@ class ApiClient(object):
|
|
|
59
59
|
if configuration is None:
|
|
60
60
|
configuration = Configuration()
|
|
61
61
|
self.configuration = configuration
|
|
62
|
-
|
|
63
62
|
# Use the pool property to lazily initialize the ThreadPool.
|
|
64
63
|
self._pool = None
|
|
64
|
+
self._base_auto_retry = configuration.auto_retry
|
|
65
|
+
self._base_retryer = configuration._new_retryer_snapshot()
|
|
65
66
|
self.rest_client = rest.RESTClientObject(configuration)
|
|
66
67
|
self.default_headers = {}
|
|
67
68
|
if header_name is not None:
|
|
68
69
|
self.default_headers[header_name] = header_value
|
|
69
70
|
self.cookie = cookie
|
|
70
71
|
# Set default User-Agent.
|
|
71
|
-
self.user_agent = 'byteplus-python-sdk-v2/3.0.
|
|
72
|
+
self.user_agent = 'byteplus-python-sdk-v2/3.0.60'
|
|
72
73
|
self.client_side_validation = configuration.client_side_validation
|
|
73
74
|
|
|
74
75
|
self.interceptor_chain = InterceptorChain()
|
|
@@ -76,14 +77,16 @@ class ApiClient(object):
|
|
|
76
77
|
self.interceptor_chain.append_request_interceptor(BuildRequestInterceptor())
|
|
77
78
|
self.interceptor_chain.append_request_interceptor(RuntimeOptionsInterceptor())
|
|
78
79
|
self.interceptor_chain.append_request_interceptor(ResolveEndpointInterceptor())
|
|
79
|
-
self.
|
|
80
|
+
self.sign_request_interceptor = SignRequestInterceptor()
|
|
81
|
+
self.interceptor_chain.append_request_interceptor(self.sign_request_interceptor)
|
|
80
82
|
|
|
81
83
|
self.interceptor_chain.append_response_interceptor(DeserializedResponseInterceptor())
|
|
82
84
|
|
|
83
85
|
def __del__(self):
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
pool = getattr(self, '_pool', None)
|
|
87
|
+
if pool is not None:
|
|
88
|
+
pool.close()
|
|
89
|
+
pool.join()
|
|
87
90
|
|
|
88
91
|
@property
|
|
89
92
|
def pool(self):
|
|
@@ -116,14 +119,17 @@ class ApiClient(object):
|
|
|
116
119
|
if self.cookie:
|
|
117
120
|
header_params['Cookie'] = self.cookie
|
|
118
121
|
|
|
119
|
-
|
|
122
|
+
request = Request(
|
|
120
123
|
self.configuration,
|
|
121
124
|
resource_path, method, path_params,
|
|
122
125
|
query_params, header_params, body, post_params,
|
|
123
126
|
files, response_type, auth_settings,
|
|
124
127
|
_return_http_data_only, collection_formats,
|
|
125
128
|
_preload_content, _request_timeout,
|
|
126
|
-
)
|
|
129
|
+
)
|
|
130
|
+
request.auto_retry = self._base_auto_retry
|
|
131
|
+
request.retryer = self._base_retryer
|
|
132
|
+
interceptor_context = InterceptorContext(request=request)
|
|
127
133
|
|
|
128
134
|
interceptor_context = self.interceptor_chain.execute_request(interceptor_context)
|
|
129
135
|
|
|
@@ -156,6 +162,8 @@ class ApiClient(object):
|
|
|
156
162
|
break
|
|
157
163
|
retry_count += 1
|
|
158
164
|
retry_err = None
|
|
165
|
+
interceptor_context.request.retry_count = retry_count
|
|
166
|
+
interceptor_context = self.interceptor_chain.execute_retry(interceptor_context)
|
|
159
167
|
|
|
160
168
|
interceptor_context.response = Response(response_data)
|
|
161
169
|
interceptor_context = self.interceptor_chain.execute_response(interceptor_context)
|
|
@@ -461,11 +469,6 @@ class ApiClient(object):
|
|
|
461
469
|
fresh.read_timeout = timeout
|
|
462
470
|
|
|
463
471
|
# Retry: apply caller-level retry semantics to this STS call only.
|
|
464
|
-
# Deep-copy the retryer so we don't mutate the caller's default
|
|
465
|
-
# retryer (DEFAULT_RETRYER is a module-level singleton shared across
|
|
466
|
-
# Configurations). Configuration exposes retryer via a getter-only
|
|
467
|
-
# property; swap the underlying __retryer via name mangling.
|
|
468
|
-
fresh._Configuration__retryer = copy.deepcopy(fresh.retryer)
|
|
469
472
|
# Caller semantics: max_retries = TOTAL attempts (legacy from
|
|
470
473
|
# _do_http_request's for-loop). Configuration semantics:
|
|
471
474
|
# num_max_retries = retries AFTER the initial attempt. Convert.
|
|
@@ -473,6 +476,7 @@ class ApiClient(object):
|
|
|
473
476
|
# retry_interval is seconds; Configuration uses ms.
|
|
474
477
|
# Collapse the exponential-backoff range to a fixed delay.
|
|
475
478
|
delay_ms = int(retry_interval * 1000)
|
|
479
|
+
fresh.backoff_strategy = ExponentialWithRandomJitterBackoffStrategy()
|
|
476
480
|
fresh.min_retry_delay_ms = delay_ms
|
|
477
481
|
fresh.max_retry_delay_ms = delay_ms
|
|
478
482
|
|
|
@@ -77,8 +77,6 @@ class StsCredentialProvider(Provider):
|
|
|
77
77
|
configuration.scheme = self.scheme
|
|
78
78
|
configuration.read_timeout = self.timeout
|
|
79
79
|
|
|
80
|
-
import copy
|
|
81
|
-
configuration._Configuration__retryer = copy.deepcopy(configuration.retryer)
|
|
82
80
|
configuration.num_max_retries = max(self.max_retries - 1, 0)
|
|
83
81
|
delay_ms = int(self.retry_interval * 1000)
|
|
84
82
|
configuration.min_retry_delay_ms = delay_ms
|
byteplussdkcore/configuration.py
CHANGED
|
@@ -13,9 +13,13 @@ from six.moves import http_client as httplib
|
|
|
13
13
|
|
|
14
14
|
from byteplussdkcore.endpoint import DefaultEndpointProvider
|
|
15
15
|
from byteplussdkcore.observability.debugger import sdk_core_logger
|
|
16
|
-
from byteplussdkcore.retryer.retryer import
|
|
16
|
+
from byteplussdkcore.retryer.retryer import (
|
|
17
|
+
Retryer,
|
|
18
|
+
new_retryer,
|
|
19
|
+
)
|
|
17
20
|
|
|
18
21
|
SDK_HANDLER_FLAG = "_byteplus_sdk_handler"
|
|
22
|
+
_UNSET_RETRY_OVERRIDE = object()
|
|
19
23
|
|
|
20
24
|
|
|
21
25
|
class TypeWithDefault(type):
|
|
@@ -143,10 +147,21 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
143
147
|
self.credential_provider = None
|
|
144
148
|
# Retryer setting
|
|
145
149
|
self.auto_retry = True
|
|
146
|
-
self.__retryer =
|
|
147
|
-
self.
|
|
148
|
-
self.
|
|
149
|
-
self.
|
|
150
|
+
self.__retryer = Retryer()
|
|
151
|
+
self.__retry_error_codes_overridden = False
|
|
152
|
+
self.__min_retry_delay_ms_overridden = False
|
|
153
|
+
self.__max_retry_delay_ms_overridden = False
|
|
154
|
+
self.__pending_retry_error_codes = _UNSET_RETRY_OVERRIDE
|
|
155
|
+
self.__pending_min_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
156
|
+
self.__pending_max_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
157
|
+
|
|
158
|
+
def __copy__(self):
|
|
159
|
+
result = object.__new__(type(self))
|
|
160
|
+
result.__dict__.update(self.__dict__)
|
|
161
|
+
result.__retryer = self._new_retryer_snapshot()
|
|
162
|
+
if self.__pending_retry_error_codes is not _UNSET_RETRY_OVERRIDE:
|
|
163
|
+
result.__pending_retry_error_codes = set(self.__pending_retry_error_codes)
|
|
164
|
+
return result
|
|
150
165
|
|
|
151
166
|
@property
|
|
152
167
|
def logger_file(self):
|
|
@@ -287,7 +302,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
287
302
|
"OS: {env}\n" \
|
|
288
303
|
"Python Version: {pyversion}\n" \
|
|
289
304
|
"Version of the API: 0.1.0\n" \
|
|
290
|
-
"SDK Package Version: 3.0.
|
|
305
|
+
"SDK Package Version: 3.0.60".\
|
|
291
306
|
format(env=sys.platform, pyversion=sys.version)
|
|
292
307
|
|
|
293
308
|
@property
|
|
@@ -308,11 +323,21 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
308
323
|
|
|
309
324
|
@backoff_strategy.setter
|
|
310
325
|
def backoff_strategy(self, value):
|
|
326
|
+
min_retry_delay_ms = self.min_retry_delay_ms
|
|
327
|
+
max_retry_delay_ms = self.max_retry_delay_ms
|
|
311
328
|
self.__retryer.backoff_strategy = value
|
|
312
|
-
if
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
329
|
+
if value is None:
|
|
330
|
+
if self.__min_retry_delay_ms_overridden:
|
|
331
|
+
self.__pending_min_retry_delay_ms = min_retry_delay_ms
|
|
332
|
+
if self.__max_retry_delay_ms_overridden:
|
|
333
|
+
self.__pending_max_retry_delay_ms = max_retry_delay_ms
|
|
334
|
+
return
|
|
335
|
+
if self.__min_retry_delay_ms_overridden:
|
|
336
|
+
value.min_retry_delay_ms = min_retry_delay_ms
|
|
337
|
+
self.__pending_min_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
338
|
+
if self.__max_retry_delay_ms_overridden:
|
|
339
|
+
value.max_retry_delay_ms = max_retry_delay_ms
|
|
340
|
+
self.__pending_max_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
316
341
|
|
|
317
342
|
@property
|
|
318
343
|
def retry_condition(self):
|
|
@@ -320,41 +345,86 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
320
345
|
|
|
321
346
|
@retry_condition.setter
|
|
322
347
|
def retry_condition(self, value):
|
|
348
|
+
retry_error_codes = self.retry_error_codes
|
|
323
349
|
self.__retryer.retry_condition = value
|
|
324
|
-
if
|
|
325
|
-
|
|
350
|
+
if value is None:
|
|
351
|
+
if self.__retry_error_codes_overridden:
|
|
352
|
+
self.__pending_retry_error_codes = set(retry_error_codes) \
|
|
353
|
+
if retry_error_codes is not None else set()
|
|
354
|
+
return
|
|
355
|
+
if self.__retry_error_codes_overridden:
|
|
356
|
+
value.retry_error_codes = set(retry_error_codes) if retry_error_codes is not None else set()
|
|
357
|
+
self.__pending_retry_error_codes = _UNSET_RETRY_OVERRIDE
|
|
326
358
|
|
|
327
359
|
@property
|
|
328
360
|
def retry_error_codes(self):
|
|
329
|
-
|
|
361
|
+
retry_condition = self.__retryer.retry_condition
|
|
362
|
+
if retry_condition is not None:
|
|
363
|
+
return retry_condition.retry_error_codes
|
|
364
|
+
if self.__pending_retry_error_codes is not _UNSET_RETRY_OVERRIDE:
|
|
365
|
+
return self.__pending_retry_error_codes
|
|
366
|
+
return None
|
|
330
367
|
|
|
331
368
|
@retry_error_codes.setter
|
|
332
369
|
def retry_error_codes(self, value):
|
|
333
|
-
self.
|
|
334
|
-
self.__retryer.retry_condition
|
|
370
|
+
self.__retry_error_codes_overridden = True
|
|
371
|
+
retry_condition = self.__retryer.retry_condition
|
|
372
|
+
if retry_condition is None:
|
|
373
|
+
self.__pending_retry_error_codes = set(value) if value is not None else set()
|
|
374
|
+
else:
|
|
375
|
+
retry_condition.retry_error_codes = set(value) if value is not None else set()
|
|
376
|
+
self.__pending_retry_error_codes = _UNSET_RETRY_OVERRIDE
|
|
335
377
|
|
|
336
378
|
@property
|
|
337
379
|
def min_retry_delay_ms(self):
|
|
338
|
-
|
|
380
|
+
backoff_strategy = self.__retryer.backoff_strategy
|
|
381
|
+
if backoff_strategy is not None:
|
|
382
|
+
return backoff_strategy.min_retry_delay_ms
|
|
383
|
+
if self.__pending_min_retry_delay_ms is not _UNSET_RETRY_OVERRIDE:
|
|
384
|
+
return self.__pending_min_retry_delay_ms
|
|
385
|
+
return None
|
|
339
386
|
|
|
340
387
|
@min_retry_delay_ms.setter
|
|
341
388
|
def min_retry_delay_ms(self, value):
|
|
342
|
-
self.
|
|
343
|
-
self.__retryer.backoff_strategy
|
|
389
|
+
self.__min_retry_delay_ms_overridden = True
|
|
390
|
+
backoff_strategy = self.__retryer.backoff_strategy
|
|
391
|
+
if backoff_strategy is None:
|
|
392
|
+
self.__pending_min_retry_delay_ms = value
|
|
393
|
+
else:
|
|
394
|
+
backoff_strategy.min_retry_delay_ms = value
|
|
395
|
+
self.__pending_min_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
344
396
|
|
|
345
397
|
@property
|
|
346
398
|
def max_retry_delay_ms(self):
|
|
347
|
-
|
|
399
|
+
backoff_strategy = self.__retryer.backoff_strategy
|
|
400
|
+
if backoff_strategy is not None:
|
|
401
|
+
return backoff_strategy.max_retry_delay_ms
|
|
402
|
+
if self.__pending_max_retry_delay_ms is not _UNSET_RETRY_OVERRIDE:
|
|
403
|
+
return self.__pending_max_retry_delay_ms
|
|
404
|
+
return None
|
|
348
405
|
|
|
349
406
|
@max_retry_delay_ms.setter
|
|
350
407
|
def max_retry_delay_ms(self, value):
|
|
351
|
-
self.
|
|
352
|
-
self.__retryer.backoff_strategy
|
|
408
|
+
self.__max_retry_delay_ms_overridden = True
|
|
409
|
+
backoff_strategy = self.__retryer.backoff_strategy
|
|
410
|
+
if backoff_strategy is None:
|
|
411
|
+
self.__pending_max_retry_delay_ms = value
|
|
412
|
+
else:
|
|
413
|
+
backoff_strategy.max_retry_delay_ms = value
|
|
414
|
+
self.__pending_max_retry_delay_ms = _UNSET_RETRY_OVERRIDE
|
|
353
415
|
|
|
354
416
|
@property
|
|
355
417
|
def retryer(self):
|
|
356
418
|
return self.__retryer
|
|
357
419
|
|
|
420
|
+
def _new_retryer_snapshot(self):
|
|
421
|
+
retryer = self.__retryer
|
|
422
|
+
return new_retryer(
|
|
423
|
+
num_max_retries=retryer.num_max_retries,
|
|
424
|
+
backoff_strategy=retryer.backoff_strategy,
|
|
425
|
+
retry_condition=retryer.retry_condition,
|
|
426
|
+
)
|
|
427
|
+
|
|
358
428
|
@property
|
|
359
429
|
def log_level(self):
|
|
360
430
|
return sdk_core_logger.get_log_level()
|